{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/meetkuro-com/json-schema/meetkuro-com-generation-schema.json",
  "title": "Generation",
  "description": "One image, clip, voice-over or piece of music.",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/meetkuro-com-openapi.json#/components/schemas/Generation",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "enum": [
        "generation"
      ]
    },
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "type": {
      "type": "string",
      "enum": [
        "image",
        "clip",
        "voiceover",
        "music",
        "tool"
      ],
      "description": "What was made. New values may be added; treat an unknown one as opaque."
    },
    "status": {
      "type": "string",
      "enum": [
        "queued",
        "generating",
        "ready",
        "failed"
      ],
      "description": "`ready` and `failed` are final."
    },
    "model": {
      "type": "string",
      "description": "The model id it was made with (`GET /v1/models`)."
    },
    "prompt": {
      "type": "string"
    },
    "aspect_ratio": {
      "type": [
        "string",
        "null"
      ],
      "description": "Null for audio."
    },
    "output_url": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "description": "The finished file, once `ready`. A signed link that works for about an hour; read the generation again for a fresh one."
    },
    "thumbnail_url": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "description": "A small still of the result, for a grid. Null for audio and while it works."
    },
    "credits": {
      "type": [
        "number",
        "null"
      ],
      "description": "Credits charged. Zero when your own provider key or the free allowance paid."
    },
    "paid_by": {
      "type": [
        "string",
        "null"
      ],
      "description": "Who paid: \"credits\", \"house\" (the free allowance), \"server\" (a server that charges nothing), or the vendor of your own key (\"replicate\", \"fal\", …)."
    },
    "error": {
      "type": [
        "string",
        "null"
      ],
      "description": "Why it failed. Null otherwise."
    },
    "ready_in_seconds": {
      "type": [
        "number",
        "null"
      ],
      "description": "Roughly how long an unfinished generation has left; 0 means past its usual time."
    },
    "recipe_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "The recipe it was made with, if any."
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "app_url": {
      "type": "string",
      "format": "uri",
      "description": "Opens it in the app."
    }
  },
  "required": [
    "object",
    "id",
    "type",
    "status",
    "model",
    "prompt",
    "aspect_ratio",
    "output_url",
    "thumbnail_url",
    "credits",
    "paid_by",
    "error",
    "ready_in_seconds",
    "recipe_id",
    "created_at",
    "app_url"
  ]
}