{
  "notice": "bxzxxr MCP archive: a record of what public MCP servers declared when we listed them (we never call their tools). It is data, not a rating: nothing here says a server is safe, secure, verified or trustworthy, and a server can change after we looked. Secrets we detected are redacted; redacted tool lists are withheld and only their hash is shown.",
  "infrastructure": {
    "host": "mcp.magichour.ai",
    "site": "magichour.ai",
    "addresses": [
      {
        "address": "64.239.109.129",
        "endpoints": 5,
        "shared_infrastructure": false,
        "network": {
          "asn": 16509,
          "name": "AMAZON-02 - Amazon.com, Inc.",
          "prefix": "64.239.109.0/24",
          "country": "US"
        }
      },
      {
        "address": "64.239.123.129",
        "endpoints": 4,
        "shared_infrastructure": false,
        "network": {
          "asn": 16509,
          "name": "AMAZON-02 - Amazon.com, Inc.",
          "prefix": "64.239.123.0/24",
          "country": "US"
        }
      }
    ],
    "addresses_recorded": true,
    "address_history": [
      {
        "addresses": [
          "64.239.109.129",
          "64.239.123.129"
        ],
        "first_seen": "2026-11-22T20:24:03.877Z",
        "last_seen": "2026-11-22T20:24:03.877Z",
        "checks": 1
      },
      {
        "addresses": [
          "64.239.109.193",
          "64.239.123.193"
        ],
        "first_seen": "2026-11-21T16:15:01.742Z",
        "last_seen": "2026-11-21T16:15:01.742Z",
        "checks": 1
      }
    ],
    "hosting": [
      {
        "value": "Vercel",
        "evidence": "Server header \"Vercel\""
      }
    ],
    "software": [],
    "server_info": {
      "name": "magic-hour",
      "version": "0.1.0",
      "protocol_version": "2025-06-18"
    },
    "headers": {
      "server": "Vercel",
      "strict-transport-security": "max-age=63072000"
    },
    "auth": null
  },
  "related": {
    "same_address": {
      "total": 4,
      "sample": [
        {
          "id": "208",
          "url": "https://aldro.ai/mcp",
          "server_name": "ai.aldro/tax",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T04:35:03.739Z"
        },
        {
          "id": "13338",
          "url": "https://mcp.newsmcp.com/mcp",
          "server_name": "com.newsmcp/newsmcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T15:39:03.734Z"
        },
        {
          "id": "20715",
          "url": "https://mcp.svelte.dev/mcp",
          "server_name": "dev.svelte/mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T17:36:02.597Z"
        },
        {
          "id": "45326",
          "url": "https://mcp.morpho.org/",
          "server_name": "org.morpho/mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T22:30:04.783Z"
        }
      ]
    },
    "same_site": {
      "total": 0,
      "sample": []
    },
    "same_tool_list": {
      "total": 0,
      "sample": []
    },
    "same_publisher": {
      "publisher": "io.github.magichourhq",
      "total": 0,
      "sample": []
    },
    "same_repository": {
      "repository_url": "https://github.com/magichourhq/magic-hour-mcp",
      "total": 0,
      "sample": []
    },
    "note": "Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators."
  },
  "endpoint": {
    "id": "31636",
    "server_name": "io.github.magichourhq/magic-hour",
    "url": "https://mcp.magichour.ai/",
    "host": "mcp.magichour.ai",
    "transport": "streamable-http",
    "last_checked_at": "2026-11-22T20:24:03.877Z",
    "last_state": "listed",
    "last_detail": null,
    "consecutive_failures": 0,
    "current_sha": "9a9de148837b8141ba8de52b25cb0d05f4aab4a01e267f8dca372bf9e90c1476",
    "first_listed_at": "2026-11-21T16:15:01.742Z",
    "created_at": "2026-11-21T10:15:09.659Z",
    "resolved_addresses": [
      "64.239.109.129",
      "64.239.123.129"
    ]
  },
  "server": {
    "name": "io.github.magichourhq/magic-hour",
    "title": "Magic Hour",
    "description": "Create and edit images and video, generate music, and retrieve existing audio projects.",
    "version": "0.1.1",
    "registry_status": "active",
    "repository_url": "https://github.com/magichourhq/magic-hour-mcp",
    "website_url": null,
    "published_at": "2026-11-04T07:15:31.970Z",
    "updated_at": "2026-11-04T07:15:31.970Z",
    "first_seen": "2026-11-21T10:15:09.096Z"
  },
  "other_endpoints": [],
  "intel": {
    "capabilities": [
      "calls-models",
      "trades"
    ],
    "evm_addresses": [],
    "chains": [
      "polygon",
      "tron"
    ],
    "tokens": [],
    "computed_at": "2026-11-22T15:42:11.435Z"
  },
  "operator": {
    "key": "magichour.ai",
    "name": "magichour.ai",
    "platform": false,
    "marketplace": false
  },
  "needs_sign_in": false,
  "reachability": {
    "window_days": 30,
    "checks": 2,
    "answered": 2,
    "answered_percent": 100,
    "avg_listing_latency_ms": 676,
    "first_check_in_window": "2026-11-21T16:15:01.742Z",
    "consecutive_failures_now": 0,
    "days": [
      {
        "day": "2026-11-21",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      },
      {
        "day": "2026-11-22",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      }
    ]
  },
  "tool_list": {
    "sha256": "9a9de148837b8141ba8de52b25cb0d05f4aab4a01e267f8dca372bf9e90c1476",
    "tools": 53,
    "resources": 2,
    "prompts": 0,
    "first_seen": "2026-11-21T16:15:02.539Z",
    "tool_names": [
      "get_workflow_guide",
      "upload_chatgpt_image",
      "upload_chatgpt_media",
      "ping",
      "wait_for_video_project",
      "wait_for_image_project",
      "wait_for_audio_project",
      "fetch_image_download",
      "fetch_audio_download",
      "fetch_video_download",
      "get_account_info",
      "list_saved_items",
      "voices_list",
      "get_upload_urls",
      "get_face_detection_results",
      "detect_faces",
      "get_video_project",
      "delete_video_project",
      "create_talking_photo",
      "create_spoken_ad_video",
      "edit_video",
      "translate_video",
      "upscale_video",
      "create_animation",
      "create_video_from_audio",
      "add_subtitles_to_video",
      "replace_character_in_video",
      "swap_face_in_video",
      "create_video_from_image",
      "create_lip_sync_video",
      "create_video_from_text",
      "restyle_video",
      "get_image_project",
      "delete_image_project",
      "change_clothes_in_photo",
      "edit_face_in_photo",
      "create_gif_or_short_video",
      "edit_image",
      "generate_headshot",
      "generate_image",
      "upscale_image",
      "create_meme",
      "create_qr_code",
      "place_person_in_scene",
      "swap_face_in_photo",
      "swap_head_in_photo",
      "remove_image_background",
      "colorize_photo",
      "get_audio_project",
      "delete_audio_project",
      "generate_music",
      "ai_voice_cloner_create_audio",
      "ai_voice_generator_create_audio"
    ],
    "declared": {
      "tools": [
        {
          "name": "get_workflow_guide",
          "title": "Choose a media workflow",
          "description": "Returns required inputs, ordered steps, example requests and review criteria for eight supported Magic Hour workflows. Use when planning a generation, not to run one. Requires authentication but does not check account eligibility or spend credits.",
          "inputSchema": {
            "type": "object",
            "required": [
              "workflow"
            ],
            "properties": {
              "workflow": {
                "enum": [
                  "video-face-swap",
                  "image-editor",
                  "image-to-video",
                  "video-generator",
                  "lip-sync",
                  "ugc-ads",
                  "talking-photo",
                  "media-apis"
                ],
                "type": "string",
                "description": "Choose the workflow matching the task and supplied inputs. Returns static planning guidance, not an account eligibility or cost quote."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "workflow",
              "title",
              "input",
              "product_url",
              "api_docs_url",
              "steps",
              "example_request",
              "follow_up",
              "review",
              "models_and_costs_url",
              "evaluation_url",
              "starter_recipes_url",
              "guidance"
            ],
            "properties": {
              "input": {
                "type": "string",
                "description": "Required source media and other inputs."
              },
              "steps": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Ordered upload, creation and retrieval steps."
              },
              "title": {
                "type": "string",
                "description": "Human-readable workflow purpose."
              },
              "review": {
                "type": "string",
                "description": "Output checks and workflow-specific limitations."
              },
              "guidance": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Account, cost, recovery and usage caveats."
              },
              "workflow": {
                "type": "string",
                "description": "Requested workflow identifier."
              },
              "follow_up": {
                "type": "string",
                "description": "How to reuse or edit an accepted result."
              },
              "product_url": {
                "type": "string",
                "description": "Relevant Magic Hour product page."
              },
              "api_docs_url": {
                "type": "string",
                "description": "API documentation for the selected workflow."
              },
              "creation_tool": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "MCP creation tool, or null for general API integration guidance."
              },
              "evaluation_url": {
                "type": "string",
                "description": "Guidance for evaluating completed media outputs."
              },
              "example_request": {
                "type": "string",
                "description": "Example user request for this workflow."
              },
              "starter_recipes_url": {
                "type": "string",
                "description": "API starter recipes."
              },
              "models_and_costs_url": {
                "type": "string",
                "description": "Documentation of model constraints and credit costs."
              }
            },
            "description": "Static workflow planning guidance. Does not verify account access, eligibility, current price or output quality.",
            "additionalProperties": true
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "upload_chatgpt_image",
          "title": "Upload attached image",
          "description": "Uploads a PNG, JPEG or WebP image attached in ChatGPT to the connected Magic Hour account. Use this for native ChatGPT photo attachments instead of asking the chat's file runtime to PUT bytes to get_upload_urls. Pass the returned file_path to the existing image or video generation tool. Accepts one image up to 20 MiB. Does not generate media or spend generation credits.",
          "inputSchema": {
            "type": "object",
            "required": [
              "image"
            ],
            "properties": {
              "image": {
                "type": "object",
                "required": [
                  "download_url",
                  "file_id"
                ],
                "properties": {
                  "file_id": {
                    "type": "string",
                    "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                  },
                  "file_name": {
                    "type": "string",
                    "default": "",
                    "description": "Original attachment filename, when supplied by ChatGPT."
                  },
                  "mime_type": {
                    "type": "string",
                    "default": "",
                    "description": "Attachment MIME type, when supplied by ChatGPT."
                  },
                  "download_url": {
                    "type": "string",
                    "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                  }
                },
                "description": "The native attached image. ChatGPT supplies download_url and file_id; direct MCP callers must supply that file object, not a bare file ID, filename or local path."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "annotations": {
            "title": "Upload attached image",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "upload_chatgpt_media",
          "title": "Upload attached media",
          "description": "Uploads one native ChatGPT attachment to the connected Magic Hour account: PNG/JPEG/WebP images, MP4/MOV/WebM video, or MP3/WAV/M4A/FLAC/Ogg/WebM audio, up to 20 MiB. Set media_type to the attachment's actual kind, not the requested output: image, video or audio. For multiple references, call separately and keep each returned file_path paired with the intended input. Pass the real attachment through the file parameter; a bare file ID, filename or chat-local path is not the raw MCP file object. Does not generate media or spend generation credits.",
          "inputSchema": {
            "type": "object",
            "required": [
              "file",
              "media_type"
            ],
            "properties": {
              "file": {
                "type": "object",
                "required": [
                  "download_url",
                  "file_id"
                ],
                "properties": {
                  "file_id": {
                    "type": "string",
                    "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                  },
                  "file_name": {
                    "type": "string",
                    "default": "",
                    "description": "Original attachment filename, when supplied by ChatGPT."
                  },
                  "mime_type": {
                    "type": "string",
                    "default": "",
                    "description": "Attachment MIME type, when supplied by ChatGPT."
                  },
                  "download_url": {
                    "type": "string",
                    "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                  }
                },
                "description": "Native ChatGPT attachment object containing download_url and file_id."
              },
              "media_type": {
                "enum": [
                  "video",
                  "image",
                  "audio"
                ],
                "type": "string",
                "description": "Actual input attachment kind: image, video or audio, not the desired output kind."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "annotations": {
            "title": "Upload attached media",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "ping",
          "title": "Ping",
          "description": "Checks that the Magic Hour server is reachable. Use for connectivity troubleshooting; it does not validate API credentials or account access. Makes no media or project changes.",
          "inputSchema": {
            "type": "object",
            "properties": {},
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "result"
            ],
            "properties": {
              "result": {
                "type": "string",
                "description": "The value 'pong' confirms MCP server liveness only, not API credentials, account access or upstream API health."
              }
            },
            "x-fastmcp-wrap-result": true
          },
          "annotations": {
            "title": "Ping",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "wait_for_video_project",
          "title": "Wait for Video Project",
          "description": "Polls an existing video project until it completes, fails, is canceled, or times out. Read-only. After a timeout, use the same project ID to resume checking. Use signed download URLs unchanged. In ChatGPT, show Magic Hour's result card for playback and download when the video completes.",
          "inputSchema": {
            "type": "object",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Existing project ID returned by the matching creation tool. Reuse this ID after a wait timeout."
              },
              "timeout_seconds": {
                "type": "number",
                "default": 300,
                "description": "Maximum seconds for this wait call, finite and greater than zero. Timeout does not cancel the project or start another generation."
              },
              "max_inline_downloads": {
                "type": "integer",
                "default": 0,
                "description": "Reserved for compatibility. Video waits do not inline downloads; leave at zero."
              },
              "poll_interval_seconds": {
                "type": "number",
                "default": 2,
                "description": "Seconds between status checks. Must be finite and nonnegative; values below 0.5 use 0.5 seconds."
              },
              "include_inline_downloads": {
                "type": "boolean",
                "default": false,
                "description": "Reserved for compatibility. Video waits return download links, never inline video, regardless of this value."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "project_type"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Existing project identifier, retained for subsequent status checks."
              },
              "status": {
                "type": "string",
                "description": "Project status such as complete, error or canceled; timeout means only this wait call ended."
              },
              "message": {
                "type": "string",
                "description": "Wait timeout or recovery guidance, when present."
              },
              "downloads": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "url"
                  ],
                  "properties": {
                    "url": {
                      "type": "string",
                      "description": "Use this signed download URL unchanged, including all query parameters."
                    }
                  }
                },
                "description": "Available output files with exact signed URLs. May be absent until completion."
              },
              "last_project": {
                "type": "object",
                "description": "Last observed API project snapshot if the wait timed out after a successful status check."
              },
              "project_type": {
                "enum": [
                  "image",
                  "video",
                  "audio"
                ],
                "type": "string",
                "description": "Kind of project being retrieved."
              },
              "exact_download_urls": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Convenience list of the same unmodified signed output URLs."
              },
              "download_expiration_metadata": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "note": {
                      "type": "string",
                      "description": "Guidance for preserving the signed URL."
                    },
                    "expires_at": {
                      "type": "string",
                      "description": "Expiration timestamp provided by the API."
                    },
                    "download_index": {
                      "type": "string",
                      "description": "Zero-based index in the upstream download list, encoded as text."
                    }
                  }
                },
                "description": "Expiration metadata only. Never append it to a download URL."
              }
            },
            "description": "Existing project status and exact output links. A wait timeout is not a generation failure; resume with the same ID.",
            "additionalProperties": true
          },
          "annotations": {
            "title": "Wait for Video Project",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "wait_for_image_project",
          "title": "Wait for Image Project",
          "description": "Polls an image project until it completes, errors, is canceled or times out. Use with the id returned by an image create tool. Read-only; returns the project and download URLs, with optional inline image previews sharing an 8 MiB total limit. After a timeout, resume with the same id rather than creating another generation. Use signed download URLs exactly as returned.",
          "inputSchema": {
            "type": "object",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Existing project ID returned by the matching creation tool. Reuse this ID after a wait timeout."
              },
              "timeout_seconds": {
                "type": "number",
                "default": 180,
                "description": "Maximum seconds for this wait call, finite and greater than zero. Timeout does not cancel the project or start another generation."
              },
              "max_inline_downloads": {
                "type": "integer",
                "default": 4,
                "description": "Maximum number of previews to include. Zero or negative disables previews; previews share an 8 MiB total limit."
              },
              "poll_interval_seconds": {
                "type": "number",
                "default": 2,
                "description": "Seconds between status checks. Must be finite and nonnegative; values below 0.5 use 0.5 seconds."
              },
              "max_bytes_per_download": {
                "type": "integer",
                "default": 8388608,
                "description": "Positive maximum raw bytes per preview, capped by the remaining 8 MiB total budget. Larger outputs remain available by URL."
              },
              "include_inline_downloads": {
                "type": "boolean",
                "default": true,
                "description": "Whether to include image or audio previews for completed projects. Download URLs remain available if preview fetching fails."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "project_type"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Existing project identifier, retained for subsequent status checks."
              },
              "status": {
                "type": "string",
                "description": "Project status such as complete, error or canceled; timeout means only this wait call ended."
              },
              "message": {
                "type": "string",
                "description": "Wait timeout or recovery guidance, when present."
              },
              "downloads": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "url"
                  ],
                  "properties": {
                    "url": {
                      "type": "string",
                      "description": "Use this signed download URL unchanged, including all query parameters."
                    }
                  }
                },
                "description": "Available output files with exact signed URLs. May be absent until completion."
              },
              "last_project": {
                "type": "object",
                "description": "Last observed API project snapshot if the wait timed out after a successful status check."
              },
              "project_type": {
                "enum": [
                  "image",
                  "video",
                  "audio"
                ],
                "type": "string",
                "description": "Kind of project being retrieved."
              },
              "exact_download_urls": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Convenience list of the same unmodified signed output URLs."
              },
              "download_expiration_metadata": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "note": {
                      "type": "string",
                      "description": "Guidance for preserving the signed URL."
                    },
                    "expires_at": {
                      "type": "string",
                      "description": "Expiration timestamp provided by the API."
                    },
                    "download_index": {
                      "type": "string",
                      "description": "Zero-based index in the upstream download list, encoded as text."
                    }
                  }
                },
                "description": "Expiration metadata only. Never append it to a download URL."
              }
            },
            "description": "Existing project status and exact output links. A wait timeout is not a generation failure; resume with the same ID.",
            "additionalProperties": true
          },
          "annotations": {
            "title": "Wait for Image Project",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "wait_for_audio_project",
          "title": "Wait for Audio Project",
          "description": "Polls an audio project until it completes, errors, is canceled or times out. Use with the id returned by an audio create tool. Read-only; returns the project and download URLs, with optional inline audio previews sharing an 8 MiB total limit. After a timeout, resume with the same id rather than creating another generation. Use signed download URLs exactly as returned.",
          "inputSchema": {
            "type": "object",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Existing project ID returned by the matching creation tool. Reuse this ID after a wait timeout."
              },
              "timeout_seconds": {
                "type": "number",
                "default": 180,
                "description": "Maximum seconds for this wait call, finite and greater than zero. Timeout does not cancel the project or start another generation."
              },
              "max_inline_downloads": {
                "type": "integer",
                "default": 4,
                "description": "Maximum number of previews to include. Zero or negative disables previews; previews share an 8 MiB total limit."
              },
              "poll_interval_seconds": {
                "type": "number",
                "default": 2,
                "description": "Seconds between status checks. Must be finite and nonnegative; values below 0.5 use 0.5 seconds."
              },
              "max_bytes_per_download": {
                "type": "integer",
                "default": 8388608,
                "description": "Positive maximum raw bytes per preview, capped by the remaining 8 MiB total budget. Larger outputs remain available by URL."
              },
              "include_inline_downloads": {
                "type": "boolean",
                "default": true,
                "description": "Whether to include image or audio previews for completed projects. Download URLs remain available if preview fetching fails."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "project_type"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Existing project identifier, retained for subsequent status checks."
              },
              "status": {
                "type": "string",
                "description": "Project status such as complete, error or canceled; timeout means only this wait call ended."
              },
              "message": {
                "type": "string",
                "description": "Wait timeout or recovery guidance, when present."
              },
              "downloads": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "url"
                  ],
                  "properties": {
                    "url": {
                      "type": "string",
                      "description": "Use this signed download URL unchanged, including all query parameters."
                    }
                  }
                },
                "description": "Available output files with exact signed URLs. May be absent until completion."
              },
              "last_project": {
                "type": "object",
                "description": "Last observed API project snapshot if the wait timed out after a successful status check."
              },
              "project_type": {
                "enum": [
                  "image",
                  "video",
                  "audio"
                ],
                "type": "string",
                "description": "Kind of project being retrieved."
              },
              "exact_download_urls": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Convenience list of the same unmodified signed output URLs."
              },
              "download_expiration_metadata": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "note": {
                      "type": "string",
                      "description": "Guidance for preserving the signed URL."
                    },
                    "expires_at": {
                      "type": "string",
                      "description": "Expiration timestamp provided by the API."
                    },
                    "download_index": {
                      "type": "string",
                      "description": "Zero-based index in the upstream download list, encoded as text."
                    }
                  }
                },
                "description": "Expiration metadata only. Never append it to a download URL."
              }
            },
            "description": "Existing project status and exact output links. A wait timeout is not a generation failure; resume with the same ID.",
            "additionalProperties": true
          },
          "annotations": {
            "title": "Wait for Audio Project",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "fetch_image_download",
          "title": "Fetch Image Download",
          "description": "Fetch a completed project's image as inline MCP image content for compatible clients. Use the exact signed download URL, including query parameters. Requires HTTPS at the configured Magic Hour media host. Read-only; inline content is limited to 8 MiB, or a smaller requested max_bytes. Returns the original-file download link when the media exceeds this limit.",
          "inputSchema": {
            "type": "object",
            "required": [
              "download_url"
            ],
            "properties": {
              "max_bytes": {
                "type": "integer",
                "default": 8388608,
                "description": "Positive maximum inline download bytes, capped at 8388608 bytes (8 MiB). Larger files return an original-file download link."
              },
              "download_url": {
                "type": "string",
                "description": "Exact HTTPS URL from a completed project’s downloads or exact_download_urls. Preserve all query parameters; must use the configured Magic Hour media host."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Fetch Image Download",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "fetch_audio_download",
          "title": "Fetch Audio Download",
          "description": "Fetch a completed project's audio as inline MCP audio content for compatible clients. Use the exact signed download URL, including query parameters. Requires HTTPS at the configured Magic Hour media host. Read-only; inline content is limited to 8 MiB, or a smaller requested max_bytes. Returns the original-file download link when the media exceeds this limit.",
          "inputSchema": {
            "type": "object",
            "required": [
              "download_url"
            ],
            "properties": {
              "max_bytes": {
                "type": "integer",
                "default": 8388608,
                "description": "Positive maximum inline download bytes, capped at 8388608 bytes (8 MiB). Larger files return an original-file download link."
              },
              "download_url": {
                "type": "string",
                "description": "Exact HTTPS URL from a completed project’s downloads or exact_download_urls. Preserve all query parameters; must use the configured Magic Hour media host."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Fetch Audio Download",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "fetch_video_download",
          "title": "Fetch Video Download",
          "description": "Fetch a completed project's video as an embedded MCP binary resource for compatible clients. Use the exact signed download URL, including query parameters. Requires HTTPS at the configured Magic Hour media host. Read-only; inline content is limited to 8 MiB, or a smaller requested max_bytes. Returns the original-file download link when the media exceeds this limit. For playback or downloads in ChatGPT, open Magic Hour’s result card with get_video_project or wait_for_video_project using the existing project ID. When this tool shows a result card in ChatGPT, use its Download control. Do not put the signed URL in a chat link.",
          "inputSchema": {
            "type": "object",
            "required": [
              "download_url"
            ],
            "properties": {
              "max_bytes": {
                "type": "integer",
                "default": 8388608,
                "description": "Positive maximum inline download bytes, capped at 8388608 bytes (8 MiB). Larger files return an original-file download link."
              },
              "download_url": {
                "type": "string",
                "description": "Exact HTTPS URL from a completed project’s downloads or exact_download_urls. Preserve all query parameters; must use the configured Magic Hour media host."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Fetch Video Download",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_account_info",
          "title": "Get account info",
          "description": "Returns credit balance and subscription details for the connected account. Use to inspect account information before choosing generation settings. Use tier, not the subscription name or credit balance, for plan access. Read-only; this is not a request-specific cost quote or model-eligibility check.",
          "inputSchema": {
            "type": "object",
            "required": [],
            "properties": {}
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "id",
              "email",
              "tier",
              "credits",
              "subscription"
            ],
            "properties": {
              "id": {
                "type": "string",
                "example": "cuid-example",
                "description": "Unique ID of the account that owns the API key."
              },
              "tier": {
                "enum": [
                  "free",
                  "creator",
                  "pro",
                  "business"
                ],
                "type": "string",
                "example": "pro",
                "description": "Subscription tier in effect for the account. `free` if there is no active subscription, including while a subscription is `past_due`."
              },
              "email": {
                "type": [
                  "string",
                  "null"
                ],
                "example": "user@example.com",
                "description": "Email address of the account."
              },
              "credits": {
                "type": "integer",
                "example": 12500,
                "minimum": 0,
                "description": "Credits currently available to spend. Includes subscription credits and any purchased credit packs."
              },
              "subscription": {
                "type": [
                  "object",
                  "null"
                ],
                "required": [
                  "name",
                  "status",
                  "price",
                  "discount",
                  "billing_interval",
                  "current_period_end",
                  "cancel_at_period_end"
                ],
                "properties": {
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "example": "Pro",
                    "description": "Name of the current subscription plan, e.g. `Creator`, `Pro`, `Pro Plus`, `Business`. `null` if the plan cannot be determined. Use `tier` for a machine-readable value."
                  },
                  "price": {
                    "type": "object",
                    "required": [
                      "amount",
                      "currency"
                    ],
                    "properties": {
                      "amount": {
                        "type": "integer",
                        "example": 4900,
                        "minimum": 0,
                        "description": "Price charged per billing interval, in the smallest unit of the currency (e.g. 4900 is $49.00 for `usd`). Discounts are not applied."
                      },
                      "currency": {
                        "type": "string",
                        "example": "usd",
                        "description": "Three-letter ISO 4217 currency code, lowercase."
                      }
                    }
                  },
                  "status": {
                    "enum": [
                      "active",
                      "past_due"
                    ],
                    "type": "string",
                    "example": "active",
                    "description": "Status of the subscription.\n- `active`: payments are up to date.\n- `past_due`: the latest payment failed. `tier` is `free` until payment succeeds. The subscription is canceled if payment keeps failing."
                  },
                  "discount": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "required": [
                      "percent_off",
                      "amount_off"
                    ],
                    "properties": {
                      "amount_off": {
                        "type": [
                          "integer",
                          "null"
                        ],
                        "description": "Fixed amount taken off `price.amount` each billing interval, in the smallest unit of the currency. `null` if the discount is a percentage."
                      },
                      "percent_off": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "example": 20,
                        "description": "Percentage taken off `price.amount` each billing interval. `null` if the discount is a fixed amount."
                      }
                    },
                    "description": "Discount applied to the subscription. `null` if no discount is applied."
                  },
                  "billing_interval": {
                    "enum": [
                      "month",
                      "year",
                      null
                    ],
                    "type": [
                      "string",
                      "null"
                    ],
                    "example": "month",
                    "description": "How often the subscription is billed. `null` if unknown."
                  },
                  "current_period_end": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "format": "date-time",
                    "example": "2026-10-01T00:00:00.000Z",
                    "description": "End of the current billing period, in ISO 8601 format. The subscription renews at this time, or ends if `cancel_at_period_end` is `true`."
                  },
                  "cancel_at_period_end": {
                    "type": "boolean",
                    "example": false,
                    "description": "Whether the subscription is scheduled to end at `current_period_end` instead of renewing. The subscription stays usable until then."
                  }
                },
                "description": "Details of the account's subscription plan. `null` if the account has no subscription, e.g. a free account, an account that only purchased credit packs, or an account on usage-based API pricing.\n\nReflects the plan currently configured on the subscription. If a plan change is scheduled, `tier` stays on the current plan until the next payment succeeds, so `tier` and `name` can briefly disagree."
              }
            }
          },
          "annotations": {
            "title": "Get account info",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_saved_items",
          "title": "List saved items",
          "description": "Lists the account's active saved characters, references, voice recordings, moodboards and brand kits, newest first. Reusable paths are in each item's assets[].file_path; temporary signed URLs support preview/download. Read-only; pass next_cursor as cursor for the next page.",
          "inputSchema": {
            "type": "object",
            "required": [],
            "properties": {
              "type": {
                "enum": [
                  "character",
                  "reference",
                  "voice",
                  "moodboard",
                  "brand_kit"
                ],
                "type": "string",
                "example": "character",
                "description": "Only return saved items of this type."
              },
              "limit": {
                "type": "integer",
                "default": 20,
                "example": 20,
                "maximum": 100,
                "minimum": 1,
                "description": "Maximum number of saved items to return. Defaults to 20."
              },
              "cursor": {
                "type": "string",
                "minLength": 1,
                "description": "Opaque pagination cursor from the previous response's next_cursor."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "items",
              "next_cursor"
            ],
            "properties": {
              "items": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "type",
                    "name",
                    "assets"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "example": "cuid-example",
                      "description": "Unique ID of the saved item."
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "example": "Alex",
                      "description": "User-provided name of the saved item."
                    },
                    "type": {
                      "enum": [
                        "character",
                        "reference",
                        "voice",
                        "moodboard",
                        "brand_kit"
                      ],
                      "type": "string",
                      "example": "character",
                      "description": "Saved item type."
                    },
                    "assets": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "file_path",
                          "media_kind",
                          "is_primary",
                          "url",
                          "url_expires_at"
                        ],
                        "properties": {
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "description": "Signed URL for previewing or downloading the asset. Expires after 24 hours."
                          },
                          "file_path": {
                            "type": "string",
                            "example": "saved-items/user-id/item-id/image.png",
                            "description": "Durable asset path. Pass it to a compatible API asset field without uploading it again."
                          },
                          "is_primary": {
                            "type": "boolean",
                            "example": true,
                            "description": "Whether this asset is the saved item's primary asset."
                          },
                          "media_kind": {
                            "enum": [
                              "IMAGE",
                              "VIDEO",
                              "AUDIO"
                            ],
                            "type": "string",
                            "example": "IMAGE",
                            "description": "Media type of the asset."
                          },
                          "url_expires_at": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-09-17T00:00:00.000Z",
                            "description": "When the signed URL expires. The saved asset and file_path do not expire."
                          }
                        }
                      }
                    }
                  }
                }
              },
              "next_cursor": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Cursor for the next page, or null when there are no more saved items."
              }
            }
          },
          "annotations": {
            "title": "List saved items",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "voices_list",
          "title": "List voices",
          "description": "List the voices available for text-to-speech. Use a voice's `id` as `style.voice_name` in the AI Voice Generator API. To fetch the next page, pass the response's next_cursor as cursor.",
          "inputSchema": {
            "type": "object",
            "required": [],
            "properties": {
              "limit": {
                "type": "integer",
                "default": 20,
                "example": 20,
                "maximum": 100,
                "minimum": 1,
                "description": "Maximum number of voices to return. Defaults to 20."
              },
              "cursor": {
                "type": "string",
                "minLength": 1,
                "description": "Opaque pagination cursor from the previous response's next_cursor."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "voices",
              "next_cursor"
            ],
            "properties": {
              "voices": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "name",
                    "avatar_url",
                    "preview_url"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "example": "cv-0001",
                      "description": "Unique ID of the voice. Pass it as `style.voice_name` when generating speech. Names are not unique, so use the ID."
                    },
                    "name": {
                      "type": "string",
                      "example": "Ashley",
                      "description": "Display name of the voice."
                    },
                    "avatar_url": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "example": "https://d28dkohlqf5vwj.cloudfront.net/models/nano-banana/female-portrait-turtleneck.webp",
                      "description": "URL of the voice's avatar image, or null when the voice has no avatar."
                    },
                    "preview_url": {
                      "type": "string",
                      "example": "https://videos.magichour.ai/presets/voices/v2/cv-0001-ashley.mp3",
                      "description": "URL of an audio sample of the voice."
                    }
                  }
                }
              },
              "next_cursor": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Cursor for the next page, or null when there are no more voices."
              }
            }
          },
          "annotations": {
            "title": "List voices",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_upload_urls",
          "title": "Get upload URLs",
          "description": "Creates presigned upload URL and file-path pairs for local media. Use when a generation needs a file the user has locally: upload raw bytes to the returned upload_url, then pass its file_path to the create tool. Does not upload file bytes or start a generation.",
          "inputSchema": {
            "type": "object",
            "required": [
              "items"
            ],
            "properties": {
              "items": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "type",
                    "extension"
                  ],
                  "properties": {
                    "type": {
                      "enum": [
                        "video",
                        "audio",
                        "image"
                      ],
                      "type": "string",
                      "example": "video",
                      "description": "The type of asset to upload. Possible types are video, audio, image"
                    },
                    "extension": {
                      "type": "string",
                      "example": "mp4",
                      "pattern": "^[a-z0-9]+$",
                      "description": "The extension of the file to upload. Do not include the dot (.) before the extension. Possible extensions are mp4,m4v,mov,webm,mp3,wav,aac,flac,webm,weba,m4a,opus,ogg,oga,aiff,amr,png,jpg,jpeg,jpe,jfif,heic,heif,webp,avif,jp2,tiff,tif,bmp,gif,webp,webm"
                    }
                  }
                },
                "example": [
                  {
                    "type": "video",
                    "extension": "mp4"
                  },
                  {
                    "type": "audio",
                    "extension": "mp3"
                  }
                ],
                "minItems": 1,
                "description": "The list of assets to upload. The response array will match the order of items in the request body."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "items"
            ],
            "properties": {
              "items": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "upload_url",
                    "expires_at",
                    "file_path"
                  ],
                  "properties": {
                    "file_path": {
                      "type": "string",
                      "example": "video/id/1234.mp4",
                      "description": "this value is used in APIs that needs assets, such as image_file_path, video_file_path, and audio_file_path"
                    },
                    "expires_at": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2024-07-21T17:32:28Z",
                      "description": "when the upload url expires, and will need to request a new one."
                    },
                    "upload_url": {
                      "type": "string",
                      "format": "uri",
                      "example": "https://videos.magichour.ai/id/video.mp4?auth-value=1234567890",
                      "description": "Used to upload the file to storage, send a PUT request with the file as data to upload."
                    }
                  }
                },
                "example": [
                  {
                    "file_path": "api-assets/id/video.mp4",
                    "expires_at": "2024-07-25T16:56:21.932Z",
                    "upload_url": "https://videos.magichour.ai/api-assets/id/video.mp4?auth-value=1234567890"
                  },
                  {
                    "file_path": "api-assets/id/audio.mp3",
                    "expires_at": "2024-07-25T16:56:21.932Z",
                    "upload_url": "https://videos.magichour.ai/api-assets/id/audio.mp3?auth-value=1234567890"
                  }
                ],
                "description": "The list of upload URLs and file paths for the assets. The response array will match the order of items in the request body. Refer to the [Input Files Guide](https://docs.magichour.ai/integration/inputs-and-outputs) for more details."
              }
            },
            "description": "Success"
          },
          "annotations": {
            "title": "Get upload URLs",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "get_face_detection_results",
          "title": "Get face detection results",
          "description": "Returns a face-detection job's status and detected faces. Use with the id from detect_faces to inspect progress and choose face mappings before a selected-face swap. Read-only; faces may populate while processing.",
          "inputSchema": {
            "type": "object",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "example": "uuid-example",
                "description": "The id of the task. This value is returned by the [face detection API](https://docs.magichour.ai/api-reference/files/face-detection#response-id)."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "id",
              "credits_charged",
              "status",
              "faces",
              "error"
            ],
            "properties": {
              "id": {
                "type": "string",
                "example": "uuid-example",
                "description": "The id of the task. This value is returned by the [face detection API](https://docs.magichour.ai/api-reference/files/face-detection#response-id)."
              },
              "error": {
                "type": [
                  "object",
                  "null"
                ],
                "required": [
                  "message",
                  "code"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "example": "no_source_face",
                    "description": "An error code to indicate why a failure happened."
                  },
                  "message": {
                    "type": "string",
                    "example": "Please use an image with a detectable face",
                    "description": "Details on the reason why a failure happened."
                  }
                },
                "description": "Why the face detection failed. Present only when `status` is `error`; `null` otherwise."
              },
              "faces": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "path",
                    "url"
                  ],
                  "properties": {
                    "url": {
                      "type": "string",
                      "example": "https://videos.magichour.ai/api-assets/id/0-0.png",
                      "description": "The url to the face image. This is used to render the image in your applications."
                    },
                    "path": {
                      "type": "string",
                      "example": "api-assets/id/0-0.png",
                      "description": "The path to the face image. This should be used in face swap photo/video API calls as `.assets.face_mappings.original_face`"
                    }
                  }
                },
                "example": [
                  {
                    "url": "https://videos.magichour.ai/api-assets/id/0-0.png",
                    "path": "api-assets/id/0-0.png"
                  }
                ],
                "description": "The faces detected in the image or video. The list is populated as faces are detected."
              },
              "status": {
                "enum": [
                  "queued",
                  "rendering",
                  "complete",
                  "error"
                ],
                "type": "string",
                "example": "complete",
                "description": "The status of the detection."
              },
              "credits_charged": {
                "type": "integer",
                "example": 0,
                "description": "The credits charged for the task."
              }
            }
          },
          "annotations": {
            "title": "Get face detection results",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "detect_faces",
          "title": "Detect faces",
          "description": "Starts an asynchronous face-detection task for a supplied image or video and returns its id and charge information. Use before a selected-face swap, then retrieve its status and detected faces with get_face_detection_results. Current API documentation describes detection as free; pricing may change. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.",
          "inputSchema": {
            "type": "object",
            "anyOf": [
              {
                "required": [
                  "image"
                ]
              },
              {
                "required": [
                  "video"
                ]
              },
              {
                "required": [
                  "assets"
                ],
                "properties": {
                  "assets": {
                    "required": [
                      "target_file_path"
                    ]
                  }
                }
              }
            ],
            "properties": {
              "image": {
                "type": "object",
                "title": "ChatGPTFile",
                "required": [
                  "download_url",
                  "file_id"
                ],
                "properties": {
                  "file_id": {
                    "type": "string",
                    "title": "File Id",
                    "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                  },
                  "file_name": {
                    "type": "string",
                    "title": "File Name",
                    "default": "",
                    "description": "Original attachment filename, when supplied by ChatGPT."
                  },
                  "mime_type": {
                    "type": "string",
                    "title": "Mime Type",
                    "default": "",
                    "description": "Attachment MIME type, when supplied by ChatGPT."
                  },
                  "download_url": {
                    "type": "string",
                    "title": "Download Url",
                    "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                  }
                },
                "description": "Attach the image from ChatGPT for this input.",
                "additionalProperties": false
              },
              "video": {
                "type": "object",
                "title": "ChatGPTFile",
                "required": [
                  "download_url",
                  "file_id"
                ],
                "properties": {
                  "file_id": {
                    "type": "string",
                    "title": "File Id",
                    "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                  },
                  "file_name": {
                    "type": "string",
                    "title": "File Name",
                    "default": "",
                    "description": "Original attachment filename, when supplied by ChatGPT."
                  },
                  "mime_type": {
                    "type": "string",
                    "title": "Mime Type",
                    "default": "",
                    "description": "Attachment MIME type, when supplied by ChatGPT."
                  },
                  "download_url": {
                    "type": "string",
                    "title": "Download Url",
                    "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                  }
                },
                "description": "Attach the video from ChatGPT for this input.",
                "additionalProperties": false
              },
              "assets": {
                "type": "object",
                "properties": {
                  "target_file_path": {
                    "type": "string",
                    "example": "api-assets/id/1234.png",
                    "description": "This is the image or video where the face will be detected. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n"
                  }
                },
                "description": "Provide the assets for face detection"
              },
              "confidence_score": {
                "type": "number",
                "default": 0.5,
                "example": 0.5,
                "maximum": 1,
                "minimum": 0,
                "multipleOf": 0.05,
                "description": "Confidence threshold for filtering detected faces. \n* Higher values (e.g., 0.9) include only faces detected with high certainty, reducing false positives. \n* Lower values (e.g., 0.3) include more faces, but may increase the chance of incorrect detections."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "id",
              "credits_charged"
            ],
            "properties": {
              "id": {
                "type": "string",
                "example": "uuid-example",
                "description": "The id of the task. Use this value in the [get face detection details API](https://docs.magichour.ai/api-reference/files/get-face-detection-details) to get the details of the face detection task."
              },
              "credits_charged": {
                "type": "integer",
                "description": "The credits charged for the task."
              }
            }
          },
          "annotations": {
            "title": "Detect faces",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "get_video_project",
          "title": "Get video project",
          "description": "Open a saved video in Magic Hour’s result card with Play and Download in ChatGPT. Use when someone asks to see, play, download or reopen an existing video. Pass the existing project ID. Read-only.",
          "inputSchema": {
            "type": "object",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "example": "cuid-example",
                "description": "Unique ID of the video project. This value is returned by all of the POST APIs that create a video."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "id",
              "name",
              "status",
              "type",
              "created_at",
              "width",
              "height",
              "enabled",
              "start_seconds",
              "end_seconds",
              "credits_charged",
              "fps",
              "error",
              "downloads"
            ],
            "properties": {
              "id": {
                "type": "string",
                "example": "cuid-example",
                "description": "Unique ID of the video. Use it with the [Get video Project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch status and downloads."
              },
              "fps": {
                "type": "number",
                "example": 30,
                "description": "Frame rate of the video. If the status is not 'complete', the frame rate is an estimate and will be adjusted when the video completes."
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "example": "Example Name",
                "description": "The name of the video."
              },
              "type": {
                "type": "string",
                "example": "FACE_SWAP",
                "description": "The type of the video project. Possible values are ANIMATION, AUTO_SUBTITLE, VIDEO_TO_VIDEO, FACE_SWAP, TEXT_TO_VIDEO, IMAGE_TO_VIDEO, LIP_SYNC, TALKING_PHOTO, AVATAR, VIDEO_UPSCALER, VIDEO_EDITOR, CHARACTER_REPLACE, VIDEO_COLORIZER, VIDEO_WATERMARK_REMOVER, VIDEO_COLOR_GRADER, VIDEO_TRANSLATOR, MUSIC_VIDEO, EXTEND, AUDIO_TO_VIDEO, VIDEO_EXPANDER, UGC_AD"
              },
              "error": {
                "type": [
                  "object",
                  "null"
                ],
                "required": [
                  "message",
                  "code"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "example": "no_source_face",
                    "description": "An error code to indicate why a failure happened."
                  },
                  "message": {
                    "type": "string",
                    "example": "Please use an image with a detectable face",
                    "description": "Details on the reason why a failure happened."
                  }
                },
                "description": "In the case of an error, this object will contain the error encountered during video render"
              },
              "width": {
                "type": "integer",
                "example": 512,
                "description": "The width of the final output video. A value of -1 indicates the width can be ignored."
              },
              "height": {
                "type": "integer",
                "example": 960,
                "description": "The height of the final output video. A value of -1 indicates the height can be ignored."
              },
              "status": {
                "enum": [
                  "draft",
                  "queued",
                  "rendering",
                  "complete",
                  "error",
                  "canceled"
                ],
                "type": "string",
                "example": "complete",
                "description": "The status of the video.\n\n- `draft` - the project was created but has not been submitted for rendering\n- `queued` - the job is waiting for an available server\n- `rendering` - the job is being processed; the `video.started` webhook event fires when rendering begins\n- `complete` - the job finished successfully; fires `video.completed`\n- `error` - the job failed during processing; fires `video.errored`\n- `canceled` - the job was manually canceled (for example from the Magic Hour web app)\n\n**Note:** `rendering`, `complete`, and `error` have matching webhook events; `canceled` does not - a canceled job emits no webhook event, so poll this endpoint to detect cancellation."
              },
              "enabled": {
                "type": "boolean",
                "description": "Whether this resource is active. If false, it is deleted."
              },
              "downloads": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "url",
                    "expires_at"
                  ],
                  "properties": {
                    "url": {
                      "type": "string",
                      "format": "uri",
                      "example": "https://videos.magichour.ai/id/output.mp4"
                    },
                    "expires_at": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2024-10-19T05:16:19.027Z"
                    }
                  },
                  "description": "The download url and expiration date of the image project"
                }
              },
              "created_at": {
                "type": "string",
                "format": "date-time"
              },
              "end_seconds": {
                "type": "number",
                "format": "float",
                "example": 5,
                "minimum": 0.1,
                "description": "End time of your clip (seconds). Must be greater than start_seconds."
              },
              "start_seconds": {
                "type": "number",
                "format": "float",
                "example": 0,
                "minimum": 0,
                "description": "Start time of your clip (seconds). Must be ≥ 0."
              },
              "credits_charged": {
                "type": "integer",
                "example": 450,
                "description": "The amount of credits deducted from your account to generate the video. If the status is not 'complete', this value is an estimate and may be adjusted upon completion based on the actual FPS of the output video. \n\nIf video generation fails, credits will be refunded, and this field will be updated to include the refund."
              }
            },
            "description": "Success"
          },
          "annotations": {
            "title": "Get video project",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "delete_video_project",
          "title": "Delete video project",
          "description": "Deletes the video project and attempts to delete its completed output. Cannot be undone; confirm with the user first.",
          "inputSchema": {
            "type": "object",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "example": "cuid-example",
                "description": "Unique ID of the video project. This value is returned by all of the POST APIs that create a video."
              }
            }
          },
          "annotations": {
            "title": "Delete video project",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "create_talking_photo",
          "title": "Create talking photo",
          "description": "Use only with the user's own likeness or content they are authorized to use. Do not use for impersonation, deception, sexual content, or content involving minors.\n\nUse a still portrait and an existing speech recording to make the portrait speak. A written script needs audio first. For a prepared ad image and written script, use create_spoken_ad_video. For existing video and replacement audio, use create_lip_sync_video. Starts a background job that costs credits; returns a project id for wait_for_video_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.",
          "inputSchema": {
            "type": "object",
            "allOf": [
              {
                "anyOf": [
                  {
                    "required": [
                      "image"
                    ]
                  },
                  {
                    "required": [
                      "assets"
                    ],
                    "properties": {
                      "assets": {
                        "required": [
                          "image_file_path"
                        ]
                      }
                    }
                  }
                ]
              },
              {
                "anyOf": [
                  {
                    "required": [
                      "audio"
                    ]
                  },
                  {
                    "required": [
                      "assets"
                    ],
                    "properties": {
                      "assets": {
                        "required": [
                          "audio_file_path"
                        ]
                      }
                    }
                  }
                ]
              }
            ],
            "required": [
              "start_seconds",
              "end_seconds"
            ],
            "properties": {
              "name": {
                "type": "string",
                "default": "Talking Photo - dateTime",
                "example": "My Talking Photo video",
                "description": "Optional project name for identifying this output. Omit to use the API's default project name."
              },
              "audio": {
                "type": "object",
                "title": "ChatGPTFile",
                "required": [
                  "download_url",
                  "file_id"
                ],
                "properties": {
                  "file_id": {
                    "type": "string",
                    "title": "File Id",
                    "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                  },
                  "file_name": {
                    "type": "string",
                    "title": "File Name",
                    "default": "",
                    "description": "Original attachment filename, when supplied by ChatGPT."
                  },
                  "mime_type": {
                    "type": "string",
                    "title": "Mime Type",
                    "default": "",
                    "description": "Attachment MIME type, when supplied by ChatGPT."
                  },
                  "download_url": {
                    "type": "string",
                    "title": "Download Url",
                    "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                  }
                },
                "description": "Attach the audio from ChatGPT for this input.",
                "additionalProperties": false
              },
              "image": {
                "type": "object",
                "title": "ChatGPTFile",
                "required": [
                  "download_url",
                  "file_id"
                ],
                "properties": {
                  "file_id": {
                    "type": "string",
                    "title": "File Id",
                    "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                  },
                  "file_name": {
                    "type": "string",
                    "title": "File Name",
                    "default": "",
                    "description": "Original attachment filename, when supplied by ChatGPT."
                  },
                  "mime_type": {
                    "type": "string",
                    "title": "Mime Type",
                    "default": "",
                    "description": "Attachment MIME type, when supplied by ChatGPT."
                  },
                  "download_url": {
                    "type": "string",
                    "title": "Download Url",
                    "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                  }
                },
                "description": "Attach the image from ChatGPT for this input.",
                "additionalProperties": false
              },
              "style": {
                "type": "object",
                "properties": {
                  "prompt": {
                    "type": "string",
                    "example": "A person smiling and speaking naturally to the camera",
                    "description": "A text prompt to guide the generation. Only applicable when generation_mode is `prompted`.\nThis field is ignored for other modes."
                  },
                  "generation_mode": {
                    "enum": [
                      "realistic",
                      "prompted",
                      "pro",
                      "standard",
                      "stable",
                      "expressive"
                    ],
                    "type": "string",
                    "default": "realistic",
                    "example": "realistic",
                    "description": "Controls motion style. `realistic` animates the supplied portrait; `prompted` also accepts a scene prompt. Deprecated aliases remain supported: `pro` and `stable` select `realistic`; `standard` and `expressive` select `prompted`."
                  }
                },
                "description": "Attributes used to dictate the style of the output"
              },
              "assets": {
                "type": "object",
                "properties": {
                  "audio_file_path": {
                    "type": "string",
                    "example": "api-assets/id/1234.mp3",
                    "minLength": 1,
                    "description": "The audio file to sync with the image. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n"
                  },
                  "image_file_path": {
                    "type": "string",
                    "example": "api-assets/id/1234.png",
                    "minLength": 1,
                    "description": "The source image to animate. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n"
                  }
                },
                "description": "Provide the assets for creating a talking photo"
              },
              "resolution": {
                "enum": [
                  "480p",
                  "720p"
                ],
                "type": "string",
                "example": "480p",
                "description": "Output preset. Overrides `max_resolution`. Defaults to 480p in prompted mode; realistic mode uses the mapped plan maximum."
              },
              "end_seconds": {
                "type": "number",
                "format": "float",
                "example": 5,
                "minimum": 0.1,
                "description": "The end time of the input audio in seconds. Maximum clip length depends on style.generation_mode: realistic 300s, prompted 60s."
              },
              "start_seconds": {
                "type": "number",
                "format": "float",
                "example": 0,
                "minimum": 0,
                "description": "The start time of the input audio in seconds. Maximum clip length depends on style.generation_mode: realistic 300s, prompted 60s."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "id",
              "credits_charged"
            ],
            "properties": {
              "id": {
                "type": "string",
                "example": "cuid-example",
                "description": "Unique ID of the video. Use it with the [Get video Project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch status and downloads."
              },
              "credits_charged": {
                "type": "integer",
                "example": 450,
                "description": "The amount of credits deducted from your account to generate the video. If the status is not 'complete', this value is an estimate and may be adjusted upon completion based on the actual FPS of the output video. \n\nIf video generation fails, credits will be refunded, and this field will be updated to include the refund."
              }
            },
            "description": "Success"
          },
          "annotations": {
            "title": "Create talking photo",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "create_spoken_ad_video",
          "title": "Create spoken ad video",
          "description": "Use a prepared image and a written script to generate a spoken ad with synthesized dialogue. For a still portrait and an existing speech recording, use create_talking_photo. Starts a background job that costs credits; returns a project id for wait_for_video_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.",
          "inputSchema": {
            "type": "object",
            "anyOf": [
              {
                "required": [
                  "image"
                ]
              },
              {
                "required": [
                  "assets"
                ],
                "properties": {
                  "assets": {
                    "required": [
                      "image_file_path"
                    ]
                  }
                }
              }
            ],
            "required": [
              "script",
              "end_seconds"
            ],
            "properties": {
              "image": {
                "type": "object",
                "title": "ChatGPTFile",
                "required": [
                  "download_url",
                  "file_id"
                ],
                "properties": {
                  "file_id": {
                    "type": "string",
                    "title": "File Id",
                    "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                  },
                  "file_name": {
                    "type": "string",
                    "title": "File Name",
                    "default": "",
                    "description": "Original attachment filename, when supplied by ChatGPT."
                  },
                  "mime_type": {
                    "type": "string",
                    "title": "Mime Type",
                    "default": "",
                    "description": "Attachment MIME type, when supplied by ChatGPT."
                  },
                  "download_url": {
                    "type": "string",
                    "title": "Download Url",
                    "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                  }
                },
                "description": "Attach the image from ChatGPT for this input.",
                "additionalProperties": false
              },
              "model": {
                "enum": [
                  "kling-3.0",
                  "ltx-2.5",
                  "veo3.1"
                ],
                "type": "string",
                "example": "ltx-2.5",
                "description": "Defaults to kling-3.0 on paid plans and ltx-2.5 on free plans."
              },
              "assets": {
                "type": "object",
                "properties": {
                  "image_file_path": {
                    "type": "string",
                    "example": "api-assets/id/image.jpg",
                    "minLength": 1,
                    "description": "Prepared image to animate. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n"
                  }
                },
                "description": "Prepared image to animate into the spoken ad. The script is supplied separately.",
                "additionalProperties": false
              },
              "script": {
                "type": "string",
                "example": "Meet your new everyday essential.",
                "minLength": 1,
                "description": "The words the actor should speak. Character limits apply after trimming:\n* kling-3.0: 2304 characters.\n* ltx-2.5: 3804 characters.\n* veo3.1: 2500 characters.\nLTX and Kling dialogue wrappers count toward their model prompt limit."
              },
              "resolution": {
                "enum": [
                  "480p",
                  "720p",
                  "1080p"
                ],
                "type": "string",
                "example": "480p",
                "description": "Defaults to 720p on paid plans and 480p on free plans. Unsupported model/resolution combinations and resolutions unavailable for your plan are rejected."
              },
              "end_seconds": {
                "type": "number",
                "example": 4,
                "minimum": 1,
                "description": "Video duration in seconds. Supported values by model:\n* kling-3.0: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 seconds.\n* ltx-2.5: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60 seconds.\n* veo3.1: 4, 6, 8, 15, 22, 29, 36, 43, 50, 57, 64, 71, 78, 85, 92, 99, 106, 113, 120, 127, 134, 141 seconds.\nFree plans are limited to 5 seconds unless a credit pack has been purchased."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "id",
              "credits_charged"
            ],
            "properties": {
              "id": {
                "type": "string",
                "example": "cuid-example",
                "description": "Unique ID of the video. Use it with the [Get video Project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch status and downloads."
              },
              "credits_charged": {
                "type": "integer",
                "example": 450,
                "description": "The amount of credits deducted from your account to generate the video. If the status is not 'complete', this value is an estimate and may be adjusted upon completion based on the actual FPS of the output video. \n\nIf video generation fails, credits will be refunded, and this field will be updated to include the refund."
              }
            },
            "description": "Success"
          },
          "annotations": {
            "title": "Create spoken ad video",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "edit_video",
          "title": "Edit video",
          "description": "Edits the appearance or content of a supplied video segment using a text prompt. Use with a source video, the requested changes and the clip end time. Starts a background job that costs credits; returns a project id for wait_for_video_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.",
          "inputSchema": {
            "type": "object",
            "anyOf": [
              {
                "required": [
                  "video"
                ]
              },
              {
                "required": [
                  "assets"
                ],
                "properties": {
                  "assets": {
                    "required": [
                      "video_file_path"
                    ]
                  }
                }
              }
            ],
            "required": [
              "end_seconds",
              "style"
            ],
            "properties": {
              "name": {
                "type": "string",
                "default": "Video Editor - dateTime",
                "example": "My Video Editor video",
                "description": "Optional project name for identifying this output. Omit to use the API's default project name."
              },
              "model": {
                "enum": [
                  "gemini-omni-1.1",
                  "gemini-omni-1.2",
                  "wan-3.0",
                  "ltx-2.5",
                  "kling-4.0",
                  "gemini-omni",
                  "ltx-2.3"
                ],
                "type": "string",
                "example": "ltx-2.5",
                "description": "The AI model to use for video editing. Defaults to `ltx-2.5` on free tiers and `gemini-omni-1.2` on paid tiers.\n\n* `gemini-omni-1.2`: Best for precise clips up to 15s, references, and high-resolution output. Requires a paid tier.\n* `wan-3.0`: High-quality video with native audio, long clips, and end-frame control. Requires a paid tier.\n* `ltx-2.5`: Fastest for general scenes, long clips, audio, and rapid iteration.\n* `kling-4.0`: Create cinematic videos with image and video references and optional audio. Requires a paid tier."
              },
              "style": {
                "type": "object",
                "required": [
                  "prompt"
                ],
                "properties": {
                  "prompt": {
                    "type": "string",
                    "example": "Change the car color to blue",
                    "minLength": 1,
                    "description": "The prompt used to edit the video."
                  }
                },
                "description": "Instructions describing the changes to make to the source video."
              },
              "video": {
                "type": "object",
                "title": "ChatGPTFile",
                "required": [
                  "download_url",
                  "file_id"
                ],
                "properties": {
                  "file_id": {
                    "type": "string",
                    "title": "File Id",
                    "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                  },
                  "file_name": {
                    "type": "string",
                    "title": "File Name",
                    "default": "",
                    "description": "Original attachment filename, when supplied by ChatGPT."
                  },
                  "mime_type": {
                    "type": "string",
                    "title": "Mime Type",
                    "default": "",
                    "description": "Attachment MIME type, when supplied by ChatGPT."
                  },
                  "download_url": {
                    "type": "string",
                    "title": "Download Url",
                    "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                  }
                },
                "description": "Attach the video from ChatGPT for this input.",
                "additionalProperties": false
              },
              "assets": {
                "type": "object",
                "properties": {
                  "video_file_path": {
                    "type": "string",
                    "example": "api-assets/id/1234.mp4",
                    "minLength": 1,
                    "description": "The video to edit. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n"
                  }
                },
                "description": "Provide the assets for video editing."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object",
                  "oneOf": [
                    {
                      "required": [
                        "file_path"
                      ]
                    },
                    {
                      "required": [
                        "image_index"
                      ]
                    }
                  ],
                  "required": [
                    "name"
                  ],
                  "properties": {
                    "name": {
                      "type": "string",
                      "example": "hero",
                      "pattern": "^[A-Za-z][\\w-]*$",
                      "description": "Reference label without @. Use @name in style.prompt to refer to this file; labels must be unique ignoring case."
                    },
                    "file_path": {
                      "type": "string",
                      "example": "api-assets/id/1234.png",
                      "minLength": 1,
                      "description": "This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n"
                    },
                    "image_index": {
                      "type": "integer",
                      "maximum": 10,
                      "minimum": 1,
                      "description": "Position in reference_images, starting at 1. Use exactly one attachment index or file_path."
                    }
                  }
                },
                "maxItems": 10,
                "minItems": 0,
                "description": "Name references without @ and refer to them as @name in style.prompt. Names must be unique, ignoring case. Maximum 10 references total. Omit for no references.\n\nReference images for gemini-omni-1.2, wan-3.0, kling-4.0."
              },
              "resolution": {
                "enum": [
                  "360p",
                  "480p",
                  "720p",
                  "1080p",
                  "4k"
                ],
                "type": "string",
                "example": "480p",
                "description": "Output resolution. Defaults to `480p` for free tier and `720p` for paid. Supported per model: `gemini-omni-1.2`: 360p, 720p, 1080p, 4k; `wan-3.0`: 480p, 720p, 1080p; `ltx-2.5`: 480p, 720p, 1080p; `kling-4.0`: 720p, 1080p."
              },
              "end_seconds": {
                "type": "number",
                "format": "float",
                "example": 5,
                "minimum": 0.1,
                "description": "End time of your clip in seconds. Must be greater than `start_seconds`. Allowed duration depends on model: `gemini-omni-1.2`: 3-15s, `wan-3.0`: 2-15s, `ltx-2.5`: 0.5-60s (30s at 1080p), `kling-4.0`: 3-30s.\n\nFree plans are currently limited to 10 seconds of clip (`end_seconds` minus `start_seconds`), enforced by the API and may change. When the user gave no duration, choose one within it. Keep an explicitly requested longer one, explain the Free limit and ask before changing it. Do not default to the source video's full length."
              },
              "start_seconds": {
                "type": "number",
                "format": "float",
                "default": 0,
                "example": 0,
                "minimum": 0,
                "description": "Start time of your clip (seconds). Must be ≥ 0."
              },
              "reference_images": {
                "type": "array",
                "items": {
                  "type": "object",
                  "title": "ChatGPTFile",
                  "required": [
                    "download_url",
                    "file_id"
                  ],
                  "properties": {
                    "file_id": {
                      "type": "string",
                      "title": "File Id",
                      "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                    },
                    "file_name": {
                      "type": "string",
                      "title": "File Name",
                      "default": "",
                      "description": "Original attachment filename, when supplied by ChatGPT."
                    },
                    "mime_type": {
                      "type": "string",
                      "title": "Mime Type",
                      "default": "",
                      "description": "Attachment MIME type, when supplied by ChatGPT."
                    },
                    "download_url": {
                      "type": "string",
                      "title": "Download Url",
                      "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 10,
                "minItems": 1,
                "description": "Attached image files. Set image_index in each matching entry to its position in this list, starting at 1."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "id",
              "credits_charged"
            ],
            "properties": {
              "id": {
                "type": "string",
                "example": "cuid-example",
                "description": "Unique ID of the video. Use it with the [Get video Project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch status and downloads."
              },
              "credits_charged": {
                "type": "integer",
                "example": 450,
                "description": "The amount of credits deducted from your account to generate the video. If the status is not 'complete', this value is an estimate and may be adjusted upon completion based on the actual FPS of the output video. \n\nIf video generation fails, credits will be refunded, and this field will be updated to include the refund."
              }
            },
            "description": "Success"
          },
          "annotations": {
            "title": "Edit video",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "translate_video",
          "title": "Translate video",
          "description": "Translates speech in a supplied video segment into a supported target language. Starts a background job that costs credits; returns a project id for wait_for_video_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.",
          "inputSchema": {
            "type": "object",
            "anyOf": [
              {
                "required": [
                  "video"
                ]
              },
              {
                "required": [
                  "assets"
                ],
                "properties": {
                  "assets": {
                    "required": [
                      "video_file_path"
                    ]
                  }
                }
              }
            ],
            "required": [
              "end_seconds",
              "target_language"
            ],
            "properties": {
              "name": {
                "type": "string",
                "default": "Video Translator - dateTime",
                "example": "My Video Translator video",
                "description": "Optional project name for identifying this output. Omit to use the API's default project name."
              },
              "video": {
                "type": "object",
                "title": "ChatGPTFile",
                "required": [
                  "download_url",
                  "file_id"
                ],
                "properties": {
                  "file_id": {
                    "type": "string",
                    "title": "File Id",
                    "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                  },
                  "file_name": {
                    "type": "string",
                    "title": "File Name",
                    "default": "",
                    "description": "Original attachment filename, when supplied by ChatGPT."
                  },
                  "mime_type": {
                    "type": "string",
                    "title": "Mime Type",
                    "default": "",
                    "description": "Attachment MIME type, when supplied by ChatGPT."
                  },
                  "download_url": {
                    "type": "string",
                    "title": "Download Url",
                    "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                  }
                },
                "description": "Attach the video from ChatGPT for this input.",
                "additionalProperties": false
              },
              "assets": {
                "type": "object",
                "properties": {
                  "video_file_path": {
                    "type": "string",
                    "example": "api-assets/id/1234.mp4",
                    "minLength": 1,
                    "description": "Source video containing the speech to translate. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n"
                  }
                },
                "description": "Source video for the translation job."
              },
              "resolution": {
                "enum": [
                  "480p",
                  "720p",
                  "1080p"
                ],
                "type": "string",
                "example": "480p",
                "description": "Output video resolution. Defaults to 480p. 720p and 1080p require a paid plan."
              },
              "end_seconds": {
                "type": "number",
                "format": "float",
                "example": 5,
                "minimum": 0.1,
                "description": "End time of your clip (seconds). Must be greater than start_seconds. The clip must be 1-30 seconds long."
              },
              "start_seconds": {
                "type": "number",
                "format": "float",
                "default": 0,
                "example": 0,
                "minimum": 0,
                "description": "Start time of your clip (seconds). Must be ≥ 0."
              },
              "target_language": {
                "enum": [
                  "English",
                  "Chinese (Simplified)",
                  "Hindi",
                  "Spanish",
                  "Arabic",
                  "French",
                  "Afrikaans",
                  "Bengali",
                  "Bulgarian",
                  "Catalan",
                  "Croatian",
                  "Czech",
                  "Danish",
                  "Dutch",
                  "Estonian",
                  "Finnish",
                  "German",
                  "Greek",
                  "Gujarati",
                  "Hebrew",
                  "Hungarian",
                  "Indonesian",
                  "Italian",
                  "Japanese",
                  "Kannada",
                  "Kazakh",
                  "Korean",
                  "Latvian",
                  "Lithuanian",
                  "Malay",
                  "Malayalam",
                  "Marathi",
                  "Norwegian",
                  "Persian",
                  "Polish",
                  "Portuguese",
                  "Punjabi",
                  "Romanian",
                  "Russian",
                  "Serbian",
                  "Slovak",
                  "Slovenian",
                  "Swahili",
                  "Swedish",
                  "Tamil",
                  "Telugu",
                  "Thai",
                  "Chinese (Traditional)",
                  "Turkish",
                  "Ukrainian",
                  "Urdu",
                  "Vietnamese",
                  "Welsh"
                ],
                "type": "string",
                "example": "Spanish",
                "description": "Language to translate the video's speech into."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "id",
              "credits_charged"
            ],
            "properties": {
              "id": {
                "type": "string",
                "example": "cuid-example",
                "description": "Unique ID of the video. Use it with the [Get video Project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch status and downloads."
              },
              "credits_charged": {
                "type": "integer",
                "example": 450,
                "description": "The amount of credits deducted from your account to generate the video. If the status is not 'complete', this value is an estimate and may be adjusted upon completion based on the actual FPS of the output video. \n\nIf video generation fails, credits will be refunded, and this field will be updated to include the refund."
              }
            },
            "description": "Success"
          },
          "annotations": {
            "title": "Translate video",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "upscale_video",
          "title": "Upscale video",
          "description": "Upscales a supplied video segment to a selected output resolution while preserving its aspect ratio. Starts a background job that costs credits; returns a project id for wait_for_video_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.",
          "inputSchema": {
            "type": "object",
            "anyOf": [
              {
                "required": [
                  "video"
                ]
              },
              {
                "required": [
                  "assets"
                ],
                "properties": {
                  "assets": {
                    "required": [
                      "video_file_path"
                    ]
                  }
                }
              }
            ],
            "required": [
              "end_seconds",
              "resolution"
            ],
            "properties": {
              "name": {
                "type": "string",
                "default": "Video Upscaler - dateTime",
                "example": "My Video Upscaler video",
                "description": "Optional project name for identifying this output. Omit to use the API's default project name."
              },
              "video": {
                "type": "object",
                "title": "ChatGPTFile",
                "required": [
                  "download_url",
                  "file_id"
                ],
                "properties": {
                  "file_id": {
                    "type": "string",
                    "title": "File Id",
                    "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                  },
                  "file_name": {
                    "type": "string",
                    "title": "File Name",
                    "default": "",
                    "description": "Original attachment filename, when supplied by ChatGPT."
                  },
                  "mime_type": {
                    "type": "string",
                    "title": "Mime Type",
                    "default": "",
                    "description": "Attachment MIME type, when supplied by ChatGPT."
                  },
                  "download_url": {
                    "type": "string",
                    "title": "Download Url",
                    "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                  }
                },
                "description": "Attach the video from ChatGPT for this input.",
                "additionalProperties": false
              },
              "assets": {
                "type": "object",
                "properties": {
                  "video_file_path": {
                    "type": "string",
                    "example": "api-assets/id/1234.mp4",
                    "minLength": 1,
                    "description": "Video to upscale. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n"
                  }
                },
                "description": "Source video for the upscale job."
              },
              "resolution": {
                "enum": [
                  "720p",
                  "1080p",
                  "2k",
                  "4k"
                ],
                "type": "string",
                "example": "1080p",
                "description": "Output resolution. `720p` and `1080p` set the output's short side, `2k` and `4k` its long side; the aspect ratio is kept. Requires a paid plan."
              },
              "end_seconds": {
                "type": "number",
                "format": "float",
                "example": 5,
                "minimum": 0.1,
                "description": "End time of your clip (seconds). Must be greater than start_seconds."
              },
              "start_seconds": {
                "type": "number",
                "format": "float",
                "default": 0,
                "example": 0,
                "minimum": 0,
                "description": "Start time of your clip (seconds). Must be ≥ 0."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "id",
              "credits_charged"
            ],
            "properties": {
              "id": {
                "type": "string",
                "example": "cuid-example",
                "description": "Unique ID of the video. Use it with the [Get video Project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch status and downloads."
              },
              "credits_charged": {
                "type": "integer",
                "example": 450,
                "description": "The amount of credits deducted from your account to generate the video. If the status is not 'complete', this value is an estimate and may be adjusted upon completion based on the actual FPS of the output video. \n\nIf video generation fails, credits will be refunded, and this field will be updated to include the refund."
              }
            },
            "description": "Success"
          },
          "annotations": {
            "title": "Upscale video",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "create_animation",
          "title": "Create animation",
          "description": "Creates a stylized animated video with art and camera settings, using a custom prompt or an audio-derived prompt mode. Can use an initial image and audio. Credits depend on frame rate and duration; returns a project id for wait_for_video_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.",
          "inputSchema": {
            "type": "object",
            "required": [
              "fps",
              "end_seconds",
              "height",
              "width",
              "style",
              "assets"
            ],
            "properties": {
              "fps": {
                "type": "number",
                "example": 12,
                "minimum": 1,
                "description": "The desire output video frame rate"
              },
              "name": {
                "type": "string",
                "default": "Animation - dateTime",
                "example": "My Animation video",
                "description": "Optional project name for identifying this output. Omit to use the API's default project name."
              },
              "audio": {
                "type": "object",
                "title": "ChatGPTFile",
                "required": [
                  "download_url",
                  "file_id"
                ],
                "properties": {
                  "file_id": {
                    "type": "string",
                    "title": "File Id",
                    "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                  },
                  "file_name": {
                    "type": "string",
                    "title": "File Name",
                    "default": "",
                    "description": "Original attachment filename, when supplied by ChatGPT."
                  },
                  "mime_type": {
                    "type": "string",
                    "title": "Mime Type",
                    "default": "",
                    "description": "Attachment MIME type, when supplied by ChatGPT."
                  },
                  "download_url": {
                    "type": "string",
                    "title": "Download Url",
                    "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                  }
                },
                "description": "Attach the audio from ChatGPT for this input. Set assets.audio_source to file.",
                "additionalProperties": false
              },
              "image": {
                "type": "object",
                "title": "ChatGPTFile",
                "required": [
                  "download_url",
                  "file_id"
                ],
                "properties": {
                  "file_id": {
                    "type": "string",
                    "title": "File Id",
                    "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                  },
                  "file_name": {
                    "type": "string",
                    "title": "File Name",
                    "default": "",
                    "description": "Original attachment filename, when supplied by ChatGPT."
                  },
                  "mime_type": {
                    "type": "string",
                    "title": "Mime Type",
                    "default": "",
                    "description": "Attachment MIME type, when supplied by ChatGPT."
                  },
                  "download_url": {
                    "type": "string",
                    "title": "Download Url",
                    "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                  }
                },
                "description": "Attach the image from ChatGPT for this input.",
                "additionalProperties": false
              },
              "style": {
                "type": "object",
                "required": [
                  "art_style",
                  "camera_effect",
                  "prompt_type",
                  "transition_speed"
                ],
                "properties": {
                  "prompt": {
                    "type": "string",
                    "example": "Cyberpunk city",
                    "description": "The prompt used for the video. Prompt is required if `prompt_type` is `custom`. Otherwise this value is ignored"
                  },
                  "art_style": {
                    "enum": [
                      "Custom",
                      "Painterly Illustration",
                      "Vibrant Matte Illustration",
                      "Traditional Watercolor",
                      "Cyberpunk",
                      "Ink and Watercolor Portrait",
                      "Intricate Abstract Lines Portrait",
                      "3D Render",
                      "Old School Comic",
                      "Bold Colored Illustration",
                      "Synthwave",
                      "Minimal Cold Futurism",
                      "Futuristic Anime",
                      "Cinematic Miyazaki",
                      "Studio Ghibli Film Still",
                      "Soft Delicate Matte Portrait",
                      "Cinematic Landscape",
                      "Landscape Painting",
                      "Photograph",
                      "Jackson Pollock",
                      "Cubist",
                      "Abstract Minimalist",
                      "Impressionism",
                      "Van Gogh",
                      "Woodcut",
                      "Oil Painting",
                      "Vintage Japanese Anime",
                      "Pixar",
                      "Cosmic",
                      "Pixel Art",
                      "Fantasy",
                      "Arcane",
                      "Sin City",
                      "Double Exposure",
                      "Painted Cityscape",
                      "90s Streets",
                      "Overgrown",
                      "Postapocalyptic",
                      "Spooky",
                      "Miniatures",
                      "Low Poly",
                      "Art Deco",
                      "Inkpunk",
                      "Dark Graphic Illustration",
                      "Dark Watercolor",
                      "Faded Illustration",
                      "Directed by AI"
                    ],
                    "type": "string",
                    "example": "Painterly Illustration",
                    "description": "The art style used to create the output video"
                  },
                  "prompt_type": {
                    "enum": [
                      "custom",
                      "use_lyrics",
                      "ai_choose"
                    ],
                    "type": "string",
                    "example": "custom",
                    "description": "\n* `custom` - Use your own prompt for the video.\n* `use_lyrics` - Use the lyrics of the audio to create the prompt. If this option is selected, then `assets.audio_source` must be `file` or `youtube`.\n* `ai_choose` - Let AI write the prompt. If this option is selected, then `assets.audio_source` must be `file` or `youtube`."
                  },
                  "camera_effect": {
                    "enum": [
                      "Simple Zoom Out",
                      "Simple Zoom In",
                      "Bounce Out",
                      "Spin Bounce",
                      "Rolling Bounces",
                      "Rise and Climb",
                      "Dramatic Zoom In",
                      "Dramatic Zoom Out",
                      "Sway Out",
                      "Boost Zoom In",
                      "Boost Zoom Out",
                      "Heartbeat",
                      "Bounce in Place",
                      "Earthquake Bounce",
                      "Slice Bounce",
                      "Bounce In And Out",
                      "Jump",
                      "Road Trip",
                      "Traverse",
                      "Rubber Band",
                      "Rodeo",
                      "Accelerate",
                      "Speed of Light",
                      "Drift Spin",
                      "Vertigo",
                      "Cog in the Machine",
                      "Quadrant",
                      "Tron",
                      "Pusher",
                      "Roll In",
                      "Hesitate In",
                      "Zoom In - Audio Sync",
                      "Pulse - Audio Sync",
                      "Aggressive Zoom In - Audio Sync",
                      "Roll In - Audio Sync",
                      "Zoom Out - Audio Sync",
                      "Aggressive Zoom Out - Audio Sync",
                      "Sway Out - Audio Sync",
                      "Bounce and Spin - Audio Sync",
                      "Zoom In and Spin - Audio Sync",
                      "Vertigo - Audio Sync",
                      "Bounce Out - Audio Sync",
                      "Earthquake Bounce - Audio Sync",
                      "Pusher - Audio Sync",
                      "Evolve - Audio Sync",
                      "Devolve - Audio Sync",
                      "Slideshow",
                      "Pan Left",
                      "Pan Right",
                      "Tilt Up",
                      "Tilt Down",
                      "Directed by AI"
                    ],
                    "type": "string",
                    "example": "Simple Zoom In",
                    "description": "The camera effect used to create the output video"
                  },
                  "art_style_custom": {
                    "type": "string",
                    "example": "Watercolor painting with soft pastel colors",
                    "description": "Describe custom art style. This field is required if `art_style` is `Custom`"
                  },
                  "transition_speed": {
                    "type": "integer",
                    "example": 5,
                    "maximum": 10,
                    "minimum": 1,
                    "description": "Change determines how quickly the video's content changes across frames. \n* Higher = more rapid transitions.\n* Lower = more stable visual experience."
                  }
                },
                "description": "Defines the style of the output video"
              },
              "width": {
                "type": "integer",
                "example": 512,
                "minimum": 64,
                "description": "The width of the final output video. The maximum width depends on your subscription. Please refer to our [pricing page](https://magichour.ai/pricing) for more details"
              },
              "assets": {
                "type": "object",
                "example": {
                  "audio_source": "file",
                  "audio_file_path": "api-assets/id/1234.mp3",
                  "image_file_path": "api-assets/id/1234.png"
                },
                "required": [
                  "audio_source"
                ],
                "properties": {
                  "youtube_url": {
                    "type": "string",
                    "format": "uri",
                    "minLength": 1,
                    "description": "Using a youtube video as the input source. This field is required if `audio_source` is `youtube`"
                  },
                  "audio_source": {
                    "enum": [
                      "none",
                      "file",
                      "youtube"
                    ],
                    "type": "string",
                    "example": "file",
                    "description": "Optionally add an audio source if you'd like to incorporate audio into your video"
                  },
                  "audio_file_path": {
                    "type": "string",
                    "example": "api-assets/id/1234.mp3",
                    "minLength": 1,
                    "description": "The path of the input audio. This field is required if `audio_source` is `file`. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n"
                  },
                  "image_file_path": {
                    "type": "string",
                    "example": "api-assets/id/1234.png",
                    "minLength": 1,
                    "description": "An initial image to use a the first frame of the video. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n"
                  }
                },
                "description": "Provide the assets for animation."
              },
              "height": {
                "type": "integer",
                "example": 512,
                "minimum": 64,
                "description": "The height of the final output video. The maximum height depends on your subscription. Please refer to our [pricing page](https://magichour.ai/pricing) for more details"
              },
              "end_seconds": {
                "type": "number",
                "format": "float",
                "example": 5,
                "minimum": 0.1,
                "description": "This value determines the duration of the output video."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "id",
              "credits_charged"
            ],
            "properties": {
              "id": {
                "type": "string",
                "example": "cuid-example",
                "description": "Unique ID of the video. Use it with the [Get video Project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch status and downloads."
              },
              "credits_charged": {
                "type": "integer",
                "example": 450,
                "description": "The amount of credits deducted from your account to generate the video. If the status is not 'complete', this value is an estimate and may be adjusted upon completion based on the actual FPS of the output video. \n\nIf video generation fails, credits will be refunded, and this field will be updated to include the refund."
              }
            },
            "description": "Success"
          },
          "annotations": {
            "title": "Create animation",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "create_video_from_audio",
          "title": "Create video from audio",
          "description": "Generates an audio-guided video from a supplied audio track, with an optional starting image and visual prompt. Starts a background job that costs credits; returns a project id for wait_for_video_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.",
          "inputSchema": {
            "type": "object",
            "anyOf": [
              {
                "required": [
                  "audio"
                ]
              },
              {
                "required": [
                  "assets"
                ],
                "properties": {
                  "assets": {
                    "required": [
                      "audio_file_path"
                    ]
                  }
                }
              }
            ],
            "required": [
              "end_seconds"
            ],
            "properties": {
              "name": {
                "type": "string",
                "default": "Audio To Video - dateTime",
                "example": "My Audio To Video video",
                "description": "Optional project name for identifying this output. Omit to use the API's default project name."
              },
              "audio": {
                "type": "object",
                "title": "ChatGPTFile",
                "required": [
                  "download_url",
                  "file_id"
                ],
                "properties": {
                  "file_id": {
                    "type": "string",
                    "title": "File Id",
                    "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                  },
                  "file_name": {
                    "type": "string",
                    "title": "File Name",
                    "default": "",
                    "description": "Original attachment filename, when supplied by ChatGPT."
                  },
                  "mime_type": {
                    "type": "string",
                    "title": "Mime Type",
                    "default": "",
                    "description": "Attachment MIME type, when supplied by ChatGPT."
                  },
                  "download_url": {
                    "type": "string",
                    "title": "Download Url",
                    "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                  }
                },
                "description": "Attach the audio from ChatGPT for this input.",
                "additionalProperties": false
              },
              "image": {
                "type": "object",
                "title": "ChatGPTFile",
                "required": [
                  "download_url",
                  "file_id"
                ],
                "properties": {
                  "file_id": {
                    "type": "string",
                    "title": "File Id",
                    "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                  },
                  "file_name": {
                    "type": "string",
                    "title": "File Name",
                    "default": "",
                    "description": "Original attachment filename, when supplied by ChatGPT."
                  },
                  "mime_type": {
                    "type": "string",
                    "title": "Mime Type",
                    "default": "",
                    "description": "Attachment MIME type, when supplied by ChatGPT."
                  },
                  "download_url": {
                    "type": "string",
                    "title": "Download Url",
                    "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                  }
                },
                "description": "Attach the image from ChatGPT for this input.",
                "additionalProperties": false
              },
              "style": {
                "type": "object",
                "properties": {
                  "prompt": {
                    "type": "string",
                    "example": "Car driving through a city",
                    "description": "Prompt to guide the visual style of the video."
                  }
                },
                "description": "Attributes used to dictate the style of the output"
              },
              "assets": {
                "type": "object",
                "properties": {
                  "audio_file_path": {
                    "type": "string",
                    "example": "api-assets/id/1234.mp3",
                    "minLength": 1,
                    "description": "The path of the audio file. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n"
                  },
                  "image_file_path": {
                    "type": "string",
                    "example": "api-assets/id/1234.png",
                    "minLength": 1,
                    "description": "Reference image for the initial frame of the video. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n"
                  }
                },
                "description": "Provide the audio file and an optional reference image."
              },
              "resolution": {
                "enum": [
                  "480p",
                  "720p",
                  "1080p"
                ],
                "type": "string",
                "example": "480p",
                "description": "Output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers."
              },
              "end_seconds": {
                "type": "number",
                "format": "float",
                "example": 5,
                "minimum": 0.1,
                "description": "End time of your clip (seconds). Must be greater than start_seconds.\n\nFree plans are currently limited to 15 seconds of output, enforced by the API and may change. When the user gave no duration, choose one within it. Keep an explicitly requested longer one, explain the Free limit and ask before changing it."
              },
              "start_seconds": {
                "type": "number",
                "format": "float",
                "default": 0,
                "example": 0,
                "minimum": 0,
                "description": "Start time of your clip (seconds). Must be ≥ 0."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "id",
              "credits_charged"
            ],
            "properties": {
              "id": {
                "type": "string",
                "example": "cuid-example",
                "description": "Unique ID of the video. Use it with the [Get video Project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch status and downloads."
              },
              "credits_charged": {
                "type": "integer",
                "example": 450,
                "description": "The amount of credits deducted from your account to generate the video. If the status is not 'complete', this value is an estimate and may be adjusted upon completion based on the actual FPS of the output video. \n\nIf video generation fails, credits will be refunded, and this field will be updated to include the refund."
              }
            },
            "description": "Success"
          },
          "annotations": {
            "title": "Create video from audio",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "add_subtitles_to_video",
          "title": "Add subtitles to video",
          "description": "Adds automatically generated subtitles to a supplied video segment using a subtitle preset or custom text styling. Starts a background job that costs credits; returns a project id for wait_for_video_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.",
          "inputSchema": {
            "type": "object",
            "anyOf": [
              {
                "required": [
                  "video"
                ]
              },
              {
                "required": [
                  "assets"
                ],
                "properties": {
                  "assets": {
                    "required": [
                      "video_file_path"
                    ]
                  }
                }
              }
            ],
            "required": [
              "start_seconds",
              "end_seconds",
              "style"
            ],
            "properties": {
              "name": {
                "type": "string",
                "default": "Auto Subtitle - dateTime",
                "example": "My Auto Subtitle video",
                "description": "Optional project name for identifying this output. Omit to use the API's default project name."
              },
              "style": {
                "type": "object",
                "properties": {
                  "template": {
                    "enum": [
                      "karaoke",
                      "cinematic",
                      "minimalist",
                      "highlight"
                    ],
                    "type": "string",
                    "example": "karaoke",
                    "description": "Preset subtitle templates. Please visit https://magichour.ai/create/auto-subtitle-generator to see the style of the existing templates."
                  },
                  "custom_config": {
                    "type": "object",
                    "properties": {
                      "font": {
                        "type": "string",
                        "example": "Noto Sans",
                        "description": "Font name from Google Fonts. Not all fonts support all languages or character sets. \nWe recommend verifying language support and appearance directly on https://fonts.google.com before use."
                      },
                      "font_size": {
                        "type": "number",
                        "example": 24,
                        "description": "Font size in pixels. If not provided, the font size is automatically calculated based on the video resolution."
                      },
                      "font_style": {
                        "type": "string",
                        "example": "normal",
                        "description": "Font style (e.g., normal, italic, bold)"
                      },
                      "text_color": {
                        "type": "string",
                        "example": "#FFFFFF",
                        "description": "Primary text color in hex format"
                      },
                      "stroke_color": {
                        "type": "string",
                        "example": "#000000",
                        "description": "Stroke (outline) color of the text"
                      },
                      "stroke_width": {
                        "type": "number",
                        "example": 1,
                        "description": "Width of the text stroke in pixels. If `stroke_color` is provided, but `stroke_width` is not, the `stroke_width` will be calculated automatically based on the font size."
                      },
                      "vertical_position": {
                        "type": "string",
                        "example": "bottom",
                        "description": "Vertical alignment of the text (e.g., top, center, bottom)"
                      },
                      "horizontal_position": {
                        "type": "string",
                        "example": "center",
                        "description": "Horizontal alignment of the text (e.g., left, center, right)"
                      },
                      "highlighted_text_color": {
                        "type": "string",
                        "example": "#FFD700",
                        "description": "Color used to highlight the current spoken text"
                      }
                    },
                    "description": "Custom subtitle configuration."
                  }
                },
                "description": "Style of the subtitle. At least one of `.style.template` or `.style.custom_config` must be provided. \n* If only `.style.template` is provided, default values for the template will be used.\n* If both are provided, the fields in `.style.custom_config` will be used to overwrite the fields in `.style.template`.\n* If only `.style.custom_config` is provided, then all fields in `.style.custom_config` will be used.\n\nTo use custom config only, the following `custom_config` params are required:\n* `.style.custom_config.font`\n* `.style.custom_config.text_color`\n* `.style.custom_config.vertical_position`\n* `.style.custom_config.horizontal_position`\n"
              },
              "video": {
                "type": "object",
                "title": "ChatGPTFile",
                "required": [
                  "download_url",
                  "file_id"
                ],
                "properties": {
                  "file_id": {
                    "type": "string",
                    "title": "File Id",
                    "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                  },
                  "file_name": {
                    "type": "string",
                    "title": "File Name",
                    "default": "",
                    "description": "Original attachment filename, when supplied by ChatGPT."
                  },
                  "mime_type": {
                    "type": "string",
                    "title": "Mime Type",
                    "default": "",
                    "description": "Attachment MIME type, when supplied by ChatGPT."
                  },
                  "download_url": {
                    "type": "string",
                    "title": "Download Url",
                    "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                  }
                },
                "description": "Attach the video from ChatGPT for this input.",
                "additionalProperties": false
              },
              "assets": {
                "type": "object",
                "properties": {
                  "video_file_path": {
                    "type": "string",
                    "example": "api-assets/id/1234.mp4",
                    "minLength": 1,
                    "description": "This is the video used to add subtitles. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n"
                  }
                },
                "description": "Provide the assets for auto subtitle generator"
              },
              "end_seconds": {
                "type": "number",
                "format": "float",
                "example": 5,
                "minimum": 0.1,
                "description": "End time of your clip (seconds). Must be greater than start_seconds."
              },
              "start_seconds": {
                "type": "number",
                "format": "float",
                "example": 0,
                "minimum": 0,
                "description": "Start time of your clip (seconds). Must be ≥ 0."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "id",
              "credits_charged"
            ],
            "properties": {
              "id": {
                "type": "string",
                "example": "cuid-example",
                "description": "Unique ID of the video. Use it with the [Get video Project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch status and downloads."
              },
              "credits_charged": {
                "type": "integer",
                "example": 450,
                "description": "The amount of credits deducted from your account to generate the video. If the status is not 'complete', this value is an estimate and may be adjusted upon completion based on the actual FPS of the output video. \n\nIf video generation fails, credits will be refunded, and this field will be updated to include the refund."
              }
            },
            "description": "Success"
          },
          "annotations": {
            "title": "Add subtitles to video",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "replace_character_in_video",
          "title": "Replace character in video",
          "description": "Use only with the user's own likeness or content they are authorized to use. Do not use for impersonation, deception, sexual content, or content involving minors.\n\nReplaces a subject in a video with a character from a reference image, or transfers the video's motion onto that character. Starts a background job that costs credits; returns a project id for wait_for_video_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.",
          "inputSchema": {
            "type": "object",
            "allOf": [
              {
                "anyOf": [
                  {
                    "required": [
                      "character_image"
                    ]
                  },
                  {
                    "required": [
                      "assets"
                    ],
                    "properties": {
                      "assets": {
                        "required": [
                          "image_file_path"
                        ]
                      }
                    }
                  }
                ]
              },
              {
                "anyOf": [
                  {
                    "required": [
                      "video"
                    ]
                  },
                  {
                    "required": [
                      "assets"
                    ],
                    "properties": {
                      "assets": {
                        "required": [
                          "video_file_path"
                        ]
                      }
                    }
                  }
                ]
              }
            ],
            "required": [
              "end_seconds"
            ],
            "properties": {
              "name": {
                "type": "string",
                "default": "Character Replace - dateTime",
                "example": "My Character Replace video",
                "description": "Optional project name for identifying this output. Omit to use the API's default project name."
              },
              "model": {
                "enum": [
                  "wan-animate",
                  "kling-3.0",
                  "kling-4.0",
                  "minimax-h3"
                ],
                "type": "string",
                "default": "wan-animate",
                "example": "wan-animate",
                "description": "Model to use. Defaults to `wan-animate`.\n\n* **`wan-animate`**: 480p, 720p. Supports `points` subject selection.\n* **`kling-3.0`**: 720p, 1080p. Clips of 3–30 seconds in `animate` mode or 3–10 seconds in `replace` mode. Picks the main person automatically, so `points` are rejected.\n* **`kling-4.0`**: 720p, 1080p. Clips of 3–30 seconds in `replace` mode. Picks the main person automatically, so `points` are rejected.\n* **`minimax-h3`**: 480p, 720p, 1080p. Clips of 1–60 seconds in `animate` mode or 1–30 seconds in `replace` mode. Subject `points` are `replace`-only; `animate` with `selection_mode` `point` returns 422, and with `auto` or no `selection_mode` the points are ignored."
              },
              "style": {
                "type": "object",
                "example": {
                  "mode": "replace",
                  "selection_mode": "auto"
                },
                "properties": {
                  "mode": {
                    "enum": [
                      "replace",
                      "animate"
                    ],
                    "type": "string",
                    "example": "replace",
                    "description": "Processing mode. `replace` swaps the detected subject with your reference character. `animate` transfers motion from the video onto your character image."
                  },
                  "points": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "position_x",
                        "position_y",
                        "time_seconds"
                      ],
                      "properties": {
                        "position_x": {
                          "type": "integer",
                          "example": 320,
                          "minimum": 0,
                          "description": "Horizontal pixel coordinate in the source video frame at `time_seconds`, measured from the left edge."
                        },
                        "position_y": {
                          "type": "integer",
                          "example": 180,
                          "minimum": 0,
                          "description": "Vertical pixel coordinate in the source video frame at `time_seconds`, measured from the top edge."
                        },
                        "time_seconds": {
                          "type": "number",
                          "format": "float",
                          "example": 2.5,
                          "minimum": 0,
                          "description": "Timestamp on the source video timeline in seconds. Uses the same clock as `start_seconds` and `end_seconds`. For MiniMax H3 manual replacement, `start_seconds <= time_seconds < end_seconds`."
                        }
                      }
                    },
                    "description": "On-frame markers for manual subject selection. Required when `selection_mode` is `point`. Ignored when `selection_mode` is `auto` or omitted. Rejected for models without subject selection (supported by `wan-animate`, `minimax-h3`). `minimax-h3` subject `points` are `replace`-only; `animate` with `selection_mode` `point` returns 422, and with `auto` or no `selection_mode` the points are ignored. MiniMax H3 manual replacement accepts 1 to 10 points; each must satisfy `start_seconds <= time_seconds < end_seconds`."
                  },
                  "prompt": {
                    "type": "string",
                    "maxLength": 2000,
                    "description": "Optional direction. Supported by kling-3.0, kling-4.0, minimax-h3. For MiniMax H3 in replace mode, ignored and not saved when `selection_mode` is `point`; applies only to automatic person selection."
                  },
                  "selection_mode": {
                    "enum": [
                      "auto",
                      "point"
                    ],
                    "type": "string",
                    "example": "auto",
                    "description": "How to locate the subject in the source video. `auto` detects a person automatically. `point` uses your `points` to mark the subject and is supported by `wan-animate`, `minimax-h3`. `minimax-h3` subject `points` are `replace`-only; `animate` with `selection_mode` `point` returns 422, and with `auto` or no `selection_mode` the points are ignored. Defaults to `auto`."
                  }
                },
                "description": "Optional style controls for replace vs animate mode and subject selection."
              },
              "video": {
                "type": "object",
                "title": "ChatGPTFile",
                "required": [
                  "download_url",
                  "file_id"
                ],
                "properties": {
                  "file_id": {
                    "type": "string",
                    "title": "File Id",
                    "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                  },
                  "file_name": {
                    "type": "string",
                    "title": "File Name",
                    "default": "",
                    "description": "Original attachment filename, when supplied by ChatGPT."
                  },
                  "mime_type": {
                    "type": "string",
                    "title": "Mime Type",
                    "default": "",
                    "description": "Attachment MIME type, when supplied by ChatGPT."
                  },
                  "download_url": {
                    "type": "string",
                    "title": "Download Url",
                    "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                  }
                },
                "description": "Attach the video from ChatGPT for this input.",
                "additionalProperties": false
              },
              "assets": {
                "type": "object",
                "properties": {
                  "image_file_path": {
                    "type": "string",
                    "example": "api-assets/id/5678.png",
                    "minLength": 1,
                    "description": "Reference character image used as the replacement or animation target. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n"
                  },
                  "video_file_path": {
                    "type": "string",
                    "example": "api-assets/id/1234.mp4",
                    "minLength": 1,
                    "description": "Source video containing the subject to replace or animate. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n"
                  }
                },
                "description": "Source video and reference character image for the job."
              },
              "resolution": {
                "enum": [
                  "480p",
                  "720p",
                  "1080p"
                ],
                "type": "string",
                "example": "480p",
                "description": "Output video resolution. Must be supported by `model`. Defaults to the lowest resolution available on your plan for that model."
              },
              "end_seconds": {
                "type": "number",
                "format": "float",
                "example": 5,
                "minimum": 0.1,
                "description": "End time of your clip (seconds). Must be greater than start_seconds.\n\nFree plans are currently limited to 10 seconds of clip (`end_seconds` minus `start_seconds`), enforced by the API and may change. When the user gave no duration, choose one within it. Keep an explicitly requested longer one, explain the Free limit and ask before changing it. Do not default to the source video's full length."
              },
              "start_seconds": {
                "type": "number",
                "format": "float",
                "default": 0,
                "example": 0,
                "minimum": 0,
                "description": "Start time of your clip (seconds). Must be ≥ 0."
              },
              "character_image": {
                "type": "object",
                "title": "ChatGPTFile",
                "required": [
                  "download_url",
                  "file_id"
                ],
                "properties": {
                  "file_id": {
                    "type": "string",
                    "title": "File Id",
                    "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                  },
                  "file_name": {
                    "type": "string",
                    "title": "File Name",
                    "default": "",
                    "description": "Original attachment filename, when supplied by ChatGPT."
                  },
                  "mime_type": {
                    "type": "string",
                    "title": "Mime Type",
                    "default": "",
                    "description": "Attachment MIME type, when supplied by ChatGPT."
                  },
                  "download_url": {
                    "type": "string",
                    "title": "Download Url",
                    "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                  }
                },
                "description": "Attach the character image from ChatGPT for this input.",
                "additionalProperties": false
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "id",
              "credits_charged"
            ],
            "properties": {
              "id": {
                "type": "string",
                "example": "cuid-example",
                "description": "Unique ID of the video. Use it with the [Get video Project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch status and downloads."
              },
              "credits_charged": {
                "type": "integer",
                "example": 450,
                "description": "The amount of credits deducted from your account to generate the video. If the status is not 'complete', this value is an estimate and may be adjusted upon completion based on the actual FPS of the output video. \n\nIf video generation fails, credits will be refunded, and this field will be updated to include the refund."
              }
            },
            "description": "Success"
          },
          "annotations": {
            "title": "Replace character in video",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "swap_face_in_video",
          "title": "Swap face in video",
          "description": "Use only with the user's own likeness or content they are authorized to use. Do not use for impersonation, deception, sexual content, or content involving minors.\n\nSwaps faces in an existing video: all faces with a reference image, or selected faces using detect_faces results. Starts a background job that costs credits; returns a project id for wait_for_video_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.",
          "inputSchema": {
            "type": "object",
            "required": [
              "start_seconds",
              "end_seconds",
              "assets"
            ],
            "properties": {
              "name": {
                "type": "string",
                "default": "Face Swap - dateTime",
                "example": "My Face Swap video",
                "description": "Optional project name for identifying this output. Omit to use the API's default project name."
              },
              "style": {
                "type": "object",
                "example": {
                  "version": "default"
                },
                "properties": {
                  "version": {
                    "enum": [
                      "v1",
                      "v2",
                      "default"
                    ],
                    "type": "string",
                    "example": "default",
                    "description": "Select face-swap version `v1` or `v2`. `default` uses the server-selected version, which may change over time."
                  }
                },
                "description": "Style of the face swap video."
              },
              "video": {
                "type": "object",
                "title": "ChatGPTFile",
                "required": [
                  "download_url",
                  "file_id"
                ],
                "properties": {
                  "file_id": {
                    "type": "string",
                    "title": "File Id",
                    "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                  },
                  "file_name": {
                    "type": "string",
                    "title": "File Name",
                    "default": "",
                    "description": "Original attachment filename, when supplied by ChatGPT."
                  },
                  "mime_type": {
                    "type": "string",
                    "title": "Mime Type",
                    "default": "",
                    "description": "Attachment MIME type, when supplied by ChatGPT."
                  },
                  "download_url": {
                    "type": "string",
                    "title": "Download Url",
                    "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                  }
                },
                "description": "Attach the video from ChatGPT for this input. Set assets.video_source to file.",
                "additionalProperties": false
              },
              "assets": {
                "type": "object",
                "example": {
                  "video_source": "file",
                  "face_swap_mode": "all-faces",
                  "image_file_path": "api-assets/id/1234.png",
                  "video_file_path": "api-assets/id/1234.mp4"
                },
                "required": [
                  "video_source"
                ],
                "properties": {
                  "youtube_url": {
                    "type": "string",
                    "format": "uri",
                    "description": "YouTube URL (required if `video_source` is `youtube`)."
                  },
                  "video_source": {
                    "enum": [
                      "file",
                      "youtube"
                    ],
                    "type": "string",
                    "example": "file",
                    "description": "Choose your video source."
                  },
                  "face_mappings": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "oneOf": [
                        {
                          "required": [
                            "new_face"
                          ]
                        },
                        {
                          "required": [
                            "image_index"
                          ]
                        }
                      ],
                      "required": [
                        "original_face"
                      ],
                      "properties": {
                        "new_face": {
                          "type": "string",
                          "example": "api-assets/id/1234.png",
                          "description": "The face image that will be used to replace the face in the `original_face`. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n"
                        },
                        "image_index": {
                          "type": "integer",
                          "maximum": 5,
                          "minimum": 1,
                          "description": "Position in replacement_faces, starting at 1. Use exactly one attachment index or new_face."
                        },
                        "original_face": {
                          "type": "string",
                          "example": "api-assets/id/0-0.png",
                          "description": "The face detected from the image in `target_file_path`. The file name is in the format of `<face_frame>-<face_index>.png`. This value is corresponds to the response in the [face detection API](https://docs.magichour.ai/api-reference/files/get-face-detection-details).\n\n* The face_frame is the frame number of the face in the target image. For images, the frame number is always 0.\n* The face_index is the index of the face in the target image, starting from 0 going left to right."
                        }
                      }
                    },
                    "example": [
                      {
                        "new_face": "api-assets/id/1234.png",
                        "original_face": "api-assets/id/0-0.png"
                      }
                    ],
                    "maxItems": 5,
                    "description": "This is the array of face mappings used for multiple face swap. The value is required if `face_swap_mode` is `individual-faces`."
                  },
                  "face_swap_mode": {
                    "enum": [
                      "all-faces",
                      "individual-faces"
                    ],
                    "type": "string",
                    "default": "all-faces",
                    "example": "all-faces",
                    "description": "Choose which faces to swap. `all-faces` uses one source image for all detected faces (`image_file_path` required). `individual-faces` uses exact `face_mappings`."
                  },
                  "image_file_path": {
                    "type": "string",
                    "example": "api-assets/id/1234.png",
                    "description": "The path of the input image with the face to be swapped.  The value is required if `face_swap_mode` is `all-faces`.\n\nThis value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n"
                  },
                  "video_file_path": {
                    "type": "string",
                    "example": "api-assets/id/1234.mp4",
                    "description": "Your video file. Required if `video_source` is `file`. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n"
                  }
                },
                "description": "Provide the assets for face swap. For video, The `video_source` field determines whether `video_file_path` or `youtube_url` field is used"
              },
              "end_seconds": {
                "type": "number",
                "format": "float",
                "example": 5,
                "minimum": 0.1,
                "description": "End time of your clip (seconds). Must be greater than start_seconds."
              },
              "source_face": {
                "type": "object",
                "title": "ChatGPTFile",
                "required": [
                  "download_url",
                  "file_id"
                ],
                "properties": {
                  "file_id": {
                    "type": "string",
                    "title": "File Id",
                    "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                  },
                  "file_name": {
                    "type": "string",
                    "title": "File Name",
                    "default": "",
                    "description": "Original attachment filename, when supplied by ChatGPT."
                  },
                  "mime_type": {
                    "type": "string",
                    "title": "Mime Type",
                    "default": "",
                    "description": "Attachment MIME type, when supplied by ChatGPT."
                  },
                  "download_url": {
                    "type": "string",
                    "title": "Download Url",
                    "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                  }
                },
                "description": "Attach the source face from ChatGPT for this input.",
                "additionalProperties": false
              },
              "start_seconds": {
                "type": "number",
                "format": "float",
                "example": 0,
                "minimum": 0,
                "description": "Start time of your clip (seconds). Must be ≥ 0."
              },
              "replacement_faces": {
                "type": "array",
                "items": {
                  "type": "object",
                  "title": "ChatGPTFile",
                  "required": [
                    "download_url",
                    "file_id"
                  ],
                  "properties": {
                    "file_id": {
                      "type": "string",
                      "title": "File Id",
                      "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                    },
                    "file_name": {
                      "type": "string",
                      "title": "File Name",
                      "default": "",
                      "description": "Original attachment filename, when supplied by ChatGPT."
                    },
                    "mime_type": {
                      "type": "string",
                      "title": "Mime Type",
                      "default": "",
                      "description": "Attachment MIME type, when supplied by ChatGPT."
                    },
                    "download_url": {
                      "type": "string",
                      "title": "Download Url",
                      "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 5,
                "minItems": 1,
                "description": "Attached image files. Set image_index in each matching entry to its position in this list, starting at 1."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "id",
              "credits_charged"
            ],
            "properties": {
              "id": {
                "type": "string",
                "example": "cuid-example",
                "description": "Unique ID of the video. Use it with the [Get video Project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch status and downloads."
              },
              "credits_charged": {
                "type": "integer",
                "example": 450,
                "description": "The amount of credits deducted from your account to generate the video. If the status is not 'complete', this value is an estimate and may be adjusted upon completion based on the actual FPS of the output video. \n\nIf video generation fails, credits will be refunded, and this field will be updated to include the refund."
              }
            },
            "description": "Success"
          },
          "annotations": {
            "title": "Swap face in video",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "create_video_from_image",
          "title": "Create video from image",
          "description": "Use a still image as the first frame and describe what should move. There is no aspect_ratio setting; the video's shape comes from the image. If the user wants a shape for where the video will be used (9:16 for TikTok, Reels, Shorts or Stories) and the image is a different shape, say so and offer to reframe it first with edit_image. For a portrait speaking to an existing recording, use create_talking_photo. For a prepared ad image and written script, use create_spoken_ad_video. Starts a background job that costs credits; returns a project id for wait_for_video_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.",
          "inputSchema": {
            "type": "object",
            "anyOf": [
              {
                "required": [
                  "image"
                ]
              },
              {
                "required": [
                  "assets"
                ],
                "properties": {
                  "assets": {
                    "required": [
                      "image_file_path"
                    ]
                  }
                }
              }
            ],
            "required": [
              "end_seconds"
            ],
            "properties": {
              "name": {
                "type": "string",
                "default": "Image To Video - dateTime",
                "example": "My Image To Video video",
                "description": "Optional project name for identifying this output. Omit to use the API's default project name."
              },
              "audio": {
                "type": "boolean",
                "example": true,
                "description": "Whether to include audio in the video. Defaults to `false` if not specified.\n\nAudio support varies by model:\n* **`gemini-omni-1.2`**: Toggle-able: no additional credits for audio\n* **`kling-2.6`**: Not supported\n* **`kling-3.0`**: Toggle-able: audio adds extra credits when enabled\n* **`kling-4.0`**: Toggle-able: no additional credits for audio\n* **`ltx-2.5`**: Toggle-able: no additional credits for audio\n* **`minimax-h3`**: Toggle-able: no additional credits for audio\n* **`seedance-1.5`**: Toggle-able: audio adds extra credits when enabled\n* **`seedance-2.0`**: Toggle-able: no additional credits for audio\n* **`seedance-2.0-fast`**: Toggle-able: no additional credits for audio\n* **`seedance-2.0-mini`**: Toggle-able: no additional credits for audio\n* **`seedance-2.5`**: Toggle-able: no additional credits for audio\n* **`veo3.1`**: Toggle-able: audio adds extra credits when enabled\n* **`veo3.1-lite`**: Toggle-able: audio adds extra credits when enabled\n* **`wan-2.2`**: Not supported\n* **`wan-3.0`**: Toggle-able: no additional credits for audio\n"
              },
              "image": {
                "type": "object",
                "title": "ChatGPTFile",
                "required": [
                  "download_url",
                  "file_id"
                ],
                "properties": {
                  "file_id": {
                    "type": "string",
                    "title": "File Id",
                    "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                  },
                  "file_name": {
                    "type": "string",
                    "title": "File Name",
                    "default": "",
                    "description": "Original attachment filename, when supplied by ChatGPT."
                  },
                  "mime_type": {
                    "type": "string",
                    "title": "Mime Type",
                    "default": "",
                    "description": "Attachment MIME type, when supplied by ChatGPT."
                  },
                  "download_url": {
                    "type": "string",
                    "title": "Download Url",
                    "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                  }
                },
                "description": "The ChatGPT photo to use as the video's first frame.",
                "additionalProperties": false
              },
              "model": {
                "enum": [
                  "default",
                  "minimax-h3",
                  "kling-4.0",
                  "kling-3.0",
                  "ltx-2.5",
                  "wan-2.2",
                  "seedance-2.5",
                  "wan-3.0",
                  "seedance-2.0-mini",
                  "veo3.1",
                  "veo3.1-lite",
                  "seedance-2.0",
                  "kling-2.6",
                  "gemini-omni-1.2",
                  "gemini-omni-1.1",
                  "seedance-2.0-fast",
                  "seedance-1.5",
                  "sora-2",
                  "ltx-2.3",
                  "ltx-2",
                  "kling-2.5",
                  "kling-1.6",
                  "seedance",
                  "kling-2.5-audio",
                  "veo3.1-audio"
                ],
                "type": "string",
                "default": "default",
                "example": "ltx-2.5",
                "description": "The video generation model. With `default`, the API chooses a model using the account plan, resolution and duration. Use this option when no model was requested and it supports the intended inputs and settings. Omit an unrequested resolution so the API resolves it for the account. Preserve explicit settings and required input capabilities. Deprecated model values ending in `-audio` enable `audio`."
              },
              "style": {
                "type": "object",
                "properties": {
                  "prompt": {
                    "type": "string",
                    "example": "a dog running",
                    "description": "The prompt used for the video. Maximum length depends on the model that runs, in characters:\n\n* **`gemini-omni-1.2`**: 4000 characters.\n* **`kling-2.6`**: 2500 characters.\n* **`kling-3.0`**: 2500 characters.\n* **`kling-4.0`**: 10000 characters.\n* **`ltx-2.5`**: 4000 characters.\n* **`minimax-h3`**: 20000 characters.\n* **`seedance-1.5`**: 4000 characters.\n* **`seedance-2.0`**: 4000 characters.\n* **`seedance-2.0-fast`**: 4000 characters.\n* **`seedance-2.0-mini`**: 4000 characters.\n* **`seedance-2.5`**: 4000 characters.\n* **`veo3.1`**: 2500 characters.\n* **`veo3.1-lite`**: 2500 characters.\n* **`wan-2.2`**: 10000 characters.\n* **`wan-3.0`**: 10000 characters.\n\nFor `default`, the limit of the automatically selected model applies. Selection depends on subscription tier, resolution and duration. Specify an explicit model to use a known prompt limit. Prompts exceeding the effective model's limit are rejected, not truncated."
                  }
                },
                "description": "Attributed used to dictate the style of the output"
              },
              "assets": {
                "type": "object",
                "properties": {
                  "image_file_path": {
                    "type": "string",
                    "example": "api-assets/id/1234.png",
                    "minLength": 1,
                    "description": "The path of the image file. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n"
                  },
                  "end_image_file_path": {
                    "type": "string",
                    "example": "api-assets/id/1234.png",
                    "minLength": 1,
                    "description": "The image to use as the last frame of the video.\n\n* **`gemini-omni-1.2`**: Supports 360p, 720p, 1080p, 4k. Requires a duration of 10 seconds or less.\n* **`kling-2.6`**: Supports 1080p.\n* **`kling-3.0`**: Supports 720p, 1080p, 4k.\n* **`kling-4.0`**: Supports 720p, 1080p.\n* **`ltx-2.5`**: Supports 480p, 720p, 1080p.\n* **`minimax-h3`**: Supports 480p, 720p, 1080p.\n* **`seedance-1.5`**: Supports 480p, 720p, 1080p.\n* **`seedance-2.0`**: Supports 480p, 720p, 1080p, 4k.\n* **`seedance-2.0-fast`**: Supports 480p, 720p.\n* **`seedance-2.0-mini`**: Supports 480p, 720p.\n* **`seedance-2.5`**: Supports 480p, 720p, 1080p, 4k.\n* **`veo3.1`**: Supports 720p, 1080p. Requires a duration of 8 seconds or less.\n* **`veo3.1-lite`**: Supports 720p, 1080p. Requires a duration of 8 seconds or less.\n* **`wan-2.2`**: Not supported\n* **`wan-3.0`**: Supports 480p, 720p, 1080p.\n\nThis value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n"
                  }
                },
                "description": "Provide the assets for image-to-video."
              },
              "last_frame": {
                "type": "object",
                "title": "ChatGPTFile",
                "required": [
                  "download_url",
                  "file_id"
                ],
                "properties": {
                  "file_id": {
                    "type": "string",
                    "title": "File Id",
                    "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                  },
                  "file_name": {
                    "type": "string",
                    "title": "File Name",
                    "default": "",
                    "description": "Original attachment filename, when supplied by ChatGPT."
                  },
                  "mime_type": {
                    "type": "string",
                    "title": "Mime Type",
                    "default": "",
                    "description": "Attachment MIME type, when supplied by ChatGPT."
                  },
                  "download_url": {
                    "type": "string",
                    "title": "Download Url",
                    "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                  }
                },
                "description": "Attach the last frame from ChatGPT for this input.",
                "additionalProperties": false
              },
              "resolution": {
                "enum": [
                  "360p",
                  "480p",
                  "720p",
                  "1080p",
                  "4k"
                ],
                "type": "string",
                "example": "480p",
                "description": "Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers.\n\n* **`gemini-omni-1.2`**: Supports 360p, 720p, 1080p, 4k.\n* **`kling-2.6`**: Supports 720p, 1080p.\n* **`kling-3.0`**: Supports 720p, 1080p, 4k.\n* **`kling-4.0`**: Supports 720p, 1080p.\n* **`ltx-2.5`**: Supports 480p, 720p, 1080p.\n* **`minimax-h3`**: Supports 480p, 720p, 1080p.\n* **`seedance-1.5`**: Supports 480p, 720p, 1080p.\n* **`seedance-2.0`**: Supports 480p, 720p, 1080p, 4k.\n* **`seedance-2.0-fast`**: Supports 480p, 720p.\n* **`seedance-2.0-mini`**: Supports 480p, 720p.\n* **`seedance-2.5`**: Supports 480p, 720p, 1080p, 4k.\n* **`veo3.1`**: Supports 720p, 1080p.\n* **`veo3.1-lite`**: Supports 720p, 1080p.\n* **`wan-2.2`**: Supports 480p, 720p, 1080p.\n* **`wan-3.0`**: Supports 480p, 720p, 1080p.\n"
              },
              "end_seconds": {
                "type": "number",
                "format": "float",
                "example": 5,
                "maximum": 60,
                "minimum": 1,
                "description": "The total duration of the output video in seconds. Supported durations depend on the chosen model:\n\n* **`gemini-omni-1.2`**: any integer from 3 to 15\n* **`kling-2.6`**: 5, 10\n* **`kling-3.0`**: any integer from 3 to 15\n* **`kling-4.0`**: any integer from 3 to 30\n* **`ltx-2.5`**: any integer from 1 to 60\n* **`minimax-h3`**: any integer from 1 to 30\n* **`seedance-1.5`**: any integer from 4 to 12\n* **`seedance-2.0`**: any integer from 4 to 15\n* **`seedance-2.0-fast`**: any integer from 4 to 15\n* **`seedance-2.0-mini`**: any integer from 4 to 15\n* **`seedance-2.5`**: any integer from 4 to 30\n* **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56\n* **`veo3.1-lite`**: 4, 6, 8, 16, 24, 32, 40, 48, 56\n* **`wan-2.2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15\n* **`wan-3.0`**: any integer from 2 to 30\n\nFree plans are currently limited to 10 seconds, enforced by the API and may change. When the user gave no duration, choose one within it. Keep an explicitly requested longer one, explain the Free limit and ask before changing it."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "id",
              "credits_charged"
            ],
            "properties": {
              "id": {
                "type": "string",
                "example": "cuid-example",
                "description": "Unique ID of the video. Use it with the [Get video Project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch status and downloads."
              },
              "credits_charged": {
                "type": "integer",
                "example": 450,
                "description": "The amount of credits deducted from your account to generate the video. If the status is not 'complete', this value is an estimate and may be adjusted upon completion based on the actual FPS of the output video. \n\nIf video generation fails, credits will be refunded, and this field will be updated to include the refund."
              }
            },
            "description": "Success"
          },
          "annotations": {
            "title": "Create video from image",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "create_lip_sync_video",
          "title": "Create lip sync video",
          "description": "Use only with the user's own likeness or content they are authorized to use. Do not use for impersonation, deception, sexual content, or content involving minors.\n\nUse existing video and replacement audio to match the speaker's lip movements to the recording. For a still portrait and existing speech recording, use create_talking_photo. Starts a background job that costs credits; returns a project id for wait_for_video_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.",
          "inputSchema": {
            "type": "object",
            "anyOf": [
              {
                "required": [
                  "audio"
                ]
              },
              {
                "required": [
                  "assets"
                ],
                "properties": {
                  "assets": {
                    "required": [
                      "audio_file_path"
                    ]
                  }
                }
              }
            ],
            "required": [
              "start_seconds",
              "end_seconds",
              "assets"
            ],
            "properties": {
              "name": {
                "type": "string",
                "default": "Lip Sync - dateTime",
                "example": "My Lip Sync video",
                "description": "Optional project name for identifying this output. Omit to use the API's default project name."
              },
              "audio": {
                "type": "object",
                "title": "ChatGPTFile",
                "required": [
                  "download_url",
                  "file_id"
                ],
                "properties": {
                  "file_id": {
                    "type": "string",
                    "title": "File Id",
                    "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                  },
                  "file_name": {
                    "type": "string",
                    "title": "File Name",
                    "default": "",
                    "description": "Original attachment filename, when supplied by ChatGPT."
                  },
                  "mime_type": {
                    "type": "string",
                    "title": "Mime Type",
                    "default": "",
                    "description": "Attachment MIME type, when supplied by ChatGPT."
                  },
                  "download_url": {
                    "type": "string",
                    "title": "Download Url",
                    "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                  }
                },
                "description": "Attach the audio from ChatGPT for this input.",
                "additionalProperties": false
              },
              "style": {
                "type": "object",
                "properties": {
                  "generation_mode": {
                    "enum": [
                      "lite",
                      "standard",
                      "pro"
                    ],
                    "type": "string",
                    "default": "lite",
                    "example": "lite",
                    "description": "Select the lip-sync mode. `lite` costs 1 credit per video frame. `standard` costs 1 credit per video frame; `pro` costs 2. Both `standard` and `pro` require visible mouth movement in the opening seconds of the input video. `pro` requires a Creator, Pro or Business tier. For a still image, including a static image saved as video, use `create_talking_photo` with the original image and audio."
                  }
                },
                "description": "Attributes used to dictate the style of the output"
              },
              "video": {
                "type": "object",
                "title": "ChatGPTFile",
                "required": [
                  "download_url",
                  "file_id"
                ],
                "properties": {
                  "file_id": {
                    "type": "string",
                    "title": "File Id",
                    "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                  },
                  "file_name": {
                    "type": "string",
                    "title": "File Name",
                    "default": "",
                    "description": "Original attachment filename, when supplied by ChatGPT."
                  },
                  "mime_type": {
                    "type": "string",
                    "title": "Mime Type",
                    "default": "",
                    "description": "Attachment MIME type, when supplied by ChatGPT."
                  },
                  "download_url": {
                    "type": "string",
                    "title": "Download Url",
                    "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                  }
                },
                "description": "Attach the video from ChatGPT for this input. Set assets.video_source to file.",
                "additionalProperties": false
              },
              "assets": {
                "type": "object",
                "example": {
                  "video_source": "file",
                  "audio_file_path": "api-assets/id/1234.mp3",
                  "video_file_path": "api-assets/id/1234.mp4"
                },
                "required": [
                  "video_source"
                ],
                "properties": {
                  "youtube_url": {
                    "type": "string",
                    "format": "uri",
                    "description": "YouTube URL (required if `video_source` is `youtube`)."
                  },
                  "video_source": {
                    "enum": [
                      "file",
                      "youtube"
                    ],
                    "type": "string",
                    "example": "file",
                    "description": "Choose your video source."
                  },
                  "audio_file_path": {
                    "type": "string",
                    "example": "api-assets/id/1234.mp3",
                    "minLength": 1,
                    "description": "The path of the audio file. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n"
                  },
                  "video_file_path": {
                    "type": "string",
                    "example": "api-assets/id/1234.mp4",
                    "description": "Your video file. Required if `video_source` is `file`. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n"
                  }
                },
                "description": "Provide the assets for lip-sync. For video, The `video_source` field determines whether `video_file_path` or `youtube_url` field is used"
              },
              "end_seconds": {
                "type": "number",
                "format": "float",
                "example": 5,
                "minimum": 0.1,
                "description": "End time of your clip (seconds). Must be greater than start_seconds."
              },
              "max_fps_limit": {
                "type": "number",
                "example": 12,
                "minimum": 1,
                "description": "Defines the maximum FPS (frames per second) for the output video. If the input video's FPS is lower than this limit, the output video will retain the input FPS. This is useful for reducing unnecessary frame usage in scenarios where high FPS is not required."
              },
              "start_seconds": {
                "type": "number",
                "format": "float",
                "example": 0,
                "minimum": 0,
                "description": "Start time of your clip (seconds). Must be ≥ 0."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "id",
              "credits_charged"
            ],
            "properties": {
              "id": {
                "type": "string",
                "example": "cuid-example",
                "description": "Unique ID of the video. Use it with the [Get video Project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch status and downloads."
              },
              "credits_charged": {
                "type": "integer",
                "example": 450,
                "description": "The amount of credits deducted from your account to generate the video. If the status is not 'complete', this value is an estimate and may be adjusted upon completion based on the actual FPS of the output video. \n\nIf video generation fails, credits will be refunded, and this field will be updated to include the refund."
              }
            },
            "description": "Success"
          },
          "annotations": {
            "title": "Create lip sync video",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "create_video_from_text",
          "title": "Create video from text",
          "description": "Generates a video from a text prompt, with optional supported reference inputs and model settings. If the user has not specified an aspect ratio, choose it for where the video will be used, such as 9:16 for TikTok or Reels. To animate an existing starting image, use create_video_from_image. Starts a background job that costs credits; returns a project id for wait_for_video_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.",
          "inputSchema": {
            "type": "object",
            "required": [
              "end_seconds",
              "style"
            ],
            "properties": {
              "name": {
                "type": "string",
                "default": "Text To Video - dateTime",
                "example": "My Text To Video video",
                "description": "Optional project name for identifying this output. Omit to use the API's default project name."
              },
              "audio": {
                "type": "boolean",
                "example": true,
                "description": "Whether to include audio in the video. Defaults to `false` if not specified.\n\nAudio support varies by model:\n* **`gemini-omni-1.2`**: Toggle-able: no additional credits for audio\n* **`kling-2.6`**: Not supported\n* **`kling-3.0`**: Toggle-able: audio adds extra credits when enabled\n* **`kling-4.0`**: Toggle-able: no additional credits for audio\n* **`ltx-2.5`**: Toggle-able: no additional credits for audio\n* **`minimax-h3`**: Toggle-able: no additional credits for audio\n* **`seedance-1.5`**: Toggle-able: audio adds extra credits when enabled\n* **`seedance-2.0`**: Toggle-able: no additional credits for audio\n* **`seedance-2.0-fast`**: Toggle-able: no additional credits for audio\n* **`seedance-2.0-mini`**: Toggle-able: no additional credits for audio\n* **`seedance-2.5`**: Toggle-able: no additional credits for audio\n* **`veo3.1`**: Toggle-able: audio adds extra credits when enabled\n* **`veo3.1-lite`**: Toggle-able: audio adds extra credits when enabled\n* **`wan-2.2`**: Not supported\n* **`wan-3.0`**: Toggle-able: no additional credits for audio\n"
              },
              "model": {
                "enum": [
                  "default",
                  "minimax-h3",
                  "kling-4.0",
                  "kling-3.0",
                  "ltx-2.5",
                  "wan-2.2",
                  "seedance-2.5",
                  "wan-3.0",
                  "seedance-2.0-mini",
                  "veo3.1",
                  "veo3.1-lite",
                  "seedance-2.0",
                  "kling-2.6",
                  "gemini-omni-1.2",
                  "gemini-omni-1.1",
                  "seedance-2.0-fast",
                  "seedance-1.5",
                  "sora-2",
                  "ltx-2.3",
                  "ltx-2",
                  "kling-2.5",
                  "kling-1.6",
                  "seedance",
                  "kling-2.5-audio",
                  "veo3.1-audio"
                ],
                "type": "string",
                "default": "default",
                "example": "ltx-2.5",
                "description": "The video generation model. With `default`, the API chooses a model using the account plan, resolution and duration. Use this option when no model was requested and it supports the intended inputs and settings. Omit an unrequested resolution so the API resolves it for the account. Preserve explicit settings and required input capabilities. Deprecated model values ending in `-audio` enable `audio`."
              },
              "style": {
                "type": "object",
                "required": [
                  "prompt"
                ],
                "properties": {
                  "prompt": {
                    "type": "string",
                    "example": "a dog running",
                    "minLength": 1,
                    "description": "The prompt used for the video. Maximum length depends on the model that runs, in characters:\n\n* **`gemini-omni-1.2`**: 4000 characters.\n* **`kling-2.6`**: 2500 characters.\n* **`kling-3.0`**: 2500 characters.\n* **`kling-4.0`**: 10000 characters.\n* **`ltx-2.5`**: 4000 characters.\n* **`minimax-h3`**: 20000 characters.\n* **`seedance-1.5`**: 4000 characters.\n* **`seedance-2.0`**: 4000 characters.\n* **`seedance-2.0-fast`**: 4000 characters.\n* **`seedance-2.0-mini`**: 4000 characters.\n* **`seedance-2.5`**: 4000 characters.\n* **`veo3.1`**: 2500 characters.\n* **`veo3.1-lite`**: 2500 characters.\n* **`wan-2.2`**: 10000 characters.\n* **`wan-3.0`**: 10000 characters.\n\nFor `default`, the limit of the automatically selected model applies. Selection depends on subscription tier, resolution and duration. Specify an explicit model to use a known prompt limit. Prompts exceeding the effective model's limit are rejected, not truncated."
                  }
                },
                "description": "Instructions describing the video to generate."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object",
                  "oneOf": [
                    {
                      "required": [
                        "file_path"
                      ]
                    },
                    {
                      "required": [
                        "image_index"
                      ]
                    },
                    {
                      "required": [
                        "video_index"
                      ]
                    },
                    {
                      "required": [
                        "audio_index"
                      ]
                    }
                  ],
                  "required": [
                    "name"
                  ],
                  "properties": {
                    "name": {
                      "type": "string",
                      "example": "hero",
                      "pattern": "^[A-Za-z][\\w-]*$",
                      "description": "Reference label without @. Use @name in style.prompt to refer to this file; labels must be unique ignoring case."
                    },
                    "file_path": {
                      "type": "string",
                      "example": "api-assets/id/1234.png",
                      "minLength": 1,
                      "description": "This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n"
                    },
                    "audio_index": {
                      "type": "integer",
                      "maximum": 10,
                      "minimum": 1,
                      "description": "Position in reference_audio, starting at 1. Use exactly one attachment index or file_path."
                    },
                    "image_index": {
                      "type": "integer",
                      "maximum": 30,
                      "minimum": 1,
                      "description": "Position in reference_images, starting at 1. Use exactly one attachment index or file_path."
                    },
                    "video_index": {
                      "type": "integer",
                      "maximum": 10,
                      "minimum": 1,
                      "description": "Position in reference_videos, starting at 1. Use exactly one attachment index or file_path."
                    }
                  }
                },
                "maxItems": 50,
                "minItems": 1,
                "description": "Name references without @ and refer to them as @name in style.prompt. Names must be unique, ignoring case. Maximum 50 references total. Omit for no references.\n\nReference media for video generation.\n\nSupported models and reference media:\n* **`gemini-omni-1.2`**: Supports images, videos. Up to 10 references.\n* **`kling-3.0`**: Supports images, videos. Up to 10 references.\n* **`kling-4.0`**: Supports images, videos. Up to 10 references.\n* **`minimax-h3`**: Supports images, videos, audio. Up to 10 references. Video references must be 2–15 seconds each and 15 seconds combined, and are used in full. Audio references must be 2–15 seconds each and are used in full.\n* **`seedance-2.0`**: Supports images, videos, audio. Up to 10 references.\n* **`seedance-2.0-fast`**: Supports images, videos, audio. Up to 10 references.\n* **`seedance-2.0-mini`**: Supports images, videos, audio. Up to 10 references.\n* **`seedance-2.5`**: Supports images, videos, audio. Up to 50 references. Maximum 30 images, 10 videos and 10 audio references. The worker trims video references to 30 seconds combined and audio references to 30 seconds combined. Audio references require an image or video reference.\n* **`veo3.1`**: Supports images. Up to 3 references. Requires `end_seconds` of 8.\n* **`wan-3.0`**: Supports images, videos, audio. Up to 10 references."
              },
              "resolution": {
                "enum": [
                  "360p",
                  "480p",
                  "720p",
                  "1080p",
                  "4k"
                ],
                "type": "string",
                "example": "480p",
                "description": "Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers.\n\n* **`gemini-omni-1.2`**: Supports 360p, 720p, 1080p, 4k.\n* **`kling-2.6`**: Supports 720p, 1080p.\n* **`kling-3.0`**: Supports 720p, 1080p, 4k.\n* **`kling-4.0`**: Supports 720p, 1080p.\n* **`ltx-2.5`**: Supports 480p, 720p, 1080p.\n* **`minimax-h3`**: Supports 480p, 720p, 1080p.\n* **`seedance-1.5`**: Supports 480p, 720p, 1080p.\n* **`seedance-2.0`**: Supports 480p, 720p, 1080p, 4k.\n* **`seedance-2.0-fast`**: Supports 480p, 720p.\n* **`seedance-2.0-mini`**: Supports 480p, 720p.\n* **`seedance-2.5`**: Supports 480p, 720p, 1080p, 4k.\n* **`veo3.1`**: Supports 720p, 1080p.\n* **`veo3.1-lite`**: Supports 720p, 1080p.\n* **`wan-2.2`**: Supports 480p, 720p, 1080p.\n* **`wan-3.0`**: Supports 480p, 720p, 1080p.\n"
              },
              "end_seconds": {
                "type": "number",
                "format": "float",
                "example": 5,
                "maximum": 60,
                "minimum": 1,
                "description": "The total duration of the output video in seconds. Supported durations depend on the chosen model:\n\n* **`gemini-omni-1.2`**: any integer from 3 to 15\n* **`kling-2.6`**: 5, 10\n* **`kling-3.0`**: any integer from 3 to 15\n* **`kling-4.0`**: any integer from 3 to 30\n* **`ltx-2.5`**: any integer from 1 to 60\n* **`minimax-h3`**: any integer from 1 to 30\n* **`seedance-1.5`**: any integer from 4 to 12\n* **`seedance-2.0`**: any integer from 4 to 15\n* **`seedance-2.0-fast`**: any integer from 4 to 15\n* **`seedance-2.0-mini`**: any integer from 4 to 15\n* **`seedance-2.5`**: any integer from 4 to 30\n* **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56\n* **`veo3.1-lite`**: 4, 6, 8, 16, 24, 32, 40, 48, 56\n* **`wan-2.2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15\n* **`wan-3.0`**: any integer from 2 to 30\n\nFree plans are currently limited to 10 seconds, enforced by the API and may change. When the user gave no duration, choose one within it. Keep an explicitly requested longer one, explain the Free limit and ask before changing it."
              },
              "aspect_ratio": {
                "enum": [
                  "16:9",
                  "9:16",
                  "1:1"
                ],
                "type": "string",
                "example": "16:9",
                "description": "Keep an aspect ratio the user explicitly requests. Otherwise, choose by where the output will be used: 9:16 for TikTok, Reels, Shorts, Stories or a phone screen; 16:9 for YouTube, a website, slides or TV; 1:1 for an Instagram or Facebook feed post or a profile picture. If you can't tell where the video will be used, ask before generating. If omitted, the video is 16:9.\n\nDetermines the aspect ratio of the output video.\n\n* **`gemini-omni-1.2`**: Supports 16:9, 9:16.\n* **`kling-2.6`**: Supports 9:16, 16:9, 1:1.\n* **`kling-3.0`**: Supports 9:16, 16:9, 1:1.\n* **`kling-4.0`**: Supports 9:16, 16:9, 1:1.\n* **`ltx-2.5`**: Supports 9:16, 16:9, 1:1.\n* **`minimax-h3`**: Supports 16:9, 9:16, 1:1.\n* **`seedance-1.5`**: Supports 9:16, 16:9, 1:1.\n* **`seedance-2.0`**: Supports 9:16, 16:9, 1:1.\n* **`seedance-2.0-fast`**: Supports 9:16, 16:9, 1:1.\n* **`seedance-2.0-mini`**: Supports 9:16, 16:9, 1:1.\n* **`seedance-2.5`**: Supports 9:16, 16:9, 1:1.\n* **`veo3.1`**: Supports 9:16, 16:9.\n* **`veo3.1-lite`**: Supports 9:16, 16:9.\n* **`wan-2.2`**: Supports 9:16, 16:9, 1:1.\n* **`wan-3.0`**: Supports 16:9, 9:16, 1:1.\n"
              },
              "reference_audio": {
                "type": "array",
                "items": {
                  "type": "object",
                  "title": "ChatGPTFile",
                  "required": [
                    "download_url",
                    "file_id"
                  ],
                  "properties": {
                    "file_id": {
                      "type": "string",
                      "title": "File Id",
                      "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                    },
                    "file_name": {
                      "type": "string",
                      "title": "File Name",
                      "default": "",
                      "description": "Original attachment filename, when supplied by ChatGPT."
                    },
                    "mime_type": {
                      "type": "string",
                      "title": "Mime Type",
                      "default": "",
                      "description": "Attachment MIME type, when supplied by ChatGPT."
                    },
                    "download_url": {
                      "type": "string",
                      "title": "Download Url",
                      "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 10,
                "minItems": 1,
                "description": "Attached audio files. Set audio_index in each matching entry to its position in this list, starting at 1."
              },
              "reference_images": {
                "type": "array",
                "items": {
                  "type": "object",
                  "title": "ChatGPTFile",
                  "required": [
                    "download_url",
                    "file_id"
                  ],
                  "properties": {
                    "file_id": {
                      "type": "string",
                      "title": "File Id",
                      "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                    },
                    "file_name": {
                      "type": "string",
                      "title": "File Name",
                      "default": "",
                      "description": "Original attachment filename, when supplied by ChatGPT."
                    },
                    "mime_type": {
                      "type": "string",
                      "title": "Mime Type",
                      "default": "",
                      "description": "Attachment MIME type, when supplied by ChatGPT."
                    },
                    "download_url": {
                      "type": "string",
                      "title": "Download Url",
                      "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 30,
                "minItems": 1,
                "description": "Attached image files. Set image_index in each matching entry to its position in this list, starting at 1."
              },
              "reference_videos": {
                "type": "array",
                "items": {
                  "type": "object",
                  "title": "ChatGPTFile",
                  "required": [
                    "download_url",
                    "file_id"
                  ],
                  "properties": {
                    "file_id": {
                      "type": "string",
                      "title": "File Id",
                      "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                    },
                    "file_name": {
                      "type": "string",
                      "title": "File Name",
                      "default": "",
                      "description": "Original attachment filename, when supplied by ChatGPT."
                    },
                    "mime_type": {
                      "type": "string",
                      "title": "Mime Type",
                      "default": "",
                      "description": "Attachment MIME type, when supplied by ChatGPT."
                    },
                    "download_url": {
                      "type": "string",
                      "title": "Download Url",
                      "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 10,
                "minItems": 1,
                "description": "Attached video files. Set video_index in each matching entry to its position in this list, starting at 1."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "id",
              "credits_charged"
            ],
            "properties": {
              "id": {
                "type": "string",
                "example": "cuid-example",
                "description": "Unique ID of the video. Use it with the [Get video Project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch status and downloads."
              },
              "credits_charged": {
                "type": "integer",
                "example": 450,
                "description": "The amount of credits deducted from your account to generate the video. If the status is not 'complete', this value is an estimate and may be adjusted upon completion based on the actual FPS of the output video. \n\nIf video generation fails, credits will be refunded, and this field will be updated to include the refund."
              }
            },
            "description": "Success"
          },
          "annotations": {
            "title": "Create video from text",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "restyle_video",
          "title": "Restyle video",
          "description": "Restyles an existing video clip with an art-style preset or a custom prompt. Supports v1/v2/v3 presets; v3 requires a supplied reference image and positive source-video width and height. Starts a background job that costs credits; returns a project id for wait_for_video_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.",
          "inputSchema": {
            "type": "object",
            "required": [
              "start_seconds",
              "end_seconds",
              "style",
              "assets"
            ],
            "properties": {
              "fps": {
                "type": "number",
                "default": 30,
                "example": 30,
                "minimum": 1,
                "description": "Source video FPS for v3 frame limits and estimated credits. Defaults to 30; final charges settle to rendered frames."
              },
              "name": {
                "type": "string",
                "default": "Video To Video - dateTime",
                "example": "My Video To Video video",
                "description": "Optional project name for identifying this output. Omit to use the API's default project name."
              },
              "style": {
                "type": "object",
                "required": [
                  "art_style"
                ],
                "properties": {
                  "model": {
                    "enum": [
                      "Dreamshaper",
                      "Absolute Reality",
                      "Flat 2D Anime",
                      "Soft Anime",
                      "Kaywaii",
                      "Western Anime",
                      "3D Anime",
                      "Default",
                      "default"
                    ],
                    "type": "string",
                    "default": "default",
                    "example": "default",
                    "description": "* `Dreamshaper` - a good all-around model that works for both animations as well as realism.\n* `Absolute Reality` - better at realism, but you'll often get similar results with Dreamshaper as well.\n* `Flat 2D Anime` - best for a flat illustration style that's common in most anime.\n* `Default` - the v3 model.\n* `default` - use the default recommended model for the selected art style.",
                    "x-sideko-enum-names": {
                      "Default": "DefaultV3",
                      "default": "Default"
                    }
                  },
                  "prompt": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "example": "A cinematic scene with warm lighting",
                    "description": "The prompt used for the video. Prompt is required if `prompt_type` is `custom` or `append_default`. If `prompt_type` is `default`, then the `prompt` value passed will be ignored."
                  },
                  "version": {
                    "enum": [
                      "v1",
                      "v2",
                      "v3",
                      "default"
                    ],
                    "type": "string",
                    "default": "default",
                    "example": "default",
                    "description": "* `v1` - more detail, closer prompt adherence, and frame-by-frame previews.\n* `v2` - faster, more consistent, and less noisy.\n* `v3` - consistent styling guided by a caller-supplied reference image. Requires assets.initial_image_path and positive width/height.\n* `default` - use the selected art style's default version, including v3."
                  },
                  "art_style": {
                    "enum": [
                      "WWI Soldier",
                      "Minecraft",
                      "Watercolor",
                      "Chalkboard",
                      "Pixel",
                      "Rick & Morty",
                      "Sketch",
                      "Roblox",
                      "Hitman",
                      "Joker",
                      "Darth Maul",
                      "Jon Snow",
                      "Dexter's Lab",
                      "Darth Vader",
                      "Shadow",
                      "Bronze Statue",
                      "Toy Story",
                      "Puppets",
                      "Yarn",
                      "Obsidian Gods",
                      "Claymation",
                      "James Bond",
                      "Retro Sci-Fi",
                      "Chrome",
                      "Lego",
                      "Origami",
                      "Scorpion",
                      "Ash Ketchum",
                      "Terra Cotta Soldiers",
                      "Obi-Wan",
                      "Venom",
                      "Scream",
                      "Matrix",
                      "Crusader",
                      "Batman",
                      "Superman",
                      "Deadpool",
                      "Ghost",
                      "Iron Man",
                      "Warzone",
                      "Thanos",
                      "Tarzan",
                      "Polish Hussar",
                      "Gladiators",
                      "Grim Reaper",
                      "Hulk",
                      "Candle",
                      "Anime Ninja",
                      "Sand Sculpture",
                      "Spiderman",
                      "Ash Skeleton",
                      "Sub-Zero",
                      "Hades",
                      "Studio Ghibli",
                      "Comic",
                      "Gojo",
                      "Diorama",
                      "Mad Max",
                      "Dragon Rider Knight",
                      "Nightmare",
                      "Pennywise",
                      "One Punch Man",
                      "Anime Aviator",
                      "Slime",
                      "Sandpaper",
                      "Spray Paint",
                      "Flash",
                      "Impressionism",
                      "Master Chief",
                      "Solid Snake",
                      "Street Fighter",
                      "Hologram",
                      "Plague Doctor",
                      "South Park",
                      "GTA",
                      "Chess",
                      "Chalk Dust",
                      "Clay",
                      "Peely",
                      "Pepe the Frog",
                      "Tarot Card",
                      "Ninja Turtle",
                      "Tribal Warrior",
                      "Bubble Wrap",
                      "Glass Sculpture",
                      "Frankenstein",
                      "Napoleon Painting",
                      "Pokémon Trainer",
                      "Invader Zim",
                      "Terminator",
                      "Cuphead Devil",
                      "Cyclops",
                      "Luigi",
                      "Mythra",
                      "Phoenix Wright",
                      "Swamp Creatures",
                      "Vikings",
                      "Fossils",
                      "Cyber Samurai",
                      "Ice and Fire",
                      "Braveheart",
                      "Fire Golems",
                      "Golden Scarabs",
                      "Black Ink",
                      "Lich King",
                      "WWII Paratrooper",
                      "101 Dalmatians",
                      "8-Bit Angel",
                      "Ace (One Piece)",
                      "Aviator",
                      "Bagheera",
                      "Diablo",
                      "C-3PO",
                      "Qilin",
                      "Crusader Zombie",
                      "Daredevil",
                      "Statue of David",
                      "Doctor Doom",
                      "White Walker",
                      "Bioshock",
                      "Jason Voorhees",
                      "Kai’Sa",
                      "Killer Croc",
                      "Mechanical Scorpion",
                      "Metallic Angel",
                      "Spider-Venom",
                      "Mystique",
                      "Nathan Drake",
                      "Wendingo",
                      "Nautilus",
                      "Nosferatu",
                      "Gray NPC",
                      "Orc",
                      "Sans Undertale",
                      "Spiderman 2099",
                      "TF2 Spy",
                      "Sulley",
                      "The Creeper",
                      "X-Ray Soldier",
                      "Zeus (Disney)",
                      "Zombie",
                      "Eclipse",
                      "Nebula",
                      "Polygon",
                      "Raiden",
                      "Celestial",
                      "Wool Beast",
                      "Chibi",
                      "Albert Einstein",
                      "Alucard",
                      "Confederate Soldier",
                      "Fabric",
                      "Avian Aviator",
                      "FNAF",
                      "Mushroom",
                      "Beast",
                      "Blitzcrank",
                      "Captain America",
                      "Crystal Knight",
                      "Darkseid",
                      "Dio Brando",
                      "Doctor Fate",
                      "Green Goblin",
                      "Groot",
                      "Rooster",
                      "Devil",
                      "Kenshiro",
                      "Martian",
                      "Mech Dragon",
                      "Prince",
                      "Pyke",
                      "Robin",
                      "RoboCop",
                      "Samara Morgan",
                      "Shiva",
                      "Singed",
                      "Star Trek",
                      "Steampunk Captain",
                      "Tyrande Whisperwind",
                      "Predator",
                      "Yeti",
                      "Marble Sculpture",
                      "Washi",
                      "Woodcut",
                      "Dark Reaper",
                      "Mech Valkryie",
                      "Renaissance Painting",
                      "Renaissance Sketch",
                      "Comic Batman",
                      "Astronaut",
                      "Dragonball Z",
                      "Watercolor Painting",
                      "Cinematic",
                      "Optimus Prime",
                      "Mario",
                      "Poseidon",
                      "Moss Spirits",
                      "Green Lantern",
                      "Detective Conan",
                      "Prince of Persia",
                      "King Arthur",
                      "Wolverine",
                      "Statue of Liberty",
                      "Black Panther",
                      "Iron Valor",
                      "Legend of Zelda",
                      "Mandalorian",
                      "Aquaman",
                      "Cloud Strife",
                      "Samurai",
                      "John Wick",
                      "Freddy Krueger",
                      "Hercules",
                      "Spartan",
                      "Shrek",
                      "Solar Flare",
                      "Scottish Highlander",
                      "Desert Wraith",
                      "Kung Fu",
                      "Porcelain",
                      "Molten Rock",
                      "Apocalyptic Marble",
                      "Ash",
                      "Popeye",
                      "Simpsons",
                      "Liquid Metal",
                      "Cave Painting",
                      "Crayon",
                      "Scuba Diver",
                      "Vampire",
                      "Miner",
                      "Origami Samurai",
                      "Qing Dynasty",
                      "Wax",
                      "Bastet",
                      "Bellwether",
                      "Hobbits",
                      "Day of the Dead",
                      "Engineer",
                      "Finn",
                      "Huggy Wuggy",
                      "Krillin",
                      "Hugging Bear",
                      "Malfurion Stormrage",
                      "Mickey Mouse",
                      "Might Guy",
                      "Nala",
                      "Naruto Uzumaki",
                      "Oni",
                      "Piccolo",
                      "Raiden (Metal Gear)",
                      "Rocket Raccoon",
                      "Russell (Up)",
                      "Shark Gladiator",
                      "The Mask",
                      "The Mummy",
                      "The Nun",
                      "Indiana Jones",
                      "Aragorn",
                      "Foam",
                      "Jello",
                      "Dune",
                      "Anubis",
                      "Genghis Khan",
                      "Ink Blot",
                      "Ken",
                      "Kratos",
                      "Lara Croft",
                      "Legolas",
                      "Luffy",
                      "Oil Slick",
                      "Mech Angels",
                      "Pencil Sketch",
                      "Gargoyle",
                      "Ink Bottle",
                      "Marble Chesspieces",
                      "Coral",
                      "Solar Eclipse",
                      "Molten Beasts",
                      "Porcelain Nobles",
                      "Calligraphy",
                      "Paper Lantern",
                      "Sandstorm Gladiator",
                      "Insect",
                      "Wool Giant",
                      "Rusted Valor",
                      "Pharaoh",
                      "Paper Cut",
                      "Wax Museum",
                      "Blood Ink",
                      "Ink Samurai",
                      "Demon Hunter",
                      "Spirit Fox",
                      "Baroque",
                      "Clouds",
                      "Goblin Inventor",
                      "HK-47",
                      "Karl Marx",
                      "Da Vinci",
                      "Cracked Marble",
                      "Medieval Painting",
                      "Melted Wax",
                      "Socrates",
                      "Sumo Wrestler",
                      "Postapocalyptic",
                      "William Wallace",
                      "Leatherface",
                      "Regan MacNeil",
                      "Frieza",
                      "Cell",
                      "Sidewalk Chalk",
                      "Altair Ibn-La’Ahad",
                      "American Gothic",
                      "Aztec",
                      "Banzai",
                      "Beowulf",
                      "Boba Fett",
                      "Carl Fredricksen",
                      "Carnage",
                      "Cheetah",
                      "Portal",
                      "Chewbacca",
                      "Thor",
                      "Chucky",
                      "Cinderella",
                      "The Witcher",
                      "Cursed Samurai",
                      "Deathstroke",
                      "Dieselpunk",
                      "Din Djarin",
                      "Donald Duck",
                      "Edward Elric",
                      "Joy vs. Anger",
                      "Gandalf",
                      "Native American",
                      "Ghost Rider",
                      "Gimli",
                      "Girl with Pearl Earring",
                      "GLaDOS",
                      "Hades (Disney)",
                      "Han Solo",
                      "Hellboy",
                      "Japanese Raijin",
                      "Japanese Susanoo",
                      "Jarvan",
                      "Levi Ackerman",
                      "John Darling",
                      "Fury Road",
                      "Maestro Hulk",
                      "Man Bat",
                      "Mike Wazowski",
                      "Minotaur King",
                      "Wukong",
                      "Robin Hood",
                      "Samus",
                      "Sarah Kerrigan",
                      "Shadow Phoenix",
                      "Simón Bolívar",
                      "The Flash",
                      "Leprechaun",
                      "The Thinker",
                      "Thrall",
                      "Tree Ent King",
                      "Alien",
                      "Erron Black",
                      "3D Render",
                      "Airbender",
                      "Android",
                      "Anime Warrior",
                      "Armored Knight",
                      "Assassin's Creed",
                      "Avatar",
                      "Black Spiderman",
                      "Bold Anime",
                      "Celestial Skin",
                      "Chinese Swordsmen",
                      "Cyberpunk",
                      "Cypher",
                      "Dark Fantasy",
                      "Future Bot",
                      "Futuristic Fantasy",
                      "Ghibli Anime",
                      "Gundam",
                      "Illustration",
                      "Ink",
                      "Ink Poster",
                      "Jinx",
                      "Knight",
                      "Link",
                      "Marble",
                      "Mech",
                      "Naruto",
                      "Neon Dream",
                      "No Art Style",
                      "Oil Painting",
                      "On Fire",
                      "Painterly Anime",
                      "Pixar",
                      "Power Armor",
                      "Power Ranger",
                      "Radiant Anime",
                      "Realistic Anime",
                      "Realistic Pixar",
                      "Retro Anime",
                      "Samurai Bot",
                      "Sharp Anime",
                      "Soft Anime",
                      "Starfield",
                      "The Void",
                      "Tomb Raider",
                      "Underwater",
                      "Van Gogh",
                      "Viking",
                      "Western Anime",
                      "Wu Kong",
                      "Wuxia Anime",
                      "Zelda"
                    ],
                    "type": "string",
                    "example": "3D Render",
                    "description": "Art-style preset to apply to the source video. The preset determines the default rendering version, model and prompt; check their compatibility before generation."
                  },
                  "prompt_type": {
                    "enum": [
                      "default",
                      "custom",
                      "append_default"
                    ],
                    "type": "string",
                    "default": "default",
                    "example": "default",
                    "description": "`default` uses the art style's preset prompt and ignores `prompt`. `custom` uses the supplied `prompt`; v1 still adds its LoRA prompt to apply the art style. `append_default` appends the preset prompt to the supplied `prompt`."
                  }
                },
                "description": "Art preset, rendering version, model and prompt controls for restyling the video."
              },
              "video": {
                "type": "object",
                "title": "ChatGPTFile",
                "required": [
                  "download_url",
                  "file_id"
                ],
                "properties": {
                  "file_id": {
                    "type": "string",
                    "title": "File Id",
                    "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                  },
                  "file_name": {
                    "type": "string",
                    "title": "File Name",
                    "default": "",
                    "description": "Original attachment filename, when supplied by ChatGPT."
                  },
                  "mime_type": {
                    "type": "string",
                    "title": "Mime Type",
                    "default": "",
                    "description": "Attachment MIME type, when supplied by ChatGPT."
                  },
                  "download_url": {
                    "type": "string",
                    "title": "Download Url",
                    "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                  }
                },
                "description": "Attach the video from ChatGPT for this input. Set assets.video_source to file.",
                "additionalProperties": false
              },
              "width": {
                "type": [
                  "integer",
                  "null"
                ],
                "example": 1024,
                "description": "Source video width in integer pixels. Required and positive for v3; ignored for v1/v2."
              },
              "assets": {
                "type": "object",
                "example": {
                  "video_source": "file",
                  "video_file_path": "api-assets/id/1234.mp4"
                },
                "required": [
                  "video_source"
                ],
                "properties": {
                  "youtube_url": {
                    "type": "string",
                    "format": "uri",
                    "description": "YouTube URL (required if `video_source` is `youtube`)."
                  },
                  "video_source": {
                    "enum": [
                      "file",
                      "youtube"
                    ],
                    "type": "string",
                    "example": "file",
                    "description": "Choose your video source."
                  },
                  "video_file_path": {
                    "type": "string",
                    "example": "api-assets/id/1234.mp4",
                    "description": "Your video file. Required if `video_source` is `file`. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n"
                  },
                  "initial_image_path": {
                    "type": "string",
                    "example": "api-assets/id/reference.png",
                    "minLength": 1,
                    "description": "Required for v3: an uploaded reference image path, or a completed image output owned by you. The caller supplies this image; the API does not generate it."
                  }
                },
                "description": "Provide the assets for video-to-video. For video, The `video_source` field determines whether `video_file_path` or `youtube_url` field is used"
              },
              "height": {
                "type": [
                  "integer",
                  "null"
                ],
                "example": 704,
                "description": "Source video height in integer pixels. Required and positive for v3; ignored for v1/v2."
              },
              "end_seconds": {
                "type": "number",
                "format": "float",
                "example": 5,
                "minimum": 0.1,
                "description": "End time of your clip (seconds). Must be greater than start_seconds."
              },
              "first_frame": {
                "type": "object",
                "title": "ChatGPTFile",
                "required": [
                  "download_url",
                  "file_id"
                ],
                "properties": {
                  "file_id": {
                    "type": "string",
                    "title": "File Id",
                    "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                  },
                  "file_name": {
                    "type": "string",
                    "title": "File Name",
                    "default": "",
                    "description": "Original attachment filename, when supplied by ChatGPT."
                  },
                  "mime_type": {
                    "type": "string",
                    "title": "Mime Type",
                    "default": "",
                    "description": "Attachment MIME type, when supplied by ChatGPT."
                  },
                  "download_url": {
                    "type": "string",
                    "title": "Download Url",
                    "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                  }
                },
                "description": "Attach the first frame from ChatGPT for this input.",
                "additionalProperties": false
              },
              "start_seconds": {
                "type": "number",
                "format": "float",
                "example": 0,
                "minimum": 0,
                "description": "Start time of your clip (seconds). Must be ≥ 0."
              },
              "fps_resolution": {
                "enum": [
                  "FULL",
                  "HALF"
                ],
                "type": "string",
                "default": "HALF",
                "example": "HALF",
                "description": "Determines whether the resulting video will have the same frame per second as the original video, or half.\n* `FULL` - the result video will have the same FPS as the input video\n* `HALF` - the result video will have half the FPS as the input video"
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "id",
              "credits_charged"
            ],
            "properties": {
              "id": {
                "type": "string",
                "example": "cuid-example",
                "description": "Unique ID of the video. Use it with the [Get video Project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch status and downloads."
              },
              "credits_charged": {
                "type": "integer",
                "example": 450,
                "description": "The amount of credits deducted from your account to generate the video. If the status is not 'complete', this value is an estimate and may be adjusted upon completion based on the actual FPS of the output video. \n\nIf video generation fails, credits will be refunded, and this field will be updated to include the refund."
              }
            },
            "description": "Success"
          },
          "annotations": {
            "title": "Restyle video",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "get_image_project",
          "title": "Get image project",
          "description": "Returns an image project's status and, once complete, its download URLs. Use to check progress with the id from an image create tool. Read-only.",
          "inputSchema": {
            "type": "object",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "example": "cuid-example",
                "description": "Unique ID of the image project. This value is returned by all of the POST APIs that create an image."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "id",
              "name",
              "status",
              "image_count",
              "type",
              "created_at",
              "enabled",
              "credits_charged",
              "downloads",
              "error"
            ],
            "properties": {
              "id": {
                "type": "string",
                "example": "cuid-example",
                "description": "Unique ID of the image. Use it with the [Get image Project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch status and downloads."
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "example": "Example Name",
                "description": "The name of the image."
              },
              "type": {
                "type": "string",
                "example": "AI_IMAGE",
                "description": "The type of the image project. Possible values are FACE_EDITOR, AI_IMAGE_EDITOR, GENERATIVE_FILL, AI_SELFIE, AI_HEADSHOT, AI_INFLUENCER, AI_IMAGE, AI_MEME, CLOTHES_CHANGER, BACKGROUND_REMOVER, FACE_SWAP, IMAGE_UPSCALER, IMAGE_ENHANCER, AI_GIF, QR_CODE, PHOTO_EDITOR, PHOTO_COLORIZER, IMAGE_COLOR_GRADER, HEAD_SWAP, BODY_SWAP, STORYBOARD, IMAGE_EXPANDER"
              },
              "error": {
                "type": [
                  "object",
                  "null"
                ],
                "required": [
                  "message",
                  "code"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "example": "no_source_face",
                    "description": "An error code to indicate why a failure happened."
                  },
                  "message": {
                    "type": "string",
                    "example": "Please use an image with a detectable face",
                    "description": "Details on the reason why a failure happened."
                  }
                },
                "description": "In the case of an error, this object will contain the error encountered during video render"
              },
              "status": {
                "enum": [
                  "draft",
                  "queued",
                  "rendering",
                  "complete",
                  "error",
                  "canceled"
                ],
                "type": "string",
                "example": "complete",
                "description": "The status of the image.\n\n- `draft` - the project was created but has not been submitted for rendering\n- `queued` - the job is waiting for an available server\n- `rendering` - the job is being processed; the `image.started` webhook event fires when rendering begins\n- `complete` - the job finished successfully; fires `image.completed`\n- `error` - the job failed during processing; fires `image.errored`\n- `canceled` - the job was manually canceled (for example from the Magic Hour web app)\n\n**Note:** `rendering`, `complete`, and `error` have matching webhook events; `canceled` does not - a canceled job emits no webhook event, so poll this endpoint to detect cancellation."
              },
              "enabled": {
                "type": "boolean",
                "description": "Whether this resource is active. If false, it is deleted."
              },
              "downloads": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "url",
                    "expires_at"
                  ],
                  "properties": {
                    "url": {
                      "type": "string",
                      "format": "uri",
                      "example": "https://videos.magichour.ai/id/output.png"
                    },
                    "expires_at": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2024-10-19T05:16:19.027Z"
                    }
                  },
                  "description": "The download url and expiration date of the image project"
                }
              },
              "created_at": {
                "type": "string",
                "format": "date-time"
              },
              "image_count": {
                "type": "integer",
                "example": 1,
                "description": "Number of images generated"
              },
              "credits_charged": {
                "type": "integer",
                "example": 5,
                "description": "The amount of credits deducted from your account to generate the image. We charge credits right when the request is made. \n\nIf an error occurred while generating the image(s), credits will be refunded and this field will be updated to include the refund."
              }
            },
            "description": "Success"
          },
          "annotations": {
            "title": "Get image project",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "delete_image_project",
          "title": "Delete image project",
          "description": "Deletes the image project and attempts to delete its completed output. Cannot be undone; confirm with the user first.",
          "inputSchema": {
            "type": "object",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "example": "cuid-example",
                "description": "Unique ID of the image project. This value is returned by all of the POST APIs that create an image."
              }
            }
          },
          "annotations": {
            "title": "Delete image project",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "change_clothes_in_photo",
          "title": "Change clothes in photo",
          "description": "Use only with the user's own likeness or content they are authorized to use. Do not use for impersonation, deception, sexual content, or content involving minors.\n\nChanges clothing in a person photo using a supplied garment reference image. Costs 25 credits. Starts a background job; returns a project id for wait_for_image_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.",
          "inputSchema": {
            "type": "object",
            "allOf": [
              {
                "anyOf": [
                  {
                    "required": [
                      "person_image"
                    ]
                  },
                  {
                    "required": [
                      "assets"
                    ],
                    "properties": {
                      "assets": {
                        "required": [
                          "person_file_path"
                        ]
                      }
                    }
                  }
                ]
              },
              {
                "anyOf": [
                  {
                    "required": [
                      "garment_image"
                    ]
                  },
                  {
                    "required": [
                      "assets"
                    ],
                    "properties": {
                      "assets": {
                        "required": [
                          "garment_file_path"
                        ]
                      }
                    }
                  }
                ]
              }
            ],
            "properties": {
              "name": {
                "type": "string",
                "default": "Clothes Changer - dateTime",
                "example": "My Clothes Changer image",
                "description": "Optional project name for identifying this output. Omit to use the API's default project name."
              },
              "assets": {
                "type": "object",
                "properties": {
                  "garment_type": {
                    "enum": [
                      "entire_outfit",
                      "upper_body",
                      "lower_body",
                      "dresses"
                    ],
                    "type": "string",
                    "example": "entire_outfit",
                    "description": "Type of clothing item to swap. If not provided, swaps the entire outfit. \n* `upper_body` - for shirts/jackets \n* `lower_body` - for pants/skirts \n* `dresses` - for entire outfit (deprecated, use `entire_outfit` instead) \n* `entire_outfit` - for entire outfit"
                  },
                  "person_file_path": {
                    "type": "string",
                    "example": "api-assets/id/model.png",
                    "minLength": 1,
                    "description": "The image with the person. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n"
                  },
                  "garment_file_path": {
                    "type": "string",
                    "example": "api-assets/id/outfit.png",
                    "minLength": 1,
                    "description": "The image of the outfit. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n"
                  }
                },
                "description": "Provide the assets for clothes changer"
              },
              "person_image": {
                "type": "object",
                "title": "ChatGPTFile",
                "required": [
                  "download_url",
                  "file_id"
                ],
                "properties": {
                  "file_id": {
                    "type": "string",
                    "title": "File Id",
                    "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                  },
                  "file_name": {
                    "type": "string",
                    "title": "File Name",
                    "default": "",
                    "description": "Original attachment filename, when supplied by ChatGPT."
                  },
                  "mime_type": {
                    "type": "string",
                    "title": "Mime Type",
                    "default": "",
                    "description": "Attachment MIME type, when supplied by ChatGPT."
                  },
                  "download_url": {
                    "type": "string",
                    "title": "Download Url",
                    "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                  }
                },
                "description": "Attach the person image from ChatGPT for this input.",
                "additionalProperties": false
              },
              "garment_image": {
                "type": "object",
                "title": "ChatGPTFile",
                "required": [
                  "download_url",
                  "file_id"
                ],
                "properties": {
                  "file_id": {
                    "type": "string",
                    "title": "File Id",
                    "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                  },
                  "file_name": {
                    "type": "string",
                    "title": "File Name",
                    "default": "",
                    "description": "Original attachment filename, when supplied by ChatGPT."
                  },
                  "mime_type": {
                    "type": "string",
                    "title": "Mime Type",
                    "default": "",
                    "description": "Attachment MIME type, when supplied by ChatGPT."
                  },
                  "download_url": {
                    "type": "string",
                    "title": "Download Url",
                    "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                  }
                },
                "description": "Attach the garment image from ChatGPT for this input.",
                "additionalProperties": false
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "id",
              "credits_charged"
            ],
            "properties": {
              "id": {
                "type": "string",
                "example": "cuid-example",
                "description": "Unique ID of the image. Use it with the [Get image Project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch status and downloads."
              },
              "credits_charged": {
                "type": "integer",
                "example": 25,
                "description": "The amount of credits deducted from your account to generate the image. We charge credits right when the request is made. \n\nIf an error occurred while generating the image(s), credits will be refunded and this field will be updated to include the refund."
              }
            },
            "description": "Success"
          },
          "annotations": {
            "title": "Change clothes in photo",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "edit_face_in_photo",
          "title": "Edit face in photo",
          "description": "Adjusts facial expression, pose and gaze in a supplied photo using numeric controls. Costs 1 credit per edit; output size depends on the subscription tier. Starts a background job; returns a project id for wait_for_image_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.",
          "inputSchema": {
            "type": "object",
            "anyOf": [
              {
                "required": [
                  "image"
                ]
              },
              {
                "required": [
                  "assets"
                ],
                "properties": {
                  "assets": {
                    "required": [
                      "image_file_path"
                    ]
                  }
                }
              }
            ],
            "required": [
              "style"
            ],
            "properties": {
              "name": {
                "type": "string",
                "default": "Face Editor - dateTime",
                "example": "My Face Editor image",
                "description": "Optional project name for identifying this output. Omit to use the API's default project name."
              },
              "image": {
                "type": "object",
                "title": "ChatGPTFile",
                "required": [
                  "download_url",
                  "file_id"
                ],
                "properties": {
                  "file_id": {
                    "type": "string",
                    "title": "File Id",
                    "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                  },
                  "file_name": {
                    "type": "string",
                    "title": "File Name",
                    "default": "",
                    "description": "Original attachment filename, when supplied by ChatGPT."
                  },
                  "mime_type": {
                    "type": "string",
                    "title": "Mime Type",
                    "default": "",
                    "description": "Attachment MIME type, when supplied by ChatGPT."
                  },
                  "download_url": {
                    "type": "string",
                    "title": "Download Url",
                    "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                  }
                },
                "description": "Attach the image from ChatGPT for this input.",
                "additionalProperties": false
              },
              "style": {
                "type": "object",
                "properties": {
                  "head_yaw": {
                    "type": "number",
                    "default": 0,
                    "example": 0,
                    "maximum": 100,
                    "minimum": -100,
                    "multipleOf": 5,
                    "description": "Head yaw (-100 to 100), in increments of 5"
                  },
                  "head_roll": {
                    "type": "number",
                    "default": 0,
                    "example": 0,
                    "maximum": 100,
                    "minimum": -100,
                    "multipleOf": 5,
                    "description": "Head roll (-100 to 100), in increments of 5"
                  },
                  "head_pitch": {
                    "type": "number",
                    "default": 0,
                    "example": 0,
                    "maximum": 100,
                    "minimum": -100,
                    "multipleOf": 5,
                    "description": "Head pitch (-100 to 100), in increments of 5"
                  },
                  "mouth_grim": {
                    "type": "number",
                    "default": 0,
                    "example": 0,
                    "maximum": 100,
                    "minimum": -100,
                    "multipleOf": 5,
                    "description": "Mouth grim (-100 to 100), in increments of 5"
                  },
                  "mouth_pout": {
                    "type": "number",
                    "default": 0,
                    "example": 0,
                    "maximum": 100,
                    "minimum": -100,
                    "multipleOf": 5,
                    "description": "Mouth pout (-100 to 100), in increments of 5"
                  },
                  "mouth_purse": {
                    "type": "number",
                    "default": 0,
                    "example": 0,
                    "maximum": 100,
                    "minimum": -100,
                    "multipleOf": 5,
                    "description": "Mouth purse (-100 to 100), in increments of 5"
                  },
                  "mouth_smile": {
                    "type": "number",
                    "default": 0,
                    "example": 0,
                    "maximum": 100,
                    "minimum": -100,
                    "multipleOf": 5,
                    "description": "Mouth smile (-100 to 100), in increments of 5"
                  },
                  "enhance_face": {
                    "type": "boolean",
                    "default": false,
                    "example": false,
                    "description": "Enhance face features"
                  },
                  "eye_open_ratio": {
                    "type": "number",
                    "default": 0,
                    "example": 0,
                    "maximum": 100,
                    "minimum": -100,
                    "multipleOf": 5,
                    "description": "Eye open ratio (-100 to 100), in increments of 5"
                  },
                  "lip_open_ratio": {
                    "type": "number",
                    "default": 0,
                    "example": 0,
                    "maximum": 100,
                    "minimum": -100,
                    "multipleOf": 5,
                    "description": "Lip open ratio (-100 to 100), in increments of 5"
                  },
                  "eye_gaze_vertical": {
                    "type": "number",
                    "default": 0,
                    "example": 0,
                    "maximum": 100,
                    "minimum": -100,
                    "multipleOf": 5,
                    "description": "Vertical eye gaze (-100 to 100), in increments of 5"
                  },
                  "eyebrow_direction": {
                    "type": "number",
                    "default": 0,
                    "example": 0,
                    "maximum": 100,
                    "minimum": -100,
                    "multipleOf": 5,
                    "description": "Eyebrow direction (-100 to 100), in increments of 5"
                  },
                  "eye_gaze_horizontal": {
                    "type": "number",
                    "default": 0,
                    "example": 0,
                    "maximum": 100,
                    "minimum": -100,
                    "multipleOf": 5,
                    "description": "Horizontal eye gaze (-100 to 100), in increments of 5"
                  },
                  "mouth_position_vertical": {
                    "type": "number",
                    "default": 0,
                    "example": 0,
                    "maximum": 100,
                    "minimum": -100,
                    "multipleOf": 5,
                    "description": "Vertical mouth position (-100 to 100), in increments of 5"
                  },
                  "mouth_position_horizontal": {
                    "type": "number",
                    "default": 0,
                    "example": 0,
                    "maximum": 100,
                    "minimum": -100,
                    "multipleOf": 5,
                    "description": "Horizontal mouth position (-100 to 100), in increments of 5"
                  }
                },
                "description": "Face editing parameters"
              },
              "assets": {
                "type": "object",
                "properties": {
                  "image_file_path": {
                    "type": "string",
                    "example": "api-assets/id/1234.png",
                    "minLength": 1,
                    "description": "This is the image whose face will be edited. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n"
                  }
                },
                "description": "Provide the assets for face editor"
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "id",
              "credits_charged"
            ],
            "properties": {
              "id": {
                "type": "string",
                "example": "cuid-example",
                "description": "Unique ID of the image. Use it with the [Get image Project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch status and downloads."
              },
              "credits_charged": {
                "type": "integer",
                "example": 1,
                "description": "The amount of credits deducted from your account to generate the image. We charge credits right when the request is made. \n\nIf an error occurred while generating the image(s), credits will be refunded and this field will be updated to include the refund."
              }
            },
            "description": "Success"
          },
          "annotations": {
            "title": "Edit face in photo",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "create_gif_or_short_video",
          "title": "Create GIF or short video",
          "description": "Generates a short animation from a text prompt, with GIF, MP4 or WebM output. Costs 50 credits. Starts a background job; returns a project id for wait_for_image_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable.",
          "inputSchema": {
            "type": "object",
            "required": [
              "style"
            ],
            "properties": {
              "name": {
                "type": "string",
                "default": "Ai Gif - dateTime",
                "example": "My Ai Gif gif",
                "description": "Optional project name for identifying this output. Omit to use the API's default project name."
              },
              "style": {
                "type": "object",
                "required": [
                  "prompt"
                ],
                "properties": {
                  "prompt": {
                    "type": "string",
                    "example": "Cute dancing cat, pixel art",
                    "maxLength": 4000,
                    "minLength": 1,
                    "description": "The prompt used for the GIF."
                  }
                },
                "description": "Text instructions for the animation's subject, appearance and motion."
              },
              "output_format": {
                "enum": [
                  "gif",
                  "mp4",
                  "webm"
                ],
                "type": "string",
                "default": "gif",
                "example": "gif",
                "description": "The output file format for the generated animation."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "id",
              "credits_charged"
            ],
            "properties": {
              "id": {
                "type": "string",
                "example": "cuid-example",
                "description": "Unique ID of the image. Use it with the [Get image Project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch status and downloads."
              },
              "credits_charged": {
                "type": "integer",
                "example": 50,
                "description": "The amount of credits deducted from your account to generate the image. We charge credits right when the request is made. \n\nIf an error occurred while generating the image(s), credits will be refunded and this field will be updated to include the refund."
              }
            },
            "description": "Success"
          },
          "annotations": {
            "title": "Create GIF or short video",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "edit_image",
          "title": "Edit image",
          "description": "Edits one or more supplied images using a text prompt. For prompt-only creation use generate_image. Costs credits; returns a project id for wait_for_image_project. Model eligibility depends on the account plan. Read get_account_info first; do not assume an API default is eligible. For a Free account with no requested model, flux-2-klein at 640px with image_count=1 is an available option when it supports the supplied inputs and requested edit. Check the current model's input limits; never drop references or change an explicit model, resolution or count to fit this option. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.",
          "inputSchema": {
            "type": "object",
            "anyOf": [
              {
                "required": [
                  "assets"
                ]
              },
              {
                "required": [
                  "images"
                ]
              }
            ],
            "required": [
              "style"
            ],
            "properties": {
              "name": {
                "type": "string",
                "default": "Ai Image Editor - dateTime",
                "example": "My Ai Image Editor image",
                "description": "Optional project name for identifying this output. Omit to use the API's default project name."
              },
              "model": {
                "enum": [
                  "default",
                  "qwen-image-2.1",
                  "gpt-image-2",
                  "flux-2-klein",
                  "flux-3-klein",
                  "nano-banana-pro",
                  "seedream-v5-pro",
                  "seedream-v5-flash",
                  "seedream-v4.5",
                  "nano-banana-2.1",
                  "qwen-edit",
                  "nano-banana-2-lite",
                  "krea-2",
                  "gpt-image-2.5-flare",
                  "seedream-v4",
                  "nano-banana",
                  "nano-banana-2"
                ],
                "type": "string",
                "example": "flux-2-klein",
                "description": "If the user asks for a resolution, pick a model whose supported resolutions include it. `default` is nano-banana on paid plans. The API chooses and validates the default model for the account's plan. The AI model to use for image editing. Each model has different capabilities and costs.\n\n**Models:**\n- `default` - Uses the server-selected default model, which may change over time.\n- `flux-2-klein` - from 5 credits/image\n  - Supported resolutions: 640px, 1k, 2k\n  - Available for tiers: free, creator, pro, business\n  - Max additional input images: 5\n- `flux-3-klein` - from 5 credits/image\n  - Supported resolutions: 640px, 1k, 2k\n  - Available for tiers: free, creator, pro, business\n  - Max additional input images: 1\n- `gpt-image-2` - from 50 credits/image\n  - Supported resolutions: 640px, 1k, 2k, 4k\n  - Available for tiers: creator, pro, business\n  - Max additional input images: 9\n- `gpt-image-2.5-flare` - from 100 credits/image\n  - Supported resolutions: 640px, 1k, 2k, 4k\n  - Available for tiers: creator, pro, business\n  - Max additional input images: 9\n- `krea-2` - from 10 credits/image\n  - Supported resolutions: 640px, 1k\n  - Available for tiers: free, creator, pro, business\n  - Max additional input images: 1\n- `nano-banana` - from 50 credits/image\n  - Supported resolutions: 640px, 1k\n  - Available for tiers: creator, pro, business\n  - Max additional input images: 9\n- `nano-banana-2-lite` - from 50 credits/image\n  - Supported resolutions: 640px, 1k\n  - Available for tiers: creator, pro, business\n  - Max additional input images: 9\n- `nano-banana-2.1` - from 50 credits/image\n  - Supported resolutions: 640px, 1k, 2k, 4k\n  - Available for tiers: creator, pro, business\n  - Max additional input images: 9\n- `nano-banana-pro` - from 150 credits/image\n  - Supported resolutions: 1k, 2k, 4k\n  - Available for tiers: creator, pro, business\n  - Max additional input images: 9\n- `qwen-edit` - from 10 credits/image\n  - Supported resolutions: 640px, 1k, 2k\n  - Available for tiers: free, creator, pro, business\n  - Max additional input images: 2\n- `qwen-image-2.1` - from 10 credits/image\n  - Supported resolutions: 640px, 1k, 2k\n  - Available for tiers: free, creator, pro, business\n  - Max additional input images: 2\n- `seedream-v4` - from 40 credits/image\n  - Supported resolutions: 640px, 1k, 2k, 4k\n  - Available for tiers: creator, pro, business\n  - Max additional input images: 9\n- `seedream-v4.5` - from 50 credits/image\n  - Supported resolutions: 640px, 1k, 2k, 4k\n  - Available for tiers: creator, pro, business\n  - Max additional input images: 9\n- `seedream-v5-flash` - from 30 credits/image\n  - Supported resolutions: 640px, 1k, 2k\n  - Available for tiers: creator, pro, business\n  - Max additional input images: 9\n- `seedream-v5-pro` - from 75 credits/image\n  - Supported resolutions: 640px, 1k, 2k\n  - Available for tiers: creator, pro, business\n  - Max additional input images: 9\n"
              },
              "style": {
                "type": "object",
                "required": [
                  "prompt"
                ],
                "properties": {
                  "prompt": {
                    "type": "string",
                    "example": "Give me sunglasses",
                    "maxLength": 15000,
                    "minLength": 1,
                    "description": "The prompt used to edit the image."
                  }
                },
                "description": "Text instructions describing the edits to make to the supplied images."
              },
              "assets": {
                "type": "object",
                "properties": {
                  "image_file_paths": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    },
                    "example": [
                      "api-assets/id/1234.png",
                      "api-assets/id/1235.png"
                    ],
                    "maxItems": 10,
                    "description": "The image(s) used in the edit, maximum of 10 images. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n"
                  }
                },
                "description": "Provide the assets for image edit"
              },
              "images": {
                "type": "array",
                "items": {
                  "type": "object",
                  "title": "ChatGPTFile",
                  "required": [
                    "download_url",
                    "file_id"
                  ],
                  "properties": {
                    "file_id": {
                      "type": "string",
                      "title": "File Id",
                      "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                    },
                    "file_name": {
                      "type": "string",
                      "title": "File Name",
                      "default": "",
                      "description": "Original attachment filename, when supplied by ChatGPT."
                    },
                    "mime_type": {
                      "type": "string",
                      "title": "Mime Type",
                      "default": "",
                      "description": "Attachment MIME type, when supplied by ChatGPT."
                    },
                    "download_url": {
                      "type": "string",
                      "title": "Download Url",
                      "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 10,
                "minItems": 1,
                "description": "Attach the images from ChatGPT for this input. Keep the files in the order the user requested."
              },
              "resolution": {
                "enum": [
                  "auto",
                  "640px",
                  "1k",
                  "2k",
                  "4k"
                ],
                "type": "string",
                "example": "640px",
                "description": "Maximum resolution (longest edge) for the output image.\n\n**Options:**\n- `640px` — up to 640px\n- `1k` — up to 1024px\n- `2k` — up to 2048px\n- `4k` — up to 4096px\n- `auto` — **Deprecated.** Mapped server-side from your subscription tier to the best matching resolution the model supports\n\n**Per-model support:**\n- `flux-2-klein` - 640px, 1k, 2k\n- `flux-3-klein` - 640px, 1k, 2k\n- `gpt-image-2` - 640px, 1k, 2k, 4k\n- `gpt-image-2.5-flare` - 640px, 1k, 2k, 4k\n- `krea-2` - 640px, 1k\n- `nano-banana` - 640px, 1k\n- `nano-banana-2-lite` - 640px, 1k\n- `nano-banana-2.1` - 640px, 1k, 2k, 4k\n- `nano-banana-pro` - 1k, 2k, 4k\n- `qwen-edit` - 640px, 1k, 2k\n- `qwen-image-2.1` - 640px, 1k, 2k\n- `seedream-v4` - 640px, 1k, 2k, 4k\n- `seedream-v4.5` - 640px, 1k, 2k, 4k\n- `seedream-v5-flash` - 640px, 1k, 2k\n- `seedream-v5-pro` - 640px, 1k, 2k\n\nNote: Resolution availability depends on the model and your subscription tier."
              },
              "image_count": {
                "enum": [
                  1,
                  4,
                  9,
                  16
                ],
                "type": "number",
                "default": 1,
                "example": 1,
                "description": "Number of images to generate. Maximum varies by model. Defaults to 1 if not specified."
              },
              "aspect_ratio": {
                "enum": [
                  "auto",
                  "16:9",
                  "9:16",
                  "4:3",
                  "3:2",
                  "1:1",
                  "4:5",
                  "2:3"
                ],
                "type": "string",
                "example": "1:1",
                "description": "Keep an aspect ratio the user explicitly requests. Otherwise, choose by where the output will be used: 9:16 for TikTok, Reels, Shorts, Stories or a phone screen; 16:9 for YouTube, a website, slides or TV; 1:1 for an Instagram or Facebook feed post or a profile picture. If the user names a use but you can't tell its shape, ask. With no new use or shape requested, keep `auto` to match the source image.\n\nThe aspect ratio of the output image(s). If not specified, defaults to `auto`. Ignored for `krea-2` and `flux-2-klein` when an input image is provided; the output keeps the source image's aspect ratio."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "id",
              "credits_charged"
            ],
            "properties": {
              "id": {
                "type": "string",
                "example": "cuid-example",
                "description": "Unique ID of the image. Use it with the [Get image Project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch status and downloads."
              },
              "credits_charged": {
                "type": "integer",
                "example": 5,
                "description": "The amount of credits deducted from your account to generate the image. We charge credits right when the request is made. \n\nIf an error occurred while generating the image(s), credits will be refunded and this field will be updated to include the refund."
              }
            },
            "description": "Success"
          },
          "annotations": {
            "title": "Edit image",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "generate_headshot",
          "title": "Generate headshot",
          "description": "Creates a headshot from a supplied photo containing one detectable face, with optional appearance instructions. Costs 50 credits. Starts a background job; returns a project id for wait_for_image_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.",
          "inputSchema": {
            "type": "object",
            "anyOf": [
              {
                "required": [
                  "image"
                ]
              },
              {
                "required": [
                  "assets"
                ],
                "properties": {
                  "assets": {
                    "required": [
                      "image_file_path"
                    ]
                  }
                }
              }
            ],
            "properties": {
              "name": {
                "type": "string",
                "default": "Ai Headshot - dateTime",
                "example": "My Ai Headshot image",
                "description": "Optional project name for identifying this output. Omit to use the API's default project name."
              },
              "image": {
                "type": "object",
                "title": "ChatGPTFile",
                "required": [
                  "download_url",
                  "file_id"
                ],
                "properties": {
                  "file_id": {
                    "type": "string",
                    "title": "File Id",
                    "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                  },
                  "file_name": {
                    "type": "string",
                    "title": "File Name",
                    "default": "",
                    "description": "Original attachment filename, when supplied by ChatGPT."
                  },
                  "mime_type": {
                    "type": "string",
                    "title": "Mime Type",
                    "default": "",
                    "description": "Attachment MIME type, when supplied by ChatGPT."
                  },
                  "download_url": {
                    "type": "string",
                    "title": "Download Url",
                    "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                  }
                },
                "description": "Attach the image from ChatGPT for this input.",
                "additionalProperties": false
              },
              "style": {
                "type": "object",
                "properties": {
                  "prompt": {
                    "type": "string",
                    "example": "Professional studio headshot with soft lighting and a neutral background",
                    "description": "Prompt used to guide the style of your headshot. We recommend omitting the prompt unless you want to customize your headshot. You can visit [AI headshot generator](https://magichour.ai/create/ai-headshot-generator) to view an example of a good prompt used for our 'Professional' style."
                  }
                },
                "description": "Optional headshot appearance instructions. Omit the prompt for the API's default style."
              },
              "assets": {
                "type": "object",
                "properties": {
                  "image_file_path": {
                    "type": "string",
                    "example": "api-assets/id/1234.png",
                    "minLength": 1,
                    "description": "The image used to generate the headshot. This image must contain one detectable face. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n"
                  }
                },
                "description": "Provide the assets for headshot photo"
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "id",
              "credits_charged"
            ],
            "properties": {
              "id": {
                "type": "string",
                "example": "cuid-example",
                "description": "Unique ID of the image. Use it with the [Get image Project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch status and downloads."
              },
              "credits_charged": {
                "type": "integer",
                "example": 50,
                "description": "The amount of credits deducted from your account to generate the image. We charge credits right when the request is made. \n\nIf an error occurred while generating the image(s), credits will be refunded and this field will be updated to include the refund."
              }
            },
            "description": "Success"
          },
          "annotations": {
            "title": "Generate headshot",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "generate_image",
          "title": "Generate image",
          "description": "Generates one or more images from a text prompt, with model, output size and image count options. Costs credits; returns a project id for wait_for_image_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable.",
          "inputSchema": {
            "type": "object",
            "required": [
              "image_count",
              "style"
            ],
            "properties": {
              "name": {
                "type": "string",
                "default": "Ai Image - dateTime",
                "example": "My Ai Image image",
                "description": "Optional project name for identifying this output. Omit to use the API's default project name."
              },
              "model": {
                "enum": [
                  "default",
                  "z-image-turbo",
                  "gpt-image-2",
                  "qwen-image-2.1",
                  "flux-2-klein",
                  "flux-3-klein",
                  "nano-banana-2.1",
                  "nano-banana-pro",
                  "krea-2",
                  "seedream-v5-pro",
                  "seedream-v5-flash",
                  "seedream-v4.5",
                  "nano-banana-2-lite",
                  "gpt-image-2.5-flare",
                  "seedream-v4",
                  "nano-banana",
                  "flux-schnell",
                  "seedream",
                  "nano-banana-2"
                ],
                "type": "string",
                "example": "z-image-turbo",
                "description": "When the user has not requested a model, use `default` rather than selecting a premium model. Preserve an explicit model. If the user asks for a resolution, pick a model whose supported resolutions include it. `default` is z-image-turbo, which supports only 640px, 1k, 2k; for anything higher, choose a model that lists it. The AI model to use for image generation. Each model has different capabilities and costs.\n\n**Models:**\n- `default` - Uses the server-selected default model, which may change over time.\n- `flux-2-klein` - from 5 credits/image\n  - Supported resolutions: 640px, 1k, 2k\n  - Available for tiers: free, creator, pro, business\n  - Image count allowed: 1\n- `flux-3-klein` - from 5 credits/image\n  - Supported resolutions: 640px, 1k, 2k\n  - Available for tiers: free, creator, pro, business\n  - Image count allowed: 1, 2, 3, 4\n- `flux-schnell` - from 5 credits/image\n  - Supported resolutions: 640px, 1k, 2k\n  - Available for tiers: free, creator, pro, business\n  - Image count allowed: 1, 2, 3, 4\n- `gpt-image-2` - from 50 credits/image\n  - Supported resolutions: 640px, 1k, 2k, 4k\n  - Available for tiers: creator, pro, business\n  - Image count allowed: 1, 2, 3, 4\n- `gpt-image-2.5-flare` - from 100 credits/image\n  - Supported resolutions: 640px, 1k, 2k, 4k\n  - Available for tiers: creator, pro, business\n  - Image count allowed: 1, 2, 3, 4\n- `krea-2` - from 10 credits/image\n  - Supported resolutions: 640px, 1k\n  - Available for tiers: free, creator, pro, business\n  - Image count allowed: 1\n- `nano-banana` - from 50 credits/image\n  - Supported resolutions: 640px, 1k\n  - Available for tiers: creator, pro, business\n  - Image count allowed: 1, 2, 3, 4\n- `nano-banana-2-lite` - from 50 credits/image\n  - Supported resolutions: 640px, 1k\n  - Available for tiers: creator, pro, business\n  - Image count allowed: 1, 2, 3, 4\n- `nano-banana-2.1` - from 50 credits/image\n  - Supported resolutions: 640px, 1k, 2k, 4k\n  - Available for tiers: creator, pro, business\n  - Image count allowed: 1, 4, 9, 16\n- `nano-banana-pro` - from 150 credits/image\n  - Supported resolutions: 1k, 2k, 4k\n  - Available for tiers: creator, pro, business\n  - Image count allowed: 1, 4, 9, 16\n- `qwen-image-2.1` - from 10 credits/image\n  - Supported resolutions: 640px, 1k, 2k\n  - Available for tiers: free, creator, pro, business\n  - Image count allowed: 1, 2, 3, 4\n- `seedream-v4` - from 40 credits/image\n  - Supported resolutions: 640px, 1k, 2k, 4k\n  - Available for tiers: creator, pro, business\n  - Image count allowed: 1, 2, 3, 4\n- `seedream-v4.5` - from 50 credits/image\n  - Supported resolutions: 640px, 1k, 2k, 4k\n  - Available for tiers: creator, pro, business\n  - Image count allowed: 1, 2, 3, 4\n- `seedream-v5-flash` - from 30 credits/image\n  - Supported resolutions: 640px, 1k, 2k\n  - Available for tiers: creator, pro, business\n  - Image count allowed: 1, 2, 3, 4\n- `seedream-v5-pro` - from 75 credits/image\n  - Supported resolutions: 640px, 1k, 2k\n  - Available for tiers: creator, pro, business\n  - Image count allowed: 1, 2, 3, 4\n- `z-image-turbo` - from 5 credits/image\n  - Supported resolutions: 640px, 1k, 2k\n  - Available for tiers: free, creator, pro, business\n  - Image count allowed: 1, 2, 3, 4\n\n**Deprecated Enum Values:**\n- `seedream` - Use `seedream-v4` instead.\n"
              },
              "style": {
                "type": "object",
                "required": [
                  "prompt"
                ],
                "properties": {
                  "tool": {
                    "enum": [
                      "ai-anime-generator",
                      "ai-art-generator",
                      "ai-background-generator",
                      "ai-character-generator",
                      "ai-face-generator",
                      "ai-fashion-generator",
                      "ai-icon-generator",
                      "ai-illustration-generator",
                      "ai-interior-design-generator",
                      "ai-landscape-generator",
                      "ai-logo-generator",
                      "ai-manga-generator",
                      "ai-outfit-generator",
                      "ai-pattern-generator",
                      "ai-photo-generator",
                      "ai-sketch-generator",
                      "ai-tattoo-generator",
                      "album-cover-generator",
                      "animated-characters-generator",
                      "architecture-generator",
                      "book-cover-generator",
                      "comic-book-generator",
                      "dark-fantasy-ai",
                      "disney-ai-generator",
                      "dnd-ai-art-generator",
                      "emoji-generator",
                      "fantasy-map-generator",
                      "graffiti-generator",
                      "movie-poster-generator",
                      "optical-illusion-generator",
                      "pokemon-generator",
                      "south-park-character-generator",
                      "superhero-generator",
                      "thumbnail-maker",
                      "general"
                    ],
                    "type": "string",
                    "default": "general",
                    "example": "ai-anime-generator",
                    "description": "The art style to use for image generation. Defaults to 'general' if not provided."
                  },
                  "prompt": {
                    "type": "string",
                    "example": "Cool image",
                    "minLength": 1,
                    "description": "The prompt used for the image(s)."
                  }
                },
                "description": "The art style to use for image generation."
              },
              "resolution": {
                "enum": [
                  "auto",
                  "640px",
                  "1k",
                  "2k",
                  "4k"
                ],
                "type": "string",
                "default": "auto",
                "example": "640px",
                "description": "Maximum resolution (longest edge) for the output image.\n\n**Options:**\n- `640px` — up to 640px\n- `1k` — up to 1024px\n- `2k` — up to 2048px\n- `4k` — up to 4096px\n- `auto` — **Deprecated.** Mapped server-side from your subscription tier to the best matching resolution the model supports\n\n**Per-model support:**\n- `flux-2-klein` - 640px, 1k, 2k\n- `flux-3-klein` - 640px, 1k, 2k\n- `flux-schnell` - 640px, 1k, 2k\n- `gpt-image-2` - 640px, 1k, 2k, 4k\n- `gpt-image-2.5-flare` - 640px, 1k, 2k, 4k\n- `krea-2` - 640px, 1k\n- `nano-banana` - 640px, 1k\n- `nano-banana-2-lite` - 640px, 1k\n- `nano-banana-2.1` - 640px, 1k, 2k, 4k\n- `nano-banana-pro` - 1k, 2k, 4k\n- `qwen-image-2.1` - 640px, 1k, 2k\n- `seedream-v4` - 640px, 1k, 2k, 4k\n- `seedream-v4.5` - 640px, 1k, 2k, 4k\n- `seedream-v5-flash` - 640px, 1k, 2k\n- `seedream-v5-pro` - 640px, 1k, 2k\n- `z-image-turbo` - 640px, 1k, 2k\n\nNote: Resolution availability depends on the model and your subscription tier."
              },
              "image_count": {
                "type": "integer",
                "example": 1,
                "maximum": 16,
                "minimum": 1,
                "description": "Number of images to generate. Maximum varies by model."
              },
              "aspect_ratio": {
                "enum": [
                  "1:1",
                  "16:9",
                  "9:16"
                ],
                "type": "string",
                "example": "1:1",
                "description": "Keep an aspect ratio the user explicitly requests. Otherwise, choose by where the output will be used: 9:16 for TikTok, Reels, Shorts, Stories or a phone screen; 16:9 for YouTube, a website, slides or TV; 1:1 for an Instagram or Facebook feed post or a profile picture. If the user names a use but you can't tell its shape, ask. With no use mentioned, omit this for a 1:1 image.\n\nThe aspect ratio of the output image(s). If not specified, defaults to `1:1` (square)."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "id",
              "credits_charged"
            ],
            "properties": {
              "id": {
                "type": "string",
                "example": "cuid-example",
                "description": "Unique ID of the image. Use it with the [Get image Project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch status and downloads."
              },
              "credits_charged": {
                "type": "integer",
                "example": 5,
                "description": "The amount of credits deducted from your account to generate the image. We charge credits right when the request is made. \n\nIf an error occurred while generating the image(s), credits will be refunded and this field will be updated to include the refund."
              }
            },
            "description": "Success"
          },
          "annotations": {
            "title": "Generate image",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "upscale_image",
          "title": "Upscale image",
          "description": "Upscales a supplied image 2x or 4x. Cost depends on scale and mode (25-200 credits); returns a project id for wait_for_image_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.",
          "inputSchema": {
            "type": "object",
            "anyOf": [
              {
                "required": [
                  "image"
                ]
              },
              {
                "required": [
                  "assets"
                ],
                "properties": {
                  "assets": {
                    "required": [
                      "image_file_path"
                    ]
                  }
                }
              }
            ],
            "required": [
              "scale_factor"
            ],
            "properties": {
              "name": {
                "type": "string",
                "default": "Image Upscaler - dateTime",
                "example": "My Image Upscaler image",
                "description": "Optional project name for identifying this output. Omit to use the API's default project name."
              },
              "image": {
                "type": "object",
                "title": "ChatGPTFile",
                "required": [
                  "download_url",
                  "file_id"
                ],
                "properties": {
                  "file_id": {
                    "type": "string",
                    "title": "File Id",
                    "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                  },
                  "file_name": {
                    "type": "string",
                    "title": "File Name",
                    "default": "",
                    "description": "Original attachment filename, when supplied by ChatGPT."
                  },
                  "mime_type": {
                    "type": "string",
                    "title": "Mime Type",
                    "default": "",
                    "description": "Attachment MIME type, when supplied by ChatGPT."
                  },
                  "download_url": {
                    "type": "string",
                    "title": "Download Url",
                    "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                  }
                },
                "description": "Attach the image from ChatGPT for this input.",
                "additionalProperties": false
              },
              "style": {
                "type": "object",
                "default": {},
                "example": {
                  "mode": "preserve"
                },
                "properties": {
                  "mode": {
                    "enum": [
                      "pro",
                      "preserve",
                      "balanced",
                      "creative"
                    ],
                    "type": "string",
                    "example": "preserve",
                    "description": "The upscaling mode. `\"preserve\"` uses the fast pro pipeline (1× credit multiplier). `\"balanced\"` and `\"creative\"` use the creative pipeline (2× credit multiplier). `\"pro\"` is deprecated and maps to `\"preserve\"`. Defaults to `\"balanced\"`."
                  },
                  "prompt": {
                    "type": "string",
                    "example": "Enhance fine details and keep the image natural",
                    "description": "A prompt to guide the final image. Only used when mode is `creative`."
                  }
                },
                "description": "Style settings for the upscale. Use `mode` (`\"preserve\"`, `\"balanced\"`, or `\"creative\"`). Defaults to `\"balanced\"`."
              },
              "assets": {
                "type": "object",
                "properties": {
                  "image_file_path": {
                    "type": "string",
                    "example": "api-assets/id/1234.png",
                    "minLength": 1,
                    "description": "The image to upscale. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n. The maximum input image size is 4096x4096px."
                  }
                },
                "description": "Provide the assets for upscaling"
              },
              "scale_factor": {
                "type": "number",
                "example": 2,
                "description": "How much to scale the image. Must be either 2 or 4.\n            \nNote: 4x upscale is only available on Creator, Pro, or Business tier."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "id",
              "credits_charged"
            ],
            "properties": {
              "id": {
                "type": "string",
                "example": "cuid-example",
                "description": "Unique ID of the image. Use it with the [Get image Project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch status and downloads."
              },
              "credits_charged": {
                "type": "integer",
                "example": 25,
                "description": "The amount of credits deducted from your account to generate the image. We charge credits right when the request is made. \n\nIf an error occurred while generating the image(s), credits will be refunded and this field will be updated to include the refund."
              }
            },
            "description": "Success"
          },
          "annotations": {
            "title": "Upscale image",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "create_meme",
          "title": "Create meme",
          "description": "Creates a meme from a topic and template selection. Costs 10 credits. Starts a background job; returns a project id for wait_for_image_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable.",
          "inputSchema": {
            "type": "object",
            "required": [
              "style"
            ],
            "properties": {
              "name": {
                "type": "string",
                "example": "My Funny Meme",
                "description": "The name of the meme."
              },
              "style": {
                "type": "object",
                "required": [
                  "topic",
                  "template"
                ],
                "properties": {
                  "topic": {
                    "type": "string",
                    "example": "When the code finally works",
                    "maxLength": 200,
                    "minLength": 1,
                    "description": "The topic of the meme."
                  },
                  "template": {
                    "enum": [
                      "Random",
                      "Drake Hotline Bling",
                      "Galaxy Brain",
                      "Two Buttons",
                      "Gru's Plan",
                      "Tuxedo Winnie The Pooh",
                      "Is This a Pigeon",
                      "Panik Kalm Panik",
                      "Disappointed Guy",
                      "Waiting Skeleton",
                      "Bike Fall",
                      "Change My Mind",
                      "Side Eyeing Chloe",
                      "Woman Yelling at a Cat",
                      "Success Kid",
                      "One Does Not Simply",
                      "Bad Luck Brian",
                      "Futurama Fry",
                      "Ancient Aliens",
                      "Disaster Girl",
                      "Hide the Pain Harold",
                      "Distracted Boyfriend",
                      "Left Exit 12 Off Ramp",
                      "Running Away Balloon",
                      "Batman Slapping Robin",
                      "UNO Draw 25",
                      "Mocking SpongeBob",
                      "Boardroom Meeting Suggestion",
                      "X, X Everywhere",
                      "Buff Doge vs Cheems",
                      "Bernie Once Again Asking",
                      "Roll Safe Think About It",
                      "Blank Nut Button",
                      "Epic Handshake",
                      "Sad Pablo Escobar",
                      "Inhaling Seagull",
                      "Surprised Pikachu",
                      "Always Has Been",
                      "Scroll of Truth",
                      "Marked Safe From",
                      "Y'all Got Any More of That",
                      "Monkey Puppet",
                      "Oprah You Get A",
                      "They're the Same Picture",
                      "I Bet He's Thinking About Other Women",
                      "Evil Kermit",
                      "This Is Fine",
                      "This Is Where I'd Put My Trophy",
                      "Anakin Padme Four Panel",
                      "Who Killed Hannibal",
                      "Clown Applying Makeup",
                      "Trade Offer",
                      "Laughing Leo",
                      "Sleeping Shaq",
                      "Megamind Peeking",
                      "Grandma Finds the Internet",
                      "Doge",
                      "American Chopper Argument",
                      "First World Problems",
                      "Grumpy Cat",
                      "SpongeBob Ight Imma Head Out",
                      "But That's None of My Business",
                      "Creepy Condescending Wonka",
                      "Captain Picard Facepalm",
                      "Hard to Swallow Pills",
                      "Bell Curve",
                      "Absolute Cinema",
                      "You Guys Are Getting Paid",
                      "Types of Headaches",
                      "Mother Ignoring Kid Drowning in a Pool",
                      "Flex Tape",
                      "Spiderman Pointing at Spiderman",
                      "Charlie Conspiracy",
                      "Pawn Stars Best I Can Do",
                      "0 Days Without",
                      "Squidward Window",
                      "Where Monkey",
                      "Soldier Protecting Sleeping Child",
                      "They Don't Know",
                      "Spiderman Triple",
                      "Two Guys on a Bus",
                      "Imagination SpongeBob",
                      "All My Homies Hate",
                      "You Know I'm Something of a Scientist Myself",
                      "Anime Girl Hiding from Terminator",
                      "A Train Hitting a School Bus",
                      "AJ Styles and Undertaker",
                      "Three-Headed Dragon",
                      "Grant Gustin Over Grave",
                      "Whisper and Goosebumps",
                      "Scooby Doo Mask Reveal",
                      "Domino Effect",
                      "Two Paths",
                      "I'm the Captain Now",
                      "Say the Line Bart",
                      "Star Wars Yoda",
                      "Grim Reaper Knocking Door",
                      "Yo Dawg Heard You",
                      "Gus Fring We Are Not the Same",
                      "C'mon Do Something",
                      "Leonardo DiCaprio Cheers"
                    ],
                    "type": "string",
                    "example": "Drake Hotline Bling",
                    "description": "To use our templates, pass in one of the enum values."
                  },
                  "searchWeb": {
                    "type": "boolean",
                    "default": false,
                    "example": false,
                    "description": "Whether to search the web for meme content."
                  }
                },
                "description": "Meme topic, template and whether to search the web for content."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "id",
              "credits_charged"
            ],
            "properties": {
              "id": {
                "type": "string",
                "example": "cuid-example",
                "description": "Unique ID of the image. Use it with the [Get image Project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch status and downloads."
              },
              "credits_charged": {
                "type": "integer",
                "example": 10,
                "description": "The amount of credits deducted from your account to generate the image. We charge credits right when the request is made. \n\nIf an error occurred while generating the image(s), credits will be refunded and this field will be updated to include the refund."
              }
            },
            "description": "Success"
          },
          "annotations": {
            "title": "Create meme",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "create_qr_code",
          "title": "Create QR code",
          "description": "Creates a stylized QR code from supplied text or a URL and an art-style description. Currently costs 0 credits. Starts a background job; returns a project id for wait_for_image_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable.",
          "inputSchema": {
            "type": "object",
            "required": [
              "content",
              "style"
            ],
            "properties": {
              "name": {
                "type": "string",
                "default": "Qr Code - dateTime",
                "example": "My Qr Code image",
                "description": "Optional project name for identifying this output. Omit to use the API's default project name."
              },
              "style": {
                "type": "object",
                "required": [
                  "art_style"
                ],
                "properties": {
                  "art_style": {
                    "type": "string",
                    "example": "Watercolor",
                    "description": "To use our templates, pass in one of Watercolor, Cyberpunk City, Ink Landscape, Interior Painting, Japanese Street, Mech, Minecraft, Picasso Painting, Game Map, Spaceship, Chinese Painting, Winter Village, or pass any custom art style."
                  }
                },
                "description": "Visual art style for the QR code image."
              },
              "content": {
                "type": "string",
                "example": "https://magichour.ai",
                "description": "The content of the QR code."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "id",
              "credits_charged"
            ],
            "properties": {
              "id": {
                "type": "string",
                "example": "cuid-example",
                "description": "Unique ID of the image. Use it with the [Get image Project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch status and downloads."
              },
              "credits_charged": {
                "type": "integer",
                "example": 0,
                "description": "The amount of credits deducted from your account to generate the image. We charge credits right when the request is made. \n\nIf an error occurred while generating the image(s), credits will be refunded and this field will be updated to include the refund."
              }
            },
            "description": "Success"
          },
          "annotations": {
            "title": "Create QR code",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "place_person_in_scene",
          "title": "Place person in scene",
          "description": "Use only with the user's own likeness or content they are authorized to use. Do not use for impersonation, deception, sexual content, or content involving minors.\n\nPlaces a person from one supplied photo into a supplied scene image. Cost depends on resolution (from 50 credits at 640px); returns a project id for wait_for_image_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.",
          "inputSchema": {
            "type": "object",
            "allOf": [
              {
                "anyOf": [
                  {
                    "required": [
                      "person_image"
                    ]
                  },
                  {
                    "required": [
                      "assets"
                    ],
                    "properties": {
                      "assets": {
                        "required": [
                          "person_file_path"
                        ]
                      }
                    }
                  }
                ]
              },
              {
                "anyOf": [
                  {
                    "required": [
                      "scene_image"
                    ]
                  },
                  {
                    "required": [
                      "assets"
                    ],
                    "properties": {
                      "assets": {
                        "required": [
                          "scene_file_path"
                        ]
                      }
                    }
                  }
                ]
              }
            ],
            "required": [
              "resolution"
            ],
            "properties": {
              "name": {
                "type": "string",
                "default": "Body Swap - dateTime",
                "example": "My Body Swap image",
                "description": "Optional project name for identifying this output. Omit to use the API's default project name."
              },
              "assets": {
                "type": "object",
                "properties": {
                  "scene_file_path": {
                    "type": "string",
                    "example": "api-assets/id/5678.png",
                    "minLength": 1,
                    "description": "Original scene image (background). This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n"
                  },
                  "person_file_path": {
                    "type": "string",
                    "example": "api-assets/id/1234.png",
                    "minLength": 1,
                    "description": "Image of the person to place into the scene. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n"
                  }
                },
                "description": "Person image and scene image for body swap"
              },
              "resolution": {
                "enum": [
                  "640px",
                  "1k",
                  "2k",
                  "4k"
                ],
                "type": "string",
                "example": "640px",
                "description": "Output resolution. Determines credits charged for the run."
              },
              "scene_image": {
                "type": "object",
                "title": "ChatGPTFile",
                "required": [
                  "download_url",
                  "file_id"
                ],
                "properties": {
                  "file_id": {
                    "type": "string",
                    "title": "File Id",
                    "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                  },
                  "file_name": {
                    "type": "string",
                    "title": "File Name",
                    "default": "",
                    "description": "Original attachment filename, when supplied by ChatGPT."
                  },
                  "mime_type": {
                    "type": "string",
                    "title": "Mime Type",
                    "default": "",
                    "description": "Attachment MIME type, when supplied by ChatGPT."
                  },
                  "download_url": {
                    "type": "string",
                    "title": "Download Url",
                    "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                  }
                },
                "description": "Attach the scene image from ChatGPT for this input.",
                "additionalProperties": false
              },
              "person_image": {
                "type": "object",
                "title": "ChatGPTFile",
                "required": [
                  "download_url",
                  "file_id"
                ],
                "properties": {
                  "file_id": {
                    "type": "string",
                    "title": "File Id",
                    "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                  },
                  "file_name": {
                    "type": "string",
                    "title": "File Name",
                    "default": "",
                    "description": "Original attachment filename, when supplied by ChatGPT."
                  },
                  "mime_type": {
                    "type": "string",
                    "title": "Mime Type",
                    "default": "",
                    "description": "Attachment MIME type, when supplied by ChatGPT."
                  },
                  "download_url": {
                    "type": "string",
                    "title": "Download Url",
                    "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                  }
                },
                "description": "Attach the person image from ChatGPT for this input.",
                "additionalProperties": false
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "id",
              "credits_charged"
            ],
            "properties": {
              "id": {
                "type": "string",
                "example": "cuid-example",
                "description": "Unique ID of the image. Use it with the [Get image Project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch status and downloads."
              },
              "credits_charged": {
                "type": "integer",
                "example": 50,
                "description": "The amount of credits deducted from your account to generate the image. We charge credits right when the request is made. \n\nIf an error occurred while generating the image(s), credits will be refunded and this field will be updated to include the refund."
              }
            },
            "description": "Success"
          },
          "annotations": {
            "title": "Place person in scene",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "swap_face_in_photo",
          "title": "Swap face in photo",
          "description": "Use only with the user's own likeness or content they are authorized to use. Do not use for impersonation, deception, sexual content, or content involving minors.\n\nSwaps faces in a supplied photo using a source face image or selected face mappings. Costs 10 credits; output size depends on subscription. Returns a project id for wait_for_image_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.",
          "inputSchema": {
            "type": "object",
            "anyOf": [
              {
                "required": [
                  "target_image"
                ]
              },
              {
                "required": [
                  "assets"
                ],
                "properties": {
                  "assets": {
                    "required": [
                      "target_file_path"
                    ]
                  }
                }
              }
            ],
            "properties": {
              "name": {
                "type": "string",
                "default": "Face Swap - dateTime",
                "example": "My Face Swap image",
                "description": "Optional project name for identifying this output. Omit to use the API's default project name."
              },
              "assets": {
                "type": "object",
                "example": {
                  "face_swap_mode": "all-faces",
                  "source_file_path": "api-assets/id/1234.png",
                  "target_file_path": "api-assets/id/1234.png"
                },
                "properties": {
                  "face_mappings": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "oneOf": [
                        {
                          "required": [
                            "new_face"
                          ]
                        },
                        {
                          "required": [
                            "image_index"
                          ]
                        }
                      ],
                      "required": [
                        "original_face"
                      ],
                      "properties": {
                        "new_face": {
                          "type": "string",
                          "example": "api-assets/id/1234.png",
                          "description": "The face image that will be used to replace the face in the `original_face`. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n"
                        },
                        "image_index": {
                          "type": "integer",
                          "maximum": 5,
                          "minimum": 1,
                          "description": "Position in replacement_faces, starting at 1. Use exactly one attachment index or new_face."
                        },
                        "original_face": {
                          "type": "string",
                          "example": "api-assets/id/0-0.png",
                          "description": "The face detected from the image in `target_file_path`. The file name is in the format of `<face_frame>-<face_index>.png`. This value is corresponds to the response in the [face detection API](https://docs.magichour.ai/api-reference/files/get-face-detection-details).\n\n* The face_frame is the frame number of the face in the target image. For images, the frame number is always 0.\n* The face_index is the index of the face in the target image, starting from 0 going left to right."
                        }
                      }
                    },
                    "example": [
                      {
                        "new_face": "api-assets/id/1234.png",
                        "original_face": "api-assets/id/0-0.png"
                      }
                    ],
                    "maxItems": 5,
                    "description": "This is the array of face mappings used for multiple face swap. The value is required if `face_swap_mode` is `individual-faces`."
                  },
                  "face_swap_mode": {
                    "enum": [
                      "all-faces",
                      "individual-faces"
                    ],
                    "type": "string",
                    "default": "all-faces",
                    "example": "all-faces",
                    "description": "Choose which faces to swap. `all-faces` uses one source image for all detected faces (`source_file_path` required). `individual-faces` uses exact `face_mappings`."
                  },
                  "source_file_path": {
                    "type": "string",
                    "example": "api-assets/id/1234.png",
                    "minLength": 1,
                    "description": "This is the image from which the face is extracted. The value is required if `face_swap_mode` is `all-faces`.\n\nThis value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n"
                  },
                  "target_file_path": {
                    "type": "string",
                    "example": "api-assets/id/1234.png",
                    "minLength": 1,
                    "description": "This is the image where the face from the source image will be placed. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n"
                  }
                },
                "description": "Provide the assets for face swap photo"
              },
              "source_face": {
                "type": "object",
                "title": "ChatGPTFile",
                "required": [
                  "download_url",
                  "file_id"
                ],
                "properties": {
                  "file_id": {
                    "type": "string",
                    "title": "File Id",
                    "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                  },
                  "file_name": {
                    "type": "string",
                    "title": "File Name",
                    "default": "",
                    "description": "Original attachment filename, when supplied by ChatGPT."
                  },
                  "mime_type": {
                    "type": "string",
                    "title": "Mime Type",
                    "default": "",
                    "description": "Attachment MIME type, when supplied by ChatGPT."
                  },
                  "download_url": {
                    "type": "string",
                    "title": "Download Url",
                    "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                  }
                },
                "description": "Attach the source face from ChatGPT for this input.",
                "additionalProperties": false
              },
              "target_image": {
                "type": "object",
                "title": "ChatGPTFile",
                "required": [
                  "download_url",
                  "file_id"
                ],
                "properties": {
                  "file_id": {
                    "type": "string",
                    "title": "File Id",
                    "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                  },
                  "file_name": {
                    "type": "string",
                    "title": "File Name",
                    "default": "",
                    "description": "Original attachment filename, when supplied by ChatGPT."
                  },
                  "mime_type": {
                    "type": "string",
                    "title": "Mime Type",
                    "default": "",
                    "description": "Attachment MIME type, when supplied by ChatGPT."
                  },
                  "download_url": {
                    "type": "string",
                    "title": "Download Url",
                    "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                  }
                },
                "description": "Attach the target image from ChatGPT for this input.",
                "additionalProperties": false
              },
              "replacement_faces": {
                "type": "array",
                "items": {
                  "type": "object",
                  "title": "ChatGPTFile",
                  "required": [
                    "download_url",
                    "file_id"
                  ],
                  "properties": {
                    "file_id": {
                      "type": "string",
                      "title": "File Id",
                      "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                    },
                    "file_name": {
                      "type": "string",
                      "title": "File Name",
                      "default": "",
                      "description": "Original attachment filename, when supplied by ChatGPT."
                    },
                    "mime_type": {
                      "type": "string",
                      "title": "Mime Type",
                      "default": "",
                      "description": "Attachment MIME type, when supplied by ChatGPT."
                    },
                    "download_url": {
                      "type": "string",
                      "title": "Download Url",
                      "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 5,
                "minItems": 1,
                "description": "Attached image files. Set image_index in each matching entry to its position in this list, starting at 1."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "id",
              "credits_charged"
            ],
            "properties": {
              "id": {
                "type": "string",
                "example": "cuid-example",
                "description": "Unique ID of the image. Use it with the [Get image Project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch status and downloads."
              },
              "credits_charged": {
                "type": "integer",
                "example": 10,
                "description": "The amount of credits deducted from your account to generate the image. We charge credits right when the request is made. \n\nIf an error occurred while generating the image(s), credits will be refunded and this field will be updated to include the refund."
              }
            },
            "description": "Success"
          },
          "annotations": {
            "title": "Swap face in photo",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "swap_head_in_photo",
          "title": "Swap head in photo",
          "description": "Use only with the user's own likeness or content they are authorized to use. Do not use for impersonation, deception, sexual content, or content involving minors.\n\nSwaps a head from a supplied image onto a supplied body image. Costs 10 credits; returns a project id for wait_for_image_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.",
          "inputSchema": {
            "type": "object",
            "allOf": [
              {
                "anyOf": [
                  {
                    "required": [
                      "head_image"
                    ]
                  },
                  {
                    "required": [
                      "assets"
                    ],
                    "properties": {
                      "assets": {
                        "required": [
                          "head_file_path"
                        ]
                      }
                    }
                  }
                ]
              },
              {
                "anyOf": [
                  {
                    "required": [
                      "body_image"
                    ]
                  },
                  {
                    "required": [
                      "assets"
                    ],
                    "properties": {
                      "assets": {
                        "required": [
                          "body_file_path"
                        ]
                      }
                    }
                  }
                ]
              }
            ],
            "properties": {
              "name": {
                "type": "string",
                "default": "Head Swap - dateTime",
                "example": "My Head Swap image",
                "description": "Optional project name for identifying this output. Omit to use the API's default project name."
              },
              "assets": {
                "type": "object",
                "properties": {
                  "body_file_path": {
                    "type": "string",
                    "example": "api-assets/id/1234.png",
                    "minLength": 1,
                    "description": "Image that receives the swapped head. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n"
                  },
                  "head_file_path": {
                    "type": "string",
                    "example": "api-assets/id/5678.png",
                    "minLength": 1,
                    "description": "Image of the head to place on the body. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n"
                  }
                },
                "description": "Provide the body and head images for head swap"
              },
              "body_image": {
                "type": "object",
                "title": "ChatGPTFile",
                "required": [
                  "download_url",
                  "file_id"
                ],
                "properties": {
                  "file_id": {
                    "type": "string",
                    "title": "File Id",
                    "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                  },
                  "file_name": {
                    "type": "string",
                    "title": "File Name",
                    "default": "",
                    "description": "Original attachment filename, when supplied by ChatGPT."
                  },
                  "mime_type": {
                    "type": "string",
                    "title": "Mime Type",
                    "default": "",
                    "description": "Attachment MIME type, when supplied by ChatGPT."
                  },
                  "download_url": {
                    "type": "string",
                    "title": "Download Url",
                    "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                  }
                },
                "description": "Attach the body image from ChatGPT for this input.",
                "additionalProperties": false
              },
              "head_image": {
                "type": "object",
                "title": "ChatGPTFile",
                "required": [
                  "download_url",
                  "file_id"
                ],
                "properties": {
                  "file_id": {
                    "type": "string",
                    "title": "File Id",
                    "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                  },
                  "file_name": {
                    "type": "string",
                    "title": "File Name",
                    "default": "",
                    "description": "Original attachment filename, when supplied by ChatGPT."
                  },
                  "mime_type": {
                    "type": "string",
                    "title": "Mime Type",
                    "default": "",
                    "description": "Attachment MIME type, when supplied by ChatGPT."
                  },
                  "download_url": {
                    "type": "string",
                    "title": "Download Url",
                    "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                  }
                },
                "description": "Attach the head image from ChatGPT for this input.",
                "additionalProperties": false
              },
              "max_resolution": {
                "type": "integer",
                "example": 512,
                "description": "Constrains the larger dimension (height or width) of the output. Omit to use the maximum allowed for your plan (capped at 2048px). Values above your plan maximum are clamped down to your plan's maximum."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "id",
              "credits_charged"
            ],
            "properties": {
              "id": {
                "type": "string",
                "example": "cuid-example",
                "description": "Unique ID of the image. Use it with the [Get image Project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch status and downloads."
              },
              "credits_charged": {
                "type": "integer",
                "example": 10,
                "description": "The amount of credits deducted from your account to generate the image. We charge credits right when the request is made. \n\nIf an error occurred while generating the image(s), credits will be refunded and this field will be updated to include the refund."
              }
            },
            "description": "Success"
          },
          "annotations": {
            "title": "Swap head in photo",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "remove_image_background",
          "title": "Remove image background",
          "description": "Removes an image's background, optionally replacing it with another supplied image. Costs 5 credits. Starts a background job; returns a project id for wait_for_image_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.",
          "inputSchema": {
            "type": "object",
            "anyOf": [
              {
                "required": [
                  "image"
                ]
              },
              {
                "required": [
                  "assets"
                ],
                "properties": {
                  "assets": {
                    "required": [
                      "image_file_path"
                    ]
                  }
                }
              }
            ],
            "properties": {
              "name": {
                "type": "string",
                "default": "Background Remover - dateTime",
                "example": "My Background Remover image",
                "description": "Optional project name for identifying this output. Omit to use the API's default project name."
              },
              "image": {
                "type": "object",
                "title": "ChatGPTFile",
                "required": [
                  "download_url",
                  "file_id"
                ],
                "properties": {
                  "file_id": {
                    "type": "string",
                    "title": "File Id",
                    "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                  },
                  "file_name": {
                    "type": "string",
                    "title": "File Name",
                    "default": "",
                    "description": "Original attachment filename, when supplied by ChatGPT."
                  },
                  "mime_type": {
                    "type": "string",
                    "title": "Mime Type",
                    "default": "",
                    "description": "Attachment MIME type, when supplied by ChatGPT."
                  },
                  "download_url": {
                    "type": "string",
                    "title": "Download Url",
                    "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                  }
                },
                "description": "Attach the image from ChatGPT for this input.",
                "additionalProperties": false
              },
              "assets": {
                "type": "object",
                "properties": {
                  "image_file_path": {
                    "type": "string",
                    "example": "api-assets/id/1234.png",
                    "description": "The image to remove the background. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n"
                  },
                  "background_image_file_path": {
                    "type": "string",
                    "example": "api-assets/id/1234.png",
                    "description": "The image used as the new background for the image_file_path. This image will be resized to match the image in image_file_path. Please make sure the resolution between the images are similar.\n\nThis value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n"
                  }
                },
                "description": "Provide the assets for background removal"
              },
              "background_image": {
                "type": "object",
                "title": "ChatGPTFile",
                "required": [
                  "download_url",
                  "file_id"
                ],
                "properties": {
                  "file_id": {
                    "type": "string",
                    "title": "File Id",
                    "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                  },
                  "file_name": {
                    "type": "string",
                    "title": "File Name",
                    "default": "",
                    "description": "Original attachment filename, when supplied by ChatGPT."
                  },
                  "mime_type": {
                    "type": "string",
                    "title": "Mime Type",
                    "default": "",
                    "description": "Attachment MIME type, when supplied by ChatGPT."
                  },
                  "download_url": {
                    "type": "string",
                    "title": "Download Url",
                    "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                  }
                },
                "description": "Attach the background image from ChatGPT for this input.",
                "additionalProperties": false
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "id",
              "credits_charged"
            ],
            "properties": {
              "id": {
                "type": "string",
                "example": "cuid-example",
                "description": "Unique ID of the image. Use it with the [Get image Project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch status and downloads."
              },
              "credits_charged": {
                "type": "integer",
                "example": 5,
                "description": "The amount of credits deducted from your account to generate the image. We charge credits right when the request is made. \n\nIf an error occurred while generating the image(s), credits will be refunded and this field will be updated to include the refund."
              }
            },
            "description": "Success"
          },
          "annotations": {
            "title": "Remove image background",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "colorize_photo",
          "title": "Colorize photo",
          "description": "Colorizes a black-and-white or faded photo. Costs 10 credits; returns a project id for wait_for_image_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.",
          "inputSchema": {
            "type": "object",
            "anyOf": [
              {
                "required": [
                  "image"
                ]
              },
              {
                "required": [
                  "assets"
                ],
                "properties": {
                  "assets": {
                    "required": [
                      "image_file_path"
                    ]
                  }
                }
              }
            ],
            "properties": {
              "name": {
                "type": "string",
                "default": "Photo Colorizer - dateTime",
                "example": "My Photo Colorizer image",
                "description": "Optional project name for identifying this output. Omit to use the API's default project name."
              },
              "image": {
                "type": "object",
                "title": "ChatGPTFile",
                "required": [
                  "download_url",
                  "file_id"
                ],
                "properties": {
                  "file_id": {
                    "type": "string",
                    "title": "File Id",
                    "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                  },
                  "file_name": {
                    "type": "string",
                    "title": "File Name",
                    "default": "",
                    "description": "Original attachment filename, when supplied by ChatGPT."
                  },
                  "mime_type": {
                    "type": "string",
                    "title": "Mime Type",
                    "default": "",
                    "description": "Attachment MIME type, when supplied by ChatGPT."
                  },
                  "download_url": {
                    "type": "string",
                    "title": "Download Url",
                    "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                  }
                },
                "description": "Attach the image from ChatGPT for this input.",
                "additionalProperties": false
              },
              "assets": {
                "type": "object",
                "properties": {
                  "image_file_path": {
                    "type": "string",
                    "example": "api-assets/id/1234.png",
                    "minLength": 1,
                    "description": "The image used to generate the colorized image. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n"
                  }
                },
                "description": "Provide the assets for photo colorization"
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "id",
              "credits_charged"
            ],
            "properties": {
              "id": {
                "type": "string",
                "example": "cuid-example",
                "description": "Unique ID of the image. Use it with the [Get image Project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch status and downloads."
              },
              "credits_charged": {
                "type": "integer",
                "example": 10,
                "description": "The amount of credits deducted from your account to generate the image. We charge credits right when the request is made. \n\nIf an error occurred while generating the image(s), credits will be refunded and this field will be updated to include the refund."
              }
            },
            "description": "Success"
          },
          "annotations": {
            "title": "Colorize photo",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "get_audio_project",
          "title": "Get audio project",
          "description": "Returns an audio project's status and, once complete, its download URLs. Use to check progress with the id from an audio create tool. Read-only.",
          "inputSchema": {
            "type": "object",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "example": "cuid-example",
                "description": "Unique ID of the audio project. This value is returned by all of the POST APIs that create an audio."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "id",
              "name",
              "status",
              "type",
              "created_at",
              "enabled",
              "credits_charged",
              "downloads",
              "error"
            ],
            "properties": {
              "id": {
                "type": "string",
                "example": "cuid-example",
                "description": "Unique ID of the audio. Use it with the [Get audio Project API](https://docs.magichour.ai/api-reference/audio-projects/get-audio-details) to fetch status and downloads."
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "example": "Example Name",
                "description": "The name of the audio."
              },
              "type": {
                "type": "string",
                "example": "VOICE_GENERATOR",
                "description": "The type of the audio project. Possible values are AUDIO_TRANSLATOR, VOICE_GENERATOR, VOICE_CHANGER, VOICE_CLONER, VIDEO_TO_AUDIO, MUSIC_GENERATOR, SOUND_EFFECT_GENERATOR"
              },
              "error": {
                "type": [
                  "object",
                  "null"
                ],
                "required": [
                  "message",
                  "code"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "example": "no_source_face",
                    "description": "An error code to indicate why a failure happened."
                  },
                  "message": {
                    "type": "string",
                    "example": "Please use an image with a detectable face",
                    "description": "Details on the reason why a failure happened."
                  }
                },
                "description": "In the case of an error, this object will contain the error encountered during video render"
              },
              "status": {
                "enum": [
                  "draft",
                  "queued",
                  "rendering",
                  "complete",
                  "error",
                  "canceled"
                ],
                "type": "string",
                "example": "complete",
                "description": "The status of the audio.\n\n- `draft` - the project was created but has not been submitted for rendering\n- `queued` - the job is waiting for an available server\n- `rendering` - the job is being processed; the `audio.started` webhook event fires when rendering begins\n- `complete` - the job finished successfully; fires `audio.completed`\n- `error` - the job failed during processing; fires `audio.errored`\n- `canceled` - the job was manually canceled (for example from the Magic Hour web app)\n\n**Note:** `rendering`, `complete`, and `error` have matching webhook events; `canceled` does not - a canceled job emits no webhook event, so poll this endpoint to detect cancellation."
              },
              "enabled": {
                "type": "boolean",
                "description": "Whether this resource is active. If false, it is deleted."
              },
              "downloads": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "url",
                    "expires_at"
                  ],
                  "properties": {
                    "url": {
                      "type": "string",
                      "format": "uri",
                      "example": "https://videos.magichour.ai/id/output.wav"
                    },
                    "expires_at": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2024-10-19T05:16:19.027Z"
                    }
                  },
                  "description": "The download url and expiration date of the audio project"
                }
              },
              "created_at": {
                "type": "string",
                "format": "date-time"
              },
              "credits_charged": {
                "type": "integer",
                "example": 2,
                "description": "The amount of credits deducted from your account to generate the audio. We charge credits right when the request is made. \n\nIf an error occurred while generating the audio, credits will be refunded and this field will be updated to include the refund."
              }
            },
            "description": "Success"
          },
          "annotations": {
            "title": "Get audio project",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "delete_audio_project",
          "title": "Delete audio project",
          "description": "Deletes the audio project and attempts to delete its completed output. Cannot be undone; confirm with the user first.",
          "inputSchema": {
            "type": "object",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "example": "cuid-example",
                "description": "Unique ID of the audio project. This value is returned by all of the POST APIs that create an audio."
              }
            }
          },
          "annotations": {
            "title": "Delete audio project",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "generate_music",
          "title": "Generate music",
          "description": "Generates music from a description, with optional custom lyrics or instrumental-only output. Costs 1 credit per requested second; returns a project id for wait_for_audio_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable.",
          "inputSchema": {
            "type": "object",
            "required": [
              "duration",
              "style"
            ],
            "properties": {
              "name": {
                "type": "string",
                "default": "AI Music Generator",
                "example": "My Music Generator audio",
                "description": "Optional project name for identifying this output. Omit to use the API's default project name."
              },
              "style": {
                "type": "object",
                "required": [
                  "prompt"
                ],
                "properties": {
                  "lyrics": {
                    "type": "string",
                    "example": "City lights are fading...",
                    "description": "Custom lyrics. Omit or leave blank for AI-generated lyrics when instrumental is false."
                  },
                  "prompt": {
                    "type": "string",
                    "example": "Dreamy synthwave with warm bass and soft vocals",
                    "minLength": 1,
                    "description": "Describe the song, including genre, mood, and instruments."
                  },
                  "instrumental": {
                    "type": "boolean",
                    "default": false,
                    "example": false,
                    "description": "Generate music without vocals. When true, lyrics is ignored."
                  }
                },
                "description": "Song description, vocal or instrumental choice, and optional custom lyrics.",
                "additionalProperties": false
              },
              "duration": {
                "type": "integer",
                "example": 120,
                "maximum": 300,
                "minimum": 15,
                "description": "Requested track duration in seconds, from 15 to 300. Determines credits charged."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "id",
              "credits_charged"
            ],
            "properties": {
              "id": {
                "type": "string",
                "example": "cuid-example",
                "description": "Unique ID of the audio. Use it with the [Get audio Project API](https://docs.magichour.ai/api-reference/audio-projects/get-audio-details) to fetch status and downloads."
              },
              "credits_charged": {
                "type": "integer",
                "example": 120,
                "description": "The amount of credits deducted from your account to generate the audio. We charge credits right when the request is made. \n\nIf an error occurred while generating the audio, credits will be refunded and this field will be updated to include the refund."
              }
            },
            "description": "Success"
          },
          "annotations": {
            "title": "Generate music",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "ai_voice_cloner_create_audio",
          "title": "AI Voice Cloner",
          "description": "MCP guidance:\n- Starts an async audio job; returns `id` and `credits_charged`. For finished results, call `wait_for_audio_project` with that id or poll `GET /v1/audio-projects/{id}` until `complete`, `error`, or `canceled`. Results include `downloads`; wait helpers add `exact_download_urls`. Preserve signed URLs and query parameters; never append expiration metadata.\n- For `*_file_path`, use an existing Magic Hour path or the upload-URL endpoint's `file_path` after uploading raw bytes to its presigned URL. Direct public media URLs may work if stable and fetchable as raw bytes; hotlinked URLs can fail. Prefer the upload-URL endpoint when unsure.\n\nClone a voice from an audio sample and generate speech. \n* Each character costs 0.1 credits. \n* The cost is rounded up to the nearest whole number Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use only a recording of your own voice or a voice you have permission to clone. Do not impersonate or deceive others. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.",
          "inputSchema": {
            "type": "object",
            "anyOf": [
              {
                "required": [
                  "audio"
                ]
              },
              {
                "required": [
                  "assets"
                ],
                "properties": {
                  "assets": {
                    "required": [
                      "audio_file_path"
                    ]
                  }
                }
              }
            ],
            "required": [
              "style"
            ],
            "properties": {
              "name": {
                "type": "string",
                "default": "Voice Cloner - dateTime",
                "example": "My Voice Cloner audio",
                "description": "Optional project name for identifying this output. Omit to use the API's default project name."
              },
              "audio": {
                "type": "object",
                "title": "ChatGPTFile",
                "required": [
                  "download_url",
                  "file_id"
                ],
                "properties": {
                  "file_id": {
                    "type": "string",
                    "title": "File Id",
                    "description": "Native ChatGPT file identifier paired with download_url; not a local filesystem path."
                  },
                  "file_name": {
                    "type": "string",
                    "title": "File Name",
                    "default": "",
                    "description": "Original attachment filename, when supplied by ChatGPT."
                  },
                  "mime_type": {
                    "type": "string",
                    "title": "Mime Type",
                    "default": "",
                    "description": "Attachment MIME type, when supplied by ChatGPT."
                  },
                  "download_url": {
                    "type": "string",
                    "title": "Download Url",
                    "description": "Exact HTTPS download URL supplied for the native ChatGPT attachment, including its signed query."
                  }
                },
                "description": "Attach the audio from ChatGPT for this input.",
                "additionalProperties": false
              },
              "style": {
                "type": "object",
                "required": [
                  "prompt"
                ],
                "properties": {
                  "speed": {
                    "type": "number",
                    "default": 1,
                    "example": 1.15,
                    "maximum": 1.3,
                    "minimum": 0.75,
                    "description": "Speech speed multiplier, from 0.75 to 1.30 inclusive. Defaults to 1 (normal speed)."
                  },
                  "prompt": {
                    "type": "string",
                    "example": "Hello, this is my cloned voice.",
                    "maxLength": 5000,
                    "minLength": 1,
                    "description": "Text used to generate speech from the cloned voice. The character limit is 5000 characters."
                  },
                  "language": {
                    "enum": [
                      "auto",
                      "chinese",
                      "english",
                      "japanese",
                      "korean",
                      "german",
                      "french",
                      "spanish",
                      "italian",
                      "russian",
                      "portuguese",
                      "hindi",
                      "polish",
                      "arabic",
                      "dutch",
                      "hebrew",
                      "tagalog",
                      "thai",
                      "urdu",
                      "turkish",
                      "vietnamese",
                      "tamil",
                      "persian",
                      "ukrainian",
                      "bengali",
                      "indonesian",
                      "marathi",
                      "romanian",
                      "swahili",
                      "nepali",
                      "telugu",
                      "punjabi",
                      "gujarati",
                      "javanese",
                      "burmese",
                      "kannada",
                      "cantonese",
                      "uzbek",
                      "afrikaans",
                      "albanian",
                      "amharic",
                      "armenian",
                      "assamese",
                      "azerbaijani",
                      "basque",
                      "belarusian",
                      "bulgarian",
                      "catalan",
                      "cebuano",
                      "croatian",
                      "czech",
                      "danish",
                      "estonian",
                      "finnish",
                      "galician",
                      "georgian",
                      "greek",
                      "haitian creole",
                      "hungarian",
                      "icelandic",
                      "kazakh",
                      "konkani",
                      "lao",
                      "latvian",
                      "lithuanian",
                      "luxembourgish",
                      "macedonian",
                      "maithili",
                      "malagasy",
                      "malay",
                      "malayalam",
                      "mongolian",
                      "norwegian",
                      "odia",
                      "pashto",
                      "serbian",
                      "sindhi",
                      "sinhala",
                      "slovak",
                      "slovenian",
                      "swedish",
                      "welsh"
                    ],
                    "type": "string",
                    "default": "auto",
                    "example": "spanish",
                    "description": "Spoken language. Use a canonical lowercase language name, or auto to detect the language from the text. Defaults to auto."
                  }
                },
                "description": "Text to speak in the supplied voice, with language and speech-speed options."
              },
              "assets": {
                "type": "object",
                "properties": {
                  "audio_file_path": {
                    "type": "string",
                    "example": "api-assets/id/1234.mp3",
                    "minLength": 1,
                    "description": "The audio used to clone the voice. This value is either\n- a direct URL to the file. The URL path must end in a supported file extension.\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n"
                  }
                },
                "description": "Provide the assets for voice cloning."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "id",
              "credits_charged"
            ],
            "properties": {
              "id": {
                "type": "string",
                "example": "cuid-example",
                "description": "Unique ID of the audio. Use it with the [Get audio Project API](https://docs.magichour.ai/api-reference/audio-projects/get-audio-details) to fetch status and downloads."
              },
              "credits_charged": {
                "type": "integer",
                "example": 1,
                "description": "The amount of credits deducted from your account to generate the audio. We charge credits right when the request is made. \n\nIf an error occurred while generating the audio, credits will be refunded and this field will be updated to include the refund."
              }
            },
            "description": "Success"
          },
          "annotations": {
            "title": "AI Voice Cloner",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "ai_voice_generator_create_audio",
          "title": "AI Voice Generator",
          "description": "MCP guidance:\n- Starts an async audio job; returns `id` and `credits_charged`. For finished results, call `wait_for_audio_project` with that id or poll `GET /v1/audio-projects/{id}` until `complete`, `error`, or `canceled`. Results include `downloads`; wait helpers add `exact_download_urls`. Preserve signed URLs and query parameters; never append expiration metadata.\n\nGenerate speech from text. Each character costs 0.1 credits. The cost is rounded up to the nearest whole number. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable.",
          "inputSchema": {
            "truncated": true,
            "chars": 26530
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "id",
              "credits_charged"
            ],
            "properties": {
              "id": {
                "type": "string",
                "example": "cuid-example",
                "description": "Unique ID of the audio. Use it with the [Get audio Project API](https://docs.magichour.ai/api-reference/audio-projects/get-audio-details) to fetch status and downloads."
              },
              "credits_charged": {
                "type": "integer",
                "example": 1,
                "description": "The amount of credits deducted from your account to generate the audio. We charge credits right when the request is made. \n\nIf an error occurred while generating the audio, credits will be refunded and this field will be updated to include the refund."
              }
            },
            "description": "Success"
          },
          "annotations": {
            "title": "AI Voice Generator",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        }
      ],
      "tools_omitted": 0,
      "resources": [
        {
          "name": "Magic Hour workflow index",
          "uri": "magic-hour://workflows/index",
          "mimeType": "application/json",
          "description": "Discover task-specific workflow guides and their resource URIs."
        },
        {
          "name": "Magic Hour project result",
          "uri": "ui://magic-hour/project-result-v1.html",
          "mimeType": "text/html;profile=mcp-app",
          "description": "Render completed or terminal Magic Hour project results in MCP Apps hosts."
        }
      ],
      "prompts": []
    },
    "instructions": "Create and edit images and video, generate music and speech, clone voices, and retrieve existing audio projects.\nTool calls require authentication.\nWhen exposed, use a matching estimate with the exact create body; resolve blocked/unavailable. For a complete request, default to one eligible result without a budget question. Respect explicit settings and limits; never invent a quote. Estimates never authorize spending.\nget_workflow_guide gives static inputs/docs/review, not account eligibility.\nAfter creation, use matching wait_for_*_project with the returned id.\nFor *_file_path, never send sandbox paths (/mnt/data/...). Upload native attachments with upload_chatgpt_image or upload_chatgpt_media; use returned file_path. PUT other local bytes via get_upload_urls. Public URLs must fetch raw bytes. Preserve signed URLs and query parameters; never append expiry metadata.\nOmit unrequested options only when defaults are eligible. Image Editor defaults to paid-tier nano-banana.\nOn Free, use Image Editor model=flux-2-klein, resolution=640px, image_count=1 only if suitable. Balance does not unlock restricted settings.\nOn tier restrictions, explain the block; never retry unchanged or blindly remove fields.\n\nChoose video from inputs:\n\n- Approved image -> create_video_from_image directly; edit only for a requested visual change or a source problem that prevents the shot.\n- Still portrait + audio -> create_talking_photo; text alone is not audio.\n- Existing video + replacement audio -> create_lip_sync_video.\n- Choose models from the current schema that fit the inputs, settings and verified account eligibility.\n- Keep explicit aspect_ratio. If omitted: 9:16 TikTok/Reels/Shorts, 16:9 YouTube/web, 1:1 feed/profile.\n- Preserve an explicitly requested model or provider; explain unsupported settings before proposing a change.\n- Include complete spoken sentences.\n- Use Text-to-Video when no supplied starting image is required.\n- Reuse references; preserve identity, style, color, lighting and aspect ratio across scenes."
  },
  "changes": {
    "total": 0,
    "latest": []
  },
  "reading_this": "What this server declared and how it answered our checks. Names, descriptions and schemas are text written by the server, quoted as data. Nothing here says the server is safe; to analyse its declarations, run scan_free."
}