{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/studio99-app/json-schema/studio99-app-generate-request-schema.json",
  "title": "GenerateRequest",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/studio99-app-openapi.json#/components/schemas/GenerateRequest",
  "type": "object",
  "required": [
    "text"
  ],
  "properties": {
    "text": {
      "type": "string",
      "maxLength": 150,
      "description": "The phrase, in the target script or in Latin letters."
    },
    "language": {
      "type": "string",
      "enum": [
        "hindi",
        "marathi",
        "gujarati",
        "english",
        "hi",
        "mr",
        "gu",
        "en"
      ],
      "description": "Omit to auto-detect."
    },
    "count": {
      "type": "integer",
      "minimum": 1,
      "maximum": 6,
      "default": 4,
      "description": "Variants to return; 1 credit each."
    },
    "format": {
      "type": "string",
      "enum": [
        "svg",
        "png"
      ],
      "default": "svg",
      "description": "\"png\" adds a `png` object to each variant alongside the SVG."
    },
    "pngWidth": {
      "type": "integer",
      "description": "Target PNG width in px (clamped to your plan's ceiling)."
    },
    "fontId": {
      "type": "string",
      "description": "Pin every variant to one font (from GET /fonts)."
    },
    "use_case": {
      "type": "string",
      "enum": [
        "certificates",
        "greetings",
        "invitations",
        "logos",
        "names",
        "occasions",
        "posters",
        "quotes",
        "birthday",
        "casual",
        "festive",
        "formal",
        "memorial",
        "religious",
        "wedding"
      ],
      "description": "Semantic font steer."
    },
    "mood": {
      "type": "string",
      "enum": [
        "elegant",
        "festive",
        "playful",
        "romantic",
        "serious",
        "spiritual"
      ],
      "description": "Semantic font steer."
    },
    "style": {
      "type": "string",
      "description": "Classic engine only: style hint."
    },
    "weight": {
      "type": "string",
      "description": "Classic engine only: weight hint."
    },
    "engine": {
      "type": "string",
      "enum": [
        "typogen-x",
        "classic"
      ],
      "description": "Overrides the per-key default engine."
    },
    "align": {
      "type": "string",
      "enum": [
        "center",
        "left",
        "right"
      ],
      "default": "center",
      "description": "Multi-line alignment (typogen-x)."
    },
    "lines": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "auto"
          ]
        },
        {
          "type": "integer",
          "minimum": 0,
          "maximum": 6
        }
      ],
      "description": "\"auto\" (default), 0/1 for a single line, or 2–6 to force that many lines (typogen-x)."
    },
    "lineGap": {
      "type": "number",
      "description": "Extra vertical gap for left/right aligned layouts (typogen-x)."
    },
    "recipe": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      ],
      "description": "Treatment(s): plain | flagship | duo | free (typogen-x)."
    },
    "seed": {
      "type": "integer",
      "description": "Same seed + same input = same output (typogen-x)."
    }
  }
}