{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/varoriya-com/json-schema/varoriya-com-image-request-schema.json",
  "title": "ImageRequest",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/varoriya-com-openapi.yml#/components/schemas/ImageRequest",
  "type": "object",
  "required": [
    "model",
    "prompt"
  ],
  "properties": {
    "model": {
      "type": "string",
      "enum": [
        "z-image",
        "grok",
        "nanobananapro",
        "seedream5pro",
        "gptimage"
      ],
      "description": "Image model to run:\n- `z-image` — Economical, fast, photorealistic text-to-image. Best cheap default.\n- `grok` — xAI Grok Imagine. Fast; many styles (realistic, anime, oil, abstract); strong legible text-in-image; can also edit one reference image.\n- `nanobananapro` — Google Gemini 3 Pro Image (\"Nano Banana 2 Pro\"). Production-grade, native 1K–4K, reference images, optional real-time Google Search grounding (`options.search`). Great for infographics & accurate text, incl. **Thai text in images**.\n- `seedream5pro` — ByteDance Seedream 5.0 Pro. Visual reasoning + spatial grounding for pixel-precise edits, dense infographics, 10+ languages incl. Thai, up to 10 reference images; realistic light/shadow/texture.\n- `gptimage` — OpenAI GPT-Image 2. Strong prompt-following and multi-image editing; renders **Thai (and other-language) text in images** well; quality `low|medium|high`, ratios `1:1|2:3|3:2`.\n"
    },
    "prompt": {
      "type": "string",
      "description": "Text description of the image to create."
    },
    "aspect_ratio": {
      "type": "string",
      "description": "Aspect ratio (per model), e.g. `1:1`, `16:9`, `9:16`, `4:3`, `3:4`;\n`auto` for nanobananapro / seedream5pro.\n"
    },
    "quality": {
      "type": "string",
      "description": "Resolution tier (per model): z-image `Sketch|1K|2K`,\nnanobananapro `1K|2K|4K`, seedream5pro `1K|1.5K|2K`, gptimage `low|medium|high`. grok has none.\n"
    },
    "n": {
      "type": "integer",
      "minimum": 1,
      "default": 1,
      "description": "Number of images (most models max 1)."
    },
    "seed": {
      "type": "integer",
      "description": "Reproducibility seed (z-image only)."
    },
    "negative_prompt": {
      "type": "string",
      "description": "What to avoid (only if the model supports it)."
    },
    "images": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri"
      },
      "description": "Reference/edit image URLs — grok max 1, nanobananapro multiple,\nseedream5pro up to 10, gptimage up to 14.\n"
    },
    "options": {
      "type": "object",
      "additionalProperties": true,
      "description": "Image flags: nanobananapro `{ \"search\": true }` (Google Search\ngrounding), seedream5pro `{ \"output_format\": \"png\" }`.\n"
    }
  }
}