# Generate AI QR art (Developers)

URL: https://qrdx.dev/docs/developers/api/create-art
Source: https://github.com/qrdxinc/qrdx/blob/main/apps/app/content/docs/developers/api/create-art.mdx

Paints a QR code into AI artwork from your description and checks that the image scans. Where the model's image doesn't scan as drawn, QRdx strengthens the code just enough, on the model's own pixels (blend says how). It's the same AI art as the playground's Art tab and the AI art studio.

{/* Generated by bun run openapi:generate from public\/openapi.json. Edit lib\/openapi, then run it again. */}

**Credits.** Each image uses one from the monthly AI art allowance of the workspace the key acts on, the same allowance as the app: 3 on Free, 30 on Pro and 150 on Business, shared by the team. A failed call is refunded. Each person can also make at most 25 a day. `credits` in the response shows what's left.

**Timing.** A call takes about 15 to 45 seconds in code mode, 25 to 45 in photo mode and 40 to 55 in scene mode (it makes its picture first), and gives up before a minute without using a credit: a scene that runs out of time answers `AI_ART_TIMEOUT`, so try again or use code mode. Set your HTTP client's timeout to at least 60 seconds.

**What it encodes.** Send `text`, or a dynamic code's `code` (its `id`) to encode its short link, so you can change where it goes later and its scans are counted. A code in another workspace is a `404`.

**Response.** JSON with the image as a `data:` URL, or the PNG itself with `?format=png` or `Accept: image/png` (seed, mode and blend then come as `X-QRdx-Seed`, `X-QRdx-Mode`, `X-QRdx-Blend`, `X-QRdx-Blend-Strength` and `X-QRdx-Credits-Remaining` headers). Nothing is stored, and photos and reference images are discarded after the call. [AI art API](https://qrdx.dev/docs/developers/ai-art-api).

**Scope:** `codes:write`, for API keys and OAuth tokens alike.
