{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nativeads-ai/json-schema/nativeads-ai-image-to-video-prompt-enhancement-response-schema.json",
  "title": "ImageToVideoPromptEnhancementResponse",
  "description": "Response for an image-to-video prompt enhancement request.",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nativeads-ai-openapi.yml#/components/schemas/ImageToVideoPromptEnhancementResponse",
  "type": "object",
  "required": [
    "promptEnhancementId",
    "brandId",
    "intermediateFrameAssetIds",
    "referenceImageAssetIds",
    "referenceVideoAssetIds",
    "originalPrompt",
    "aspectRatio",
    "model",
    "status",
    "enableAudio",
    "useBrandDna",
    "createdAt",
    "updatedAt"
  ],
  "properties": {
    "promptEnhancementId": {
      "type": "string",
      "format": "uuid",
      "readOnly": true,
      "description": "Unique identifier for the prompt enhancement."
    },
    "brandId": {
      "type": "string",
      "format": "uuid",
      "readOnly": true,
      "description": "ID of the brand."
    },
    "startFrameAssetId": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "readOnly": true,
      "description": "ID of the start frame image asset, if provided. Null when no start frame was sent, which is every new seedance-2.5-pro request and any seedance-2.0-pro or kling-v4 request sent with referenceImageAssetIds."
    },
    "endFrameAssetId": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "readOnly": true,
      "description": "ID of the end frame image asset, if provided."
    },
    "referenceImageAssetIds": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid"
      },
      "readOnly": true,
      "description": "Reference image asset IDs in the order sent, for seedance-2.5-pro, seedance-2.0-pro and Kling. Empty array if none."
    },
    "referenceVideoAssetIds": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid"
      },
      "readOnly": true,
      "description": "Reference video asset IDs for seedance-2.5-pro (@Video N order). Empty array if none."
    },
    "intermediateFrameAssetIds": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid"
      },
      "readOnly": true,
      "description": "Ordered intermediate frame assets used for this enhancement (Kling). Empty array if none."
    },
    "originalPrompt": {
      "type": "string",
      "readOnly": true,
      "description": "The original prompt submitted for enhancement."
    },
    "aspectRatio": {
      "type": "string",
      "readOnly": true,
      "description": "The target aspect ratio for the video."
    },
    "model": {
      "type": "string",
      "readOnly": true,
      "description": "The target video generation model, as requested. optimized stays optimized."
    },
    "duration": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 1,
      "readOnly": true,
      "description": "Target video duration (s), if provided."
    },
    "enhancedPrompt": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "description": "The AI-enhanced prompt (available when status is 'completed')."
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "processing",
        "completed",
        "failed"
      ],
      "description": "Current status of the enhancement."
    },
    "errorCode": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "description": "Error code if status is 'failed'."
    },
    "errorMessage": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "description": "Error message if status is 'failed'."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "readOnly": true,
      "description": "Creation timestamp."
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "readOnly": true,
      "description": "Last update timestamp."
    },
    "completedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "readOnly": true,
      "description": "Completion timestamp (if completed)."
    },
    "failedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "readOnly": true,
      "description": "Failure timestamp (if failed)."
    },
    "enableAudio": {
      "type": "boolean",
      "readOnly": true,
      "description": "Whether audio guidance was included in this prompt enhancement."
    },
    "useBrandDna": {
      "type": "boolean",
      "readOnly": true,
      "description": "Whether Brand DNA was applied to this prompt enhancement."
    }
  }
}