{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/craftstory-com/json-schema/craftstory-com-craft-story2-schema.json",
  "title": "CraftStory2",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/craftstory-com-openapi.yml#/components/schemas/CraftStory2",
  "type": "object",
  "properties": {
    "id": {
      "title": "Id",
      "type": "string",
      "format": "uuid",
      "readOnly": true
    },
    "name": {
      "title": "Name",
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "minLength": 1
    },
    "kind": {
      "title": "Kind",
      "type": "string",
      "enum": [
        "regular",
        "upscale",
        "clone",
        "studio"
      ],
      "readOnly": true
    },
    "status": {
      "title": "Status",
      "type": "string",
      "enum": [
        "created",
        "in_progress_converting_image20_to_png",
        "in_progress_audio",
        "in_progress_10_video_queued",
        "in_progress_10_video_generating",
        "in_progress_20_video_queued",
        "in_progress_moderation_image",
        "in_progress_20_video_generating",
        "in_progress_upscaling_queued",
        "in_progress_upscaling_generating",
        "failed",
        "done",
        "rejected_image"
      ],
      "readOnly": true
    },
    "status_failed": {
      "title": "Status failed",
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "video10_generating",
        "convert_image20_to_png",
        "failed_image_moderation",
        "rejected_image",
        "failed_join_audios",
        "video20_first_frame",
        "no_person_detected_image",
        "no_person_detected_video",
        "multiple_people_detected_image",
        "no_face_detected_image",
        "failed_image",
        "failed_video",
        "gpu_unavailable",
        "failed_outpaint",
        "failed_lipsync"
      ],
      "readOnly": true
    },
    "status_failed_display": {
      "title": "Status failed display",
      "type": "string",
      "readOnly": true
    },
    "status_percentage": {
      "title": "Status percentage",
      "type": "integer",
      "readOnly": true
    },
    "credits_refunded": {
      "title": "Credits refunded",
      "type": "string",
      "readOnly": true
    },
    "audios": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid"
      },
      "readOnly": true,
      "uniqueItems": true
    },
    "image": {
      "title": "Image",
      "type": "string",
      "readOnly": true,
      "format": "uri"
    },
    "gestures": {
      "title": "Gestures",
      "type": "string",
      "readOnly": true,
      "minLength": 1
    },
    "resolution": {
      "title": "Resolution",
      "type": "string",
      "readOnly": true,
      "minLength": 1
    },
    "lipsync_mode": {
      "title": "Lipsync mode",
      "description": "Lipsync engine: sync_so (default, same price), craftstory (built-in), empty (off).",
      "type": "string",
      "enum": [
        "craftstory",
        "sync_so",
        "empty"
      ],
      "readOnly": true
    },
    "user_prompt": {
      "title": "User prompt",
      "type": "string",
      "readOnly": true,
      "minLength": 1
    },
    "video": {
      "title": "Video",
      "description": "Result MP4; null until status is done.",
      "type": "string",
      "readOnly": true,
      "format": "uri"
    },
    "video_duration_s": {
      "title": "Video duration s",
      "description": "Length of the result in seconds; null until done.",
      "type": [
        "number",
        "null"
      ],
      "readOnly": true
    },
    "video_first_frame": {
      "title": "Video first frame",
      "type": "string",
      "readOnly": true,
      "format": "uri"
    },
    "credits": {
      "title": "Credits",
      "type": "integer",
      "readOnly": true
    },
    "asset": {
      "title": "Asset",
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "readOnly": true
    },
    "created": {
      "title": "Created",
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "updated": {
      "title": "Updated",
      "type": "string",
      "format": "date-time",
      "readOnly": true
    }
  }
}