> ## Documentation Index
> Fetch the complete documentation index at: https://lava.so/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# QR Server

> QR code generation and decoding API from goqr.me, producing PNG/SVG QR codes with configurable size, color, and error correction.

QR code generation and decoding API from goqr.me, producing PNG/SVG QR codes with configurable size, color, and error correction. Best for workflows that need to generate shareable QR codes or decode existing ones programmatically. A free, no-auth utility — no API key or account required.

2 example endpoints available through Lava's AI Gateway. See the [QR Server API docs](https://goqr.me/api/doc/) for full documentation.

<Info>This provider is **managed** — no additional setup required.</Info>

<Info>This is a **catch-all provider** — any valid URL under `https://api.qrserver.com/v1` is supported. QR code generation and decoding API. Construct URL as [https://api.qrserver.com/v1/\&#123;endpoint\&#125](https://api.qrserver.com/v1/\&#123;endpoint\&#125);. Common endpoints: /create-qr-code/?size=200x200\&data=\{text}, /read-qr-code/?fileurl=\{url}. The endpoints below are curated examples.</Info>

## Endpoints

### Generate a QR code image

**GET** `https://api.qrserver.com/v1/create-qr-code/?size=200x200&data=https://example.com` — Free

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://api.qrserver.com/v1/create-qr-code/?size=200x200&data=https://example.com', { method: 'GET' });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi.qrserver.com%2Fv1%2Fcreate-qr-code%2F%3Fsize%3D200x200%26data%3Dhttps%3A%2F%2Fexample.com" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY"
    ```
  </Tab>
</Tabs>

### Decode a QR code from URL

**POST** `https://api.qrserver.com/v1/read-qr-code` — Free

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://api.qrserver.com/v1/read-qr-code', { method: 'POST' });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl -X POST "https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi.qrserver.com%2Fv1%2Fread-qr-code" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY" \
      -H "Content-Type: application/json"
    ```
  </Tab>
</Tabs>

## Next Steps

<CardGroup cols={2}>
  <Card title="All Providers" icon="grid" href="/gateway/supported-providers">
    Browse all supported AI providers
  </Card>

  <Card title="Forward Proxy" icon="route" href="/gateway/forward-proxy">
    Learn how to construct proxy URLs and authenticate requests
  </Card>
</CardGroup>
