Skip to content

AI mode

You write a sentence, the engine returns a fully-spec'd QrConfig and renders it. The same validation pipeline applies — what changes is who picks the shapes and colors.

Inputs

FieldRequiredNotes
URL / contentyesWhat the QR will encode. The AI never invents this.
PromptyesPlain language. Mention brand, mood, materials, references.
Logo URLnoThe engine fetches it, embeds it center, auto-clears modules beneath it.
Center banner textnoShort string. Forces ECC H and a contrasting banner color.
CTA textnoCaption below the QR.
Style presetnoluxury, minimal, artistic, corporate, tech, playful, nature, balanced. Biases the prompt.
Creativityno0.0–1.0. Lower = closer to safe defaults, higher = bolder picks.

What the AI controls

  • Module shape (square / circle / diamond / hexagon / cross / star / leaf / dot / pointed / drop / …)
  • Finder eyes (outer + inner shapes, colors)
  • Palette (solid, linear gradient, radial gradient, multi-stop)
  • Gradient direction + angle
  • QR shape (square / rounded / circle)
  • Effects (shadow, glow, emboss, noise — within safe ranges)

What the AI never changes

  • The encoded content (your URL stays your URL).
  • The ECC level when strictScannability is on (held at H if a logo or center text is present).
  • The validation pipeline. Every output passes the same checks.

Provider fallback chain

The server-side endpoint (/api/qr/ai/generate/server) tries providers in this order:

  1. Groq (GPT-OSS 120B) — free tier, fastest
  2. Groq (GPT-OSS 20B) — separate free-tier quota
  3. OpenAI GPT-4.1-mini — paid fallback
  4. Google Gemini Flash — last resort

A 429 on one provider doesn't break the request — the next one in the chain answers.

Example

Prompt: "luxury watch brand, ivory background, art deco gold leaf, geometric chevrons"

Output config (excerpt):

{
  "backgroundColor": "#f5ecd2",
  "primaryColor": "#5e4524",
  "foregroundStyle": "solid",
  "moduleShape": "diamond",
  "moduleScale": 0.78,
  "finderOuterShape": "octagon",
  "finderInnerShape": "diamond",
  "finderOuterColor": "#3d2a14",
  "finderInnerColor": "#a98349",
  "eccLevel": "H"
}

Want to see this rendered? It's tile Art deco gold in the home AI showcase.