{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aicontentdrop-com/json-schema/aicontentdrop-com-generation-accepted-schema.json",
  "title": "GenerationAccepted",
  "description": "202 from either generation endpoint. `video` carries the job for images too — one shape across both so a client needs one parser.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aicontentdrop-com-generation-api-openapi.yml#/components/schemas/GenerationAccepted",
  "type": "object",
  "required": [
    "video"
  ],
  "properties": {
    "sandbox": {
      "type": "boolean",
      "description": "true when X-Sandbox: true was sent. Nothing was generated and no credits were spent."
    },
    "video": {
      "$ref": "#/$defs/GenerationJob"
    }
  },
  "$defs": {
    "GenerationJob": {
      "type": "object",
      "required": [
        "id",
        "status"
      ],
      "description": "A submitted generation. Submit-and-poll: this is the acknowledgement, not the result. Poll GET /v1/videos/{id} until status is completed or failed.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Poll this id. A sandbox job is prefixed `sandbox_`."
        },
        "title": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "generating",
            "completed",
            "failed",
            "timeout"
          ]
        },
        "aiModel": {
          "type": [
            "string",
            "null"
          ],
          "description": "Normalised model id the job was routed to."
        },
        "creditsUsed": {
          "type": "number",
          "description": "0 at submission. Billing is post-deduct: credits are charged only when the generation succeeds."
        },
        "videoUrl": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "imageUrl": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "note": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    }
  }
}