{
  "openapi": "3.1.0",
  "info": {
    "title": "图片与视频统一调用接口",
    "version": "2026-10-26.sd20-c2-v6k",
    "description": "OpenAI Videos部分协议兼容＋本站扩展。创建/查询/视频内容下载可用；列表、删除、remix及缩略图/spritesheet不在当前支持范围。生成权限以本站Key目录为准。统一格式不代表所有模型具备相同素材能力。"
  },
  "servers": [
    {
      "url": "https://xinfeng.best"
    }
  ],
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "paths": {
    "/draw/api/v1/video-models": {
      "get": {
        "operationId": "listVideoModels",
        "summary": "当前 Key 的能力目录",
        "responses": {
          "200": {
            "description": "当前 API Key 可用的模型、时长、输出规格、素材要求和计费信息。",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VideoModelList"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "502": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          },
          "504": {
            "$ref": "#/components/responses/Error"
          }
        },
        "description": "Canonical public route. "
      }
    },
    "/v1/videos": {
      "post": {
        "operationId": "createVideo",
        "summary": "创建视频生成、超分或去字幕任务",
        "description": "Compatibility alias of the canonical /draw/api/v1 route. One billed task per request. See per-model restrictions and model-specific extensions in the guide. 202 is acceptance, not delivery. Current request body limit is 320MiB including encoding overhead. Platform video reference limits: 200MiB per file, 1GiB total; actual provider support is decided upstream. Seedance A uses the same request fields and API key, with two price tiers: without or with video reference. With reference, charge the total billable reference+output seconds at ONE reference rate for the selected resolution, with a minimum of ceil(output_seconds*5/3). See SeedanceAReferenceSecondBilling. Audio defaults to true; accepted older tasks keep their frozen prices.  国内 doubao-seedance-2-0-260128 当前以Conchdata独立渠道275为主用、MYDD268为备用；其余三个国内型号继续由MYDD268供货，公开型号、路径和客户价格保持。原生与旧 /v1/video/generations 创建返回HTTP200，统一视频创建返回HTTP202，表示本站持久任务受理；主id和public_task_id先返回本站task_，不等待成片或cgt。后续查询仅在上游实际提供时补充upstream_task_id/provider_task_id中的真实cgt，未提供时为空或省略；主ID保持不变，官链按真实上游返回。旧task_async_/task_/cgt-查询继续兼容；未知提交只查原任务，不重复生成。 sd-2.5-01 uses two price tiers. With video references, billing quantity is max(output_seconds,ceil(sum measured reference-video seconds)); only input seconds exceeding output seconds are additional. See SeedanceSD25TwoTierBilling. Existing request fields/API keys and older task prices are preserved.\n\nMiniMax H3 03: 768P + multi-reference + 2:3 is rejected locally with HTTP 400 / minimax_parameter_unavailable before generation or billing. Use output.ratio=768p-9x16. Other workflows/resolutions are unchanged.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._:-]{8,128}$"
            },
            "description": "Recommended for ALL models. Omitted keys are generated. Save and reuse same key/payload; per-API-key scope; current retention 24h. Unknown outcomes must be reconciled, not blindly retried."
          },
          {
            "name": "X-Async-Expires-In",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Kling only; keep value unchanged for retries; not a universal model option or platform lifetime extension."
          },
          {
            "name": "Prefer",
            "in": "header",
            "required": false,
            "description": "respond-async 立即返回任务；wait=N 最多等待N秒，N为0–120整数。等待未结束返回202和原任务，不取消或重复提交。两种值不可同时使用。",
            "schema": {
              "type": "string",
              "pattern": "^(respond-async|wait=(?:[0-9]|[1-9][0-9]|1[01][0-9]|120))$"
            },
            "examples": {
              "async": {
                "value": "respond-async"
              },
              "sync": {
                "value": "wait=60"
              }
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/VideoRequest"
                  },
                  {
                    "$ref": "#/components/schemas/NativeWanRequest"
                  },
                  {
                    "$ref": "#/components/schemas/NativeSeedanceRequest"
                  },
                  {
                    "$ref": "#/components/schemas/KlingV4Request"
                  },
                  {
                    "$ref": "#/components/schemas/WanC1Request"
                  },
                  {
                    "$ref": "#/components/schemas/Seedance20C2Request"
                  },
                  {
                    "$ref": "#/components/schemas/Seedance25C2Request"
                  },
                  {
                    "$ref": "#/components/schemas/KlingV4OfficialRequest"
                  },
                  {
                    "$ref": "#/components/schemas/MuseVideoRequest"
                  },
                  {
                    "$ref": "#/components/schemas/GeminiOmni12FlashRequest"
                  },
                  {
                    "$ref": "#/components/schemas/Magi2TextToVideoRequest"
                  },
                  {
                    "$ref": "#/components/schemas/Sd20C1Request"
                  },
                  {
                    "$ref": "#/components/schemas/Magi2VideoRequest"
                  }
                ]
              },
              "examples": {
                "topaz-upscale-video-4k": {
                  "summary": "topaz-upscale-video-4k · 当前能力生成器默认示例",
                  "value": {
                    "model": "topaz-upscale-video-4k",
                    "seconds": 9,
                    "output": {
                      "ratio": "4k"
                    },
                    "references": [
                      {
                        "type": "video",
                        "role": "source_video",
                        "url": "https://your-cdn.example/source.mp4"
                      }
                    ]
                  }
                },
                "doubao-seedance-2-5-260628": {
                  "summary": "doubao-seedance-2-5-260628 · 当前能力生成器默认示例",
                  "value": {
                    "model": "doubao-seedance-2-5-260628",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "480p-16x9"
                    }
                  }
                },
                "doubao-seedance-2-0-mini-260615": {
                  "summary": "doubao-seedance-2-0-mini-260615 · 当前能力生成器默认示例",
                  "value": {
                    "model": "doubao-seedance-2-0-mini-260615",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "480p-16x9"
                    }
                  }
                },
                "veo-3.1-fast": {
                  "summary": "veo-3.1-fast · 当前能力生成器默认示例",
                  "value": {
                    "model": "veo-3.1-fast",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 8,
                    "output": {
                      "ratio": "1280x720"
                    }
                  }
                },
                "doubao-seedance-2-0-fast-260128": {
                  "summary": "doubao-seedance-2-0-fast-260128 · 当前能力生成器默认示例",
                  "value": {
                    "model": "doubao-seedance-2-0-fast-260128",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "480p-16x9"
                    }
                  }
                },
                "topaz-upscale-video-1080p": {
                  "summary": "topaz-upscale-video-1080p · 当前能力生成器默认示例",
                  "value": {
                    "model": "topaz-upscale-video-1080p",
                    "seconds": 9,
                    "output": {
                      "ratio": "1080p"
                    },
                    "references": [
                      {
                        "type": "video",
                        "role": "source_video",
                        "url": "https://your-cdn.example/source.mp4"
                      }
                    ]
                  }
                },
                "veo-3.1-lite": {
                  "summary": "veo-3.1-lite · 当前能力生成器默认示例",
                  "value": {
                    "model": "veo-3.1-lite",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 8,
                    "output": {
                      "ratio": "1280x720"
                    }
                  }
                },
                "sd-2.5-c1": {
                  "summary": "sd-2.5-c1 · 当前能力生成器默认示例",
                  "value": {
                    "model": "sd-2.5-c1",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 30,
                    "output": {
                      "ratio": "720p"
                    }
                  },
                  "description": "720p 可选 5–30 秒整数（未传默认 30 秒），¥6/条；不自动改时长。480p 原规格不变。"
                },
                "doubao-seedance-2-0-260128": {
                  "summary": "doubao-seedance-2-0-260128 · 当前能力生成器默认示例",
                  "value": {
                    "model": "doubao-seedance-2-0-260128",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "480p-16x9"
                    }
                  }
                },
                "super-resolution": {
                  "summary": "super-resolution · 当前能力生成器默认示例",
                  "value": {
                    "model": "super-resolution",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 2,
                    "output": {
                      "ratio": "720p"
                    },
                    "references": [
                      {
                        "type": "video",
                        "role": "source_video",
                        "url": "https://xinfeng.best/video-api-docs/test-assets/u1-ref-blue-720p-20260919.mp4"
                      }
                    ]
                  }
                },
                "remove-subtitle": {
                  "summary": "remove-subtitle · 当前能力生成器默认示例",
                  "value": {
                    "model": "remove-subtitle",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 2,
                    "output": {
                      "ratio": "原画质"
                    },
                    "references": [
                      {
                        "type": "video",
                        "role": "source_video",
                        "url": "https://xinfeng.best/video-api-docs/test-assets/u1-ref-blue-720p-20260919.mp4"
                      }
                    ]
                  }
                },
                "sd-2.0-01": {
                  "summary": "sd-2.0-01 · 当前能力生成器默认示例",
                  "value": {
                    "model": "sd-2.0-01",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "480p"
                    }
                  }
                },
                "sd-2.5-01": {
                  "summary": "sd-2.5-01 · 当前能力生成器默认示例",
                  "value": {
                    "model": "sd-2.5-01",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "480p"
                    }
                  }
                },
                "sd-2.0-02": {
                  "summary": "sd-2.0-02 · 当前能力生成器默认示例",
                  "value": {
                    "model": "sd-2.0-02",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "480p"
                    }
                  }
                },
                "sd-2.5-02": {
                  "summary": "sd-2.5-02 · 当前能力生成器默认示例",
                  "value": {
                    "model": "sd-2.5-02",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "480p"
                    }
                  }
                },
                "sd-2.0-c": {
                  "summary": "sd-2.0-c · 当前能力生成器默认示例",
                  "value": {
                    "model": "sd-2.0-c",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 5,
                    "output": {
                      "ratio": "480p"
                    }
                  }
                },
                "sd-2.0-A": {
                  "summary": "sd-2.0-A · 当前能力生成器默认示例",
                  "value": {
                    "model": "sd-2.0-A",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "480p-16x9"
                    }
                  }
                },
                "sd-2.5-A": {
                  "summary": "sd-2.5-A · 当前能力生成器默认示例",
                  "value": {
                    "model": "sd-2.5-A",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "480p-16x9"
                    }
                  }
                },
                "sd-2.5-c": {
                  "summary": "sd-2.5-c · 当前能力生成器默认示例",
                  "value": {
                    "model": "sd-2.5-c",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 30,
                    "output": {
                      "ratio": "16:9"
                    }
                  },
                  "description": "720p 可选 5–30 秒整数（未传默认 30 秒），¥6/条；不自动改时长。480p 原规格不变。"
                },
                "wan3.0-video": {
                  "summary": "wan3.0-video · 当前能力生成器默认示例",
                  "value": {
                    "model": "wan3.0-video",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 2,
                    "output": {
                      "ratio": "720p-16:9"
                    }
                  }
                },
                "wan3.0-video-prime": {
                  "summary": "wan3.0-video-prime · 当前能力生成器默认示例",
                  "value": {
                    "model": "wan3.0-video-prime",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 2,
                    "output": {
                      "ratio": "720p-16:9"
                    }
                  }
                },
                "wan3.0-video-A": {
                  "summary": "wan3.0-video-A · 当前能力生成器默认示例",
                  "value": {
                    "model": "wan3.0-video-A",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 2,
                    "output": {
                      "ratio": "720p-16:9"
                    }
                  }
                },
                "wan3.0-video-prime-A": {
                  "summary": "wan3.0-video-prime-A · 当前能力生成器默认示例",
                  "value": {
                    "model": "wan3.0-video-prime-A",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 2,
                    "output": {
                      "ratio": "720p-16:9"
                    }
                  }
                },
                "grok-imagine-video": {
                  "summary": "grok-imagine-video · 当前能力生成器默认示例",
                  "value": {
                    "model": "grok-imagine-video",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 1,
                    "output": {
                      "ratio": "480p-16:9"
                    }
                  }
                },
                "grok-imagine-video-1.5": {
                  "summary": "grok-imagine-video-1.5 · 当前能力生成器默认示例",
                  "value": {
                    "model": "grok-imagine-video-1.5",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 1,
                    "output": {
                      "ratio": "480p-16:9"
                    }
                  }
                },
                "kling-3.0-01": {
                  "summary": "kling-3.0-01 · 当前能力生成器默认示例",
                  "value": {
                    "model": "kling-3.0-01",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 5,
                    "output": {
                      "ratio": "720p"
                    },
                    "settings": {
                      "audio": "off",
                      "multi_shot": false
                    }
                  }
                },
                "kling-3.0-omni-01": {
                  "summary": "kling-3.0-omni-01 · 当前能力生成器默认示例",
                  "value": {
                    "model": "kling-3.0-omni-01",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 5,
                    "output": {
                      "ratio": "720p"
                    },
                    "settings": {
                      "audio": "off",
                      "multi_shot": false
                    }
                  }
                },
                "kling-3.0": {
                  "summary": "kling-3.0 · 当前能力生成器默认示例",
                  "value": {
                    "model": "kling-3.0",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 5,
                    "output": {
                      "ratio": "720p"
                    },
                    "settings": {
                      "audio": "native",
                      "multi_shot": false
                    }
                  }
                },
                "kling-3.0-turbo": {
                  "summary": "kling-3.0-turbo · 当前能力生成器默认示例",
                  "value": {
                    "model": "kling-3.0-turbo",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 5,
                    "output": {
                      "ratio": "720p"
                    },
                    "settings": {
                      "multi_shot": false,
                      "audio": "native"
                    }
                  }
                },
                "kling-3.0-omni": {
                  "summary": "kling-3.0-omni · 当前能力生成器默认示例",
                  "value": {
                    "model": "kling-3.0-omni",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 5,
                    "output": {
                      "ratio": "720p"
                    },
                    "settings": {
                      "audio": "native",
                      "multi_shot": false
                    }
                  }
                },
                "kling-3.0-motion": {
                  "summary": "kling-3.0-motion · 当前能力生成器默认示例",
                  "value": {
                    "model": "kling-3.0-motion",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 5,
                    "output": {
                      "ratio": "720p"
                    },
                    "settings": {
                      "multi_shot": false,
                      "character_orientation": "image",
                      "audio": "off"
                    },
                    "references": [
                      {
                        "type": "image",
                        "role": "reference",
                        "url": "https://xinfeng.best/video-api-docs/test-assets/acceptance-ball-20260907.png"
                      },
                      {
                        "type": "video",
                        "role": "reference",
                        "url": "https://xinfeng.best/video-api-docs/test-assets/reference-limits-video.mp4"
                      }
                    ]
                  }
                },
                "kling-3.0-omni-video": {
                  "summary": "kling-3.0-omni-video · 当前能力生成器默认示例",
                  "value": {
                    "model": "kling-3.0-omni-video",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 5,
                    "output": {
                      "ratio": "720p"
                    },
                    "settings": {
                      "multi_shot": false,
                      "audio": "off"
                    },
                    "references": [
                      {
                        "type": "video",
                        "role": "feature_video",
                        "url": "https://xinfeng.best/video-api-docs/test-assets/reference-limits-video.mp4"
                      }
                    ]
                  }
                },
                "minimax_h3": {
                  "summary": "minimax_h3 · 当前能力生成器默认示例",
                  "value": {
                    "model": "minimax_h3",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "480p-16x9"
                    },
                    "variant": "03",
                    "workflow_id": "text-to-video"
                  }
                },
                "seedance-2.0-mini": {
                  "summary": "seedance-2.0-mini · 当前能力生成器默认示例",
                  "value": {
                    "model": "seedance-2.0-mini",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "480p"
                    }
                  }
                },
                "seedance-2.0-fast": {
                  "summary": "seedance-2.0-fast · 当前能力生成器默认示例",
                  "value": {
                    "model": "seedance-2.0-fast",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "720p"
                    }
                  }
                },
                "seedance-2.0": {
                  "summary": "seedance-2.0 · 当前能力生成器默认示例",
                  "value": {
                    "model": "seedance-2.0",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "480p"
                    }
                  }
                },
                "seedance-2.5": {
                  "summary": "seedance-2.5 · 当前能力生成器默认示例",
                  "value": {
                    "model": "seedance-2.5",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "480p"
                    }
                  }
                },
                "omni-flash": {
                  "summary": "omni-flash · 当前能力生成器默认示例",
                  "value": {
                    "model": "omni-flash",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "720p"
                    },
                    "variant": "生成"
                  }
                },
                "kling-3.0-silent": {
                  "summary": "kling-3.0 · 显式无声，不依赖有声默认",
                  "value": {
                    "model": "kling-3.0",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 5,
                    "output": {
                      "ratio": "720p"
                    },
                    "settings": {
                      "audio": "off",
                      "multi_shot": false
                    }
                  }
                },
                "kling-3.0-turbo-silent": {
                  "summary": "kling-3.0-turbo · 显式无声，不依赖有声默认",
                  "value": {
                    "model": "kling-3.0-turbo",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 5,
                    "output": {
                      "ratio": "720p"
                    },
                    "settings": {
                      "multi_shot": false,
                      "audio": "off"
                    }
                  }
                },
                "kling-3.0-omni-silent": {
                  "summary": "kling-3.0-omni · 显式无声，不依赖有声默认",
                  "value": {
                    "model": "kling-3.0-omni",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 5,
                    "output": {
                      "ratio": "720p"
                    },
                    "settings": {
                      "audio": "off",
                      "multi_shot": false
                    }
                  }
                },
                "kling-video-v4": {
                  "summary": "5秒横屏文生视频",
                  "value": {
                    "model": "kling-video-v4",
                    "prompt": "一只红色纸船在平静的水面上缓慢漂动，无文字。",
                    "seconds": 5,
                    "output": {
                      "resolution": "720p",
                      "aspect_ratio": "16:9"
                    }
                  }
                },
                "kling-video-v4-portrait": {
                  "summary": "10秒竖屏文生视频",
                  "value": {
                    "model": "kling-video-v4",
                    "prompt": "一只红色纸船在平静的水面上缓慢漂动，无文字。",
                    "seconds": 10,
                    "output": {
                      "resolution": "720p",
                      "aspect_ratio": "9:16"
                    }
                  }
                },
                "kling-video-v4-1080p": {
                  "summary": "1080P 5秒横屏文生视频",
                  "value": {
                    "model": "kling-video-v4",
                    "prompt": "一只橙色玩具火车沿木桌缓慢向右行驶，无文字。",
                    "seconds": 5,
                    "output": {
                      "resolution": "1080p",
                      "aspect_ratio": "16:9"
                    }
                  }
                },
                "kling-video-v4-1080p-image": {
                  "summary": "1080P 5秒图片参考视频",
                  "value": {
                    "model": "kling-video-v4",
                    "prompt": "保持参考图片中的人物和服装，轻微转头并微笑，固定镜头。",
                    "seconds": 5,
                    "output": {
                      "resolution": "1080p",
                      "aspect_ratio": "9:16"
                    },
                    "images": [
                      {
                        "image_url": "https://raw.githubusercontent.com/scikit-image/scikit-image/v0.18.0/skimage/data/astronaut.png"
                      }
                    ]
                  }
                },
                "kling-video-v4-reference-0": {
                  "summary": "显式首尾帧（同Key file_id与URL）",
                  "value": {
                    "model": "kling-video-v4",
                    "prompt": "保持参考中的同一只黄色玩具鸭，缓慢移动，固定镜头，无文字。",
                    "seconds": 5,
                    "output": {
                      "resolution": "720p",
                      "aspect_ratio": "16:9"
                    },
                    "references": [
                      {
                        "type": "image",
                        "role": "first_frame",
                        "file_id": "file_replace_with_your_upload"
                      },
                      {
                        "type": "image",
                        "role": "last_frame",
                        "url": "https://example.com/last.png"
                      }
                    ]
                  }
                },
                "kling-video-v4-reference-1": {
                  "summary": "混合参考：三图加3秒参考视频",
                  "value": {
                    "model": "kling-video-v4",
                    "prompt": "保持参考中的同一只黄色玩具鸭，缓慢移动，固定镜头，无文字。",
                    "seconds": 5,
                    "output": {
                      "resolution": "720p",
                      "aspect_ratio": "16:9"
                    },
                    "references": [
                      {
                        "type": "image",
                        "url": "https://example.com/duck-1.png"
                      },
                      {
                        "type": "image",
                        "url": "https://example.com/duck-2.png"
                      },
                      {
                        "type": "image",
                        "url": "https://example.com/duck-3.png"
                      },
                      {
                        "type": "video",
                        "url": "https://example.com/reference-3s.mp4"
                      }
                    ]
                  }
                },
                "kling-video-v4-reference-2": {
                  "summary": "音频参考与生成新声音",
                  "value": {
                    "model": "kling-video-v4",
                    "prompt": "保持参考中的同一只黄色玩具鸭，缓慢移动，固定镜头，无文字。",
                    "seconds": 5,
                    "output": {
                      "resolution": "720p",
                      "aspect_ratio": "16:9"
                    },
                    "workflow_id": "generate_audio",
                    "references": [
                      {
                        "type": "image",
                        "url": "https://example.com/duck-1.png"
                      },
                      {
                        "type": "image",
                        "url": "https://example.com/duck-2.png"
                      },
                      {
                        "type": "image",
                        "url": "https://example.com/duck-3.png"
                      },
                      {
                        "type": "audio",
                        "url": "https://example.com/voice-6s.wav"
                      }
                    ]
                  }
                },
                "kling-video-v4-reference-3": {
                  "summary": "参考视频保留原声",
                  "value": {
                    "model": "kling-video-v4",
                    "prompt": "保持参考中的同一只黄色玩具鸭，缓慢移动，固定镜头，无文字。",
                    "seconds": 5,
                    "output": {
                      "resolution": "720p",
                      "aspect_ratio": "16:9"
                    },
                    "workflow_id": "keep_original_sound",
                    "references": [
                      {
                        "type": "video",
                        "url": "https://example.com/reference-3s.mp4"
                      }
                    ]
                  }
                },
                "wan3.0-C1": {
                  "summary": "wan3.0-C1 480P 文生",
                  "value": {
                    "model": "wan3.0-C1",
                    "prompt": "固定镜头下，一只红纸船缓缓漂过水面。",
                    "seconds": 5,
                    "output": {
                      "resolution": "480p",
                      "aspect_ratio": "16:9"
                    }
                  }
                },
                "sd-2.0-c2": {
                  "summary": "480P人脸参考按次视频",
                  "value": {
                    "model": "sd-2.0-c2",
                    "prompt": "保持人物外观，人物自然眨眼、轻微转头后回正。",
                    "seconds": 15,
                    "output": {
                      "resolution": "480p",
                      "aspect_ratio": "9:16"
                    },
                    "references": [
                      {
                        "type": "image",
                        "role": "reference",
                        "url": "https://example.com/reference.png"
                      }
                    ]
                  }
                },
                "sd-2.5-c2": {
                  "summary": "720P人脸参考按次视频",
                  "value": {
                    "model": "sd-2.5-c2",
                    "prompt": "人物自然眨眼、轻微转头并微笑，保持参考图中的人物特征。",
                    "seconds": 30,
                    "output": {
                      "resolution": "720p",
                      "aspect_ratio": "9:16"
                    },
                    "references": [
                      {
                        "type": "image",
                        "role": "reference",
                        "url": "https://example.com/reference.jpg"
                      }
                    ]
                  }
                },
                "sd20c2_720p_text": {
                  "summary": "sd-2.0-c2 720p 文生，¥2.50/次",
                  "value": {
                    "model": "sd-2.0-c2",
                    "prompt": "晨光照进窗前，一只浅蓝陶瓷杯升起薄薄的蒸汽；固定镜头，无字幕。",
                    "seconds": 5,
                    "output": {
                      "resolution": "720p",
                      "aspect_ratio": "16:9"
                    }
                  }
                },
                "sd20c2_720p_reference": {
                  "summary": "sd-2.0-c2 720p 图音参考，2.50 额度/次",
                  "value": {
                    "model": "sd-2.0-c2",
                    "prompt": "晨光照进窗前，一只浅蓝陶瓷杯升起薄薄的蒸汽；固定镜头，无字幕。",
                    "seconds": 5,
                    "output": {
                      "resolution": "720p",
                      "aspect_ratio": "16:9"
                    },
                    "references": [
                      {
                        "type": "image",
                        "role": "reference",
                        "url": "https://example.com/reference.png"
                      },
                      {
                        "type": "audio",
                        "role": "reference",
                        "url": "https://example.com/reference.mp3"
                      }
                    ]
                  }
                },
                "magi-2-1080P": {
                  "summary": "MAGI-2 1080P · text/reference-to-video",
                  "value": {
                    "model": "magi-2-1080P",
                    "prompt": "一只红色纸船漂过平静的池塘，固定镜头，自然光。",
                    "seconds": 5,
                    "output": {
                      "resolution": "1080p",
                      "aspect_ratio": "16:9"
                    }
                  }
                },
                "sd-2.0-c1": {
                  "summary": "sd-2.0-c1 720P 文生",
                  "value": {
                    "model": "sd-2.0-c1",
                    "prompt": "固定镜头下，一只红纸船缓缓漂过水面。",
                    "seconds": 15,
                    "output": {
                      "resolution": "720p",
                      "aspect_ratio": "16:9"
                    }
                  }
                },
                "sd-2.5-c-720p-5s": {
                  "summary": "sd-2.5-c · 720p 5 秒示例",
                  "description": "720p 可选 5–30 秒整数（未传默认 30 秒），¥6/条；不自动改时长。480p 原规格不变。",
                  "value": {
                    "model": "sd-2.5-c",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 5,
                    "output": {
                      "resolution": "720p",
                      "aspect_ratio": "16:9"
                    }
                  }
                },
                "sd-2.5-c1-720p-5s": {
                  "summary": "sd-2.5-c1 · 720p 5 秒示例",
                  "description": "720p 可选 5–30 秒整数（未传默认 30 秒），¥6/条；不自动改时长。480p 原规格不变。",
                  "value": {
                    "model": "sd-2.5-c1",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 5,
                    "output": {
                      "resolution": "720p",
                      "aspect_ratio": "16:9"
                    }
                  }
                },
                "magi-2-1080P-frame-pair": {
                  "summary": "MAGI-2 1080P · 首尾帧",
                  "value": {
                    "model": "magi-2-1080P",
                    "prompt": "保持主体造型，镜头缓慢从首帧过渡到尾帧。",
                    "seconds": 5,
                    "output": {
                      "resolution": "1080p",
                      "aspect_ratio": "16:9"
                    },
                    "references": [
                      {
                        "type": "image",
                        "role": "first_frame",
                        "url": "https://example.com/start.png"
                      },
                      {
                        "type": "image",
                        "role": "last_frame",
                        "url": "https://example.com/end.png"
                      }
                    ]
                  }
                }
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/VideoMultipartRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Prefer: wait期限内已到终态；仍是同一任务",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Task"
                }
              }
            }
          },
          "202": {
            "description": "默认异步受理；保存id，查询原任务，不重复创建",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Task"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "description": "Permission or wallet quota rejection. insufficient_user_quota / 预扣费额度失败 means insufficient wallet balance, not lack of aspect-ratio support. The balance must cover the selected resolution and requested duration. A rejected precharge creates no generation task and deducts no generation fee. Check other 403 codes for key/model/group permissions.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficientBalance": {
                    "summary": "0.16 credits remaining, 0.36 credits required for a 4-second 768P request",
                    "value": {
                      "error": {
                        "code": "insufficient_user_quota",
                        "message": "预扣费额度失败, 用户剩余额度: ✦0.160000, 需要预扣费额度: ✦0.360000"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "502": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          },
          "504": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "get": {
        "operationId": "videoListNotImplemented",
        "responses": {
          "501": {
            "description": "列表尚未实现；不要依赖SDK该功能"
          }
        }
      }
    },
    "/v1/videos/{task_id}": {
      "get": {
        "operationId": "getVideo",
        "summary": "查询原任务；按 status 判断终态",
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "创建返回的任务 ID；国内官转支持 cgt- 和旧 task_，仍校验归属。"
          }
        ],
        "responses": {
          "200": {
            "description": "任务状态",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Task"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "502": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          },
          "504": {
            "$ref": "#/components/responses/Error"
          }
        },
        "description": "Compatibility alias of the canonical /draw/api/v1 route. "
      },
      "delete": {
        "operationId": "videoDeleteNotImplemented",
        "responses": {
          "501": {
            "description": "视频删除尚未实现"
          }
        }
      }
    },
    "/v1/videos/{task_id}/content": {
      "get": {
        "operationId": "downloadVideo",
        "summary": "带同一 Key 下载已完成结果",
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "创建返回的任务 ID；国内官转支持 cgt- 和旧 task_，仍校验归属。"
          },
          {
            "name": "Range",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "完整内容",
            "content": {
              "video/mp4": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "206": {
            "description": "分段内容",
            "content": {
              "video/mp4": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "416": {
            "description": "Range 越界"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "502": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          },
          "504": {
            "$ref": "#/components/responses/Error"
          },
          "302": {
            "description": "跳转到CDN/供应商签名直链；不得向第三方转发本站Authorization，也不得追加download=1或修改签名",
            "headers": {
              "Location": {
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          }
        },
        "description": "Compatibility alias of the canonical /draw/api/v1 route. "
      }
    },
    "/draw/api/v1/videos": {
      "post": {
        "summary": "创建视频生成、超分或去字幕任务",
        "description": "Canonical public route. Same handler, authentication and task lifecycle.  国内 doubao-seedance-2-0-260128 当前以Conchdata独立渠道275为主用、MYDD268为备用；其余三个国内型号继续由MYDD268供货，公开型号、路径和客户价格保持。原生与旧 /v1/video/generations 创建返回HTTP200，统一视频创建返回HTTP202，表示本站持久任务受理；主id和public_task_id先返回本站task_，不等待成片或cgt。后续查询仅在上游实际提供时补充upstream_task_id/provider_task_id中的真实cgt，未提供时为空或省略；主ID保持不变，官链按真实上游返回。旧task_async_/task_/cgt-查询继续兼容；未知提交只查原任务，不重复生成。\n\nMiniMax H3 03: 768P + multi-reference + 2:3 is rejected locally with HTTP 400 / minimax_parameter_unavailable before generation or billing. Use output.ratio=768p-9x16. Other workflows/resolutions are unchanged.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._:-]{8,128}$"
            },
            "description": "Recommended for ALL models. Omitted keys are generated. Save and reuse same key/payload; per-API-key scope; current retention 24h. Unknown outcomes must be reconciled, not blindly retried."
          },
          {
            "name": "X-Async-Expires-In",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Kling only; keep value unchanged for retries; not a universal model option or platform lifetime extension."
          },
          {
            "name": "Prefer",
            "in": "header",
            "required": false,
            "description": "respond-async 立即返回任务；wait=N 最多等待N秒，N为0–120整数。等待未结束返回202和原任务，不取消或重复提交。两种值不可同时使用。",
            "schema": {
              "type": "string",
              "pattern": "^(respond-async|wait=(?:[0-9]|[1-9][0-9]|1[01][0-9]|120))$"
            },
            "examples": {
              "async": {
                "value": "respond-async"
              },
              "sync": {
                "value": "wait=60"
              }
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/VideoRequest"
                  },
                  {
                    "$ref": "#/components/schemas/NativeWanRequest"
                  },
                  {
                    "$ref": "#/components/schemas/NativeSeedanceRequest"
                  },
                  {
                    "$ref": "#/components/schemas/KlingV4Request"
                  },
                  {
                    "$ref": "#/components/schemas/WanC1Request"
                  },
                  {
                    "$ref": "#/components/schemas/Seedance20C2Request"
                  },
                  {
                    "$ref": "#/components/schemas/Seedance25C2Request"
                  },
                  {
                    "$ref": "#/components/schemas/KlingV4OfficialRequest"
                  },
                  {
                    "$ref": "#/components/schemas/MuseVideoRequest"
                  },
                  {
                    "$ref": "#/components/schemas/GeminiOmni12FlashRequest"
                  }
                ]
              },
              "examples": {
                "topaz-upscale-video-4k": {
                  "summary": "topaz-upscale-video-4k · 当前能力生成器默认示例",
                  "value": {
                    "model": "topaz-upscale-video-4k",
                    "seconds": 9,
                    "output": {
                      "ratio": "4k"
                    },
                    "references": [
                      {
                        "type": "video",
                        "role": "source_video",
                        "url": "https://your-cdn.example/source.mp4"
                      }
                    ]
                  }
                },
                "doubao-seedance-2-5-260628": {
                  "summary": "doubao-seedance-2-5-260628 · 当前能力生成器默认示例",
                  "value": {
                    "model": "doubao-seedance-2-5-260628",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "480p-16x9"
                    }
                  }
                },
                "doubao-seedance-2-0-mini-260615": {
                  "summary": "doubao-seedance-2-0-mini-260615 · 当前能力生成器默认示例",
                  "value": {
                    "model": "doubao-seedance-2-0-mini-260615",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "480p-16x9"
                    }
                  }
                },
                "veo-3.1-fast": {
                  "summary": "veo-3.1-fast · 当前能力生成器默认示例",
                  "value": {
                    "model": "veo-3.1-fast",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 8,
                    "output": {
                      "ratio": "1280x720"
                    }
                  }
                },
                "doubao-seedance-2-0-fast-260128": {
                  "summary": "doubao-seedance-2-0-fast-260128 · 当前能力生成器默认示例",
                  "value": {
                    "model": "doubao-seedance-2-0-fast-260128",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "480p-16x9"
                    }
                  }
                },
                "topaz-upscale-video-1080p": {
                  "summary": "topaz-upscale-video-1080p · 当前能力生成器默认示例",
                  "value": {
                    "model": "topaz-upscale-video-1080p",
                    "seconds": 9,
                    "output": {
                      "ratio": "1080p"
                    },
                    "references": [
                      {
                        "type": "video",
                        "role": "source_video",
                        "url": "https://your-cdn.example/source.mp4"
                      }
                    ]
                  }
                },
                "veo-3.1-lite": {
                  "summary": "veo-3.1-lite · 当前能力生成器默认示例",
                  "value": {
                    "model": "veo-3.1-lite",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 8,
                    "output": {
                      "ratio": "1280x720"
                    }
                  }
                },
                "sd-2.5-c1": {
                  "summary": "sd-2.5-c1 · 当前能力生成器默认示例",
                  "value": {
                    "model": "sd-2.5-c1",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 30,
                    "output": {
                      "ratio": "720p"
                    }
                  },
                  "description": "720p 可选 5–30 秒整数（未传默认 30 秒），¥6/条；不自动改时长。480p 原规格不变。"
                },
                "doubao-seedance-2-0-260128": {
                  "summary": "doubao-seedance-2-0-260128 · 当前能力生成器默认示例",
                  "value": {
                    "model": "doubao-seedance-2-0-260128",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "480p-16x9"
                    }
                  }
                },
                "super-resolution": {
                  "summary": "super-resolution · 当前能力生成器默认示例",
                  "value": {
                    "model": "super-resolution",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 2,
                    "output": {
                      "ratio": "720p"
                    },
                    "references": [
                      {
                        "type": "video",
                        "role": "source_video",
                        "url": "https://xinfeng.best/video-api-docs/test-assets/u1-ref-blue-720p-20260919.mp4"
                      }
                    ]
                  }
                },
                "remove-subtitle": {
                  "summary": "remove-subtitle · 当前能力生成器默认示例",
                  "value": {
                    "model": "remove-subtitle",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 2,
                    "output": {
                      "ratio": "原画质"
                    },
                    "references": [
                      {
                        "type": "video",
                        "role": "source_video",
                        "url": "https://xinfeng.best/video-api-docs/test-assets/u1-ref-blue-720p-20260919.mp4"
                      }
                    ]
                  }
                },
                "sd-2.0-01": {
                  "summary": "sd-2.0-01 · 当前能力生成器默认示例",
                  "value": {
                    "model": "sd-2.0-01",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "480p"
                    }
                  }
                },
                "sd-2.5-01": {
                  "summary": "sd-2.5-01 · 当前能力生成器默认示例",
                  "value": {
                    "model": "sd-2.5-01",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "480p"
                    }
                  }
                },
                "sd-2.0-02": {
                  "summary": "sd-2.0-02 · 当前能力生成器默认示例",
                  "value": {
                    "model": "sd-2.0-02",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "480p"
                    }
                  }
                },
                "sd-2.5-02": {
                  "summary": "sd-2.5-02 · 当前能力生成器默认示例",
                  "value": {
                    "model": "sd-2.5-02",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "480p"
                    }
                  }
                },
                "sd-2.0-c": {
                  "summary": "sd-2.0-c · 当前能力生成器默认示例",
                  "value": {
                    "model": "sd-2.0-c",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 5,
                    "output": {
                      "ratio": "480p"
                    }
                  }
                },
                "sd-2.0-A": {
                  "summary": "sd-2.0-A · 当前能力生成器默认示例",
                  "value": {
                    "model": "sd-2.0-A",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "480p-16x9"
                    }
                  }
                },
                "sd-2.5-A": {
                  "summary": "sd-2.5-A · 当前能力生成器默认示例",
                  "value": {
                    "model": "sd-2.5-A",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "480p-16x9"
                    }
                  }
                },
                "sd-2.5-c": {
                  "summary": "sd-2.5-c · 当前能力生成器默认示例",
                  "value": {
                    "model": "sd-2.5-c",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 30,
                    "output": {
                      "ratio": "16:9"
                    }
                  },
                  "description": "720p 可选 5–30 秒整数（未传默认 30 秒），¥6/条；不自动改时长。480p 原规格不变。"
                },
                "wan3.0-video": {
                  "summary": "wan3.0-video · 当前能力生成器默认示例",
                  "value": {
                    "model": "wan3.0-video",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 2,
                    "output": {
                      "ratio": "720p-16:9"
                    }
                  }
                },
                "wan3.0-video-prime": {
                  "summary": "wan3.0-video-prime · 当前能力生成器默认示例",
                  "value": {
                    "model": "wan3.0-video-prime",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 2,
                    "output": {
                      "ratio": "720p-16:9"
                    }
                  }
                },
                "wan3.0-video-A": {
                  "summary": "wan3.0-video-A · 当前能力生成器默认示例",
                  "value": {
                    "model": "wan3.0-video-A",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 2,
                    "output": {
                      "ratio": "720p-16:9"
                    }
                  }
                },
                "wan3.0-video-prime-A": {
                  "summary": "wan3.0-video-prime-A · 当前能力生成器默认示例",
                  "value": {
                    "model": "wan3.0-video-prime-A",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 2,
                    "output": {
                      "ratio": "720p-16:9"
                    }
                  }
                },
                "grok-imagine-video": {
                  "summary": "grok-imagine-video · 当前能力生成器默认示例",
                  "value": {
                    "model": "grok-imagine-video",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 1,
                    "output": {
                      "ratio": "480p-16:9"
                    }
                  }
                },
                "grok-imagine-video-1.5": {
                  "summary": "grok-imagine-video-1.5 · 当前能力生成器默认示例",
                  "value": {
                    "model": "grok-imagine-video-1.5",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 1,
                    "output": {
                      "ratio": "480p-16:9"
                    }
                  }
                },
                "kling-3.0-01": {
                  "summary": "kling-3.0-01 · 当前能力生成器默认示例",
                  "value": {
                    "model": "kling-3.0-01",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 5,
                    "output": {
                      "ratio": "720p"
                    },
                    "settings": {
                      "audio": "off",
                      "multi_shot": false
                    }
                  }
                },
                "kling-3.0-omni-01": {
                  "summary": "kling-3.0-omni-01 · 当前能力生成器默认示例",
                  "value": {
                    "model": "kling-3.0-omni-01",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 5,
                    "output": {
                      "ratio": "720p"
                    },
                    "settings": {
                      "audio": "off",
                      "multi_shot": false
                    }
                  }
                },
                "kling-3.0": {
                  "summary": "kling-3.0 · 当前能力生成器默认示例",
                  "value": {
                    "model": "kling-3.0",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 5,
                    "output": {
                      "ratio": "720p"
                    },
                    "settings": {
                      "audio": "native",
                      "multi_shot": false
                    }
                  }
                },
                "kling-3.0-turbo": {
                  "summary": "kling-3.0-turbo · 当前能力生成器默认示例",
                  "value": {
                    "model": "kling-3.0-turbo",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 5,
                    "output": {
                      "ratio": "720p"
                    },
                    "settings": {
                      "multi_shot": false,
                      "audio": "native"
                    }
                  }
                },
                "kling-3.0-omni": {
                  "summary": "kling-3.0-omni · 当前能力生成器默认示例",
                  "value": {
                    "model": "kling-3.0-omni",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 5,
                    "output": {
                      "ratio": "720p"
                    },
                    "settings": {
                      "audio": "native",
                      "multi_shot": false
                    }
                  }
                },
                "kling-3.0-motion": {
                  "summary": "kling-3.0-motion · 当前能力生成器默认示例",
                  "value": {
                    "model": "kling-3.0-motion",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 5,
                    "output": {
                      "ratio": "720p"
                    },
                    "settings": {
                      "multi_shot": false,
                      "character_orientation": "image",
                      "audio": "off"
                    },
                    "references": [
                      {
                        "type": "image",
                        "role": "reference",
                        "url": "https://xinfeng.best/video-api-docs/test-assets/acceptance-ball-20260907.png"
                      },
                      {
                        "type": "video",
                        "role": "reference",
                        "url": "https://xinfeng.best/video-api-docs/test-assets/reference-limits-video.mp4"
                      }
                    ]
                  }
                },
                "kling-3.0-omni-video": {
                  "summary": "kling-3.0-omni-video · 当前能力生成器默认示例",
                  "value": {
                    "model": "kling-3.0-omni-video",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 5,
                    "output": {
                      "ratio": "720p"
                    },
                    "settings": {
                      "multi_shot": false,
                      "audio": "off"
                    },
                    "references": [
                      {
                        "type": "video",
                        "role": "feature_video",
                        "url": "https://xinfeng.best/video-api-docs/test-assets/reference-limits-video.mp4"
                      }
                    ]
                  }
                },
                "minimax_h3": {
                  "summary": "minimax_h3 · 当前能力生成器默认示例",
                  "value": {
                    "model": "minimax_h3",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "480p-16x9"
                    },
                    "variant": "03",
                    "workflow_id": "text-to-video"
                  }
                },
                "seedance-2.0-mini": {
                  "summary": "seedance-2.0-mini · 当前能力生成器默认示例",
                  "value": {
                    "model": "seedance-2.0-mini",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "480p"
                    }
                  }
                },
                "seedance-2.0-fast": {
                  "summary": "seedance-2.0-fast · 当前能力生成器默认示例",
                  "value": {
                    "model": "seedance-2.0-fast",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "720p"
                    }
                  }
                },
                "seedance-2.0": {
                  "summary": "seedance-2.0 · 当前能力生成器默认示例",
                  "value": {
                    "model": "seedance-2.0",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "480p"
                    }
                  }
                },
                "seedance-2.5": {
                  "summary": "seedance-2.5 · 当前能力生成器默认示例",
                  "value": {
                    "model": "seedance-2.5",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "480p"
                    }
                  }
                },
                "omni-flash": {
                  "summary": "omni-flash · 当前能力生成器默认示例",
                  "value": {
                    "model": "omni-flash",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "720p"
                    },
                    "variant": "生成"
                  }
                },
                "kling-3.0-silent": {
                  "summary": "kling-3.0 · 显式无声，不依赖有声默认",
                  "value": {
                    "model": "kling-3.0",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 5,
                    "output": {
                      "ratio": "720p"
                    },
                    "settings": {
                      "audio": "off",
                      "multi_shot": false
                    }
                  }
                },
                "kling-3.0-turbo-silent": {
                  "summary": "kling-3.0-turbo · 显式无声，不依赖有声默认",
                  "value": {
                    "model": "kling-3.0-turbo",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 5,
                    "output": {
                      "ratio": "720p"
                    },
                    "settings": {
                      "multi_shot": false,
                      "audio": "off"
                    }
                  }
                },
                "kling-3.0-omni-silent": {
                  "summary": "kling-3.0-omni · 显式无声，不依赖有声默认",
                  "value": {
                    "model": "kling-3.0-omni",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 5,
                    "output": {
                      "ratio": "720p"
                    },
                    "settings": {
                      "audio": "off",
                      "multi_shot": false
                    }
                  }
                },
                "kling-video-v4": {
                  "summary": "5秒横屏文生视频",
                  "value": {
                    "model": "kling-video-v4",
                    "prompt": "一只红色纸船在平静的水面上缓慢漂动，无文字。",
                    "seconds": 5,
                    "output": {
                      "resolution": "720p",
                      "aspect_ratio": "16:9"
                    }
                  }
                },
                "kling-video-v4-portrait": {
                  "summary": "10秒竖屏文生视频",
                  "value": {
                    "model": "kling-video-v4",
                    "prompt": "一只红色纸船在平静的水面上缓慢漂动，无文字。",
                    "seconds": 10,
                    "output": {
                      "resolution": "720p",
                      "aspect_ratio": "9:16"
                    }
                  }
                },
                "kling-video-v4-1080p": {
                  "summary": "1080P 5秒横屏文生视频",
                  "value": {
                    "model": "kling-video-v4",
                    "prompt": "一只橙色玩具火车沿木桌缓慢向右行驶，无文字。",
                    "seconds": 5,
                    "output": {
                      "resolution": "1080p",
                      "aspect_ratio": "16:9"
                    }
                  }
                },
                "kling-video-v4-1080p-image": {
                  "summary": "1080P 5秒图片参考视频",
                  "value": {
                    "model": "kling-video-v4",
                    "prompt": "保持参考图片中的人物和服装，轻微转头并微笑，固定镜头。",
                    "seconds": 5,
                    "output": {
                      "resolution": "1080p",
                      "aspect_ratio": "9:16"
                    },
                    "images": [
                      {
                        "image_url": "https://raw.githubusercontent.com/scikit-image/scikit-image/v0.18.0/skimage/data/astronaut.png"
                      }
                    ]
                  }
                },
                "kling-video-v4-reference-0": {
                  "summary": "显式首尾帧（同Key file_id与URL）",
                  "value": {
                    "model": "kling-video-v4",
                    "prompt": "保持参考中的同一只黄色玩具鸭，缓慢移动，固定镜头，无文字。",
                    "seconds": 5,
                    "output": {
                      "resolution": "720p",
                      "aspect_ratio": "16:9"
                    },
                    "references": [
                      {
                        "type": "image",
                        "role": "first_frame",
                        "file_id": "file_replace_with_your_upload"
                      },
                      {
                        "type": "image",
                        "role": "last_frame",
                        "url": "https://example.com/last.png"
                      }
                    ]
                  }
                },
                "kling-video-v4-reference-1": {
                  "summary": "混合参考：三图加3秒参考视频",
                  "value": {
                    "model": "kling-video-v4",
                    "prompt": "保持参考中的同一只黄色玩具鸭，缓慢移动，固定镜头，无文字。",
                    "seconds": 5,
                    "output": {
                      "resolution": "720p",
                      "aspect_ratio": "16:9"
                    },
                    "references": [
                      {
                        "type": "image",
                        "url": "https://example.com/duck-1.png"
                      },
                      {
                        "type": "image",
                        "url": "https://example.com/duck-2.png"
                      },
                      {
                        "type": "image",
                        "url": "https://example.com/duck-3.png"
                      },
                      {
                        "type": "video",
                        "url": "https://example.com/reference-3s.mp4"
                      }
                    ]
                  }
                },
                "kling-video-v4-reference-2": {
                  "summary": "音频参考与生成新声音",
                  "value": {
                    "model": "kling-video-v4",
                    "prompt": "保持参考中的同一只黄色玩具鸭，缓慢移动，固定镜头，无文字。",
                    "seconds": 5,
                    "output": {
                      "resolution": "720p",
                      "aspect_ratio": "16:9"
                    },
                    "workflow_id": "generate_audio",
                    "references": [
                      {
                        "type": "image",
                        "url": "https://example.com/duck-1.png"
                      },
                      {
                        "type": "image",
                        "url": "https://example.com/duck-2.png"
                      },
                      {
                        "type": "image",
                        "url": "https://example.com/duck-3.png"
                      },
                      {
                        "type": "audio",
                        "url": "https://example.com/voice-6s.wav"
                      }
                    ]
                  }
                },
                "kling-video-v4-reference-3": {
                  "summary": "参考视频保留原声",
                  "value": {
                    "model": "kling-video-v4",
                    "prompt": "保持参考中的同一只黄色玩具鸭，缓慢移动，固定镜头，无文字。",
                    "seconds": 5,
                    "output": {
                      "resolution": "720p",
                      "aspect_ratio": "16:9"
                    },
                    "workflow_id": "keep_original_sound",
                    "references": [
                      {
                        "type": "video",
                        "url": "https://example.com/reference-3s.mp4"
                      }
                    ]
                  }
                },
                "wan3.0-C1": {
                  "summary": "15秒竖屏异步文生视频",
                  "value": {
                    "model": "wan3.0-C1",
                    "prompt": "一只橘猫趴在窗边，阳光温暖，镜头缓慢推进。",
                    "seconds": 15,
                    "output": {
                      "resolution": "1080p",
                      "aspect_ratio": "9:16"
                    },
                    "generate_audio": true
                  }
                },
                "sd-2.0-c2": {
                  "summary": "480P人脸参考按次视频",
                  "value": {
                    "model": "sd-2.0-c2",
                    "prompt": "保持人物外观，人物自然眨眼、轻微转头后回正。",
                    "seconds": 15,
                    "output": {
                      "resolution": "480p",
                      "aspect_ratio": "9:16"
                    },
                    "references": [
                      {
                        "type": "image",
                        "role": "reference",
                        "url": "https://example.com/reference.png"
                      }
                    ]
                  }
                },
                "sd-2.5-c2": {
                  "summary": "720P人脸参考按次视频",
                  "value": {
                    "model": "sd-2.5-c2",
                    "prompt": "人物自然眨眼、轻微转头并微笑，保持参考图中的人物特征。",
                    "seconds": 30,
                    "output": {
                      "resolution": "720p",
                      "aspect_ratio": "9:16"
                    },
                    "references": [
                      {
                        "type": "image",
                        "role": "reference",
                        "url": "https://example.com/reference.jpg"
                      }
                    ]
                  }
                },
                "sd-2.5-c-720p-5s": {
                  "summary": "sd-2.5-c · 720p 5 秒示例",
                  "description": "720p 可选 5–30 秒整数（未传默认 30 秒），¥6/条；不自动改时长。480p 原规格不变。",
                  "value": {
                    "model": "sd-2.5-c",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 5,
                    "output": {
                      "resolution": "720p",
                      "aspect_ratio": "16:9"
                    }
                  }
                },
                "sd-2.5-c1-720p-5s": {
                  "summary": "sd-2.5-c1 · 720p 5 秒示例",
                  "description": "720p 可选 5–30 秒整数（未传默认 30 秒），¥6/条；不自动改时长。480p 原规格不变。",
                  "value": {
                    "model": "sd-2.5-c1",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 5,
                    "output": {
                      "resolution": "720p",
                      "aspect_ratio": "16:9"
                    }
                  }
                }
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/VideoMultipartRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Prefer: wait期限内已到终态；仍是同一任务",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Task"
                }
              }
            }
          },
          "202": {
            "description": "默认异步受理；保存id，查询原任务，不重复创建",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Task"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "description": "Permission or wallet quota rejection. insufficient_user_quota / 预扣费额度失败 means insufficient wallet balance, not lack of aspect-ratio support. The balance must cover the selected resolution and requested duration. A rejected precharge creates no generation task and deducts no generation fee. Check other 403 codes for key/model/group permissions.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficientBalance": {
                    "summary": "0.16 credits remaining, 0.36 credits required for a 4-second 768P request",
                    "value": {
                      "error": {
                        "code": "insufficient_user_quota",
                        "message": "预扣费额度失败, 用户剩余额度: ✦0.160000, 需要预扣费额度: ✦0.360000"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "502": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          },
          "504": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/v1/videos/generations": {
      "post": {
        "summary": "创建视频生成、超分或去字幕任务",
        "description": "Compatibility alias of the canonical /draw/api/v1 route. Compatibility alias of /v1/videos. Same handler, authentication and task lifecycle. 国内 doubao-seedance-2-0-260128 当前以Conchdata独立渠道275为主用、MYDD268为备用；其余三个国内型号继续由MYDD268供货，公开型号、路径和客户价格保持。原生与旧 /v1/video/generations 创建返回HTTP200，统一视频创建返回HTTP202，表示本站持久任务受理；主id和public_task_id先返回本站task_，不等待成片或cgt。后续查询仅在上游实际提供时补充upstream_task_id/provider_task_id中的真实cgt，未提供时为空或省略；主ID保持不变，官链按真实上游返回。旧task_async_/task_/cgt-查询继续兼容；未知提交只查原任务，不重复生成。",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._:-]{8,128}$"
            },
            "description": "Recommended for ALL models. Omitted keys are generated. Save and reuse same key/payload; per-API-key scope; current retention 24h. Unknown outcomes must be reconciled, not blindly retried."
          },
          {
            "name": "X-Async-Expires-In",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Kling only; keep value unchanged for retries; not a universal model option or platform lifetime extension."
          },
          {
            "name": "Prefer",
            "in": "header",
            "required": false,
            "description": "respond-async 立即返回任务；wait=N 最多等待N秒，N为0–120整数。等待未结束返回202和原任务，不取消或重复提交。两种值不可同时使用。",
            "schema": {
              "type": "string",
              "pattern": "^(respond-async|wait=(?:[0-9]|[1-9][0-9]|1[01][0-9]|120))$"
            },
            "examples": {
              "async": {
                "value": "respond-async"
              },
              "sync": {
                "value": "wait=60"
              }
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/VideoRequest"
                  },
                  {
                    "$ref": "#/components/schemas/NativeWanRequest"
                  },
                  {
                    "$ref": "#/components/schemas/NativeSeedanceRequest"
                  }
                ]
              },
              "examples": {
                "topaz-upscale-video-4k": {
                  "summary": "topaz-upscale-video-4k · 当前能力生成器默认示例",
                  "value": {
                    "model": "topaz-upscale-video-4k",
                    "seconds": 9,
                    "output": {
                      "ratio": "4k"
                    },
                    "references": [
                      {
                        "type": "video",
                        "role": "source_video",
                        "url": "https://your-cdn.example/source.mp4"
                      }
                    ]
                  }
                },
                "doubao-seedance-2-5-260628": {
                  "summary": "doubao-seedance-2-5-260628 · 当前能力生成器默认示例",
                  "value": {
                    "model": "doubao-seedance-2-5-260628",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "480p-16x9"
                    }
                  }
                },
                "doubao-seedance-2-0-mini-260615": {
                  "summary": "doubao-seedance-2-0-mini-260615 · 当前能力生成器默认示例",
                  "value": {
                    "model": "doubao-seedance-2-0-mini-260615",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "480p-16x9"
                    }
                  }
                },
                "veo-3.1-fast": {
                  "summary": "veo-3.1-fast · 当前能力生成器默认示例",
                  "value": {
                    "model": "veo-3.1-fast",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 8,
                    "output": {
                      "ratio": "1280x720"
                    }
                  }
                },
                "doubao-seedance-2-0-fast-260128": {
                  "summary": "doubao-seedance-2-0-fast-260128 · 当前能力生成器默认示例",
                  "value": {
                    "model": "doubao-seedance-2-0-fast-260128",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "480p-16x9"
                    }
                  }
                },
                "topaz-upscale-video-1080p": {
                  "summary": "topaz-upscale-video-1080p · 当前能力生成器默认示例",
                  "value": {
                    "model": "topaz-upscale-video-1080p",
                    "seconds": 9,
                    "output": {
                      "ratio": "1080p"
                    },
                    "references": [
                      {
                        "type": "video",
                        "role": "source_video",
                        "url": "https://your-cdn.example/source.mp4"
                      }
                    ]
                  }
                },
                "veo-3.1-lite": {
                  "summary": "veo-3.1-lite · 当前能力生成器默认示例",
                  "value": {
                    "model": "veo-3.1-lite",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 8,
                    "output": {
                      "ratio": "1280x720"
                    }
                  }
                },
                "sd-2.5-c1": {
                  "summary": "sd-2.5-c1 · 当前能力生成器默认示例",
                  "value": {
                    "model": "sd-2.5-c1",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 30,
                    "output": {
                      "ratio": "720p"
                    }
                  },
                  "description": "720p 可选 5–30 秒整数（未传默认 30 秒），¥6/条；不自动改时长。480p 原规格不变。"
                },
                "doubao-seedance-2-0-260128": {
                  "summary": "doubao-seedance-2-0-260128 · 当前能力生成器默认示例",
                  "value": {
                    "model": "doubao-seedance-2-0-260128",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "480p-16x9"
                    }
                  }
                },
                "super-resolution": {
                  "summary": "super-resolution · 当前能力生成器默认示例",
                  "value": {
                    "model": "super-resolution",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 2,
                    "output": {
                      "ratio": "720p"
                    },
                    "references": [
                      {
                        "type": "video",
                        "role": "source_video",
                        "url": "https://xinfeng.best/video-api-docs/test-assets/u1-ref-blue-720p-20260919.mp4"
                      }
                    ]
                  }
                },
                "remove-subtitle": {
                  "summary": "remove-subtitle · 当前能力生成器默认示例",
                  "value": {
                    "model": "remove-subtitle",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 2,
                    "output": {
                      "ratio": "原画质"
                    },
                    "references": [
                      {
                        "type": "video",
                        "role": "source_video",
                        "url": "https://xinfeng.best/video-api-docs/test-assets/u1-ref-blue-720p-20260919.mp4"
                      }
                    ]
                  }
                },
                "sd-2.0-01": {
                  "summary": "sd-2.0-01 · 当前能力生成器默认示例",
                  "value": {
                    "model": "sd-2.0-01",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "480p"
                    }
                  }
                },
                "sd-2.5-01": {
                  "summary": "sd-2.5-01 · 当前能力生成器默认示例",
                  "value": {
                    "model": "sd-2.5-01",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "480p"
                    }
                  }
                },
                "sd-2.0-02": {
                  "summary": "sd-2.0-02 · 当前能力生成器默认示例",
                  "value": {
                    "model": "sd-2.0-02",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "480p"
                    }
                  }
                },
                "sd-2.5-02": {
                  "summary": "sd-2.5-02 · 当前能力生成器默认示例",
                  "value": {
                    "model": "sd-2.5-02",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "480p"
                    }
                  }
                },
                "sd-2.0-c": {
                  "summary": "sd-2.0-c · 当前能力生成器默认示例",
                  "value": {
                    "model": "sd-2.0-c",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 5,
                    "output": {
                      "ratio": "480p"
                    }
                  }
                },
                "sd-2.0-A": {
                  "summary": "sd-2.0-A · 当前能力生成器默认示例",
                  "value": {
                    "model": "sd-2.0-A",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "480p-16x9"
                    }
                  }
                },
                "sd-2.5-A": {
                  "summary": "sd-2.5-A · 当前能力生成器默认示例",
                  "value": {
                    "model": "sd-2.5-A",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "480p-16x9"
                    }
                  }
                },
                "sd-2.5-c": {
                  "summary": "sd-2.5-c · 当前能力生成器默认示例",
                  "value": {
                    "model": "sd-2.5-c",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 30,
                    "output": {
                      "ratio": "16:9"
                    }
                  },
                  "description": "720p 可选 5–30 秒整数（未传默认 30 秒），¥6/条；不自动改时长。480p 原规格不变。"
                },
                "wan3.0-video": {
                  "summary": "wan3.0-video · 当前能力生成器默认示例",
                  "value": {
                    "model": "wan3.0-video",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 2,
                    "output": {
                      "ratio": "720p-16:9"
                    }
                  }
                },
                "wan3.0-video-prime": {
                  "summary": "wan3.0-video-prime · 当前能力生成器默认示例",
                  "value": {
                    "model": "wan3.0-video-prime",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 2,
                    "output": {
                      "ratio": "720p-16:9"
                    }
                  }
                },
                "wan3.0-video-A": {
                  "summary": "wan3.0-video-A · 当前能力生成器默认示例",
                  "value": {
                    "model": "wan3.0-video-A",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 2,
                    "output": {
                      "ratio": "720p-16:9"
                    }
                  }
                },
                "wan3.0-video-prime-A": {
                  "summary": "wan3.0-video-prime-A · 当前能力生成器默认示例",
                  "value": {
                    "model": "wan3.0-video-prime-A",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 2,
                    "output": {
                      "ratio": "720p-16:9"
                    }
                  }
                },
                "grok-imagine-video": {
                  "summary": "grok-imagine-video · 当前能力生成器默认示例",
                  "value": {
                    "model": "grok-imagine-video",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 1,
                    "output": {
                      "ratio": "480p-16:9"
                    }
                  }
                },
                "grok-imagine-video-1.5": {
                  "summary": "grok-imagine-video-1.5 · 当前能力生成器默认示例",
                  "value": {
                    "model": "grok-imagine-video-1.5",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 1,
                    "output": {
                      "ratio": "480p-16:9"
                    }
                  }
                },
                "kling-3.0-01": {
                  "summary": "kling-3.0-01 · 当前能力生成器默认示例",
                  "value": {
                    "model": "kling-3.0-01",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 5,
                    "output": {
                      "ratio": "720p"
                    },
                    "settings": {
                      "audio": "off",
                      "multi_shot": false
                    }
                  }
                },
                "kling-3.0-omni-01": {
                  "summary": "kling-3.0-omni-01 · 当前能力生成器默认示例",
                  "value": {
                    "model": "kling-3.0-omni-01",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 5,
                    "output": {
                      "ratio": "720p"
                    },
                    "settings": {
                      "audio": "off",
                      "multi_shot": false
                    }
                  }
                },
                "kling-3.0": {
                  "summary": "kling-3.0 · 当前能力生成器默认示例",
                  "value": {
                    "model": "kling-3.0",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 5,
                    "output": {
                      "ratio": "720p"
                    },
                    "settings": {
                      "audio": "native",
                      "multi_shot": false
                    }
                  }
                },
                "kling-3.0-turbo": {
                  "summary": "kling-3.0-turbo · 当前能力生成器默认示例",
                  "value": {
                    "model": "kling-3.0-turbo",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 5,
                    "output": {
                      "ratio": "720p"
                    },
                    "settings": {
                      "multi_shot": false,
                      "audio": "native"
                    }
                  }
                },
                "kling-3.0-omni": {
                  "summary": "kling-3.0-omni · 当前能力生成器默认示例",
                  "value": {
                    "model": "kling-3.0-omni",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 5,
                    "output": {
                      "ratio": "720p"
                    },
                    "settings": {
                      "audio": "native",
                      "multi_shot": false
                    }
                  }
                },
                "kling-3.0-motion": {
                  "summary": "kling-3.0-motion · 当前能力生成器默认示例",
                  "value": {
                    "model": "kling-3.0-motion",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 5,
                    "output": {
                      "ratio": "720p"
                    },
                    "settings": {
                      "multi_shot": false,
                      "character_orientation": "image",
                      "audio": "off"
                    },
                    "references": [
                      {
                        "type": "image",
                        "role": "reference",
                        "url": "https://xinfeng.best/video-api-docs/test-assets/acceptance-ball-20260907.png"
                      },
                      {
                        "type": "video",
                        "role": "reference",
                        "url": "https://xinfeng.best/video-api-docs/test-assets/reference-limits-video.mp4"
                      }
                    ]
                  }
                },
                "kling-3.0-omni-video": {
                  "summary": "kling-3.0-omni-video · 当前能力生成器默认示例",
                  "value": {
                    "model": "kling-3.0-omni-video",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 5,
                    "output": {
                      "ratio": "720p"
                    },
                    "settings": {
                      "multi_shot": false,
                      "audio": "off"
                    },
                    "references": [
                      {
                        "type": "video",
                        "role": "feature_video",
                        "url": "https://xinfeng.best/video-api-docs/test-assets/reference-limits-video.mp4"
                      }
                    ]
                  }
                },
                "minimax_h3": {
                  "summary": "minimax_h3 · 当前能力生成器默认示例",
                  "value": {
                    "model": "minimax_h3",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "480p-16x9"
                    },
                    "variant": "03",
                    "workflow_id": "text-to-video"
                  }
                },
                "seedance-2.0-mini": {
                  "summary": "seedance-2.0-mini · 当前能力生成器默认示例",
                  "value": {
                    "model": "seedance-2.0-mini",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "480p"
                    }
                  }
                },
                "seedance-2.0-fast": {
                  "summary": "seedance-2.0-fast · 当前能力生成器默认示例",
                  "value": {
                    "model": "seedance-2.0-fast",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "720p"
                    }
                  }
                },
                "seedance-2.0": {
                  "summary": "seedance-2.0 · 当前能力生成器默认示例",
                  "value": {
                    "model": "seedance-2.0",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "480p"
                    }
                  }
                },
                "seedance-2.5": {
                  "summary": "seedance-2.5 · 当前能力生成器默认示例",
                  "value": {
                    "model": "seedance-2.5",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "480p"
                    }
                  }
                },
                "omni-flash": {
                  "summary": "omni-flash · 当前能力生成器默认示例",
                  "value": {
                    "model": "omni-flash",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 4,
                    "output": {
                      "ratio": "720p"
                    },
                    "variant": "生成"
                  }
                },
                "kling-3.0-silent": {
                  "summary": "kling-3.0 · 显式无声，不依赖有声默认",
                  "value": {
                    "model": "kling-3.0",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 5,
                    "output": {
                      "ratio": "720p"
                    },
                    "settings": {
                      "audio": "off",
                      "multi_shot": false
                    }
                  }
                },
                "kling-3.0-turbo-silent": {
                  "summary": "kling-3.0-turbo · 显式无声，不依赖有声默认",
                  "value": {
                    "model": "kling-3.0-turbo",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 5,
                    "output": {
                      "ratio": "720p"
                    },
                    "settings": {
                      "multi_shot": false,
                      "audio": "off"
                    }
                  }
                },
                "kling-3.0-omni-silent": {
                  "summary": "kling-3.0-omni · 显式无声，不依赖有声默认",
                  "value": {
                    "model": "kling-3.0-omni",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 5,
                    "output": {
                      "ratio": "720p"
                    },
                    "settings": {
                      "audio": "off",
                      "multi_shot": false
                    }
                  }
                },
                "sd-2.5-c-720p-5s": {
                  "summary": "sd-2.5-c · 720p 5 秒示例",
                  "description": "720p 可选 5–30 秒整数（未传默认 30 秒），¥6/条；不自动改时长。480p 原规格不变。",
                  "value": {
                    "model": "sd-2.5-c",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 5,
                    "output": {
                      "resolution": "720p",
                      "aspect_ratio": "16:9"
                    }
                  }
                },
                "sd-2.5-c1-720p-5s": {
                  "summary": "sd-2.5-c1 · 720p 5 秒示例",
                  "description": "720p 可选 5–30 秒整数（未传默认 30 秒），¥6/条；不自动改时长。480p 原规格不变。",
                  "value": {
                    "model": "sd-2.5-c1",
                    "prompt": "A red toy car slowly moves across a wooden table, smooth camera motion.",
                    "seconds": 5,
                    "output": {
                      "resolution": "720p",
                      "aspect_ratio": "16:9"
                    }
                  }
                }
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/VideoMultipartRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Prefer: wait期限内已到终态；仍是同一任务",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Task"
                }
              }
            }
          },
          "202": {
            "description": "默认异步受理；保存id，查询原任务，不重复创建",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Task"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "description": "Permission or wallet quota rejection. insufficient_user_quota / 预扣费额度失败 means insufficient wallet balance, not lack of aspect-ratio support. The balance must cover the selected resolution and requested duration. A rejected precharge creates no generation task and deducts no generation fee. Check other 403 codes for key/model/group permissions.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficientBalance": {
                    "summary": "0.16 credits remaining, 0.36 credits required for a 4-second 768P request",
                    "value": {
                      "error": {
                        "code": "insufficient_user_quota",
                        "message": "预扣费额度失败, 用户剩余额度: ✦0.160000, 需要预扣费额度: ✦0.360000"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "502": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          },
          "504": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/draw/api/v1/videos/{task_id}": {
      "get": {
        "summary": "查询原任务；按 status 判断终态",
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "创建返回的任务 ID；国内官转支持 cgt- 和旧 task_，仍校验归属。"
          }
        ],
        "responses": {
          "200": {
            "description": "任务状态",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Task"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "502": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          },
          "504": {
            "$ref": "#/components/responses/Error"
          }
        },
        "description": "Canonical public route. Same handler, authentication and task lifecycle."
      }
    },
    "/draw/api/v1/videos/{task_id}/content": {
      "get": {
        "summary": "带同一 Key 下载已完成结果",
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "创建返回的任务 ID；国内官转支持 cgt- 和旧 task_，仍校验归属。"
          },
          {
            "name": "Range",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "完整内容",
            "content": {
              "video/mp4": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "206": {
            "description": "分段内容",
            "content": {
              "video/mp4": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "416": {
            "description": "Range 越界"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "502": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          },
          "504": {
            "$ref": "#/components/responses/Error"
          },
          "302": {
            "description": "跳转到CDN/供应商签名直链；不得向第三方转发本站Authorization，也不得追加download=1或修改签名",
            "headers": {
              "Location": {
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          }
        },
        "description": "Canonical public route. Same handler, authentication and task lifecycle."
      }
    },
    "/api/v3/contents/generations/tasks": {
      "post": {
        "summary": "Seedance火山/BytePlus风格创建兼容接口",
        "description": "国内 doubao-seedance-2-0-260128 当前以Conchdata独立渠道275为主用、MYDD268为备用；其余三个国内型号继续由MYDD268供货，公开型号、路径和客户价格保持。原生与旧 /v1/video/generations 创建返回HTTP200，统一视频创建返回HTTP202，表示本站持久任务受理；主id和public_task_id先返回本站task_，不等待成片或cgt。后续查询仅在上游实际提供时补充upstream_task_id/provider_task_id中的真实cgt，未提供时为空或省略；主ID保持不变，官链按真实上游返回。旧task_async_/task_/cgt-查询继续兼容；未知提交只查原任务，不重复生成。 本站 Bearer Key，建议携带 Idempotency-Key，关闭创建 POST 自动重试；等待的是上游受理，不是视频生成完成。",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 128
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ArkSeedanceRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "已受理，不代表成片",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "国内 doubao-seedance-2-0-260128 当前以Conchdata独立渠道275为主用、MYDD268为备用；其余三个国内型号继续由MYDD268供货，公开型号、路径和客户价格保持。原生与旧 /v1/video/generations 创建返回HTTP200，统一视频创建返回HTTP202，表示本站持久任务受理；主id和public_task_id先返回本站task_，不等待成片或cgt。后续查询仅在上游实际提供时补充upstream_task_id/provider_task_id中的真实cgt，未提供时为空或省略；主ID保持不变，官链按真实上游返回。旧task_async_/task_/cgt-查询继续兼容；未知提交只查原任务，不重复生成。"
                    },
                    "site_task_id": {
                      "type": "string",
                      "description": "本站持久编号；未知上游编号时仍可用来查询原任务。"
                    },
                    "upstream_task_id": {
                      "type": "string",
                      "description": "上游已提供时返回完整原始编号；未提供时保持省略，之后查询原任务补齐。"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "$ref": "#/components/responses/Error"
          },
          "502": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          },
          "504": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "get": {
        "summary": "任务列表尚不支持",
        "responses": {
          "501": {
            "description": "OperationNotSupported，不返回列表、不修改任务"
          }
        }
      }
    },
    "/api/v3/contents/generations/tasks/{task_id}": {
      "parameters": [
        {
          "in": "path",
          "name": "task_id",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "本站task_id，区分大小写"
        }
      ],
      "get": {
        "summary": "查询Seedance火山/BytePlus兼容任务",
        "responses": {
          "200": {
            "description": "原生风格任务对象",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArkSeedanceTask"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "502": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "delete": {
        "summary": "取消/删除尚不支持",
        "responses": {
          "501": {
            "description": "OperationNotSupported，不取消任务、不更改账单"
          }
        }
      }
    },
    "/v1/files": {
      "post": {
        "operationId": "uploadMediaFile",
        "summary": "上传参考素材；不生成图片或视频",
        "description": "同一API Key隔离，默认7天；单文件128MiB和总字节预算不代表模型允许128MiB。purpose=vision用于图片参考，供应商/模型素材检查仍独立执行。 Platform Files upload: 200 MiB per file, 320 MiB encoded multipart request. Ownership remains scoped to the uploading API key; retention remains 7 days. Image generation and video generation keep their respective reference/request budgets.",
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  },
                  "purpose": {
                    "type": "string",
                    "enum": [
                      "vision",
                      "user_data",
                      "assistants",
                      "batch",
                      "fine-tune",
                      "evals"
                    ]
                  }
                },
                "required": [
                  "file",
                  "purpose"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "已保存文件；保留返回id和expires_at",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenAIFile"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "listMediaFiles",
        "summary": "只列出同Key文件",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "purpose",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "分页文件列表",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenAIFileList"
                }
              }
            }
          }
        }
      }
    },
    "/v1/files/{file_id}": {
      "parameters": [
        {
          "name": "file_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^file_[A-Za-z0-9_-]{20,96}$"
          }
        }
      ],
      "get": {
        "operationId": "retrieveMediaFile",
        "responses": {
          "200": {
            "description": "同Key文件元数据",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenAIFile"
                }
              }
            }
          },
          "404": {
            "description": "不存在、过期或不属于此Key"
          }
        }
      },
      "delete": {
        "operationId": "deleteMediaFile",
        "responses": {
          "200": {
            "description": "删除同Key文件",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenAIFileDeleted"
                }
              }
            }
          },
          "404": {
            "description": "不存在、过期或不属于此Key"
          }
        }
      }
    },
    "/v1/files/{file_id}/content": {
      "parameters": [
        {
          "name": "file_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^file_[A-Za-z0-9_-]{20,96}$"
          }
        }
      ],
      "get": {
        "operationId": "readMediaFile",
        "responses": {
          "200": {
            "description": "原始文件字节，不是生成结果",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "404": {
            "description": "不存在、过期或不属于此Key"
          }
        }
      }
    },
    "/draw/api/v1/media-capabilities": {
      "get": {
        "operationId": "publicMediaCapabilities",
        "summary": "只读公开媒体能力，用于模型广场示例/参数",
        "description": "不需要Key，不授予生成权限；与按Key目录不同。仅公开可售型号与能力，不含内部渠道、供应商、Key或路由模型。加载失败不能回退猜测的型号/规格。",
        "security": [],
        "responses": {
          "200": {
            "description": "当前公开能力；outputs/durations/references/request为参数依据",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaCapabilities"
                }
              }
            }
          },
          "503": {
            "description": "能力暂不可读；停止生成示例并稍后重试"
          }
        }
      }
    },
    "/v1/images/generations": {
      "post": {
        "operationId": "createImage",
        "tags": [
          "Images"
        ],
        "summary": "图片生成",
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._:-]{8,128}$"
            },
            "description": "Recommended for ALL models. Omitted keys are generated. Save and reuse same key/payload; per-API-key scope; current retention 24h. Unknown outcomes must be reconciled, not blindly retried."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/ImageRequest"
                  },
                  {
                    "$ref": "#/components/schemas/MidjourneyFullRequest"
                  }
                ]
              },
              "examples": {
                "mj_full": {
                  "summary": "文生图 · 返回四张 URL",
                  "description": "普通生成一次提交，成功后遍历 data 中的四个结果。保存本次 Idempotency-Key 便于查询原单。",
                  "value": {
                    "model": "Midjourney-全系列",
                    "prompt": "一盏青瓷台灯，暖光照在亚麻桌布上。",
                    "operation": "imagine",
                    "version": "8.2",
                    "size": "3:4",
                    "n": 1,
                    "response_format": "url"
                  }
                },
                "mj_advanced": {
                  "summary": "高清、画幅与随机种子",
                  "description": "v8.1 和 v8.2 使用 hd 选择高清。1K 时移除提示词中的 --hd，2K 可写 hd=true。官网 V8 不支持 --q，示例省略 quality。",
                  "value": {
                    "model": "Midjourney-全系列",
                    "prompt": "俯视木质工作台，光线柔和，画面整洁。",
                    "operation": "imagine",
                    "version": "8.2",
                    "aspect_ratio": "16:9",
                    "hd": true,
                    "raw": true,
                    "stylize": 150,
                    "chaos": 8,
                    "seed": 421,
                    "no": "文字、水印",
                    "n": 1,
                    "response_format": "url"
                  }
                },
                "mj_tile": {
                  "summary": "无缝纹样与生成进度",
                  "description": "",
                  "value": {
                    "model": "Midjourney-全系列",
                    "prompt": "靛蓝色印花布料，细密的重复几何图案。",
                    "operation": "imagine",
                    "tile": true,
                    "weird": 30,
                    "stop": 90,
                    "size": "1:1",
                    "n": 1,
                    "response_format": "url"
                  }
                },
                "mj_niji": {
                  "summary": "选择 Niji 版本",
                  "description": "使用 niji_version 选择 Niji 5、6 或 7，同一请求只选择一个版本系列。",
                  "value": {
                    "model": "Midjourney-全系列",
                    "prompt": "动画背景，海边小站，雨后的蓝色夜空。",
                    "operation": "imagine",
                    "niji_version": "7",
                    "size": "16:9",
                    "n": 1,
                    "response_format": "url"
                  }
                },
                "mj_style_reference": {
                  "summary": "风格参考 · sref / sw",
                  "description": "",
                  "value": {
                    "model": "Midjourney-全系列",
                    "prompt": "保持桌灯构图，使用参考图的色彩风格。",
                    "operation": "imagine",
                    "sref": "https://xinfeng.best/video-api-docs/test-assets/acceptance-ball-20260907.png",
                    "sw": 180,
                    "n": 1,
                    "response_format": "url"
                  }
                },
                "mj_character": {
                  "summary": "角色参考 · cref / cw",
                  "description": "角色参考适用于 v6、v6.1 和 Niji 6。请将示例参考图换成自己的角色图片。",
                  "value": {
                    "model": "Midjourney-全系列",
                    "prompt": "同一角色的半身插画，背景简洁。",
                    "operation": "imagine",
                    "version": "6.1",
                    "cref": "https://xinfeng.best/video-api-docs/test-assets/acceptance-ball-20260907.png",
                    "cw": 75,
                    "n": 1,
                    "response_format": "url"
                  }
                },
                "mj_omni": {
                  "summary": "对象参考 · oref / ow",
                  "description": "对象参考使用 Midjourney v7。",
                  "value": {
                    "model": "Midjourney-全系列",
                    "prompt": "保留参考物体的外形，换为工业设计展示背景。",
                    "operation": "imagine",
                    "version": "7",
                    "oref": "https://xinfeng.best/video-api-docs/test-assets/acceptance-ball-20260907.png",
                    "ow": 200,
                    "n": 1,
                    "response_format": "url"
                  }
                },
                "mj_depth": {
                  "summary": "深度参考 · dref / dw",
                  "description": "dref 接受单个公网图片 URL 或有序数组，适用于 imagine。",
                  "value": {
                    "model": "Midjourney-全系列",
                    "prompt": "沿用参考图的前后景层次，改成柔和自然光。",
                    "operation": "imagine",
                    "version": "8.2",
                    "dref": [
                      "https://xinfeng.best/video-api-docs/test-assets/acceptance-ball-20260907.png",
                      "https://xinfeng.best/video-api-docs/test-assets/acceptance-ball-ref-20260907.png"
                    ],
                    "dw": 120,
                    "n": 1,
                    "response_format": "url"
                  }
                },
                "mj_personalize": {
                  "summary": "使用个性化配置",
                  "description": "将自己可用的个性化配置代码设为 MJ_PROFILE。",
                  "value": {
                    "model": "Midjourney-全系列",
                    "prompt": "日光下的一间小型陶艺工作室。",
                    "operation": "imagine",
                    "personalize": {
                      "profiles": [
                        "${MJ_PROFILE}"
                      ]
                    },
                    "n": 1,
                    "response_format": "url"
                  }
                },
                "mj_inline": {
                  "summary": "返回内联 Base64",
                  "description": "逐项读取 data[].b64_json 并按文件格式解码。",
                  "value": {
                    "model": "Midjourney-全系列",
                    "prompt": "蓝色玻璃花瓶，背景干净。",
                    "operation": "imagine",
                    "size": "1:1",
                    "response_format": "b64_json",
                    "n": 1
                  }
                },
                "mj_legacy_options": {
                  "summary": "旧客户端兼容字段",
                  "description": "params 可容纳兼容字段。output_format 选择文件编码，response_format 选择链接或内联数据；实际像素见成品。",
                  "value": {
                    "model": "Midjourney-全系列",
                    "prompt": "以极简海报呈现玻璃茶具。",
                    "operation": "imagine",
                    "params": {
                      "style": "raw",
                      "negative_prompt": "字幕、水印",
                      "seed": 0
                    },
                    "output_format": "png",
                    "resolution": "2k",
                    "size": "2048x2048",
                    "n": 1,
                    "response_format": "url"
                  }
                },
                "mj_upscale": {
                  "summary": "放大选中的一张",
                  "description": "MJ_PARENT_TASK_ID 取同一 API Key 的原结果 mj.task_id。",
                  "value": {
                    "model": "Midjourney-全系列",
                    "prompt": "放大第二张。",
                    "operation": "upscale",
                    "task_id": "${MJ_PARENT_TASK_ID}",
                    "index": 2
                  }
                },
                "mj_variation": {
                  "summary": "变体 · 指定序号",
                  "description": "MJ_PARENT_TASK_ID 取同一 API Key 的原结果 mj.task_id。",
                  "value": {
                    "model": "Midjourney-全系列",
                    "prompt": "为第三张生成变体。",
                    "operation": "variation",
                    "task_id": "${MJ_PARENT_TASK_ID}",
                    "index": 3
                  }
                },
                "mj_reroll": {
                  "summary": "重新抽取",
                  "description": "MJ_PARENT_TASK_ID 取同一 API Key 的原结果 mj.task_id。",
                  "value": {
                    "model": "Midjourney-全系列",
                    "prompt": "按原任务重新生成候选。",
                    "operation": "reroll",
                    "task_id": "${MJ_PARENT_TASK_ID}"
                  }
                },
                "mj_high_variation": {
                  "summary": "高幅度变体",
                  "description": "MJ_PARENT_TASK_ID 取同一 API Key 的原结果 mj.task_id。 MJ_CUSTOM_ID 取该父任务 mj.buttons 中与所选动作对应的真实 customId。",
                  "value": {
                    "model": "Midjourney-全系列",
                    "prompt": "生成差异较大的变体。",
                    "operation": "high_variation",
                    "task_id": "${MJ_PARENT_TASK_ID}",
                    "custom_id": "${MJ_CUSTOM_ID}"
                  }
                },
                "mj_low_variation": {
                  "summary": "低幅度变体",
                  "description": "MJ_PARENT_TASK_ID 取同一 API Key 的原结果 mj.task_id。 MJ_CUSTOM_ID 取该父任务 mj.buttons 中与所选动作对应的真实 customId。",
                  "value": {
                    "model": "Midjourney-全系列",
                    "prompt": "微调原来的画面。",
                    "operation": "low_variation",
                    "task_id": "${MJ_PARENT_TASK_ID}",
                    "custom_id": "${MJ_CUSTOM_ID}"
                  }
                },
                "mj_zoom": {
                  "summary": "扩展视野",
                  "description": "MJ_PARENT_TASK_ID 取同一 API Key 的原结果 mj.task_id。 MJ_CUSTOM_ID 取该父任务 mj.buttons 中与所选动作对应的真实 customId。",
                  "value": {
                    "model": "Midjourney-全系列",
                    "prompt": "扩大原画面的视野。",
                    "operation": "zoom",
                    "task_id": "${MJ_PARENT_TASK_ID}",
                    "custom_id": "${MJ_CUSTOM_ID}"
                  }
                },
                "mj_custom_zoom": {
                  "summary": "自定义缩放",
                  "description": "MJ_PARENT_TASK_ID 取同一 API Key 的原结果 mj.task_id。 MJ_CUSTOM_ID 取该父任务 mj.buttons 中与所选动作对应的真实 customId。 需要确认时先读取 interaction，状态为 REQUIRES_ACTION 后再提交 modal。",
                  "value": {
                    "model": "Midjourney-全系列",
                    "prompt": "准备自定义缩放。",
                    "operation": "custom_zoom",
                    "task_id": "${MJ_PARENT_TASK_ID}",
                    "custom_id": "${MJ_CUSTOM_ID}"
                  }
                },
                "mj_pan": {
                  "summary": "平移扩图",
                  "description": "MJ_PARENT_TASK_ID 取同一 API Key 的原结果 mj.task_id。 MJ_CUSTOM_ID 取该父任务 mj.buttons 中与所选动作对应的真实 customId。",
                  "value": {
                    "model": "Midjourney-全系列",
                    "prompt": "向右扩展原来的画面。",
                    "operation": "pan",
                    "task_id": "${MJ_PARENT_TASK_ID}",
                    "custom_id": "${MJ_CUSTOM_ID}"
                  }
                },
                "mj_inpaint": {
                  "summary": "选择局部重绘",
                  "description": "MJ_PARENT_TASK_ID 取同一 API Key 的原结果 mj.task_id。 MJ_CUSTOM_ID 取该父任务 mj.buttons 中与所选动作对应的真实 customId。 需要确认时先读取 interaction，状态为 REQUIRES_ACTION 后再提交 modal。",
                  "value": {
                    "model": "Midjourney-全系列",
                    "prompt": "准备修改画面中的局部。",
                    "operation": "inpaint",
                    "task_id": "${MJ_PARENT_TASK_ID}",
                    "custom_id": "${MJ_CUSTOM_ID}"
                  }
                },
                "mj_remix": {
                  "summary": "Remix · 修改提示词",
                  "description": "MJ_PARENT_TASK_ID 取同一 API Key 的原结果 mj.task_id。 MJ_CUSTOM_ID 取该父任务 mj.buttons 中与所选动作对应的真实 customId。 需要确认时先读取 interaction，状态为 REQUIRES_ACTION 后再提交 modal。",
                  "value": {
                    "model": "Midjourney-全系列",
                    "prompt": "将画面的光线改为清晨。",
                    "operation": "remix",
                    "task_id": "${MJ_PARENT_TASK_ID}",
                    "custom_id": "${MJ_CUSTOM_ID}",
                    "enable_remix": true
                  }
                },
                "mj_action": {
                  "summary": "执行原任务按钮",
                  "description": "MJ_PARENT_TASK_ID 取同一 API Key 的原结果 mj.task_id。 MJ_CUSTOM_ID 取该父任务 mj.buttons 中与所选动作对应的真实 customId。",
                  "value": {
                    "model": "Midjourney-全系列",
                    "prompt": "执行原任务返回的所选按钮。",
                    "operation": "action",
                    "task_id": "${MJ_PARENT_TASK_ID}",
                    "custom_id": "${MJ_CUSTOM_ID}"
                  }
                },
                "mj_change": {
                  "summary": "基础动作 · VARIATION",
                  "description": "MJ_PARENT_TASK_ID 取同一 API Key 的原结果 mj.task_id。",
                  "value": {
                    "model": "Midjourney-全系列",
                    "prompt": "选择第一张生成变体。",
                    "operation": "change",
                    "task_id": "${MJ_PARENT_TASK_ID}",
                    "action": "VARIATION",
                    "index": 1
                  }
                },
                "mj_simple_change": {
                  "summary": "简写动作 · U1 / V1 / R",
                  "description": "content 为原 mj.task_id、一个空格和所选命令。",
                  "value": {
                    "model": "Midjourney-全系列",
                    "prompt": "放大第一张。",
                    "operation": "simple_change",
                    "content": "${MJ_PARENT_TASK_ID} U1"
                  }
                },
                "mj_modal_zoom": {
                  "summary": "确认自定义缩放",
                  "description": "使用当前等待确认的交互任务 mj.task_id，在原任务期限内确认，沿用原预扣。",
                  "value": {
                    "model": "Midjourney-全系列",
                    "prompt": "保持中心主体，扩展为更宽的空间。",
                    "operation": "modal",
                    "task_id": "${MJ_PARENT_TASK_ID}",
                    "zoom_ratio": 1.5
                  }
                },
                "mj_modal_mask": {
                  "summary": "确认局部重绘 · 同尺寸 PNG",
                  "description": "将当前等待确认的交互任务 ID 设为 MJ_PARENT_TASK_ID。将与源图像素尺寸完全一致的 PNG 蒙版路径设为 MJ_MASK_FILE。",
                  "value": {
                    "model": "Midjourney-全系列",
                    "prompt": "把蒙版区域改为绿色陶釉。",
                    "operation": "modal",
                    "task_id": "${MJ_PARENT_TASK_ID}",
                    "mask": "${MJ_MASK_BASE64}"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful image response; inspect returned data and errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImageResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters, unsupported model capability or reference."
          },
          "401": {
            "description": "Missing or invalid site API key."
          },
          "503": {
            "description": "Overload, unavailable upstream or temporary service failure. Unknown submissions must not be blindly retried."
          }
        }
      }
    },
    "/v1/images/edits": {
      "post": {
        "operationId": "editImage",
        "tags": [
          "Images"
        ],
        "summary": "图片参考编辑",
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._:-]{8,128}$"
            },
            "description": "Recommended for ALL models. Omitted keys are generated. Save and reuse same key/payload; per-API-key scope; current retention 24h. Unknown outcomes must be reconciled, not blindly retried."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/ImageEditRequest"
                  },
                  {
                    "$ref": "#/components/schemas/MidjourneyFullRequest"
                  }
                ]
              },
              "examples": {
                "mj_json_reference": {
                  "summary": "单张参考图与权重",
                  "description": "",
                  "value": {
                    "model": "Midjourney-全系列",
                    "prompt": "保留参考图里的球体轮廓，改成磨砂玻璃材质。",
                    "operation": "imagine",
                    "image": "https://xinfeng.best/video-api-docs/test-assets/acceptance-ball-20260907.png",
                    "iw": 1.5,
                    "size": "1:1",
                    "n": 1,
                    "response_format": "url"
                  }
                },
                "mj_multi_reference": {
                  "summary": "多张普通参考图 · OpenAI JSON",
                  "description": "使用有序的 images 对象数组。每项填写 image_url 或同一 API Key 上传所得的 file_id。普通参考图支持 1 至 5 张。",
                  "value": {
                    "model": "Midjourney-全系列",
                    "prompt": "使用第一张的主体和第二张的配色，生成棚拍静物。",
                    "operation": "imagine",
                    "images": [
                      {
                        "image_url": "https://xinfeng.best/video-api-docs/test-assets/acceptance-ball-20260907.png"
                      },
                      {
                        "image_url": "https://xinfeng.best/video-api-docs/test-assets/acceptance-ball-ref-20260907.png"
                      }
                    ],
                    "size": "4:3",
                    "n": 1,
                    "response_format": "url",
                    "version": "8.2"
                  }
                },
                "mj_file_id": {
                  "summary": "复用已上传的 file_id",
                  "description": "先用同一 API Key 向 POST /v1/files 上传文件，字段为 file 和 purpose=vision，再把返回的 id 设为 MJ_FILE_ID。",
                  "value": {
                    "model": "Midjourney-全系列",
                    "prompt": "保留素材主体，调整背景颜色。",
                    "operation": "imagine",
                    "images": [
                      {
                        "file_id": "${MJ_FILE_ID}"
                      }
                    ],
                    "n": 1,
                    "response_format": "url"
                  }
                },
                "mj_blend": {
                  "summary": "混图 · 2 至 5 张",
                  "description": "混图需要二至五张普通参考图。",
                  "value": {
                    "model": "Midjourney-全系列",
                    "prompt": "融合两张素材的颜色与构图。",
                    "operation": "blend",
                    "images": [
                      "https://xinfeng.best/video-api-docs/test-assets/acceptance-ball-20260907.png",
                      "https://xinfeng.best/video-api-docs/test-assets/acceptance-ball-ref-20260907.png"
                    ],
                    "size": "1:1"
                  }
                },
                "mj_describe": {
                  "summary": "反推提示词 · 返回文字",
                  "description": "反推需要一张图，终态结果读取 mj.description。",
                  "value": {
                    "model": "Midjourney-全系列",
                    "prompt": "描述这张图的主体、材质和光线。",
                    "operation": "describe",
                    "image": "https://xinfeng.best/video-api-docs/test-assets/acceptance-ball-20260907.png"
                  }
                }
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/ImageMultipartRequest"
              },
              "examples": {
                "mj_multipart": {
                  "summary": "上传本地图片 · multipart",
                  "value": {
                    "model": "Midjourney-全系列",
                    "prompt": "以两张本地图片为参考设计一张海报。",
                    "operation": "imagine",
                    "size": "3:4",
                    "n": 1,
                    "response_format": "url",
                    "image[]": [
                      "(binary reference-1.png)",
                      "(binary reference-2.png)"
                    ]
                  },
                  "description": "本地参考文件使用 multipart/form-data，重复提交 image[] 字段并保留文件顺序。"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful image response; inspect returned data and errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImageResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters, unsupported model capability or reference."
          },
          "401": {
            "description": "Missing or invalid site API key."
          },
          "503": {
            "description": "Overload, unavailable upstream or temporary service failure. Unknown submissions must not be blindly retried."
          }
        }
      }
    },
    "/draw/api/v1/image-models": {
      "get": {
        "operationId": "listImageModels",
        "tags": [
          "Images"
        ],
        "summary": "查询当前API Key可用图片型号与参数能力",
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OpenAI-style list with image_capabilities per model. Public discovery does not grant account access."
          },
          "401": {
            "description": "Missing or invalid site API key."
          }
        }
      }
    },
    "/v1beta/models/{model}:generateContent": {
      "post": {
        "operationId": "generateNanoImageNative",
        "tags": [
          "Images"
        ],
        "summary": "Nano系列Gemini原生图片接口",
        "security": [
          {
            "BearerAuth": []
          },
          {
            "GoogleApiKey": []
          }
        ],
        "parameters": [
          {
            "name": "model",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "NanoBanana2",
                "Nanobanana2.1",
                "NanoBananaPro"
              ]
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._:-]{8,128}$"
            },
            "description": "Recommended for ALL models. Omitted keys are generated. Save and reuse same key/payload; per-API-key scope; current retention 24h. Unknown outcomes must be reconciled, not blindly retried."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GeminiImageRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Gemini response; retrieve inlineData image parts from candidates[].content.parts[]."
          },
          "400": {
            "description": "Invalid input or unsupported image capability."
          },
          "401": {
            "description": "Missing or invalid site API key."
          }
        }
      }
    },
    "/v1/video/generations": {
      "post": {
        "summary": "国内Seedance旧入口兼容创建",
        "description": "旧 /v1/video/generations 接口兼容国内四个 doubao-seedance 型号；新增接入优先使用 /v1/videos 或火山兼容入口。 旧入口 prompt 搭配 duration/seconds、resolution、ratio、generate_audio 等顶层参数；这些控制参数也可放 metadata 对象或JSON字符串，重复值必须一致。false、0 和参考素材原样保留。 HTTP200表示本站任务已受理，id/task_id为本站task_编号；保存原ID，通过GET /v1/video/generations/{id} 查询。创建结果未知只查询原任务，不重新提交。",
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LegacyDomesticSeedanceRequest"
              },
              "example": {
                "model": "doubao-seedance-2-5-260628",
                "prompt": "A paper boat drifts across a calm pond.",
                "duration": 4,
                "resolution": "480p",
                "generate_audio": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "本站任务已受理，返回本站task_编号；生成可能尚未提交或仍在进行，按原任务查询。"
          },
          "400": {
            "description": "真实字段冲突或参数无效；不会删除参数或降低规格。"
          },
          "503": {
            "description": "查看原错误及pending_task_id；受理未知只查询原任务。"
          }
        }
      }
    },
    "/v1/chat/completions": {
      "post": {
        "operationId": "seedreamBChatImage",
        "tags": [
          "Images"
        ],
        "summary": "seedream-5.0 图片 Chat Completions",
        "description": "本操作说明B型号的图片用法；其余Chat型号不在本说明的能力范围。图片从choices[].message.content读取，按有效图片数结算。",
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "model",
                  "messages"
                ],
                "properties": {
                  "model": {
                    "type": "string",
                    "example": "seedream-5.0"
                  },
                  "messages": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  },
                  "size": {
                    "type": "string",
                    "example": "2560x1440"
                  },
                  "n": {
                    "type": "integer",
                    "minimum": 1,
                    "default": 1
                  },
                  "stream": {
                    "type": "boolean",
                    "default": false
                  }
                }
              },
              "example": {
                "model": "seedream-5.0",
                "messages": [
                  {
                    "role": "user",
                    "content": "A red ceramic teapot on a white table, soft daylight, no text."
                  }
                ],
                "size": "2560x1440",
                "n": 1,
                "stream": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Chat响应；读取choices[].message.content中的Markdown图片链接或image_url内容项，不按Images data[]解析。",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "externalDocs": {
          "url": "https://xinfeng.best/video-api-docs/seedream-5-0.html"
        },
        "x-model-scope": [
          "seedream-5.0"
        ]
      }
    },
    "/v1beta/models/seedream-5.0:generateContent": {
      "post": {
        "operationId": "seedreamBNativeImage",
        "tags": [
          "Images"
        ],
        "summary": "seedream-5.0 Gemini原生图片接口",
        "description": "B型号使用固定本站model路径，正文保留contents与generationConfig。参数目录是已知参考，不构成本站额外能力白名单。",
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "contents"
                ],
                "properties": {
                  "contents": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  },
                  "generationConfig": {
                    "type": "object"
                  }
                }
              },
              "example": {
                "contents": [
                  {
                    "role": "user",
                    "parts": [
                      {
                        "text": "A red ceramic teapot on a white table, soft daylight, no text."
                      }
                    ]
                  }
                ],
                "generationConfig": {
                  "candidateCount": 1,
                  "imageConfig": {
                    "imageSize": "2k",
                    "aspectRatio": "16:9",
                    "delivery": "uri"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "遍历candidates[].content.parts[]；读取fileData.fileUri或inlineData.{mimeType,data}。delivery=uri/inline位于generationConfig.imageConfig内。",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "externalDocs": {
          "url": "https://xinfeng.best/video-api-docs/seedream-5-0.html"
        },
        "x-model-scope": [
          "seedream-5.0"
        ]
      }
    },
    "/v1/images/tasks/{task_id}/interaction": {
      "get": {
        "summary": "读取同属主 MJ 任务的按钮和窗口状态",
        "parameters": [
          {
            "in": "path",
            "name": "task_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "同一调用凭据的原任务状态"
          },
          "404": {
            "description": "原任务不可用"
          },
          "401": {
            "description": "使用同一 API Key 查询。"
          }
        }
      }
    },
    "/v1/images/tasks/{task_id}": {
      "parameters": [
        {
          "name": "task_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "提交回执中的公开任务 ID。"
        }
      ],
      "get": {
        "summary": "查询原图片任务",
        "responses": {
          "200": {
            "description": "原请求的结果或状态",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "id": "img_0000000000000000000000000000000000000000000000000000000000000000",
                  "status": "completed",
                  "billing_status": "settled"
                }
              }
            }
          },
          "401": {
            "description": "请使用本站 API Key。"
          },
          "404": {
            "description": "原任务未找到或不属于该凭据。"
          }
        }
      }
    },
    "/v1/images/tasks/{task_id}/result": {
      "parameters": [
        {
          "name": "task_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "提交回执中的公开任务 ID。"
        }
      ],
      "get": {
        "summary": "读取原图片任务结果",
        "responses": {
          "200": {
            "description": "原请求的结果或状态",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "created": 1794988115,
                  "data": [
                    {
                      "url": "<第 1 张的成品 HTTPS 链接>"
                    },
                    {
                      "url": "<第 2 张的成品 HTTPS 链接>"
                    },
                    {
                      "url": "<第 3 张的成品 HTTPS 链接>"
                    },
                    {
                      "url": "<第 4 张的成品 HTTPS 链接>"
                    }
                  ]
                }
              }
            }
          },
          "202": {
            "description": "原任务仍在处理，稍后查询同一任务。"
          },
          "401": {
            "description": "请使用本站 API Key。"
          },
          "404": {
            "description": "原任务未找到或不属于该凭据。"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer"
      },
      "GoogleApiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "x-goog-api-key",
        "description": "Use the site API key for documented Gemini-native requests."
      }
    },
    "schemas": {
      "Reference": {
        "type": "object",
        "required": [
          "type",
          "role"
        ],
        "properties": {
          "type": {
            "enum": [
              "image",
              "video",
              "audio",
              "file",
              "link"
            ]
          },
          "role": {
            "enum": [
              "reference",
              "first_frame",
              "last_frame",
              "source_video",
              "base_video",
              "feature_video"
            ]
          },
          "url": {
            "type": "string",
            "minLength": 1,
            "description": "HTTP(S)素材URL；图片也可使用data URI/base64兼容输入，视频/音频不能传整个文件的base64。与file_id二选一。"
          },
          "id": {
            "type": "string",
            "description": "Optional Kling reference identifier."
          },
          "file_id": {
            "type": "string",
            "description": "本站Files API上传的同Key文件ID；与url二选一"
          }
        },
        "description": "Allowed type/role combinations are model-specific. Never translate base_video/feature_video into reference automatically. file/link are supported only by official WAN 3.0; one document OR one public webpage, never both or mixed with frame roles.",
        "oneOf": [
          {
            "required": [
              "url"
            ],
            "not": {
              "required": [
                "file_id"
              ]
            }
          },
          {
            "required": [
              "file_id"
            ],
            "not": {
              "required": [
                "url"
              ]
            }
          }
        ]
      },
      "VideoOutput": {
        "type": "object",
        "properties": {
          "ratio": {
            "type": "string"
          },
          "resolution": {
            "type": "string"
          },
          "size": {
            "type": "string"
          },
          "aspect_ratio": {
            "type": "string"
          }
        },
        "description": "Set ratio to outputs[].id for every published model, including Grok and MiniMax. Separate resolution/aspect_ratio remain compatible; contradictory fields are rejected."
      },
      "VideoRequest": {
        "type": "object",
        "required": [
          "model"
        ],
        "properties": {
          "model": {
            "type": "string",
            "description": "当前公开视频ID见公开能力目录；具体Key权限仍由video-models决定。",
            "examples": [
              "topaz-upscale-video-4k",
              "doubao-seedance-2-5-260628",
              "doubao-seedance-2-0-mini-260615",
              "veo-3.1-fast",
              "doubao-seedance-2-0-fast-260128",
              "topaz-upscale-video-1080p",
              "veo-3.1-lite",
              "sd-2.5-c1",
              "doubao-seedance-2-0-260128",
              "super-resolution",
              "remove-subtitle",
              "sd-2.0-01",
              "sd-2.5-01",
              "sd-2.0-02",
              "sd-2.5-02",
              "sd-2.0-c",
              "sd-2.0-A",
              "sd-2.5-A",
              "sd-2.5-c",
              "wan3.0-video",
              "wan3.0-video-prime",
              "wan3.0-video-A",
              "wan3.0-video-prime-A",
              "grok-imagine-video",
              "grok-imagine-video-1.5",
              "kling-3.0",
              "kling-3.0-turbo",
              "kling-3.0-omni",
              "kling-3.0-motion",
              "kling-3.0-omni-video",
              "minimax_h3",
              "seedance-2.0-mini",
              "seedance-2.0-fast",
              "seedance-2.0",
              "seedance-2.5",
              "omni-flash"
            ]
          },
          "prompt": {
            "type": "string"
          },
          "seconds": {
            "oneOf": [
              {
                "type": "integer",
                "minimum": 1
              },
              {
                "type": "string",
                "pattern": "^[1-9][0-9]*$"
              },
              {
                "enum": [
                  -1,
                  "-1"
                ]
              }
            ],
            "description": "OpenAI风格接受数字或数字字符串；实际值按型号契约校验；Kling V4 的 outputs[].durations 是建议选项，时长支持由上游判断；其它型号沿用已公布时长契约；-1仅能力明确允许时可用。"
          },
          "duration": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1
              },
              {
                "const": -1
              },
              {
                "type": "string",
                "pattern": "^(?:[1-9][0-9]*|-1)$"
              }
            ],
            "description": "-1 only for automatic-duration models advertised by the model capability endpoint; keep aliases consistent."
          },
          "output": {
            "$ref": "#/components/schemas/VideoOutput"
          },
          "references": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Reference"
            }
          },
          "n": {
            "type": "integer",
            "const": 1,
            "description": " Midjourney新请求仅支持n/count=1；多份请求HTTP400，不创建新任务或扣费。"
          },
          "count": {
            "type": "integer",
            "const": 1,
            "description": " Midjourney新请求仅支持n/count=1；多份请求HTTP400，不创建新任务或扣费。"
          },
          "size": {
            "type": "string"
          },
          "resolution": {
            "type": "string"
          },
          "aspect_ratio": {
            "type": "string"
          },
          "ratio": {
            "type": "string"
          },
          "input_reference": {
            "$ref": "#/components/schemas/ImageInputReference",
            "description": "OpenAI原生JSON单图参考对象；只填image_url或file_id。多图/首尾帧/视频音频用本站references。"
          },
          "multi_prompt": {
            "type": "array",
            "minItems": 2,
            "maxItems": 6,
            "items": {
              "type": "object",
              "required": [
                "prompt",
                "duration"
              ],
              "additionalProperties": false,
              "properties": {
                "index": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 6
                },
                "prompt": {
                  "type": "string",
                  "minLength": 1
                },
                "duration": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 15
                }
              }
            },
            "description": "Storyboard segments for a model with storyboard support. Follow that model's duration and segment limits."
          },
          "enhancement": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TopazEnhancement"
              }
            ],
            "description": "Only topaz-upscale-video-1080p / topaz-upscale-video-4k."
          },
          "frame_interpolation": {
            "$ref": "#/components/schemas/TopazFrameInterpolation"
          }
        },
        "additionalProperties": true,
        "description": "Common envelope. Model extensions follow request.parameter_policy. Unsupported reference roles are rejected; ignored options are explicit in creation warnings.",
        "allOf": [
          {
            "if": {
              "properties": {
                "model": {
                  "enum": [
                    "Midjourney v6",
                    "Midjourney v6.1",
                    "Midjourney v7",
                    "Midjourney v8.1",
                    "Midjourney v8.2",
                    "Midjourney niji7"
                  ]
                }
              },
              "required": [
                "model"
              ]
            },
            "then": {
              "properties": {
                "n": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 1
                },
                "count": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 1
                }
              }
            }
          }
        ]
      },
      "WanRequest": {
        "allOf": [
          {
            "$ref": "#/components/schemas/VideoRequest"
          },
          {
            "type": "object",
            "required": [
              "model"
            ],
            "properties": {
              "model": {
                "enum": [
                  "wan3.0-video",
                  "wan3.0-video-prime",
                  "wan3.0-video-A",
                  "wan3.0-video-prime-A",
                  "wan3.0",
                  "wan3.0-prime"
                ]
              },
              "seconds": {
                "type": "integer",
                "minimum": 2,
                "maximum": 30
              },
              "prompt_extend": {
                "type": "boolean",
                "description": "Required true for file/link. If omitted, official WAN automatically enables it when a document/webpage is present; explicit false is rejected locally. Other modes retain default false."
              },
              "audio": {
                "type": "boolean"
              }
            }
          }
        ],
        "description": "Official WAN supports prompt or references; 2–30s, A 4–30s; 480/720/1080P and seven ratios. At most20 references:10 images/5 videos/5 audios, one file OR link; frame roles exclusive. Document100MB, page-limited formats50 pages checked upstream. Video/audio each1–15s, each total15s; input+output video <=30s. Document/webpage require prompt_extend=true and do not add billable seconds. wan3.0-video / wan3.0-video-prime 的文档、网页参考仅在480P开放；720P/1080P暂不开放。A/Prime A 保留原能力。客户端优先使用所选 outputs[].references，否则使用模型级 references；模型级为各规格共同支持的保守能力。切换规格后须重新检查素材，不会自动删素材后提交。"
      },
      "GrokRequest": {
        "allOf": [
          {
            "$ref": "#/components/schemas/VideoRequest"
          },
          {
            "type": "object",
            "required": [
              "model",
              "prompt"
            ],
            "properties": {
              "model": {
                "type": "string",
                "enum": [
                  "grok-imagine-video",
                  "grok-imagine-video-1.5"
                ]
              },
              "seconds": {
                "type": "integer",
                "minimum": 1,
                "maximum": 15,
                "default": 1,
                "description": "Per-second product. Base-model multi-reference mode is limited to 10 seconds."
              },
              "generate_audio": {
                "type": "boolean",
                "default": true,
                "description": "Request generated audio. False requests a silent video and selects a capable upstream."
              },
              "references": {
                "type": "array",
                "maxItems": 7,
                "items": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Reference"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "enum": [
                            "image"
                          ]
                        },
                        "role": {
                          "enum": [
                            "reference",
                            "first_frame",
                            "last_frame"
                          ]
                        }
                      }
                    }
                  ]
                },
                "description": "No images: text-to-video. One image: image-to-video following the input aspect ratio. Multiple images/first-last frames: reference-to-video."
              },
              "output": {
                "$ref": "#/components/schemas/GrokOutput"
              },
              "extra": {
                "type": "object",
                "additionalProperties": true,
                "description": "Provider extensions; only documented fields have a compatibility guarantee."
              }
            }
          }
        ],
        "description": "Grok per-second video. A single input image determines the image-to-video aspect ratio; aspect_ratio is ignored for that mode. Resolution is a quality tier, not a guarantee of fixed pixel dimensions."
      },
      "SeedanceRequest": {
        "allOf": [
          {
            "$ref": "#/components/schemas/VideoRequest"
          },
          {
            "type": "object",
            "required": [
              "model",
              "prompt"
            ],
            "properties": {
              "model": {
                "enum": [
                  "sd-2.0-01",
                  "sd-2.0-02",
                  "sd-2.0-A",
                  "sd-2.0-c",
                  "sd-2.5-01",
                  "sd-2.5-02",
                  "sd-2.5-A",
                  "sd-2.5-c",
                  "sd-2.5-c1"
                ]
              }
            }
          }
        ],
        "description": "All current sd-* Seedance families use the same request shape within their shared capabilities. Durations, resolutions, reference types and billing remain model-specific. sd-2.5-c/c1 require 30 seconds; sd-2.0-c currently offers 480p only."
      },
      "NativeSeedanceRequest": {
        "allOf": [
          {
            "$ref": "#/components/schemas/VideoRequest"
          },
          {
            "type": "object",
            "required": [
              "model"
            ],
            "properties": {
              "model": {
                "type": "string",
                "examples": [
                  "doubao-seedance-2-0-260128",
                  "doubao-seedance-2-0-fast-260128",
                  "doubao-seedance-2-0-mini-260615",
                  "doubao-seedance-2-5-260628",
                  "sd-2.0-01",
                  "sd-2.0-02",
                  "sd-2.0-A",
                  "sd-2.0-c",
                  "sd-2.5-01",
                  "sd-2.5-02",
                  "sd-2.5-A",
                  "sd-2.5-c",
                  "sd-2.5-c1",
                  "seedance-2.0",
                  "seedance-2.0-fast",
                  "seedance-2.0-mini",
                  "seedance-2.5"
                ],
                "description": "Current Seedance, doubao-seedance and sd-* family IDs, authorized resolution SKUs and documented legacy aliases."
              },
              "content": {
                "type": "array",
                "minItems": 1,
                "maxItems": 64,
                "items": {
                  "type": "object"
                }
              },
              "metadata": {
                "type": "object"
              },
              "generate_audio": {
                "type": "boolean",
                "description": "Boolean audio control; unsupported by sd-2.5-c. A models default to true; explicit false is preserved on supported routes. For sd-2.0-01 at 720p, true uses the available provider default audio behavior; explicit false currently has no compatible route. Audio reference inputs remain separate and preserve the declared 9-image/3-video/3-audio contract."
              },
              "return_last_frame": {
                "type": "boolean",
                "description": "SDGO: request tail-frame output, except draft previews. Unified last_frame_url and native content.last_frame_url contain the observed provider URL; encoding is not guaranteed PNG."
              },
              "watermark": {
                "type": "boolean"
              },
              "output_format": {
                "type": "string",
                "enum": [
                  "mp4",
                  "mov"
                ],
                "description": "SDGO Seedance 2.5 supports mp4/mov; omit for 2.0. Other model rules remain unchanged."
              },
              "draft": {
                "type": "boolean",
                "description": "SDGO 2.5 draft previews remain available. Draft-to-final is currently blocked before submission/billing (503 sdgo_draft_final_unavailable) after confirmed upstream moderation_options rejection on 2026-10-15. Retain owned draft task IDs."
              },
              "service_tier": {
                "const": "default"
              },
              "priority": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9,
                "description": "SDGO 2.0/2.5 accepts 0–9; other existing routes retain priority=0."
              },
              "duration": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 4,
                    "maximum": 30
                  },
                  {
                    "const": -1
                  }
                ],
                "description": "SDGO 2.0: 4-15 or -1; SDGO 2.5: 4-30 or -1. Ordinary site default is 5. edit requires -1; auto accepts fixed values but recommends -1/adaptive. Draft-final requests omit inherited duration."
              },
              "omni_reference_task_type": {
                "type": "string",
                "enum": [
                  "auto",
                  "reference",
                  "edit",
                  "extend"
                ],
                "description": "SDGO 2.5 auto/reference/edit/extend. Explicit auto accepts fixed ratio/duration; -1/adaptive is recommended. Inferred tasks can still fail TaskTypeConstraint/TaskTypeMismatch.",
                "x-generation-acceptance": {
                  "doubao-seedance-2-5-260628": "protocol adapted; no live edit/extend generation test performed"
                }
              },
              "mode": {
                "type": "string",
                "enum": [
                  "reference",
                  "edit",
                  "extend",
                  "auto"
                ],
                "description": "Unified alias for omni_reference_task_type; the two fields must agree. Supported by overseas Seedance 2.5 and domestic doubao-seedance-2-5-260628. Other domestic 2.0/Fast/Mini models do not support task-mode selection. edit requires a 4–30 second reference video, duration=-1 and ratio=adaptive; extend requires a 2–30 second reference video and adaptive ratio. auto with references requires -1/adaptive. Omitted mode on ordinary 2.5 reference generation is normalized to reference."
              },
              "seconds": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 4,
                    "maximum": 30
                  },
                  {
                    "const": -1
                  }
                ],
                "description": "SDGO 2.0: 4-15 or -1; SDGO 2.5: 4-30 or -1. Ordinary site default is 5. edit requires -1; auto accepts fixed values but recommends -1/adaptive. Draft-final requests omit inherited duration."
              },
              "tools": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "type"
                  ],
                  "properties": {
                    "type": {
                      "const": "web_search"
                    }
                  },
                  "additionalProperties": true
                },
                "description": "SDGO 2.0/2.5 only. Nested provider_options are forwarded. Tool usage is returned separately from generation tokens."
              },
              "execution_expires_after": {
                "type": "integer",
                "minimum": 1,
                "description": "SDGO: 3600-259200 seconds; new requests explicitly default to 172800. Polling follows the effective upstream lifetime plus 120 seconds; terminal tasks are not reopened."
              },
              "safety_identifier": {
                "type": "string",
                "description": "SDGO: stable terminal-user identifier, printable ASCII, up to 64 characters; other routes retain their model-specific behavior."
              },
              "callback_url": {
                "type": "string",
                "format": "uri",
                "description": "国内新Conchdata/MYDD任务由本站按原callback_url发送状态回调，使用创建返回的同一task_编号；真实cgt和官链在取得后补充。回调可能先于本站归档/结算完成，最终扣费与交付以本站查询为准。历史SDGO及其他型号仍沿原回调协议。 Forwarded upstream. Callbacks can use the provider cgt- ID and precede site settlement/archive. Retain site task_; associate via upstream_task_id and poll the site for authoritative billing/delivery."
              },
              "image_source_mode": {
                "type": "string",
                "enum": [
                  "asset",
                  "direct_url",
                  "url",
                  "direct"
                ],
                "description": "Legacy optional compatibility field. Omit for ordinary HTTPS URL, file, or inline references; explicit values (asset, direct_url, url, direct) on non-private references are ignored server-side so requests route across all eligible channels. Retained only when referencing private asset:// or tos:// URIs.",
                "deprecated": true
              },
              "video_source_mode": {
                "type": "string",
                "enum": [
                  "asset",
                  "direct_url",
                  "url",
                  "direct"
                ],
                "description": "Legacy optional compatibility field. Omit for ordinary HTTPS URL, file, or inline references; explicit values (asset, direct_url, url, direct) on non-private references are ignored server-side so requests route across all eligible channels. Retained only when referencing private asset:// or tos:// URIs.",
                "deprecated": true
              },
              "ratio": {
                "type": "string",
                "enum": [
                  "16:9",
                  "9:16",
                  "1:1",
                  "4:3",
                  "3:4",
                  "21:9",
                  "adaptive"
                ],
                "description": "Domestic SDGO supports adaptive for ordinary text/reference generation too. Ordinary site default remains 16:9. Seedance 2.5 frames/edit/extend require adaptive."
              }
            }
          },
          {
            "if": {
              "required": [
                "model"
              ],
              "properties": {
                "model": {
                  "enum": [
                    "doubao-seedance-2-0-260128",
                    "doubao-seedance-2-0-fast-260128",
                    "doubao-seedance-2-0-mini-260615",
                    "doubao-seedance-2-5-260628"
                  ]
                }
              }
            },
            "then": {
              "properties": {
                "priority": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9,
                  "description": "SDGO 2.0/2.5 accepts 0–9; other existing routes retain priority=0."
                },
                "tools": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "required": [
                      "type"
                    ],
                    "properties": {
                      "type": {
                        "const": "web_search"
                      }
                    },
                    "additionalProperties": true
                  },
                  "description": "SDGO 2.0/2.5 only. Nested provider_options are forwarded. Tool usage is returned separately from generation tokens."
                },
                "execution_expires_after": {
                  "type": "integer",
                  "minimum": 3600,
                  "maximum": 259200,
                  "description": "SDGO: seconds since provider task creation. Explicit values are respected by local polling, with a 120-second reconciliation buffer. SDGO defaults to 172800 seconds; polling reconciles the effective upstream lifetime.",
                  "default": 172800
                },
                "safety_identifier": {
                  "type": "string",
                  "maxLength": 64,
                  "pattern": "^[ -~]*$"
                }
              }
            },
            "else": {
              "properties": {
                "priority": {
                  "const": 0
                },
                "tools": {
                  "type": "array",
                  "maxItems": 0
                }
              }
            }
          }
        ],
        "description": "Shared Seedance input: use prompt/references OR native content. Model-only switching is supported when explicit duration, resolution, aspect ratio and references fit both models. Unsupported controls are rejected. A models support video references charged at one selected-resolution reference rate for the total measured reference and output seconds, with a minimum total of ceil(output_seconds*5/3); sd-2.5-c has no generate_audio switch. Existing model-specific billing is unchanged."
      },
      "KlingRequest": {
        "allOf": [
          {
            "$ref": "#/components/schemas/VideoRequest"
          },
          {
            "type": "object",
            "required": [
              "model",
              "prompt"
            ],
            "properties": {
              "model": {
                "enum": [
                  "kling-3.0",
                  "kling-3.0-turbo",
                  "kling-3.0-omni",
                  "kling-3.0-motion",
                  "kling-3.0-omni-video",
                  "kling-3.0-01",
                  "kling-3.0-omni-01"
                ]
              },
              "seconds": {
                "type": "integer",
                "minimum": 3,
                "maximum": 15
              },
              "settings": {
                "type": "object",
                "properties": {
                  "audio": {
                    "enum": [
                      "off",
                      "native",
                      "original"
                    ]
                  },
                  "multi_shot": {
                    "type": "boolean"
                  },
                  "character_orientation": {
                    "enum": [
                      "image",
                      "video"
                    ]
                  },
                  "duration": {
                    "type": "integer",
                    "minimum": 3,
                    "maximum": 15
                  },
                  "resolution": {
                    "type": "string"
                  },
                  "aspect_ratio": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              }
            }
          }
        ],
        "description": "Official and budget lines differ. Official generation normally defaults to native audio; off selects silent billing. Motion requires one image, one video and character_orientation; motion/omni-video are silent. Budget lines are marked temporarily unavailable."
      },
      "MiniMaxRequest": {
        "allOf": [
          {
            "$ref": "#/components/schemas/VideoRequest"
          },
          {
            "type": "object",
            "required": [
              "model",
              "prompt"
            ],
            "properties": {
              "model": {
                "enum": [
                  "minimax_h3",
                  "minimax_h3-03",
                  "minimax_h3-03-480p",
                  "minimax_h3-03-768p",
                  "minimax_h3-03-1080p",
                  "minimax_h3-03-2k",
                  "minimax_h3-03-4k"
                ]
              },
              "variant": {
                "enum": [
                  "03"
                ]
              },
              "workflow_id": {
                "type": "string",
                "enum": [
                  "text-to-video",
                  "multi-reference",
                  "fl2v",
                  "cf-multi-reference",
                  "cf-fl2v"
                ]
              },
              "prompt_enhance": {
                "type": "boolean"
              },
              "sync_mode": {
                "const": false
              },
              "mode": {
                "type": "string",
                "enum": [
                  "first_last_frame"
                ],
                "description": "Optional frame-workflow compatibility field; must agree with workflow_id."
              },
              "references": {
                "type": "array",
                "maxItems": 12,
                "description": "At most 9 images, 3 videos, 3 audios, with at most 12 total. Media contents are inspected before generation.",
                "items": {
                  "$ref": "#/components/schemas/Reference"
                }
              },
              "seconds": {
                "type": "integer",
                "minimum": 4,
                "maximum": 15,
                "description": "Requested output duration used for billing; 768P costs 0.09 credits/second at the current public rate. Query the capability endpoint for current rates."
              },
              "output": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/VideoOutput"
                  }
                ],
                "description": "Select an outputs[].id from the capability endpoint. For 4:3 use 480p-4x3, 768p-4x3, 1080p-4x3, 2k-4x3 or 4k-4x3; for 3:4 replace 4x3 with 3x4. 2K/4K requires cf-multi-reference or cf-fl2v. Alternative: resolution plus aspect_ratio without contradictory fields.",
                "examples": [
                  {
                    "ratio": "768p-4x3"
                  },
                  {
                    "ratio": "768p-3x4"
                  }
                ]
              }
            }
          }
        ],
        "description": "Current public family defaults to standard variant 03. Explicit legacy 03 resolution suffixes are honored and conflicting resolutions are rejected. Maximum 12 references in total. JSON typed references and multipart uploads share validated format, dimensions, codecs and duration rules. HEIC/HEIF images are supported. Other variants remain unavailable; no supplier-specific request protocol is required. Supports 4:3 and 3:4. Use output.ratio=768p-4x3 or 768p-3x4 for 768P. Actual delivered pixels may differ from preset size; 2026-10-10 text-to-video tests returned 1024x768 and 768x1024. Wallet balance must cover the requested duration; 4 seconds at 768P requires 0.36 credits. See minimax-h3-examples.md."
      },
      "VeoRequest": {
        "allOf": [
          {
            "$ref": "#/components/schemas/VideoRequest"
          },
          {
            "type": "object",
            "required": [
              "model",
              "prompt"
            ],
            "properties": {
              "model": {
                "enum": [
                  "veo-3.1-fast",
                  "veo-3.1-lite"
                ]
              },
              "seconds": {
                "const": 8
              }
            }
          }
        ],
        "description": "Fixed 8 seconds. Veo Fast supports 720p and 1080p landscape/portrait at 0.84 platform credits per clip; Lite supports 720p only at 0.45. Fast frames up to two, Lite one; ordinary references up to three. Do not mix frame and ordinary references. For 1080p set output.ratio to 1920x1080 or 1080x1920; the platform adapts provider resolution/aspect_ratio."
      },
      "OmniRequest": {
        "allOf": [
          {
            "$ref": "#/components/schemas/VideoRequest"
          },
          {
            "type": "object",
            "required": [
              "model",
              "prompt"
            ],
            "properties": {
              "model": {
                "enum": [
                  "omni-flash",
                  "omni-flash-edit"
                ]
              },
              "seconds": {
                "enum": [
                  4,
                  6,
                  8,
                  10
                ]
              },
              "watermark": {
                "const": false
              }
            }
          }
        ],
        "description": "Generation takes up to three images. Edit requires one base_video plus up to three images but is CURRENTLY DISABLED. Separate from Kling Omni. Fixed-per-call."
      },
      "VideoToolRequest": {
        "allOf": [
          {
            "$ref": "#/components/schemas/VideoRequest"
          },
          {
            "type": "object",
            "required": [
              "model",
              "seconds",
              "references"
            ],
            "properties": {
              "model": {
                "enum": [
                  "super-resolution",
                  "remove-subtitle"
                ]
              },
              "seconds": {
                "type": "integer",
                "minimum": 1,
                "maximum": 60
              },
              "references": {
                "type": "array",
                "minItems": 1,
                "maxItems": 1,
                "items": {
                  "type": "object",
                  "required": [
                    "type",
                    "role",
                    "url"
                  ],
                  "properties": {
                    "type": {
                      "const": "video"
                    },
                    "role": {
                      "const": "reference",
                      "description": "Recommended role for these tools."
                    },
                    "url": {
                      "type": "string",
                      "format": "uri",
                      "description": "Direct public HTTP(S) URL; signed URLs allowed; WAN requires HTTPS."
                    },
                    "id": {
                      "type": "string",
                      "description": "Optional Kling reference identifier."
                    }
                  },
                  "description": "Allowed type/role combinations are model-specific. Never translate base_video/feature_video into reference automatically."
                }
              },
              "output": {
                "type": "object",
                "properties": {
                  "ratio": {
                    "enum": [
                      "720p",
                      "1080p",
                      "2k",
                      "4k",
                      "原画质"
                    ]
                  }
                },
                "description": "Choose according to model; remove-subtitle only 原画质. Other compatible output fields are described by VideoOutput."
              }
            }
          }
        ],
        "description": "One existing video, prompt optional, requested seconds must equal ceil(measured source duration), 1–60. Missing/unreadable duration, source over60s or seconds/duration conflicts return400 before upstream. Video max256MiB, whole multipart body max64MiB. Super-resolution chooses720p/1080p/2k/4k; remove-subtitle keeps 原画质. No free fps selector.",
        "properties": {
          "enhancement": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TopazEnhancement"
              }
            ],
            "description": "Only topaz-upscale-video-1080p / topaz-upscale-video-4k."
          },
          "frame_interpolation": {
            "$ref": "#/components/schemas/TopazFrameInterpolation"
          }
        }
      },
      "Task": {
        "type": "object",
        "required": [
          "id",
          "status"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "国内 doubao-seedance-2-0-260128 当前以Conchdata独立渠道275为主用、MYDD268为备用；其余三个国内型号继续由MYDD268供货，公开型号、路径和客户价格保持。原生与旧 /v1/video/generations 创建返回HTTP200，统一视频创建返回HTTP202，表示本站持久任务受理；主id和public_task_id先返回本站task_，不等待成片或cgt。后续查询仅在上游实际提供时补充upstream_task_id/provider_task_id中的真实cgt，未提供时为空或省略；主ID保持不变，官链按真实上游返回。旧task_async_/task_/cgt-查询继续兼容；未知提交只查原任务，不重复生成。"
          },
          "task_id": {
            "type": "string",
            "description": "国内 doubao-seedance-2-0-260128 当前以Conchdata独立渠道275为主用、MYDD268为备用；其余三个国内型号继续由MYDD268供货，公开型号、路径和客户价格保持。原生与旧 /v1/video/generations 创建返回HTTP200，统一视频创建返回HTTP202，表示本站持久任务受理；主id和public_task_id先返回本站task_，不等待成片或cgt。后续查询仅在上游实际提供时补充upstream_task_id/provider_task_id中的真实cgt，未提供时为空或省略；主ID保持不变，官链按真实上游返回。旧task_async_/task_/cgt-查询继续兼容；未知提交只查原任务，不重复生成。"
          },
          "status": {
            "type": "string",
            "enum": [
              "queued",
              "in_progress",
              "completed",
              "failed",
              "cancelled"
            ]
          },
          "progress": {
            "type": "number",
            "minimum": 0,
            "maximum": 100,
            "description": "兼容字段。progress_kind=stage 时表示阶段映射，不是实际生成百分比；应展示 delivery_state/status_message。"
          },
          "poll_url": {
            "type": "string"
          },
          "content_url": {
            "type": "string",
            "description": "本站兼容下载入口，访问需要同一任务所属API Key的Bearer Header；不承诺永久保存。"
          },
          "terminal": {
            "type": "boolean",
            "description": "Always present on task queries: true for completed, failed or cancelled; false for pending tasks. Creation responses need not include terminal."
          },
          "retryable": {
            "type": "boolean",
            "description": "Optional; not authorization to automatically create another billed task."
          },
          "error": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              }
            }
          },
          "delivery_state": {
            "type": "string",
            "enum": [
              "queued",
              "generating",
              "archiving",
              "sync_error",
              "delayed",
              "completed",
              "failed",
              "cancelled"
            ],
            "description": "sync_error 只表示实际查询失败或结果未确认；archiving/delayed 仍应查询原任务。不能据此直接重提生成。"
          },
          "status_message": {
            "type": "string",
            "description": "当前阶段的用户提示。"
          },
          "progress_kind": {
            "type": "string",
            "enum": [
              "stage"
            ],
            "description": "当前数字进度是阶段值。"
          },
          "last_polled_at": {
            "type": "integer",
            "description": "最近一次后台同步尝试的 Unix 秒时间戳；0 表示尚未记录。"
          },
          "poll_error_count": {
            "type": "integer",
            "minimum": 0,
            "description": "连续查询或归档失败次数；一次成功查询后归零。"
          },
          "poll_age_seconds": {
            "type": "integer",
            "description": "距离最近一次上游/核心查询的秒数；-1 表示尚无可靠查询时间。"
          },
          "elapsed_seconds": {
            "type": "integer",
            "minimum": 0,
            "description": "从任务提交到本次查询的秒数；用于客户端按模型设置提醒阈值。"
          },
          "stalled": {
            "type": "boolean",
            "description": "连续查询失败达到 3 次时为 true，表示状态同步停滞；不代表上游生成失败，也不授权新建付费任务。"
          },
          "object": {
            "const": "video"
          },
          "model": {
            "type": "string"
          },
          "request_id": {
            "type": "string"
          },
          "idempotency_key": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "description": "官转Seedance成功时优先返回可信未过期上游签名直链，原始签名查询串不改写；过期/临近过期/不可信则回退本站鉴权下载地址。不要对第三方CDN发送本站Key。"
          },
          "output": {
            "type": "object"
          },
          "warnings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RequestWarning"
            },
            "description": "Creation warnings; preserved on idempotent replay. Lists ignored field names only."
          },
          "usage": {
            "type": "object",
            "description": "Observed provider usage, including tool_usage and nested extension fields, is preserved. Missing usage is unknown, not zero. Existing settlement continues using validated completion_tokens.",
            "properties": {
              "completion_tokens": {
                "type": "integer",
                "minimum": 0
              },
              "total_tokens": {
                "type": "integer",
                "minimum": 0
              },
              "input_video_duration": {
                "type": "number",
                "minimum": 0,
                "description": "阿里上游返回的输入参考视频总秒数；明确为0时保留0"
              },
              "output_video_duration": {
                "type": "number",
                "minimum": 0,
                "description": "阿里上游返回的实际生成视频秒数"
              },
              "duration": {
                "type": "number",
                "minimum": 0,
                "description": "阿里上游返回的计费总秒数，含输入参考视频和输出视频"
              },
              "SR": {
                "type": "number",
                "description": "阿里生成阶段分辨率，A版后续超分以任务resolution/billing_resolution为准"
              },
              "fps": {
                "type": "number"
              },
              "ratio": {
                "type": "string"
              },
              "video_count": {
                "type": "number"
              },
              "tool_usage": {
                "type": "object",
                "additionalProperties": true
              }
            },
            "additionalProperties": true,
            "examples": [
              {
                "input_video_duration": 7,
                "output_video_duration": 2,
                "duration": 9
              }
            ]
          },
          "billing_status": {
            "type": "string",
            "enum": [
              "pending",
              "pending_usage",
              "settled",
              "refunded",
              "reserved",
              "refund_pending"
            ],
            "description": "可选；缺usage时继续查询原任务，不重新生成。"
          },
          "billing_version": {
            "type": "string",
            "description": "可选；已验证的服务端计费版本，不是客户端参数。"
          },
          "billing": {
            "description": "Per-model frozen billing details. Token-based routes expose token estimates/settlement; Seedance A exposes its reference/output-second breakdown. Keep the selected model tariff and historical task snapshot.",
            "anyOf": [
              {
                "type": "object",
                "description": "可选；冻结费率、预扣估算和实际结算金额，最终以消费记录为准。",
                "properties": {
                  "mode": {
                    "const": "completion_tokens"
                  },
                  "currency": {
                    "const": "CNY"
                  },
                  "price_per_million": {
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "group_ratio": {
                    "type": "number",
                    "minimum": 0
                  },
                  "estimated_tokens": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "estimated_cny": {
                    "type": "number",
                    "minimum": 0
                  },
                  "actual_cny": {
                    "type": "number",
                    "minimum": 0
                  },
                  "estimate_only": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "$ref": "#/components/schemas/SeedanceAReferenceSecondBilling"
              }
            ]
          },
          "seconds": {
            "type": "string"
          },
          "size": {
            "type": "string"
          },
          "created_at": {
            "type": "integer"
          },
          "completed_at": {
            "type": [
              "integer",
              "null"
            ]
          },
          "expires_at": {
            "type": [
              "integer",
              "null"
            ]
          },
          "prompt": {
            "type": [
              "string",
              "null"
            ]
          },
          "remixed_from_video_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "兼容字段；本站尚不支持remix操作"
          },
          "upstream_task_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "已观测的完整上游任务号：Seedance为上游提供的cgt或原始供应商编号；WAN为实际阿里/供应商任务号。未取得时为空，不伪造。"
          },
          "upstream_video_url": {
            "type": "string",
            "format": "uri",
            "description": "上游提供且已核实的官方原始视频链接，完整签名不改写；超分产品此字段为源片，最终成品仍使用原交付字段。"
          },
          "upstream_content": {
            "type": "object",
            "additionalProperties": true,
            "description": "Provider content, including original video/tail-frame URLs and content metadata."
          },
          "last_frame_url": {
            "type": "string",
            "format": "uri"
          },
          "tools": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "type"
              ],
              "properties": {
                "type": {
                  "const": "web_search"
                }
              },
              "additionalProperties": true
            },
            "description": "SDGO 2.0/2.5 only. Nested provider_options are forwarded. Tool usage is returned separately from generation tokens."
          },
          "asset_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Only if actually returned by the provider. No separate asset creation or grouping API is currently exposed."
          },
          "execution_expires_after": {
            "type": "integer",
            "minimum": 3600,
            "maximum": 259200,
            "description": "SDGO: seconds since provider task creation. Explicit values are respected by local polling, with a 120-second reconciliation buffer. SDGO defaults to 172800 seconds; polling reconciles the effective upstream lifetime.",
            "default": 172800
          },
          "priority": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9
          },
          "site_task_id": {
            "type": "string",
            "description": "本站持久任务号，原查询、下载和账单关联继续兼容。"
          },
          "content": {
            "type": "object",
            "properties": {
              "video_url": {
                "type": "string",
                "format": "uri",
                "description": "成功交付地址；国内官转返回可信的官方原始签名链接，不重写签名参数。"
              }
            }
          },
          "upstream_video_url_expires_at": {
            "type": "integer",
            "description": "可从官方签名读取的原链到期Unix秒数，区别于本站副本保留期。"
          }
        },
        "description": "OpenAI兼容video对象，加本站poll_url/content_url/terminal/warnings/billing等扩展。正常任务error=null；created_at等为Unix秒。兼容字段存在不代表对应未实现操作已经可用。"
      },
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "message": {
                "type": "string"
              },
              "code": {
                "type": "string"
              },
              "type": {
                "type": "string"
              },
              "submission_created": {
                "type": "boolean",
                "description": "false explicitly signals no generation task was submitted/created for this error."
              }
            },
            "additionalProperties": true
          }
        },
        "description": "Some upstream error bodies are forwarded; code may be absent."
      },
      "VideoModel": {
        "type": "object",
        "required": [
          "id",
          "durations",
          "outputs",
          "references",
          "request",
          "billing"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "durations": {
            "type": "array",
            "items": {
              "type": "integer"
            }
          },
          "outputs": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "references": {
            "type": "object"
          },
          "request": {
            "type": "object"
          },
          "billing": {
            "type": "object",
            "description": "fixed_per_call按次、per_second按秒、completion_tokens按真实输出token；token价格以百万为单位，无视频/有视频参考分别使用对应费率。"
          },
          "settings": {
            "type": "object"
          },
          "workflows": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": true,
        "description": "Models available to the current API Key, including output_selector, parameter_policy, prompt_requirement, reference roles/rules, settings and billing modes. Select outputs[].references when present; otherwise use model references. WAN 720p/1080p Moon routes do not support file/link; 480p and A routes retain their published policy."
      },
      "VideoModelList": {
        "type": "object",
        "properties": {
          "object": {
            "const": "list"
          },
          "docs_url": {
            "type": "string"
          },
          "openapi_url": {
            "type": "string"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VideoModel"
            }
          }
        }
      },
      "VideoMultipartRequest": {
        "type": "object",
        "required": [
          "model"
        ],
        "properties": {
          "model": {
            "type": "string"
          },
          "prompt": {
            "type": "string"
          },
          "seconds": {
            "type": "integer",
            "minimum": 1
          },
          "duration": {
            "type": "integer",
            "minimum": 1,
            "description": "Compatibility alias. Prefer seconds alone. Video-tool conflict checking is currently incomplete."
          },
          "output": {
            "type": "string",
            "description": "JSON-encoded output object"
          },
          "references": {
            "type": "string",
            "description": "JSON-encoded references array"
          },
          "n": {
            "type": "integer",
            "const": 1,
            "description": " Midjourney新请求仅支持n/count=1；多份请求HTTP400，不创建新任务或扣费。"
          },
          "count": {
            "type": "integer",
            "const": 1,
            "description": " Midjourney新请求仅支持n/count=1；多份请求HTTP400，不创建新任务或扣费。"
          },
          "size": {
            "type": "string"
          },
          "resolution": {
            "type": "string"
          },
          "aspect_ratio": {
            "type": "string"
          },
          "ratio": {
            "type": "string"
          },
          "image": {
            "type": "string",
            "format": "binary"
          },
          "images": {
            "type": "string",
            "format": "binary"
          },
          "input_image": {
            "type": "string",
            "format": "binary"
          },
          "first_frame": {
            "type": "string",
            "format": "binary"
          },
          "last_frame": {
            "type": "string",
            "format": "binary"
          },
          "start_frame": {
            "type": "string",
            "format": "binary"
          },
          "end_frame": {
            "type": "string",
            "format": "binary"
          },
          "video": {
            "type": "string",
            "format": "binary"
          },
          "videos": {
            "type": "string",
            "format": "binary"
          },
          "reference_video": {
            "type": "string",
            "format": "binary"
          },
          "reference_videos": {
            "type": "string",
            "format": "binary"
          },
          "audio": {
            "type": "string",
            "format": "binary"
          },
          "audios": {
            "type": "string",
            "format": "binary"
          },
          "reference_audio": {
            "type": "string",
            "format": "binary"
          },
          "reference_audios": {
            "type": "string",
            "format": "binary"
          },
          "input_reference": {
            "oneOf": [
              {
                "type": "string",
                "format": "binary"
              },
              {
                "$ref": "#/components/schemas/ImageInputReference"
              },
              {
                "type": "string",
                "description": "JSON序列化的原生对象；也兼容嵌套字段input_reference[image_url]/[file_id]"
              }
            ],
            "description": "单张参考图；文件MIME按真实内容声明。"
          },
          "file": {
            "type": "string",
            "format": "binary",
            "description": "Official WAN document only; one document OR webpage. Multipart body still bounded by64MiB; use URL for larger files."
          },
          "document": {
            "type": "string",
            "format": "binary",
            "description": "Official WAN document only; one document OR webpage. Multipart body still bounded by64MiB; use URL for larger files."
          },
          "enhancement": {
            "type": "string",
            "description": "Topaz-only JSON object text; see TopazEnhancement"
          },
          "frame_interpolation": {
            "type": "string",
            "description": "Topaz-only JSON object text; see TopazFrameInterpolation"
          }
        },
        "additionalProperties": true,
        "description": "Common fields plus supported file fields. output/references are JSON strings; settings JSON parsing is Kling-specific. Whole body max 320MiB including overhead; each image, video, audio or document reference is at most 200MiB and total reference bytes at most 1GiB. Prefer JSON for complex provider options.",
        "allOf": [
          {
            "if": {
              "properties": {
                "model": {
                  "enum": [
                    "Midjourney v6",
                    "Midjourney v6.1",
                    "Midjourney v7",
                    "Midjourney v8.1",
                    "Midjourney v8.2",
                    "Midjourney niji7"
                  ]
                }
              },
              "required": [
                "model"
              ]
            },
            "then": {
              "properties": {
                "n": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 1
                },
                "count": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 1
                }
              }
            }
          }
        ]
      },
      "RequestWarning": {
        "type": "object",
        "required": [
          "code",
          "fields",
          "message"
        ],
        "properties": {
          "code": {
            "const": "ignored_parameters"
          },
          "fields": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "message": {
            "type": "string"
          }
        }
      },
      "NativeWanRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "model",
          "input"
        ],
        "description": "阿里云WAN请求体语义兼容；平台鉴权/计费/任务响应不变。A/Prime A按目标档位经480P+Topaz。不得混用统一字段。 wan3.0-video / wan3.0-video-prime 的文档、网页参考仅在480P开放；720P/1080P暂不开放。A/Prime A 保留原能力。客户端优先使用所选 outputs[].references，否则使用模型级 references；模型级为各规格共同支持的保守能力。切换规格后须重新检查素材，不会自动删素材后提交。",
        "properties": {
          "model": {
            "type": "string",
            "enum": [
              "wan3.0-video",
              "wan3.0-video-prime",
              "wan3.0-video-A",
              "wan3.0-video-prime-A"
            ]
          },
          "input": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "prompt": {
                "type": "string",
                "maxLength": 20000
              },
              "media": {
                "type": "array",
                "maxItems": 20,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "type",
                    "url"
                  ],
                  "properties": {
                    "type": {
                      "type": "string",
                      "enum": [
                        "first_frame",
                        "last_frame",
                        "reference_image",
                        "reference_video",
                        "reference_audio",
                        "file",
                        "link"
                      ]
                    },
                    "url": {
                      "type": "string",
                      "minLength": 1,
                      "description": "公共HTTP(S)；图片可用PNG/JPEG/WebP Base64 data URL；不支持账户专属oss://地址。"
                    }
                  }
                }
              }
            },
            "anyOf": [
              {
                "required": [
                  "prompt"
                ],
                "properties": {
                  "prompt": {
                    "minLength": 1
                  }
                }
              },
              {
                "required": [
                  "media"
                ],
                "properties": {
                  "media": {
                    "minItems": 1
                  }
                }
              }
            ]
          },
          "parameters": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "resolution": {
                "type": "string",
                "enum": [
                  "480P",
                  "720P",
                  "1080P"
                ],
                "default": "1080P"
              },
              "ratio": {
                "type": "string",
                "enum": [
                  "adaptive",
                  "21:9",
                  "16:9",
                  "4:3",
                  "1:1",
                  "3:4",
                  "9:16"
                ],
                "default": "adaptive"
              },
              "duration": {
                "type": "integer",
                "anyOf": [
                  {
                    "minimum": 2,
                    "maximum": 30
                  },
                  {
                    "const": -1
                  }
                ],
                "default": 5
              },
              "prompt_extend": {
                "type": "boolean",
                "default": true
              },
              "audio": {
                "type": "boolean",
                "default": true
              },
              "watermark": {
                "type": "boolean",
                "default": false
              },
              "seed": {
                "type": "integer",
                "minimum": -1,
                "maximum": 2147483647
              }
            }
          }
        }
      },
      "ArkSeedanceRequest": {
        "type": "object",
        "required": [
          "model",
          "content"
        ],
        "properties": {
          "model": {
            "type": "string",
            "description": "Use a current site family/SKU/compatible alias; unrelated ep-* IDs and retired models are rejected.",
            "examples": [
              "doubao-seedance-2-0-260128",
              "doubao-seedance-2-0-fast-260128",
              "doubao-seedance-2-0-mini-260615",
              "doubao-seedance-2-5-260628",
              "sd-2.0-01",
              "sd-2.0-02",
              "sd-2.0-A",
              "sd-2.0-c",
              "sd-2.5-01",
              "sd-2.5-02",
              "sd-2.5-A",
              "sd-2.5-c",
              "sd-2.5-c1",
              "seedance-2.0",
              "seedance-2.0-fast",
              "seedance-2.0-mini",
              "seedance-2.5"
            ]
          },
          "content": {
            "type": "array",
            "minItems": 1,
            "maxItems": 64,
            "items": {
              "type": "object"
            },
            "description": "已接入的文本/图像/视频/音频类型与角色，受模型能力与审核约束"
          },
          "duration": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 4,
                "maximum": 30
              },
              {
                "const": -1
              }
            ],
            "description": "SDGO 2.0: 4-15 or -1; SDGO 2.5: 4-30 or -1. Ordinary site default is 5. edit requires -1; auto accepts fixed values but recommends -1/adaptive. Draft-final requests omit inherited duration."
          },
          "resolution": {
            "type": "string",
            "enum": [
              "480p",
              "720p",
              "1080p",
              "4k"
            ],
            "description": "Use an output resolution authorized for the selected model. Explicit resolution is recommended; sd-2.0-c currently has only 480p. A conflicting SKU or unsupported tier is rejected."
          },
          "ratio": {
            "type": "string",
            "description": "Domestic SDGO supports adaptive for ordinary text/reference generation too. Ordinary site default remains 16:9. Seedance 2.5 frames/edit/extend require adaptive."
          },
          "generate_audio": {
            "type": "boolean",
            "description": "Boolean audio control; unsupported by sd-2.5-c. A models default to true; explicit false is preserved on supported routes. For sd-2.0-01 at 720p, true uses the available provider default audio behavior; explicit false currently has no compatible route. Audio reference inputs remain separate and preserve the declared 9-image/3-video/3-audio contract."
          },
          "watermark": {
            "type": "boolean"
          },
          "execution_expires_after": {
            "type": "integer",
            "minimum": 1,
            "description": "SDGO: 3600-259200 seconds; new requests explicitly default to 172800. Polling follows the effective upstream lifetime plus 120 seconds; terminal tasks are not reopened."
          },
          "safety_identifier": {
            "type": "string",
            "description": "SDGO: stable terminal-user identifier, printable ASCII, up to 64 characters; other routes retain their model-specific behavior."
          },
          "output_format": {
            "type": "string",
            "enum": [
              "mp4",
              "mov"
            ],
            "description": "SDGO Seedance 2.5 supports mp4/mov; omit for 2.0. Other model rules remain unchanged."
          },
          "omni_reference_task_type": {
            "type": "string",
            "enum": [
              "auto",
              "reference",
              "edit",
              "extend"
            ],
            "description": "SDGO 2.5 auto/reference/edit/extend. Explicit auto accepts fixed ratio/duration; -1/adaptive is recommended. Inferred tasks can still fail TaskTypeConstraint/TaskTypeMismatch.",
            "x-generation-acceptance": {
              "doubao-seedance-2-5-260628": "protocol adapted; no live edit/extend generation test performed"
            }
          },
          "return_last_frame": {
            "type": "boolean",
            "description": "SDGO: request tail-frame output, except draft previews. Unified last_frame_url and native content.last_frame_url contain the observed provider URL; encoding is not guaranteed PNG."
          },
          "draft": {
            "type": "boolean",
            "description": "SDGO 2.5 draft previews remain available. Draft-to-final is currently blocked before submission/billing (503 sdgo_draft_final_unavailable) after confirmed upstream moderation_options rejection on 2026-10-15. Retain owned draft task IDs."
          },
          "service_tier": {
            "const": "default"
          },
          "priority": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9,
            "description": "SDGO 2.0/2.5 accepts 0–9; other existing routes retain priority=0."
          },
          "tools": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "type"
              ],
              "properties": {
                "type": {
                  "const": "web_search"
                }
              },
              "additionalProperties": true
            },
            "description": "SDGO 2.0/2.5 only. Nested provider_options are forwarded. Tool usage is returned separately from generation tokens."
          },
          "callback_url": {
            "type": "string",
            "format": "uri",
            "description": "国内新Conchdata/MYDD任务由本站按原callback_url发送状态回调，使用创建返回的同一task_编号；真实cgt和官链在取得后补充。回调可能先于本站归档/结算完成，最终扣费与交付以本站查询为准。历史SDGO及其他型号仍沿原回调协议。 Forwarded upstream. Callbacks can use the provider cgt- ID and precede site settlement/archive. Retain site task_; associate via upstream_task_id and poll the site for authoritative billing/delivery."
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "description": "Compatible nested native options; conflicting duplicates are rejected."
          },
          "image_source_mode": {
            "type": "string",
            "enum": [
              "asset",
              "direct_url",
              "url",
              "direct"
            ],
            "description": "Legacy optional compatibility field. Omit for ordinary HTTPS URL, file, or inline references; explicit values (asset, direct_url, url, direct) on non-private references are ignored server-side so requests route across all eligible channels. Retained only when referencing private asset:// or tos:// URIs.",
            "deprecated": true
          },
          "video_source_mode": {
            "type": "string",
            "enum": [
              "asset",
              "direct_url",
              "url",
              "direct"
            ],
            "description": "Legacy optional compatibility field. Omit for ordinary HTTPS URL, file, or inline references; explicit values (asset, direct_url, url, direct) on non-private references are ignored server-side so requests route across all eligible channels. Retained only when referencing private asset:// or tos:// URIs.",
            "deprecated": true
          }
        },
        "additionalProperties": false,
        "description": "Common ModelArk wire format for all current Seedance, doubao-seedance and sd-* families. Change only model when the requested features are shared. Optional null values mean omitted. Resolution/duration/material limits and billing remain model-specific; unsupported features fail before generation.",
        "allOf": [
          {
            "if": {
              "required": [
                "model"
              ],
              "properties": {
                "model": {
                  "enum": [
                    "doubao-seedance-2-0-260128",
                    "doubao-seedance-2-0-fast-260128",
                    "doubao-seedance-2-0-mini-260615",
                    "doubao-seedance-2-5-260628"
                  ]
                }
              }
            },
            "then": {
              "properties": {
                "priority": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9,
                  "description": "SDGO 2.0/2.5 accepts 0–9; other existing routes retain priority=0."
                },
                "tools": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "required": [
                      "type"
                    ],
                    "properties": {
                      "type": {
                        "const": "web_search"
                      }
                    },
                    "additionalProperties": true
                  },
                  "description": "SDGO 2.0/2.5 only. Nested provider_options are forwarded. Tool usage is returned separately from generation tokens."
                },
                "execution_expires_after": {
                  "type": "integer",
                  "minimum": 3600,
                  "maximum": 259200,
                  "description": "SDGO: seconds since provider task creation. Explicit values are respected by local polling, with a 120-second reconciliation buffer. SDGO defaults to 172800 seconds; polling reconciles the effective upstream lifetime.",
                  "default": 172800
                },
                "safety_identifier": {
                  "type": "string",
                  "maxLength": 64,
                  "pattern": "^[ -~]*$"
                }
              }
            },
            "else": {
              "properties": {
                "priority": {
                  "const": 0
                },
                "tools": {
                  "type": "array",
                  "maxItems": 0
                }
              }
            }
          }
        ]
      },
      "ArkSeedanceTask": {
        "type": "object",
        "required": [
          "id",
          "model",
          "status"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "国内 doubao-seedance-2-0-260128 当前以Conchdata独立渠道275为主用、MYDD268为备用；其余三个国内型号继续由MYDD268供货，公开型号、路径和客户价格保持。原生与旧 /v1/video/generations 创建返回HTTP200，统一视频创建返回HTTP202，表示本站持久任务受理；主id和public_task_id先返回本站task_，不等待成片或cgt。后续查询仅在上游实际提供时补充upstream_task_id/provider_task_id中的真实cgt，未提供时为空或省略；主ID保持不变，官链按真实上游返回。旧task_async_/task_/cgt-查询继续兼容；未知提交只查原任务，不重复生成。"
          },
          "model": {
            "type": "string"
          },
          "status": {
            "enum": [
              "queued",
              "running",
              "succeeded",
              "failed",
              "cancelled",
              "expired"
            ]
          },
          "error": {
            "type": [
              "object",
              "null"
            ]
          },
          "created_at": {
            "type": "integer"
          },
          "updated_at": {
            "type": "integer"
          },
          "duration": {
            "type": "integer"
          },
          "resolution": {
            "type": "string"
          },
          "usage": {
            "type": "object",
            "description": "Observed provider usage, including tool_usage and nested extension fields, is preserved. Missing usage is unknown, not zero. Existing settlement continues using validated completion_tokens.",
            "properties": {
              "completion_tokens": {
                "type": "integer",
                "minimum": 0
              },
              "total_tokens": {
                "type": "integer",
                "minimum": 0
              },
              "tool_usage": {
                "type": "object",
                "additionalProperties": true
              }
            },
            "additionalProperties": true
          },
          "content": {
            "type": "object",
            "properties": {
              "video_url": {
                "type": "string",
                "format": "uri",
                "description": "成功交付地址；国内官转返回可信的官方原始签名链接，不重写签名参数。"
              },
              "last_frame_url": {
                "type": "string",
                "format": "uri"
              }
            },
            "required": [
              "video_url"
            ]
          },
          "upstream_task_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "已观测的完整上游任务号：Seedance为上游提供的cgt或原始供应商编号；WAN为实际阿里/供应商任务号。未取得时为空，不伪造。"
          },
          "upstream_video_url": {
            "type": "string",
            "format": "uri",
            "description": "上游提供且已核实的官方原始视频链接，完整签名不改写；超分产品此字段为源片，最终成品仍使用原交付字段。"
          },
          "upstream_content": {
            "type": "object",
            "additionalProperties": true,
            "description": "Provider content, including original video/tail-frame URLs and content metadata."
          },
          "last_frame_url": {
            "type": "string",
            "format": "uri"
          },
          "tools": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "type"
              ],
              "properties": {
                "type": {
                  "const": "web_search"
                }
              },
              "additionalProperties": true
            },
            "description": "SDGO 2.0/2.5 only. Nested provider_options are forwarded. Tool usage is returned separately from generation tokens."
          },
          "asset_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Only if actually returned by the provider. No separate asset creation or grouping API is currently exposed."
          },
          "execution_expires_after": {
            "type": "integer",
            "minimum": 3600,
            "maximum": 259200,
            "description": "SDGO: seconds since provider task creation. Explicit values are respected by local polling, with a 120-second reconciliation buffer. SDGO defaults to 172800 seconds; polling reconciles the effective upstream lifetime.",
            "default": 172800
          },
          "priority": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9
          },
          "upstream_status": {
            "type": "string",
            "description": "Observed provider state; expired is preserved on the native route."
          },
          "site_task_id": {
            "type": "string",
            "description": "本站持久任务号，原查询、下载和账单关联继续兼容。"
          },
          "upstream_video_url_expires_at": {
            "type": "integer",
            "description": "可从官方签名读取的原链到期Unix秒数，区别于本站副本保留期。"
          }
        },
        "additionalProperties": true,
        "description": "只返回任务服务实际字段，成功URL位于content.video_url，可回退本站鉴权入口。"
      },
      "GrokOutput": {
        "type": "object",
        "properties": {
          "resolution": {
            "type": "string",
            "enum": [
              "480p",
              "720p",
              "1080p"
            ],
            "default": "720p"
          },
          "aspect_ratio": {
            "type": "string",
            "enum": [
              "16:9",
              "9:16",
              "1:1"
            ],
            "description": "Used for text-to-video. Ignored for single-image video."
          },
          "ratio": {
            "type": "string",
            "description": "Composite output ID, e.g. 720p-16:9; the aspect part is ignored for single-image video."
          }
        },
        "description": "Provide separate fields or one compatible output ID. 1080p is available on grok-imagine-video-1.5 only. Read actual output dimensions from the video file."
      },
      "ImageInputReference": {
        "type": "object",
        "properties": {
          "image_url": {
            "type": "string",
            "description": "Public HTTP(S) image URL or data:image/...;base64,..."
          },
          "file_id": {
            "type": "string",
            "description": "File uploaded using the SAME API key"
          }
        },
        "oneOf": [
          {
            "required": [
              "image_url"
            ],
            "not": {
              "required": [
                "file_id"
              ]
            }
          },
          {
            "required": [
              "file_id"
            ],
            "not": {
              "required": [
                "image_url"
              ]
            }
          }
        ],
        "additionalProperties": false
      },
      "OpenAIFile": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "object": {
            "const": "file"
          },
          "bytes": {
            "type": "integer"
          },
          "created_at": {
            "type": "integer"
          },
          "expires_at": {
            "type": "integer"
          },
          "filename": {
            "type": "string"
          },
          "purpose": {
            "type": "string"
          },
          "status": {
            "const": "processed"
          },
          "status_details": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "object",
          "bytes",
          "created_at",
          "filename",
          "purpose"
        ]
      },
      "OpenAIFileList": {
        "type": "object",
        "properties": {
          "object": {
            "const": "list"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OpenAIFile"
            }
          },
          "first_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "last_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "has_more": {
            "type": "boolean"
          }
        },
        "required": [
          "object",
          "data",
          "has_more"
        ]
      },
      "OpenAIFileDeleted": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "object": {
            "const": "file.deleted"
          },
          "deleted": {
            "const": true
          }
        },
        "required": [
          "id",
          "object",
          "deleted"
        ]
      },
      "MediaCapabilities": {
        "type": "object",
        "properties": {
          "object": {
            "const": "media_capabilities"
          },
          "version": {
            "type": "string"
          },
          "image": {
            "type": "object",
            "properties": {
              "object": {
                "const": "list"
              },
              "data": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            },
            "required": [
              "object",
              "data"
            ]
          },
          "video": {
            "type": "object",
            "properties": {
              "object": {
                "const": "list"
              },
              "data": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            },
            "required": [
              "object",
              "data"
            ]
          }
        },
        "required": [
          "object",
          "version",
          "image",
          "video"
        ]
      },
      "SeedanceAReferenceSecondBilling": {
        "type": "object",
        "description": "Seedance A has two per-second price tiers. No video reference: requested output seconds times the no-reference rate. With video reference: max(output_seconds+measured_reference_seconds,ceil(output_seconds*5/3)) times ONE selected-resolution reference rate, then apply group_ratio. Reference rates for 480/720/1080p: 2.0-A 0.24/0.44/0.84; 2.5-A 0.35/0.55/0.85 CNY per second. No-reference rates remain 2.0-A 0.35/0.55/0.95 and 2.5-A 0.45/0.65/0.95. New task output_price equals reference_price; compatible fields and old task snapshots are preserved. E.g. 2.5-A 1080p with 10 reference seconds and 4 output seconds costs 14*0.85=11.90 CNY at group ratio 1. Effective 2026-10-14 13:41:59 Asia/Shanghai.",
        "properties": {
          "output_seconds": {
            "type": "number"
          },
          "reference_seconds": {
            "type": "number"
          },
          "reference_billable_seconds": {
            "type": "number"
          },
          "billable_seconds": {
            "type": "number"
          },
          "output_price": {
            "type": "number"
          },
          "reference_price": {
            "type": "number"
          },
          "group_ratio": {
            "type": "number"
          },
          "quoted_cny": {
            "type": "number"
          },
          "charged_cny": {
            "type": "number"
          }
        }
      },
      "ImageRequest": {
        "type": "object",
        "required": [
          "model",
          "prompt"
        ],
        "properties": {
          "model": {
            "type": "string",
            "examples": [
              "grok-imagine-image",
              "grok-imagine-image-2.0",
              "grok-imagine-image-quality",
              "Image-2.5-Flare",
              "Image-2.5-Flare-01",
              "Image-2.5-Flare-02",
              "Image-2.5-Sunburst",
              "Image-2.5-Sunburst-01",
              "Image-2.5-Sunburst-02",
              "image2.0-low",
              "image2.0-medium",
              "Midjourney v6",
              "Midjourney v6.1",
              "Midjourney v7",
              "Midjourney v8.1",
              "Midjourney v8.2",
              "NanoBanana2",
              "Nanobanana2.1",
              "NanoBananaPro",
              "Seedream 5.0 Pro",
              "seedream-5.0"
            ]
          },
          "prompt": {
            "type": "string",
            "minLength": 1
          },
          "size": {
            "type": "string",
            "description": "已知值参见能力目录；未知值保持原样交上游判断，既有明确协议转换保持。size与显式aspect_ratio的真实矛盾仍拒绝；比例/档位协议不承诺任意精确成品像素。"
          },
          "quality": {
            "type": [
              "string",
              "number"
            ],
            "description": "已知值参见能力目录；未知值保持原样交上游判断，既有明确协议转换保持。"
          },
          "n": {
            "type": "integer",
            "minimum": 1,
            "description": "默认1。目录max_n是已知参考值，具体支持由上游判断；本站仅保留1–128正整数的计费资源预算。按原报价及单账单结算；MJ一次作业多张候选不重复计费。 Midjourney新请求仅支持n/count=1；多份请求HTTP400，不创建新任务或扣费。",
            "maximum": 128
          },
          "response_format": {
            "type": "string",
            "enum": [
              "url",
              "b64_json"
            ]
          },
          "images": {
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/ImageInputReference"
            }
          },
          "background": {
            "type": "string",
            "description": "已知值参见能力目录；未知值保持原样交上游判断，既有明确协议转换保持。"
          },
          "output_format": {
            "type": "string",
            "description": "已知值参见能力目录；未知值保持原样交上游判断，既有明确协议转换保持。 image-2.6-01 has verified GIF output at 832x832 via output_format=gif; one result is billed once. Arbitrary frame controls and SVG supply are not verified. Other models keep their original provider parameter semantics."
          },
          "output_compression": {
            "type": "integer",
            "x-known-minimum": 0,
            "x-known-maximum": 100,
            "description": "已知值参见能力目录；未知值保持原样交上游判断，既有明确协议转换保持。"
          },
          "mask": {
            "description": "Model-specific optional mask. Consult image_capabilities.request.native_options.mask."
          },
          "resolution": {
            "type": "string",
            "description": "已知值参见能力目录；未知值保持原样交上游判断，既有明确协议转换保持。size与显式aspect_ratio的真实矛盾仍拒绝；比例/档位协议不承诺任意精确成品像素。"
          },
          "aspect_ratio": {
            "type": "string",
            "description": "已知值参见能力目录；未知值保持原样交上游判断，既有明确协议转换保持。size与显式aspect_ratio的真实矛盾仍拒绝；比例/档位协议不承诺任意精确成品像素。"
          },
          "input_fidelity": {
            "type": "string",
            "description": "可选供应商参数，完整保留交上游判断，不表示每条供应商都支持。"
          }
        },
        "additionalProperties": true,
        "description": "Common image envelope. Model-specific options and reference limits are published in image_capabilities.request; an option being present in this schema does not make it available on every model.",
        "x-parameter-policy": {
          "validation": "upstream",
          "catalog_values": "advisory",
          "preserve_original_parameters": true,
          "transport_max_n": 128,
          "legacy_calls_preserved": true
        },
        "x-compatibility-boundary": "2026-10-23：全部图片型号的尺寸、画幅、分辨率档位、质量、张数及供应商参数由上游判断；目录值为已知参考，不作为本站白名单。协议一致时完整透传，协议不同由已适配线路转换；保留旧接口、默认值、真实参数冲突、素材权限与字节、资源保护、原报价及单账单。流式等传输能力仍按已公布契约。",
        "allOf": [
          {
            "if": {
              "properties": {
                "model": {
                  "enum": [
                    "Midjourney v6",
                    "Midjourney v6.1",
                    "Midjourney v7",
                    "Midjourney v8.1",
                    "Midjourney v8.2",
                    "Midjourney niji7"
                  ]
                }
              },
              "required": [
                "model"
              ]
            },
            "then": {
              "properties": {
                "n": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 1
                },
                "count": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 1
                }
              }
            }
          }
        ]
      },
      "ImageEditRequest": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ImageRequest"
          },
          {
            "type": "object",
            "anyOf": [
              {
                "required": [
                  "images"
                ]
              },
              {
                "required": [
                  "image"
                ]
              },
              {
                "required": [
                  "references"
                ]
              }
            ]
          }
        ],
        "x-compatibility-boundary": "本站采用OpenAI Images兼容请求/响应，供应商协议由内部适配器处理。参数格式合法与型号实际能力分开：每型号n、质量、尺寸、参考、mask及流式范围以能力目录为准；不是全部OpenAI功能完全等同。resolution/aspect_ratio、Prefer异步及本站图片任务查询为扩展。服务无可用渠道/半开等待、上游限流/审核及未知提交，不归为用户JSON格式错误。"
      },
      "ImageMultipartRequest": {
        "type": "object",
        "required": [
          "model",
          "prompt",
          "image"
        ],
        "properties": {
          "model": {
            "type": "string"
          },
          "prompt": {
            "type": "string"
          },
          "image": {
            "type": "string",
            "format": "binary"
          },
          "image[]": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "binary"
            }
          },
          "mask": {
            "type": "string",
            "format": "binary"
          },
          "size": {
            "type": "string",
            "description": "已知值参见能力目录；未知值保持原样交上游判断，既有明确协议转换保持。size与显式aspect_ratio的真实矛盾仍拒绝；比例/档位协议不承诺任意精确成品像素。"
          },
          "quality": {
            "type": "string",
            "description": "已知值参见能力目录；未知值保持原样交上游判断，既有明确协议转换保持。"
          },
          "n": {
            "type": "integer",
            "minimum": 1,
            "maximum": 128,
            "description": "默认1。目录max_n是已知参考值，具体支持由上游判断；本站仅保留1–128正整数的计费资源预算。按原报价及单账单结算；MJ一次作业多张候选不重复计费。 Midjourney新请求仅支持n/count=1；多份请求HTTP400，不创建新任务或扣费。"
          },
          "response_format": {
            "type": "string",
            "enum": [
              "url",
              "b64_json"
            ]
          },
          "resolution": {
            "type": "string",
            "description": "已知值参见能力目录；未知值保持原样交上游判断，既有明确协议转换保持。size与显式aspect_ratio的真实矛盾仍拒绝；比例/档位协议不承诺任意精确成品像素。"
          },
          "aspect_ratio": {
            "type": "string",
            "description": "已知值参见能力目录；未知值保持原样交上游判断，既有明确协议转换保持。size与显式aspect_ratio的真实矛盾仍拒绝；比例/档位协议不承诺任意精确成品像素。"
          },
          "output_format": {
            "type": "string",
            "description": "已知值参见能力目录；未知值保持原样交上游判断，既有明确协议转换保持。 image-2.6-01 has verified GIF output at 832x832 via output_format=gif; one result is billed once. Arbitrary frame controls and SVG supply are not verified. Other models keep their original provider parameter semantics."
          },
          "background": {
            "type": "string",
            "description": "已知值参见能力目录；未知值保持原样交上游判断，既有明确协议转换保持。"
          },
          "output_compression": {
            "type": "integer",
            "description": "已知值参见能力目录；未知值保持原样交上游判断，既有明确协议转换保持。"
          },
          "input_fidelity": {
            "type": "string",
            "description": "可选供应商参数，完整保留交上游判断，不表示每条供应商都支持。"
          }
        },
        "additionalProperties": true,
        "description": "Use real file bytes, matching MIME and filename. The HTTP client creates the multipart boundary. Multiple image parts and limits depend on the selected model.",
        "x-parameter-policy": {
          "validation": "upstream",
          "catalog_values": "advisory",
          "preserve_original_parameters": true,
          "transport_max_n": 128,
          "legacy_calls_preserved": true
        },
        "x-compatibility-boundary": "2026-10-23：全部图片型号的尺寸、画幅、分辨率档位、质量、张数及供应商参数由上游判断；目录值为已知参考，不作为本站白名单。协议一致时完整透传，协议不同由已适配线路转换；保留旧接口、默认值、真实参数冲突、素材权限与字节、资源保护、原报价及单账单。流式等传输能力仍按已公布契约。",
        "allOf": [
          {
            "if": {
              "properties": {
                "model": {
                  "enum": [
                    "Midjourney v6",
                    "Midjourney v6.1",
                    "Midjourney v7",
                    "Midjourney v8.1",
                    "Midjourney v8.2",
                    "Midjourney niji7"
                  ]
                }
              },
              "required": [
                "model"
              ]
            },
            "then": {
              "properties": {
                "n": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 1
                },
                "count": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 1
                }
              }
            }
          }
        ]
      },
      "ImageResponse": {
        "type": "object",
        "properties": {
          "created": {
            "type": "integer"
          },
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string"
                },
                "b64_json": {
                  "type": "string"
                },
                "revised_prompt": {
                  "type": "string"
                },
                "fallback_url": {
                  "type": "string",
                  "format": "uri",
                  "description": "可选的本站扩展。同一成品有签发直链时可同时返回站内备用地址。签发直链有效期 24 小时。"
                }
              },
              "additionalProperties": true
            }
          },
          "usage": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "additionalProperties": true,
        "description": "Image URLs may expire. Send the site key only to site-authenticated download paths, never to third-party CDN URLs. Optional usage does not redefine a per-image model tariff."
      },
      "GeminiImageRequest": {
        "type": "object",
        "required": [
          "contents"
        ],
        "properties": {
          "contents": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "object",
              "required": [
                "parts"
              ],
              "properties": {
                "role": {
                  "type": "string"
                },
                "parts": {
                  "type": "array",
                  "minItems": 1,
                  "items": {
                    "type": "object"
                  }
                }
              },
              "additionalProperties": true
            }
          },
          "generationConfig": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "additionalProperties": true,
        "description": "Gemini native image compatibility for the documented Nano models. Read image parts in candidates[].content.parts[].inlineData; do not assume the response is text only."
      },
      "KlingV4Request": {
        "allOf": [
          {
            "$ref": "#/components/schemas/VideoRequest"
          },
          {
            "type": "object",
            "properties": {
              "model": {
                "const": "kling-video-v4"
              },
              "seconds": {
                "oneOf": [
                  {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^[1-9][0-9]*$"
                  }
                ],
                "default": 5,
                "description": "默认5秒；30秒生成经用户实测可用。正整数生成时长原值提交上游判断，目录5/10/15/20/30秒为建议选项，不作为上游能力上限；720P/1080P、16:9/9:16沿用原协议。 数值上限是安全整数保护，实际费用仍受计费整数预算保护。",
                "examples": [
                  5,
                  10,
                  30
                ]
              },
              "references": {
                "type": "array",
                "description": "图片、视频、音频参考的数量、实际格式、宽高比和时长支持由上游判断；本站保留原始素材字节、顺序与角色。显式首尾帧继续校验角色冲突，不与普通或混合参考混用。 本站保留单文件和总字节预算、素材读取权限、实际内容/类型检查与计费所需的真实时长探测；不再按旧3–30秒、5–30秒或视频累计30秒能力值提前拒绝。音频/视频无法读取真实正时长时仍拒绝。"
              },
              "output": {
                "type": "object",
                "properties": {
                  "resolution": {
                    "enum": [
                      "720p",
                      "1080p"
                    ],
                    "default": "720p"
                  },
                  "aspect_ratio": {
                    "enum": [
                      "16:9",
                      "9:16"
                    ]
                  }
                }
              },
              "images": {
                "type": "array",
                "description": "图片、视频、音频参考的数量、实际格式、宽高比和时长支持由上游判断；本站保留原始素材字节、顺序与角色。显式首尾帧继续校验角色冲突，不与普通或混合参考混用。 本站保留单文件和总字节预算、素材读取权限、实际内容/类型检查与计费所需的真实时长探测；不再按旧3–30秒、5–30秒或视频累计30秒能力值提前拒绝。音频/视频无法读取真实正时长时仍拒绝。"
              },
              "workflow_id": {
                "type": "string",
                "enum": [
                  "default",
                  "generate_audio",
                  "keep_original_sound"
                ],
                "default": "default",
                "description": "workflow_id可省略或为default；generate_audio生成新声音，keep_original_sound保留参考视频原声。也可使用enable_audio/keep_original_sound布尔扩展；仅混合参考有效、不能同时true，保留原声需要视频。false/false沿用上游默认，不保证静音。音频是音色参考，不保证逐字照读。"
              },
              "enable_audio": {
                "type": "boolean",
                "description": "workflow_id可省略或为default；generate_audio生成新声音，keep_original_sound保留参考视频原声。也可使用enable_audio/keep_original_sound布尔扩展；仅混合参考有效、不能同时true，保留原声需要视频。false/false沿用上游默认，不保证静音。音频是音色参考，不保证逐字照读。"
              },
              "keep_original_sound": {
                "type": "boolean",
                "description": "workflow_id可省略或为default；generate_audio生成新声音，keep_original_sound保留参考视频原声。也可使用enable_audio/keep_original_sound布尔扩展；仅混合参考有效、不能同时true，保留原声需要视频。false/false沿用上游默认，不保证静音。音频是音色参考，不保证逐字照读。"
              }
            }
          }
        ],
        "description": "默认5秒；30秒生成经用户实测可用。正整数生成时长原值提交上游判断，目录5/10/15/20/30秒为建议选项，不作为上游能力上限；720P/1080P、16:9/9:16沿用原协议。\n图片、视频、音频参考的数量、实际格式、宽高比和时长支持由上游判断；本站保留原始素材字节、顺序与角色。显式首尾帧继续校验角色冲突，不与普通或混合参考混用。\n本站保留单文件和总字节预算、素材读取权限、实际内容/类型检查与计费所需的真实时长探测；不再按旧3–30秒、5–30秒或视频累计30秒能力值提前拒绝。音频/视频无法读取真实正时长时仍拒绝。\n不含参考视频时，720P ¥0.20/输出秒、1080P ¥0.27/输出秒，纯文本、图片和仅音频参考沿用原价。\n含参考视频时：上游采购暂估 = round(输出秒数×基础采购秒价 + 输入视频总秒数×0.03, 2)，客户费用 = 上游采购暂估×1.1，再按账户分组倍率计算。基础采购秒价720P为¥0.15、1080P为¥0.22；参考视频¥0.03/秒由实扣样本推算，尚非供应商正式报价。输入时长由服务器探测并逐段按毫秒上取，本次整笔报价冻结。\n例：输出5秒+参考视频3秒，720P暂估采购¥0.84，客户¥0.924；1080P暂估采购¥1.19，客户¥1.309（分组倍率1）。\nworkflow_id可省略或为default；generate_audio生成新声音，keep_original_sound保留参考视频原声。也可使用enable_audio/keep_original_sound布尔扩展；仅混合参考有效、不能同时true，保留原声需要视频。false/false沿用上游默认，不保证静音。音频是音色参考，不保证逐字照读。\n保留URL、data、multipart与同Key上传后file_id来源；同个素材只指定一种来源。查询GET /v1/videos/{id}，完成后GET /v1/videos/{id}/content下载。创建未知时只查原任务；同一业务请求使用固定幂等键。元素参考不在本型号当前能力内。",
        "x-contract-version": "kling-v4-upstream-params-20261023",
        "x-reference-input-policy": {
          "types": [
            "image",
            "video",
            "audio"
          ],
          "max": 0,
          "min": 0,
          "limits": {
            "image": null,
            "video": null,
            "audio": null,
            "file": 0,
            "link": 0
          },
          "size_limits": {
            "image": 209715200,
            "video": 209715200,
            "audio": 209715200,
            "file": 209715200,
            "total": 1073741824
          },
          "mime_types": {},
          "roles": [
            "reference",
            "first_frame",
            "last_frame"
          ],
          "rules": {
            "first_frame": 1,
            "last_frame": 1,
            "last_requires_first": true,
            "frame_reference_exclusive": true,
            "all_frame_reference_exclusive": true,
            "ordinary_images_note": "参考素材能力由上游判断；普通图片完整保留，显式首尾帧保留原角色约束。"
          },
          "duration_limits": {},
          "dimension_limits": {},
          "workflow_limits": {
            "default": {
              "types": [
                "image",
                "video",
                "audio"
              ],
              "limits": {
                "image": null,
                "video": null,
                "audio": null,
                "file": 0,
                "link": 0
              },
              "total": null,
              "max": null,
              "min": 0,
              "roles": [
                "reference",
                "first_frame",
                "last_frame"
              ],
              "size_limits": {
                "image": 209715200,
                "video": 209715200,
                "audio": 209715200,
                "total": 1073741824
              },
              "duration_limits": {},
              "dimension_limits": {},
              "rules": {
                "first_frame": 1,
                "last_frame": 1,
                "last_requires_first": true,
                "frame_reference_exclusive": true,
                "all_frame_reference_exclusive": true,
                "ordinary_images_note": "参考素材能力由上游判断；普通图片完整保留，显式首尾帧保留原角色约束。"
              }
            },
            "generate_audio": {
              "types": [
                "image",
                "video",
                "audio"
              ],
              "limits": {
                "image": null,
                "video": null,
                "audio": null,
                "file": 0,
                "link": 0
              },
              "total": null,
              "max": null,
              "min": 0,
              "roles": [
                "reference"
              ],
              "size_limits": {
                "image": 209715200,
                "video": 209715200,
                "audio": 209715200,
                "total": 1073741824
              },
              "duration_limits": {},
              "dimension_limits": {},
              "rules": {
                "first_frame": 1,
                "last_frame": 1,
                "last_requires_first": true,
                "frame_reference_exclusive": true,
                "all_frame_reference_exclusive": true,
                "ordinary_images_note": "参考素材能力由上游判断；普通图片完整保留，显式首尾帧保留原角色约束。",
                "required_mixed_reference": true
              }
            },
            "keep_original_sound": {
              "types": [
                "image",
                "video",
                "audio"
              ],
              "limits": {
                "image": null,
                "video": null,
                "audio": null,
                "file": 0,
                "link": 0
              },
              "total": null,
              "max": null,
              "min": 1,
              "roles": [
                "reference"
              ],
              "size_limits": {
                "image": 209715200,
                "video": 209715200,
                "audio": 209715200,
                "total": 1073741824
              },
              "duration_limits": {},
              "dimension_limits": {},
              "rules": {
                "first_frame": 1,
                "last_frame": 1,
                "last_requires_first": true,
                "frame_reference_exclusive": true,
                "all_frame_reference_exclusive": true,
                "ordinary_images_note": "参考素材能力由上游判断；普通图片完整保留，显式首尾帧保留原角色约束。",
                "required_videos": 1
              }
            }
          },
          "metadata_validation": "server",
          "input_formats": {
            "image": [
              "url",
              "data_uri",
              "base64",
              "multipart",
              "file_id"
            ],
            "video": [
              "url",
              "multipart",
              "file_id"
            ],
            "audio": [
              "url",
              "multipart",
              "file_id"
            ]
          },
          "inline_image_mime_types": [
            "image/png",
            "image/jpeg",
            "image/webp"
          ]
        },
        "x-reference-video-pricing": {
          "version": "kling-v4-reference-estimate-20261017",
          "estimated": true,
          "upstream_output_prices": {
            "720p": 0.15,
            "1080p": 0.22
          },
          "upstream_reference_prices": {
            "720p": 0.03,
            "1080p": 0.03
          },
          "markup_multiplier": 1.1,
          "reference_duration_rounding": "ceil_to_millisecond",
          "formula": "round(upstream_output_price * output_seconds + upstream_reference_price * reference_video_seconds, 2) * 1.1",
          "note": "含参考视频：估算上游成本为输出秒数×上游基础价＋输入视频总秒数×估算参考秒价，再乘1.1；参考时长由服务器读取。参考秒价为根据已有实扣推算的暂估值，并非供应商正式报价。纯文本/图片/仅音频参考沿用原输出秒价。"
        }
      },
      "WanC1Request": {
        "type": "object",
        "required": [
          "model",
          "prompt",
          "output"
        ],
        "properties": {
          "model": {
            "type": "string",
            "enum": [
              "wan3.0-C1"
            ]
          },
          "prompt": {
            "type": "string",
            "minLength": 1
          },
          "seconds": {
            "type": "integer",
            "minimum": 5,
            "maximum": 30,
            "default": 5
          },
          "output": {
            "type": "object",
            "required": [
              "resolution"
            ],
            "properties": {
              "resolution": {
                "type": "string",
                "enum": [
                  "480p"
                ]
              },
              "aspect_ratio": {
                "type": "string",
                "enum": [
                  "16:9",
                  "9:16",
                  "3:4",
                  "4:3",
                  "1:1"
                ]
              }
            }
          }
        }
      },
      "Seedance20C2Request": {
        "allOf": [
          {
            "$ref": "#/components/schemas/VideoRequest"
          },
          {
            "type": "object",
            "properties": {
              "model": {
                "const": "sd-2.0-c2"
              },
              "seconds": {
                "type": "integer",
                "enum": [
                  5,
                  6,
                  7,
                  8,
                  9,
                  10,
                  11,
                  12,
                  13,
                  14,
                  15
                ],
                "default": 15
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "enum": [
                        "image",
                        "audio"
                      ]
                    },
                    "role": {
                      "const": "reference"
                    },
                    "url": {
                      "type": "string",
                      "format": "uri"
                    }
                  },
                  "required": [
                    "type",
                    "url"
                  ]
                },
                "description": "普通参考角色。720p 最多 9 张图、3 个音频、不支持视频；480p 保持原图音参考合同。"
              },
              "output": {
                "type": "object",
                "properties": {
                  "resolution": {
                    "type": "string",
                    "enum": [
                      "480p",
                      "720p"
                    ],
                    "default": "480p",
                    "description": "默认 480p、15 秒、16:9。480p 1.60 额度/次；720p 2.50 额度/次，5–15 秒、16:9，支持纯文生及最多 9 张参考图、3 个参考音频，不支持参考视频。1080p 暂停，不自动降档。"
                  },
                  "aspect_ratio": {
                    "enum": [
                      "16:9",
                      "9:16",
                      "1:1",
                      "4:3",
                      "3:4",
                      "21:9"
                    ]
                  }
                }
              }
            },
            "allOf": [
              {
                "if": {
                  "required": [
                    "output"
                  ],
                  "properties": {
                    "output": {
                      "required": [
                        "resolution"
                      ],
                      "properties": {
                        "resolution": {
                          "const": "720p"
                        }
                      }
                    }
                  }
                },
                "then": {
                  "properties": {
                    "references": {
                      "maxItems": 12
                    },
                    "output": {
                      "properties": {
                        "aspect_ratio": {
                          "const": "16:9"
                        }
                      }
                    }
                  }
                }
              }
            ]
          }
        ],
        "description": "默认 480p、15 秒、16:9。480p 1.60 额度/次；720p 2.50 额度/次，5–15 秒、16:9，支持纯文生及最多 9 张参考图、3 个参考音频，不支持参考视频。1080p 暂停，不自动降档。"
      },
      "Seedance25C2Request": {
        "allOf": [
          {
            "$ref": "#/components/schemas/VideoRequest"
          },
          {
            "type": "object",
            "properties": {
              "model": {
                "const": "sd-2.5-c2"
              },
              "seconds": {
                "type": "integer",
                "enum": [
                  30,
                  5,
                  8,
                  10,
                  12,
                  13,
                  15
                ],
                "default": 30
              },
              "references": {
                "type": "array",
                "maxItems": 12,
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "enum": [
                        "image",
                        "audio"
                      ]
                    },
                    "role": {
                      "const": "reference"
                    },
                    "url": {
                      "type": "string",
                      "format": "uri"
                    }
                  },
                  "required": [
                    "type",
                    "url"
                  ]
                },
                "description": "图像最多9项，音频最多3项；视频参考不支持。"
              },
              "output": {
                "type": "object",
                "properties": {
                  "resolution": {
                    "enum": [
                      "480p",
                      "720p",
                      "1080p"
                    ]
                  },
                  "aspect_ratio": {
                    "enum": [
                      "16:9",
                      "9:16",
                      "1:1",
                      "4:3",
                      "3:4",
                      "21:9"
                    ]
                  }
                }
              }
            }
          }
        ],
        "description": "Seedance 2.5 C2 · 按次计费；最多9张参考图、3个参考音频，不支持视频参考；720P人脸参考已实测。异步提交，成片保存7天。"
      },
      "LegacyDomesticSeedanceRequest": {
        "type": "object",
        "required": [
          "model",
          "prompt"
        ],
        "properties": {
          "model": {
            "type": "string",
            "enum": [
              "doubao-seedance-2-5-260628",
              "doubao-seedance-2-0-260128",
              "doubao-seedance-2-0-fast-260128",
              "doubao-seedance-2-0-mini-260615"
            ]
          },
          "prompt": {
            "type": "string",
            "minLength": 1
          },
          "duration": {
            "type": [
              "integer",
              "string"
            ],
            "description": "时长；兼容seconds，重复值必须一致。"
          },
          "seconds": {
            "type": [
              "integer",
              "string"
            ]
          },
          "resolution": {
            "type": "string",
            "enum": [
              "480p",
              "720p",
              "1080p"
            ]
          },
          "ratio": {
            "type": "string"
          },
          "generate_audio": {
            "type": "boolean"
          },
          "metadata": {
            "type": [
              "object",
              "string"
            ],
            "description": "兼容原生控制参数；与顶层重复值必须一致。"
          },
          "image": {
            "type": "string"
          },
          "images": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": true,
        "description": "兼容旧国内Seedance创建入口；顶部和metadata支持相同的原生控制参数，false/0保留。其他模型仍沿各自既有契约。"
      },
      "SeedanceSD25TwoTierBilling": {
        "type": "object",
        "description": "无视频参考480P/720P/1080P：0.44/0.80/1.20元/输出秒；有视频参考：0.50/0.85/1.25元/计费秒。 无视频参考按输出时长计费；有视频参考按输出秒数与参考视频总时长向上取整后的较大值计费，统一乘所选分辨率的有视频单价。参考时长由服务器测量，多段累加；仅超过输出时长的部分另计参考秒数。账户分组倍率另计。 新任务生效时间：2026-10-25T22:24:51+08:00；已受理任务沿用原报价。",
        "properties": {
          "version": {
            "type": "string",
            "const": "seedance-sd25-01-two-tier-20261025"
          },
          "output_seconds": {
            "type": "integer"
          },
          "reference_seconds": {
            "type": "number",
            "description": "服务器探测的参考视频总时长"
          },
          "reference_billable_seconds": {
            "type": "number",
            "description": "max(ceil(reference_seconds)-output_seconds,0)"
          },
          "billable_seconds": {
            "type": "number",
            "description": "max(output_seconds,ceil(reference_seconds))"
          },
          "output_price": {
            "type": "number"
          },
          "reference_price": {
            "type": "number"
          },
          "quoted_cny": {
            "type": "number"
          }
        }
      },
      "TopazManualParams": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "compression",
          "details",
          "preblur",
          "blur",
          "noise",
          "halo"
        ],
        "description": "Only for prob-4. Actual API values, not 0–100 UI sliders.",
        "properties": {
          "compression": {
            "type": "number",
            "minimum": -1,
            "maximum": 1
          },
          "details": {
            "type": "number",
            "minimum": -1,
            "maximum": 1
          },
          "preblur": {
            "type": "number",
            "minimum": -1,
            "maximum": 1
          },
          "blur": {
            "type": "number",
            "minimum": -1,
            "maximum": 1
          },
          "noise": {
            "type": "number",
            "minimum": -1,
            "maximum": 1
          },
          "halo": {
            "type": "number",
            "minimum": -1,
            "maximum": 1
          },
          "grain": {
            "type": "object",
            "nullable": true,
            "additionalProperties": false,
            "required": [
              "strength",
              "size"
            ],
            "properties": {
              "strength": {
                "type": "number",
                "minimum": 0,
                "maximum": 0.1
              },
              "size": {
                "type": "number",
                "minimum": 0,
                "maximum": 0.1
              }
            }
          }
        }
      },
      "TopazEnhancement": {
        "type": "object",
        "nullable": true,
        "additionalProperties": false,
        "required": [
          "model"
        ],
        "properties": {
          "model": {
            "type": "string",
            "enum": [
              "prob-4",
              "ahq-12",
              "iris-3",
              "rhea-1",
              "ghq-5",
              "thd-3",
              "slp-2.5"
            ]
          },
          "params": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TopazManualParams"
              }
            ],
            "nullable": true,
            "description": "Omit or null for model default. Manual settings currently only for prob-4."
          }
        }
      },
      "TopazFrameInterpolation": {
        "type": "object",
        "nullable": true,
        "additionalProperties": false,
        "required": [
          "fps"
        ],
        "properties": {
          "fps": {
            "type": "integer",
            "enum": [
              24,
              30,
              60,
              120
            ]
          }
        },
        "description": "Only standalone Topaz 1080P/4K. Omit or null to preserve source FPS. Fixed playback speed 1x."
      },
      "KlingV4OfficialRequest": {
        "type": "object",
        "required": [
          "model"
        ],
        "properties": {
          "model": {
            "type": "string",
            "enum": [
              "kling-video-v4-official"
            ]
          },
          "prompt": {
            "type": "string"
          },
          "seconds": {
            "type": "integer",
            "minimum": 1,
            "default": 5
          },
          "resolution": {
            "type": "string",
            "enum": [
              "720p",
              "1080p"
            ],
            "default": "720p"
          },
          "aspect_ratio": {
            "type": "string",
            "enum": [
              "16:9",
              "9:16",
              "1:1",
              "21:9",
              "auto"
            ],
            "default": "16:9"
          },
          "mode": {
            "type": "string",
            "enum": [
              "text-to-video",
              "image-to-video",
              "reference-to-video",
              "video-edit"
            ]
          },
          "references": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Reference"
            }
          },
          "duration": {
            "type": "integer",
            "minimum": 1,
            "description": "Alias of seconds; both must match when supplied"
          },
          "output": {
            "type": "object",
            "properties": {
              "ratio": {
                "type": "string",
                "example": "1080p-16x9",
                "description": "Published output selector; conflicting geometry fields are rejected"
              }
            }
          }
        },
        "description": "历史型号（kling-video-v4-official）。新请求请使用 kling-video-v4；两者接受相同字段。",
        "deprecated": true
      },
      "MidjourneyFullRequest": {
        "type": "object",
        "required": [
          "model",
          "prompt"
        ],
        "properties": {
          "model": {
            "type": "string",
            "const": "Midjourney-全系列",
            "description": "全系列用 Midjourney-全系列；固定型号直接填写完整公开名称。"
          },
          "prompt": {
            "type": "string",
            "minLength": 1,
            "description": "描述希望得到的画面。操作类也传入非空说明，modal 可传修订后的提示词。"
          },
          "version": {
            "type": "string",
            "enum": [
              "5",
              "5.1",
              "5.2",
              "6",
              "6.1",
              "7",
              "8",
              "8.1",
              "8.2"
            ],
            "default": "8.2",
            "description": "全系列的 MJ 版本，默认 8.2。与 niji_version 二选一；固定型号自带版本。"
          },
          "niji_version": {
            "type": "string",
            "enum": [
              "5",
              "6",
              "7"
            ],
            "description": "在全系列选择 Niji 5、6 或 7，与 version 二选一。"
          },
          "operation": {
            "type": "string",
            "enum": [
              "imagine",
              "blend",
              "describe",
              "upscale",
              "variation",
              "reroll",
              "high_variation",
              "low_variation",
              "zoom",
              "custom_zoom",
              "pan",
              "inpaint",
              "remix",
              "modal",
              "action",
              "change",
              "simple_change"
            ],
            "default": "imagine",
            "description": "选择任务动作，默认 imagine。操作示例展示各自所需字段。"
          },
          "action": {
            "type": "string",
            "enum": [
              "UPSCALE",
              "VARIATION",
              "REROLL"
            ],
            "description": "在 change 中选择基础动作，UPSCALE、VARIATION 另需 index。"
          },
          "aspect_ratio": {
            "type": "string",
            "description": "画幅比例，建议与 size 二选一。"
          },
          "size": {
            "type": "string",
            "default": "auto",
            "anyOf": [
              {
                "enum": [
                  "auto",
                  "1:1",
                  "3:2",
                  "2:3",
                  "4:3",
                  "3:4",
                  "5:4",
                  "4:5",
                  "16:9",
                  "9:16",
                  "21:9"
                ]
              },
              {
                "pattern": "^[1-9][0-9]*(?:x|:)[1-9][0-9]*$"
              }
            ],
            "description": "公开画幅或 auto。固定旧型号继续兼容像素尺寸，实际成品尺寸由生成结果确定。"
          },
          "quality": {
            "oneOf": [
              {
                "type": "string",
                "enum": [
                  "auto",
                  "standard",
                  "medium",
                  "low",
                  "high",
                  "hd",
                  "0.25",
                  "0.5",
                  "1",
                  "2",
                  "4"
                ],
                "default": "auto"
              },
              {
                "type": "number",
                "enum": [
                  0.25,
                  0.5,
                  1,
                  2,
                  4
                ]
              }
            ],
            "description": "V8.1 和 V8.2 使用 1K、2K 或 hd 选择清晰度。quality 和 --q 只在支持品质设置的版本生效。 旧客户端在 V8.1 和 V8.2 传入默认值时，会兼容省略该字段。",
            "x-not-applicable-to": [
              "v8.1",
              "v8.2"
            ],
            "x-compatibility-aliases-on-v8": [
              "auto",
              "standard",
              "medium",
              "1"
            ]
          },
          "response_format": {
            "type": "string",
            "enum": [
              "url",
              "b64_json"
            ],
            "default": "url",
            "description": "url 读取成品链接；b64_json 逐项读取内联数据。"
          },
          "image": {
            "type": "string",
            "description": "单张普通参考，可用公网图片地址或 data URI；describe 需要一张。"
          },
          "images": {
            "type": "array",
            "minItems": 1,
            "maxItems": 5,
            "items": {
              "oneOf": [
                {
                  "type": "string"
                },
                {
                  "type": "object",
                  "required": [
                    "file_id"
                  ],
                  "properties": {
                    "file_id": {
                      "type": "string"
                    }
                  }
                },
                {
                  "type": "object",
                  "required": [
                    "image_url"
                  ],
                  "properties": {
                    "image_url": {
                      "oneOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "required": [
                            "url"
                          ],
                          "properties": {
                            "url": {
                              "type": "string",
                              "format": "uri"
                            }
                          }
                        }
                      ]
                    }
                  }
                }
              ]
            },
            "description": "普通参考图 1 至 5 张。首选有序的 images 对象数组，每项填写 image_url 或 file_id。兼容旧 URL 数组。blend 需 2 至 5 张。"
          },
          "raw": {
            "type": "boolean",
            "description": "启用 Raw 风格。"
          },
          "hd": {
            "type": "boolean",
            "description": "v8.1、v8.2 的高清开关。普通分辨率使用 1K 并移除提示词中的 --hd。高清可单独使用 hd=true 或兼容字段 resolution=2k。"
          },
          "tile": {
            "type": "boolean",
            "description": "生成可平铺的重复纹样。"
          },
          "stylize": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000,
            "description": "调整风格化强度。"
          },
          "chaos": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100,
            "description": "调整候选构图的变化程度。"
          },
          "seed": {
            "type": "integer",
            "description": "固定随机种子，合法取值为 0 至 4294967295。",
            "minimum": 0,
            "maximum": 4294967295
          },
          "weird": {
            "type": "integer",
            "minimum": 0,
            "maximum": 3000,
            "description": "调整非常规视觉风格的强度。"
          },
          "stop": {
            "type": "integer",
            "minimum": 10,
            "maximum": 100,
            "description": "设定生成停止百分比。"
          },
          "no": {
            "type": "string",
            "description": "以字符串列出想排除的画面元素。"
          },
          "iw": {
            "type": "number",
            "minimum": 0,
            "maximum": 3,
            "description": "控制普通参考图的权重。"
          },
          "sref": {
            "type": "string",
            "description": "风格参考图片 URL 或风格代码。"
          },
          "sw": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000,
            "description": "风格参考权重，与 sref 搭配。"
          },
          "cref": {
            "type": "string",
            "description": "旧版角色参考图，适用于 v6、v6.1、Niji 6。v8.1/v8.2 的普通参考图通过 Images edits 的 image 或 images 提交。",
            "x-applies-to": [
              "v6",
              "v6.1",
              "niji6"
            ]
          },
          "cw": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100,
            "description": "旧版角色参考权重，与兼容版本的 cref 搭配。",
            "x-applies-to": [
              "v6",
              "v6.1",
              "niji6"
            ]
          },
          "oref": {
            "type": "string",
            "description": "Midjourney v7 的对象参考图。",
            "x-applies-to": [
              "v7"
            ]
          },
          "ow": {
            "type": "number",
            "minimum": 0,
            "maximum": 1000,
            "description": "对象参考权重，与 oref 搭配。",
            "x-applies-to": [
              "v7"
            ]
          },
          "dref": {
            "description": "仅 imagine 使用，接受一个公网图片 URL 或有序 URL 数组。",
            "oneOf": [
              {
                "type": "string",
                "format": "uri"
              },
              {
                "type": "array",
                "minItems": 1,
                "items": {
                  "type": "string",
                  "format": "uri"
                }
              }
            ]
          },
          "dw": {
            "type": "number",
            "minimum": 0,
            "maximum": 1000,
            "description": "深度参考权重，与 dref 搭配。"
          },
          "personalize": {
            "description": "使用自己的配置，例如包含 profiles 字符串数组的对象。",
            "oneOf": [
              {
                "type": "boolean"
              },
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "array",
                "minItems": 1,
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean"
                  },
                  "profiles": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "code": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "task_id": {
            "type": "string",
            "description": "取同一 API Key 的原结果 mj.task_id；modal 使用当前等待确认的交互任务。"
          },
          "custom_id": {
            "type": "string",
            "description": "从该任务 mj.buttons[].customId 选取与动作匹配的按钮。"
          },
          "index": {
            "type": "integer",
            "minimum": 1,
            "maximum": 4,
            "description": "选择四宫格的第 1 至 4 张。"
          },
          "zoom_ratio": {
            "type": "number",
            "description": "在 modal 确认自定义缩放时填写正数。",
            "exclusiveMinimum": 0
          },
          "enable_remix": {
            "type": "boolean",
            "description": "允许在原按钮动作中修改提示词。"
          },
          "content": {
            "type": "string",
            "description": "simple_change 的命令内容，由原 mj.task_id、空格及 U1–U4、V1–V4 或 R 组成。"
          },
          "mask": {
            "type": "string",
            "description": "仅用于 modal，传与源图尺寸相同的 PNG Base64 或 data URI。"
          },
          "n": {
            "type": "integer",
            "const": 1,
            "description": "单次提交次数固定为 1。普通生成成功交付四张，放大交付一张。"
          }
        },
        "allOf": [
          {
            "not": {
              "required": [
                "version",
                "niji_version"
              ]
            }
          },
          {
            "if": {
              "required": [
                "operation"
              ],
              "properties": {
                "operation": {
                  "enum": [
                    "change"
                  ]
                }
              }
            },
            "then": {
              "required": [
                "task_id",
                "action"
              ]
            }
          },
          {
            "if": {
              "required": [
                "operation"
              ],
              "properties": {
                "operation": {
                  "enum": [
                    "upscale",
                    "variation"
                  ]
                }
              }
            },
            "then": {
              "required": [
                "task_id",
                "index"
              ]
            }
          },
          {
            "if": {
              "required": [
                "operation"
              ],
              "properties": {
                "operation": {
                  "enum": [
                    "reroll",
                    "modal"
                  ]
                }
              }
            },
            "then": {
              "required": [
                "task_id"
              ]
            }
          },
          {
            "if": {
              "required": [
                "operation"
              ],
              "properties": {
                "operation": {
                  "enum": [
                    "simple_change"
                  ]
                }
              }
            },
            "then": {
              "required": [
                "content"
              ]
            }
          },
          {
            "if": {
              "required": [
                "operation"
              ],
              "properties": {
                "operation": {
                  "enum": [
                    "high_variation",
                    "low_variation",
                    "zoom",
                    "custom_zoom",
                    "pan",
                    "inpaint",
                    "remix",
                    "action"
                  ]
                }
              }
            },
            "then": {
              "required": [
                "task_id",
                "custom_id"
              ]
            }
          },
          {
            "if": {
              "required": [
                "mask"
              ]
            },
            "then": {
              "required": [
                "operation"
              ],
              "properties": {
                "operation": {
                  "const": "modal"
                }
              }
            }
          },
          {
            "if": {
              "required": [
                "dref",
                "operation"
              ]
            },
            "then": {
              "properties": {
                "operation": {
                  "const": "imagine"
                }
              }
            }
          }
        ],
        "examples": [
          {
            "model": "Midjourney-全系列",
            "prompt": "一盏青瓷台灯，暖光照在亚麻桌布上。",
            "operation": "imagine",
            "version": "8.2",
            "size": "3:4",
            "n": 1,
            "response_format": "url"
          },
          {
            "model": "Midjourney-全系列",
            "prompt": "俯视木质工作台，光线柔和，画面整洁。",
            "operation": "imagine",
            "version": "8.2",
            "aspect_ratio": "16:9",
            "hd": true,
            "raw": true,
            "stylize": 150,
            "chaos": 8,
            "seed": 421,
            "no": "文字、水印",
            "n": 1,
            "response_format": "url"
          },
          {
            "model": "Midjourney-全系列",
            "prompt": "靛蓝色印花布料，细密的重复几何图案。",
            "operation": "imagine",
            "tile": true,
            "weird": 30,
            "stop": 90,
            "size": "1:1",
            "n": 1,
            "response_format": "url"
          },
          {
            "model": "Midjourney-全系列",
            "prompt": "动画背景，海边小站，雨后的蓝色夜空。",
            "operation": "imagine",
            "niji_version": "7",
            "size": "16:9",
            "n": 1,
            "response_format": "url"
          },
          {
            "model": "Midjourney-全系列",
            "prompt": "保留参考图里的球体轮廓，改成磨砂玻璃材质。",
            "operation": "imagine",
            "image": "https://xinfeng.best/video-api-docs/test-assets/acceptance-ball-20260907.png",
            "iw": 1.5,
            "size": "1:1",
            "n": 1,
            "response_format": "url"
          },
          {
            "model": "Midjourney-全系列",
            "prompt": "使用第一张的主体和第二张的配色，生成棚拍静物。",
            "operation": "imagine",
            "images": [
              {
                "image_url": "https://xinfeng.best/video-api-docs/test-assets/acceptance-ball-20260907.png"
              },
              {
                "image_url": "https://xinfeng.best/video-api-docs/test-assets/acceptance-ball-ref-20260907.png"
              }
            ],
            "size": "4:3",
            "n": 1,
            "response_format": "url",
            "version": "8.2"
          },
          {
            "model": "Midjourney-全系列",
            "prompt": "保留素材主体，调整背景颜色。",
            "operation": "imagine",
            "images": [
              {
                "file_id": "${MJ_FILE_ID}"
              }
            ],
            "n": 1,
            "response_format": "url"
          },
          {
            "model": "Midjourney-全系列",
            "prompt": "保持桌灯构图，使用参考图的色彩风格。",
            "operation": "imagine",
            "sref": "https://xinfeng.best/video-api-docs/test-assets/acceptance-ball-20260907.png",
            "sw": 180,
            "n": 1,
            "response_format": "url"
          },
          {
            "model": "Midjourney-全系列",
            "prompt": "同一角色的半身插画，背景简洁。",
            "operation": "imagine",
            "version": "6.1",
            "cref": "https://xinfeng.best/video-api-docs/test-assets/acceptance-ball-20260907.png",
            "cw": 75,
            "n": 1,
            "response_format": "url"
          },
          {
            "model": "Midjourney-全系列",
            "prompt": "保留参考物体的外形，换为工业设计展示背景。",
            "operation": "imagine",
            "version": "7",
            "oref": "https://xinfeng.best/video-api-docs/test-assets/acceptance-ball-20260907.png",
            "ow": 200,
            "n": 1,
            "response_format": "url"
          },
          {
            "model": "Midjourney-全系列",
            "prompt": "沿用参考图的前后景层次，改成柔和自然光。",
            "operation": "imagine",
            "version": "8.2",
            "dref": [
              "https://xinfeng.best/video-api-docs/test-assets/acceptance-ball-20260907.png",
              "https://xinfeng.best/video-api-docs/test-assets/acceptance-ball-ref-20260907.png"
            ],
            "dw": 120,
            "n": 1,
            "response_format": "url"
          },
          {
            "model": "Midjourney-全系列",
            "prompt": "日光下的一间小型陶艺工作室。",
            "operation": "imagine",
            "personalize": {
              "profiles": [
                "${MJ_PROFILE}"
              ]
            },
            "n": 1,
            "response_format": "url"
          },
          {
            "model": "Midjourney-全系列",
            "prompt": "蓝色玻璃花瓶，背景干净。",
            "operation": "imagine",
            "size": "1:1",
            "response_format": "b64_json",
            "n": 1
          },
          {
            "model": "Midjourney-全系列",
            "prompt": "以极简海报呈现玻璃茶具。",
            "operation": "imagine",
            "params": {
              "style": "raw",
              "negative_prompt": "字幕、水印",
              "seed": 0
            },
            "output_format": "png",
            "resolution": "2k",
            "size": "2048x2048",
            "n": 1,
            "response_format": "url"
          },
          {
            "model": "Midjourney-全系列",
            "prompt": "融合两张素材的颜色与构图。",
            "operation": "blend",
            "images": [
              "https://xinfeng.best/video-api-docs/test-assets/acceptance-ball-20260907.png",
              "https://xinfeng.best/video-api-docs/test-assets/acceptance-ball-ref-20260907.png"
            ],
            "size": "1:1"
          },
          {
            "model": "Midjourney-全系列",
            "prompt": "描述这张图的主体、材质和光线。",
            "operation": "describe",
            "image": "https://xinfeng.best/video-api-docs/test-assets/acceptance-ball-20260907.png"
          },
          {
            "model": "Midjourney-全系列",
            "prompt": "放大第二张。",
            "operation": "upscale",
            "task_id": "${MJ_PARENT_TASK_ID}",
            "index": 2
          },
          {
            "model": "Midjourney-全系列",
            "prompt": "为第三张生成变体。",
            "operation": "variation",
            "task_id": "${MJ_PARENT_TASK_ID}",
            "index": 3
          },
          {
            "model": "Midjourney-全系列",
            "prompt": "按原任务重新生成候选。",
            "operation": "reroll",
            "task_id": "${MJ_PARENT_TASK_ID}"
          },
          {
            "model": "Midjourney-全系列",
            "prompt": "生成差异较大的变体。",
            "operation": "high_variation",
            "task_id": "${MJ_PARENT_TASK_ID}",
            "custom_id": "${MJ_CUSTOM_ID}"
          },
          {
            "model": "Midjourney-全系列",
            "prompt": "微调原来的画面。",
            "operation": "low_variation",
            "task_id": "${MJ_PARENT_TASK_ID}",
            "custom_id": "${MJ_CUSTOM_ID}"
          },
          {
            "model": "Midjourney-全系列",
            "prompt": "扩大原画面的视野。",
            "operation": "zoom",
            "task_id": "${MJ_PARENT_TASK_ID}",
            "custom_id": "${MJ_CUSTOM_ID}"
          },
          {
            "model": "Midjourney-全系列",
            "prompt": "准备自定义缩放。",
            "operation": "custom_zoom",
            "task_id": "${MJ_PARENT_TASK_ID}",
            "custom_id": "${MJ_CUSTOM_ID}"
          },
          {
            "model": "Midjourney-全系列",
            "prompt": "向右扩展原来的画面。",
            "operation": "pan",
            "task_id": "${MJ_PARENT_TASK_ID}",
            "custom_id": "${MJ_CUSTOM_ID}"
          },
          {
            "model": "Midjourney-全系列",
            "prompt": "准备修改画面中的局部。",
            "operation": "inpaint",
            "task_id": "${MJ_PARENT_TASK_ID}",
            "custom_id": "${MJ_CUSTOM_ID}"
          },
          {
            "model": "Midjourney-全系列",
            "prompt": "将画面的光线改为清晨。",
            "operation": "remix",
            "task_id": "${MJ_PARENT_TASK_ID}",
            "custom_id": "${MJ_CUSTOM_ID}",
            "enable_remix": true
          },
          {
            "model": "Midjourney-全系列",
            "prompt": "执行原任务返回的所选按钮。",
            "operation": "action",
            "task_id": "${MJ_PARENT_TASK_ID}",
            "custom_id": "${MJ_CUSTOM_ID}"
          },
          {
            "model": "Midjourney-全系列",
            "prompt": "选择第一张生成变体。",
            "operation": "change",
            "task_id": "${MJ_PARENT_TASK_ID}",
            "action": "VARIATION",
            "index": 1
          },
          {
            "model": "Midjourney-全系列",
            "prompt": "放大第一张。",
            "operation": "simple_change",
            "content": "${MJ_PARENT_TASK_ID} U1"
          },
          {
            "model": "Midjourney-全系列",
            "prompt": "保持中心主体，扩展为更宽的空间。",
            "operation": "modal",
            "task_id": "${MJ_PARENT_TASK_ID}",
            "zoom_ratio": 1.5
          },
          {
            "model": "Midjourney-全系列",
            "prompt": "把蒙版区域改为绿色陶釉。",
            "operation": "modal",
            "task_id": "${MJ_PARENT_TASK_ID}",
            "mask": "${MJ_MASK_BASE64}"
          }
        ],
        "description": "页面显示 Midjourney。新调用的 model 填 Midjourney-全系列，省略版本默认 v8.2。可用 version 切换 MJ，或用 niji_version 选择 Niji 5、6、7，两者二选一。原固定型号和已有请求写法继续兼容。 普通参考图用 POST /v1/images/edits，JSON 使用有序的 images 对象数组，每项填写 image_url 或同一 API Key 上传所得的 file_id。本地文件用 multipart 重复提交 image[]。普通参考 1 至 5 张，blend 为 2 至 5 张，describe 为 1 张。旧 URL 字符串数组继续兼容。 新请求建议只指定一处画幅。旧固定型号的 imagine 请求仅在收到默认 size=1024x1024、提示词中有唯一合法的 --ar 或 --aspect、且没有其他显式尺寸或画幅字段时，沿用提示词画幅。"
      },
      "MuseVideoRequest": {
        "type": "object",
        "title": "Muse Video 60s",
        "required": [
          "model",
          "prompt"
        ],
        "properties": {
          "model": {
            "type": "string",
            "enum": [
              "muse-video"
            ]
          },
          "seconds": {
            "type": "integer",
            "enum": [
              5,
              10,
              15,
              20,
              30,
              40,
              50,
              60
            ],
            "default": 5
          },
          "duration_seconds": {
            "type": "integer",
            "enum": [
              5,
              10,
              15,
              20,
              30,
              40,
              50,
              60
            ],
            "description": "Alias of seconds"
          },
          "prompt": {
            "type": "string",
            "minLength": 1
          },
          "n": {
            "type": "integer",
            "enum": [
              1
            ]
          },
          "output": {
            "type": "object",
            "properties": {
              "resolution": {
                "type": "string",
                "enum": [
                  "720p"
                ]
              },
              "aspect_ratio": {
                "type": "string",
                "enum": [
                  "16:9",
                  "9:16"
                ]
              },
              "ratio": {
                "type": "string",
                "enum": [
                  "720p-16x9",
                  "720p-9x16"
                ]
              }
            }
          },
          "references": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "type"
              ],
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "image",
                    "video",
                    "audio"
                  ]
                },
                "role": {
                  "type": "string",
                  "enum": [
                    "reference"
                  ]
                },
                "url": {
                  "type": "string"
                },
                "file_id": {
                  "type": "string"
                }
              },
              "oneOf": [
                {
                  "required": [
                    "url"
                  ]
                },
                {
                  "required": [
                    "file_id"
                  ]
                }
              ]
            }
          }
        },
        "example": {
          "model": "muse-video",
          "prompt": "玻璃杯里的冰块缓慢旋转，固定镜头。",
          "seconds": 20,
          "output": {
            "resolution": "720p",
            "aspect_ratio": "9:16"
          },
          "references": [
            {
              "type": "image",
              "role": "reference",
              "url": "https://example.com/reference.jpg"
            }
          ]
        }
      },
      "GeminiOmni12FlashRequest": {
        "type": "object",
        "required": [
          "model",
          "prompt"
        ],
        "properties": {
          "model": {
            "type": "string",
            "enum": [
              "gemini-omni-1.2-flash"
            ]
          },
          "prompt": {
            "type": "string",
            "minLength": 1
          },
          "seconds": {
            "type": "integer",
            "enum": [
              4,
              6,
              8,
              10
            ],
            "default": 8
          },
          "output": {
            "type": "object",
            "properties": {
              "resolution": {
                "type": "string",
                "enum": [
                  "720p"
                ]
              },
              "aspect_ratio": {
                "type": "string",
                "enum": [
                  "16:9",
                  "9:16"
                ]
              }
            }
          }
        },
        "example": {
          "model": "gemini-omni-1.2-flash",
          "prompt": "A red paper boat drifts down a shallow stream. Keep the camera steady.",
          "seconds": 4,
          "output": {
            "resolution": "720p",
            "aspect_ratio": "16:9"
          }
        }
      },
      "Magi2TextToVideoRequest": {
        "type": "object",
        "required": [
          "model",
          "prompt"
        ],
        "properties": {
          "model": {
            "type": "string",
            "enum": [
              "magi-2-1080P"
            ]
          },
          "prompt": {
            "type": "string",
            "minLength": 1
          },
          "seconds": {
            "type": "integer",
            "minimum": 4,
            "maximum": 30,
            "default": 5
          },
          "duration": {
            "type": "integer",
            "minimum": 4,
            "maximum": 30,
            "description": "Alias of seconds; if both are supplied they must agree"
          },
          "output": {
            "type": "object",
            "properties": {
              "resolution": {
                "type": "string",
                "enum": [
                  "1080p",
                  "1080P"
                ]
              },
              "aspect_ratio": {
                "type": "string",
                "enum": [
                  "16:9",
                  "9:16",
                  "4:3",
                  "3:4",
                  "1:1",
                  "21:9"
                ]
              }
            }
          },
          "generate_audio": {
            "type": "boolean",
            "default": true
          },
          "enhance_prompt": {
            "type": "boolean",
            "default": false
          },
          "seed": {
            "type": [
              "integer",
              "null"
            ]
          },
          "start_image": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string"
                  },
                  "file_id": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "end_image": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string"
                  },
                  "file_id": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "image_references": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "type": "string"
                },
                {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string"
                    },
                    "file_id": {
                      "type": "string"
                    }
                  }
                }
              ]
            }
          },
          "video_references": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "type": "string"
                },
                {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string"
                    },
                    "file_id": {
                      "type": "string"
                    }
                  }
                }
              ]
            }
          },
          "audio_references": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "type": "string"
                },
                {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string"
                    },
                    "file_id": {
                      "type": "string"
                    }
                  }
                }
              ]
            }
          }
        },
        "example": {
          "model": "magi-2-1080P",
          "prompt": "一只红色纸船漂过平静的池塘，固定镜头，自然光。",
          "seconds": 5,
          "output": {
            "resolution": "1080p",
            "aspect_ratio": "16:9"
          }
        }
      },
      "Sd20C1Request": {
        "type": "object",
        "required": [
          "model",
          "prompt"
        ],
        "properties": {
          "model": {
            "type": "string",
            "enum": [
              "sd-2.0-c1"
            ]
          },
          "prompt": {
            "type": "string",
            "minLength": 1
          },
          "seconds": {
            "type": "integer",
            "minimum": 5,
            "maximum": 15,
            "default": 15
          },
          "output": {
            "type": "object",
            "required": [
              "resolution"
            ],
            "properties": {
              "resolution": {
                "type": "string",
                "enum": [
                  "720p"
                ]
              },
              "aspect_ratio": {
                "type": "string",
                "enum": [
                  "16:9",
                  "9:16",
                  "4:3",
                  "3:4",
                  "1:1",
                  "21:9"
                ]
              }
            }
          }
        }
      },
      "Magi2VideoRequest": {
        "type": "object",
        "required": [
          "model",
          "prompt"
        ],
        "properties": {
          "model": {
            "type": "string",
            "enum": [
              "magi-2-1080P"
            ]
          },
          "prompt": {
            "type": "string",
            "minLength": 1
          },
          "seconds": {
            "type": "integer",
            "minimum": 4,
            "maximum": 30,
            "default": 5
          },
          "duration": {
            "type": "integer",
            "minimum": 4,
            "maximum": 30,
            "description": "Alias of seconds; if both are supplied they must agree"
          },
          "references": {
            "type": "array",
            "description": "普通图/视频/音频参考，或仅 first_frame（可加 last_frame）；两模式不混用。",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "image",
                    "video",
                    "audio"
                  ]
                },
                "role": {
                  "type": "string",
                  "enum": [
                    "reference",
                    "source_video",
                    "first_frame",
                    "last_frame"
                  ]
                },
                "url": {
                  "type": "string",
                  "format": "uri"
                },
                "file_id": {
                  "type": "string"
                }
              },
              "oneOf": [
                {
                  "required": [
                    "url"
                  ]
                },
                {
                  "required": [
                    "file_id"
                  ]
                }
              ]
            }
          },
          "output": {
            "type": "object",
            "properties": {
              "resolution": {
                "type": "string",
                "enum": [
                  "1080p",
                  "1080P"
                ]
              },
              "aspect_ratio": {
                "type": "string",
                "enum": [
                  "16:9",
                  "9:16",
                  "4:3",
                  "3:4",
                  "1:1",
                  "21:9"
                ]
              }
            }
          },
          "generate_audio": {
            "type": "boolean",
            "default": true
          },
          "enhance_prompt": {
            "type": "boolean",
            "default": false
          },
          "seed": {
            "type": [
              "integer",
              "null"
            ]
          },
          "start_image": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string"
                  },
                  "file_id": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "end_image": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string"
                  },
                  "file_id": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "image_references": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "type": "string"
                },
                {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string"
                    },
                    "file_id": {
                      "type": "string"
                    }
                  }
                }
              ]
            }
          },
          "video_references": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "type": "string"
                },
                {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string"
                    },
                    "file_id": {
                      "type": "string"
                    }
                  }
                }
              ]
            }
          },
          "audio_references": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "type": "string"
                },
                {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string"
                    },
                    "file_id": {
                      "type": "string"
                    }
                  }
                }
              ]
            }
          }
        },
        "example": {
          "model": "magi-2-1080P",
          "prompt": "一只红色纸船漂过平静的池塘，固定镜头，自然光。",
          "seconds": 5,
          "output": {
            "resolution": "1080p",
            "aspect_ratio": "16:9"
          }
        }
      }
    },
    "responses": {
      "Error": {
        "description": "按 HTTP、error.code/message 与 submission_created 判定；未知提交结果不得盲目重发。",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    }
  },
  "externalDocs": {
    "url": "https://xinfeng.best/video-api-docs/"
  },
  "x-domestic-seedance-public-identity": {
    "models": [
      "doubao-seedance-2-0-260128",
      "doubao-seedance-2-0-fast-260128",
      "doubao-seedance-2-0-mini-260615",
      "doubao-seedance-2-5-260628"
    ],
    "primary_id": "site_task",
    "site_alias": "site_task_id",
    "legacy_task_ids_accepted": true,
    "official_signed_url_preserved": true,
    "unknown_submission": "keep_original_site_task_id",
    "provider_id": "observed_cgt_when_available",
    "supplier": "Conchdata primary for domestic 2.0; MYDD268 backup for 2.0 and primary for the other three domestic models",
    "description": "国内 doubao-seedance-2-0-260128 当前以Conchdata独立渠道275为主用、MYDD268为备用；其余三个国内型号继续由MYDD268供货，公开型号、路径和客户价格保持。原生与旧 /v1/video/generations 创建返回HTTP200，统一视频创建返回HTTP202，表示本站持久任务受理；主id和public_task_id先返回本站task_，不等待成片或cgt。后续查询仅在上游实际提供时补充upstream_task_id/provider_task_id中的真实cgt，未提供时为空或省略；主ID保持不变，官链按真实上游返回。旧task_async_/task_/cgt-查询继续兼容；未知提交只查原任务，不重复生成。 国内2.0公开型号doubao-seedance-2-0-260128映射Conchdata doubao-seedance-2-0/mno，主用275、备用MYDD268；其它型号不变。原入口/字段/价格保留，创建返回固定本站task_，仅在实际取得时补真实cgt和官方原链，不伪造cgt。未知提交只查原任务，成功产物另存自有桶7天。",
    "suppliers_by_model": {
      "doubao-seedance-2-0-260128": {
        "primary_channel": 275,
        "backup_channel": 268,
        "upstream_model": "doubao-seedance-2-0/mno"
      }
    }
  },
  "x-official-video-output": {
    "updated_at": "2026-10-16T17:00:20.556058+00:00",
    "models": [
      "doubao-seedance-2-0-260128",
      "doubao-seedance-2-0-fast-260128",
      "doubao-seedance-2-0-mini-260615",
      "doubao-seedance-2-5-260628",
      "seedance-2.0",
      "seedance-2.0-fast",
      "seedance-2.0-mini",
      "seedance-2.5",
      "wan3.0-video",
      "wan3.0-video-A",
      "wan3.0-video-prime",
      "wan3.0-video-prime-A"
    ],
    "query_fields": [
      "site_task_id",
      "upstream_task_id",
      "upstream_video_url"
    ],
    "legacy_query_fields": [
      "data.site_task_id",
      "data.upstream_task_id",
      "data.upstream_video_url"
    ],
    "signed_url_bytes_preserved": true,
    "no_synthetic_cgt": true,
    "upscale_final_delivery_unchanged": true
  },
  "x-image-contract-version": "2026-10-23.1",
  "x-media-contract-review": "2026-10-19",
  "x-platform-image-contract": {
    "protocol": "openai-images-compatible",
    "full_openai_feature_parity": false,
    "primary_endpoints": [
      "/v1/images/generations",
      "/v1/images/edits"
    ],
    "extensions": [
      "resolution",
      "aspect_ratio",
      "Prefer",
      "/v1/images/tasks"
    ],
    "capabilities": "per-model and per-channel, preserve explicit public semantics",
    "reviewed_at": "2026-10-23",
    "official_reference": "https://developers.openai.com/api/reference/resources/images/methods/generate",
    "parameter_policy": {
      "validation": "upstream",
      "catalog_values": "advisory",
      "preserve_original_parameters": true,
      "transport_max_n": 128,
      "legacy_calls_preserved": true
    }
  },
  "x-platform-video-byte-limits": {
    "effective_date": "2026-10-21",
    "per_reference_bytes": 209715200,
    "total_reference_bytes": 1073741824,
    "request_body_bytes": 335544320,
    "provider_support": "upstream_validated",
    "verification_scope": "isolated byte integrity and compatibility checks; no paid generation"
  },
  "x-seedance-sd25-01-billing": {
    "mode": "per_second",
    "unit": "second",
    "version": "seedance-sd25-01-two-tier-20261025",
    "pricing_policy": "seedance-sd25-01-two-tier-20261025",
    "single_rate": true,
    "output_prices": {
      "480p": 0.5,
      "720p": 0.85,
      "1080p": 1.25
    },
    "reference_prices": {
      "480p": 0.5,
      "720p": 0.85,
      "1080p": 1.25
    },
    "no_video_prices": {
      "480p": 0.44,
      "720p": 0.8,
      "1080p": 1.2
    },
    "prices": {
      "480p": 0.5,
      "720p": 0.85,
      "1080p": 1.25
    },
    "reference_duration_rounding": "ceil_total",
    "formula": "max(output_seconds, ceil(reference_seconds)) * with_video_price",
    "note": "无视频参考按输出时长计费；有视频参考按输出秒数与参考视频总时长向上取整后的较大值计费，统一乘所选分辨率的有视频单价。参考时长由服务器测量，多段累加；仅超过输出时长的部分另计参考秒数。账户分组倍率另计。",
    "effective_at": 1792938291,
    "notice": "无视频参考按输出时长计费；有视频参考按输出秒数与参考视频总时长向上取整后的较大值计费，统一乘所选分辨率的有视频单价。参考时长由服务器测量，多段累加；仅超过输出时长的部分另计参考秒数。账户分组倍率另计。 新任务生效时间：2026-10-25T22:24:51+08:00；已受理任务沿用原报价。"
  },
  "x-midjourney-single-generation": {
    "version": "mj-single-0.20-four-v4",
    "models": [
      "Midjourney-全系列",
      "Midjourney v6",
      "Midjourney v6.1",
      "Midjourney v7",
      "Midjourney v8.1",
      "Midjourney v8.2"
    ],
    "n": 1,
    "count": 1,
    "default": 1,
    "unit": "generation",
    "base_price_credits": 0.2,
    "error_http": 400,
    "error_code": "mj_single_generation_only",
    "existing_tasks_preserved": true,
    "multiple_candidate_images_are_one_generation": true,
    "candidate_images_per_generation": 4,
    "native_grid_delivery": "four_lossless_crops",
    "candidate_order": [
      "top_left",
      "top_right",
      "bottom_left",
      "bottom_right"
    ],
    "upstream_generation_posts": 1,
    "pricing_policy": "mj-full-0.20-v5",
    "operation_specific_outputs": {
      "imagine": 4,
      "blend": 4,
      "upscale": 1,
      "describe": 0
    }
  },
  "x-reference-fetch-recovery": {
    "enabled_for_new_image_tasks": true,
    "temporary_network_failure": {
      "http_status": 503,
      "code": "reference_fetch_unavailable",
      "category": "reference_transport"
    },
    "invalid_material_status": 400,
    "same_public_task_id": true,
    "description": "新图片任务在原期限内自动恢复临时参考图读取失败，保留同一任务号、素材和原报价。最终网络读取失败返回HTTP503/reference_fetch_unavailable/category=reference_transport；真实素材错误仍按400等状态表达。submission_created=false只由可信提交前证据返回，费用以原账务为准；已受理/未知只查询原任务，历史失败/退款不自动重放。"
  },
  "x-model-guides": {
    "seedream-5.0": {
      "documentation": "https://xinfeng.best/video-api-docs/seedream-5-0.html",
      "model": "seedream-5.0",
      "size_semantics": "provider_aspect_ratio_2k",
      "exact_pixel_output": false,
      "provider_documented": {
        "aspect_ratios": [
          "1:1",
          "3:2",
          "2:3",
          "4:3",
          "3:4",
          "9:16",
          "16:9",
          "21:9"
        ],
        "max_references": 1,
        "prompt_max_chars": 100000,
        "n": {
          "minimum": 1,
          "maximum": 10,
          "default": 1
        },
        "quality": "provider_default"
      },
      "parameter_policy": {
        "validation": "upstream",
        "catalog_values": "advisory"
      },
      "billing": {
        "mode": "per_image",
        "base_credits": 0.05,
        "quantity": "actual_valid_returned_images",
        "account_and_group_multipliers": "unchanged"
      },
      "examples": {
        "images": {
          "model": "seedream-5.0",
          "prompt": "A red ceramic teapot on a white table, soft daylight, no text.",
          "size": "2560x1440",
          "n": 1,
          "response_format": "url"
        },
        "edits_json": {
          "model": "seedream-5.0",
          "prompt": "Keep the subject and replace the background with a sunny garden.",
          "size": "2560x1440",
          "n": 1,
          "response_format": "url",
          "images": [
            {
              "image_url": "https://example.com/reference.png"
            }
          ]
        },
        "chat": {
          "model": "seedream-5.0",
          "messages": [
            {
              "role": "user",
              "content": "A red ceramic teapot on a white table, soft daylight, no text."
            }
          ],
          "size": "2560x1440",
          "n": 1,
          "stream": false
        },
        "gemini": {
          "contents": [
            {
              "role": "user",
              "parts": [
                {
                  "text": "A red ceramic teapot on a white table, soft daylight, no text."
                }
              ]
            }
          ],
          "generationConfig": {
            "candidateCount": 1,
            "imageConfig": {
              "imageSize": "2k",
              "aspectRatio": "16:9",
              "delivery": "uri"
            }
          }
        }
      },
      "verification_note": "接口示例与上游原件一致；不表示所有尺寸、参考、批量与流式组合均已真实通过。",
      "x-validation-note": "2026-11-06 实测边界：Images 单张 JPEG 参考编辑与 Chat 单张文生已通过。Gemini 原生参考的这一个组合（inlineData JPEG、candidateCount=1、imageSize=2k、aspectRatio=1:1、delivery=uri）收到供应商 HTTP400 / unsupported_parameter，未通过真实验收，具体被拒字段未指明。另一个独立的默认参数单张文生请求已真实成功。保留供应商原文档的合法参数与下方示例，不将这次组合结果推断为所有 Gemini 参考图均不支持；本站不据此新增参数或素材白名单。",
      "output_presets": [
        {
          "id": "auto",
          "size": "auto",
          "aspect_ratio": "模型默认构图",
          "resolution": "2k",
          "supported": true
        },
        {
          "id": "square",
          "size": "2048x2048",
          "aspect_ratio": "1:1",
          "resolution": "2k",
          "supported": true
        },
        {
          "id": "landscape-3-2",
          "size": "2496x1664",
          "aspect_ratio": "3:2",
          "resolution": "2k",
          "supported": true
        },
        {
          "id": "portrait-2-3",
          "size": "1664x2496",
          "aspect_ratio": "2:3",
          "resolution": "2k",
          "supported": true
        },
        {
          "id": "landscape-4-3",
          "size": "2304x1728",
          "aspect_ratio": "4:3",
          "resolution": "2k",
          "supported": true
        },
        {
          "id": "portrait-3-4",
          "size": "1728x2304",
          "aspect_ratio": "3:4",
          "resolution": "2k",
          "supported": true
        },
        {
          "id": "portrait",
          "size": "1440x2560",
          "aspect_ratio": "9:16",
          "resolution": "2k",
          "supported": true
        },
        {
          "id": "landscape",
          "size": "2560x1440",
          "aspect_ratio": "16:9",
          "resolution": "2k",
          "supported": true
        },
        {
          "id": "landscape-21-9",
          "size": "3024x1296",
          "aspect_ratio": "21:9",
          "resolution": "2k",
          "supported": true
        },
        {
          "id": "landscape-5-4",
          "aspect_ratio": "5:4",
          "size": "2240x1792",
          "resolution": "2k",
          "supported": true
        },
        {
          "id": "portrait-4-5",
          "aspect_ratio": "4:5",
          "size": "1792x2240",
          "resolution": "2k",
          "supported": true
        }
      ]
    },
    "kling-video-v4-official": {
      "guide": "kling-v4-official.html",
      "contract_version": "kling-official-65-v1"
    },
    "kling-video-v4": "kling-v4.html",
    "Seedream 5.5": {
      "documentation": "https://xinfeng.best/video-api-docs/seedream-5-5.html",
      "model": "Seedream 5.5",
      "billing": {
        "mode": "per_call",
        "unit": "request",
        "base_credits": 0.075,
        "quantity": "one_request",
        "account_and_group_multipliers": "unchanged"
      },
      "parameter_policy": {
        "validation": "upstream",
        "catalog_values": "advisory"
      },
      "verified_reference_count": 2,
      "mask_semantics": "unverified",
      "output_presets": [
        {
          "id": "square",
          "size": "2048x2048",
          "aspect_ratio": "1:1",
          "resolution": "2k",
          "supported": true
        },
        {
          "id": "2k-landscape-4-3",
          "aspect_ratio": "4:3",
          "size": "2368x1776",
          "resolution": "2k",
          "supported": true
        },
        {
          "id": "2k-portrait-3-4",
          "aspect_ratio": "3:4",
          "size": "1776x2368",
          "resolution": "2k",
          "supported": true
        },
        {
          "id": "2k-landscape",
          "aspect_ratio": "16:9",
          "size": "2816x1584",
          "resolution": "2k",
          "supported": true
        },
        {
          "id": "2k-portrait",
          "aspect_ratio": "9:16",
          "size": "1584x2816",
          "resolution": "2k",
          "supported": true
        },
        {
          "id": "2k-landscape-3-2",
          "aspect_ratio": "3:2",
          "size": "2496x1664",
          "resolution": "2k",
          "supported": true
        },
        {
          "id": "2k-portrait-2-3",
          "aspect_ratio": "2:3",
          "size": "1664x2496",
          "resolution": "2k",
          "supported": true
        },
        {
          "id": "2k-landscape-21-9",
          "aspect_ratio": "21:9",
          "size": "3136x1344",
          "resolution": "2k",
          "supported": true
        },
        {
          "id": "2k-portrait-9-21",
          "aspect_ratio": "9:21",
          "size": "1344x3136",
          "resolution": "2k",
          "supported": true
        }
      ]
    },
    "Seedream 5.0 Pro": {
      "documentation": "https://xinfeng.best/video-api-docs/seedream-5-0-pro.html",
      "model": "Seedream 5.0 Pro",
      "billing": {
        "mode": "per_image",
        "base_credits": 0.075
      },
      "verified_reference_count": 2,
      "parameter_policy": {
        "validation": "upstream",
        "catalog_values": "advisory"
      },
      "output_presets": [
        {
          "id": "1k-square",
          "size": "1024x1024",
          "aspect_ratio": "1:1",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-landscape-4-3",
          "size": "1280x960",
          "aspect_ratio": "4:3",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-portrait-3-4",
          "size": "960x1280",
          "aspect_ratio": "3:4",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-landscape",
          "size": "1536x864",
          "aspect_ratio": "16:9",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-portrait",
          "size": "864x1536",
          "aspect_ratio": "9:16",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-landscape-3-2",
          "size": "1536x1024",
          "aspect_ratio": "3:2",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "2k-square",
          "size": "2048x2048",
          "aspect_ratio": "1:1",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-landscape-4-3",
          "size": "2048x1536",
          "aspect_ratio": "4:3",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-portrait-3-4",
          "size": "1536x2048",
          "aspect_ratio": "3:4",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-landscape",
          "size": "2048x1152",
          "aspect_ratio": "16:9",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-portrait",
          "size": "1152x2048",
          "aspect_ratio": "9:16",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-landscape-3-2",
          "size": "2016x1344",
          "aspect_ratio": "3:2",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-portrait-2-3",
          "size": "1344x2016",
          "aspect_ratio": "2:3",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "1k-portrait-2-3",
          "aspect_ratio": "2:3",
          "size": "1024x1536",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-landscape-21-9",
          "aspect_ratio": "21:9",
          "size": "1568x672",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "2k-landscape-21-9",
          "aspect_ratio": "21:9",
          "size": "3136x1344",
          "resolution": "2K",
          "supported": true
        }
      ]
    },
    "muse-video": {
      "guide": "/video-api-docs/",
      "contract_version": "muse-video-v1"
    },
    "gemini-omni-1.2-flash": {
      "guide": "/video-api-docs/gemini-omni-1.2-flash.md",
      "contract_version": "gemini-omni12-text-v1"
    },
    "Image-2.5-Flare-02": {
      "model": "Image-2.5-Flare-02",
      "documentation": "https://xinfeng.best/video-api-docs/images.html#colorflowai-image02",
      "description": "原生AD渠道，非超分。本站按上游原图交付。文生图和参考图编辑均按请求计费。生图分组倍率为1时，固定 ✦0.12/次。",
      "output_presets": [
        {
          "id": "1k-1x1",
          "size": "1024x1024",
          "aspect_ratio": "1:1",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-2x3",
          "size": "832x1248",
          "aspect_ratio": "2:3",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-3x2",
          "size": "1248x832",
          "aspect_ratio": "3:2",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-3x4",
          "size": "864x1152",
          "aspect_ratio": "3:4",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-4x3",
          "size": "1152x864",
          "aspect_ratio": "4:3",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-4x5",
          "size": "1024x1280",
          "aspect_ratio": "4:5",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-5x4",
          "size": "1280x1024",
          "aspect_ratio": "5:4",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-9x16",
          "size": "720x1280",
          "aspect_ratio": "9:16",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-16x9",
          "size": "1280x720",
          "aspect_ratio": "16:9",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-21x9",
          "size": "1344x576",
          "aspect_ratio": "21:9",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-9x21",
          "size": "576x1344",
          "aspect_ratio": "9:21",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "2k-1x1",
          "size": "2048x2048",
          "aspect_ratio": "1:1",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-2x3",
          "size": "1344x2016",
          "aspect_ratio": "2:3",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-3x2",
          "size": "2016x1344",
          "aspect_ratio": "3:2",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-3x4",
          "size": "1536x2048",
          "aspect_ratio": "3:4",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-4x3",
          "size": "2048x1536",
          "aspect_ratio": "4:3",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-4x5",
          "size": "1600x2048",
          "aspect_ratio": "4:5",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-5x4",
          "size": "2048x1600",
          "aspect_ratio": "5:4",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-9x16",
          "size": "1152x2048",
          "aspect_ratio": "9:16",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-16x9",
          "size": "2048x1152",
          "aspect_ratio": "16:9",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-21x9",
          "size": "2016x864",
          "aspect_ratio": "21:9",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-9x21",
          "size": "864x2016",
          "aspect_ratio": "9:21",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "4k-1x1",
          "size": "2880x2880",
          "aspect_ratio": "1:1",
          "resolution": "4K",
          "supported": true
        },
        {
          "id": "4k-2x3",
          "size": "2304x3456",
          "aspect_ratio": "2:3",
          "resolution": "4K",
          "supported": true
        },
        {
          "id": "4k-3x2",
          "size": "3456x2304",
          "aspect_ratio": "3:2",
          "resolution": "4K",
          "supported": true
        },
        {
          "id": "4k-3x4",
          "size": "2448x3264",
          "aspect_ratio": "3:4",
          "resolution": "4K",
          "supported": true
        },
        {
          "id": "4k-4x3",
          "size": "3264x2448",
          "aspect_ratio": "4:3",
          "resolution": "4K",
          "supported": true
        },
        {
          "id": "4k-4x5",
          "size": "2304x2880",
          "aspect_ratio": "4:5",
          "resolution": "4K",
          "supported": true
        },
        {
          "id": "4k-5x4",
          "size": "2880x2304",
          "aspect_ratio": "5:4",
          "resolution": "4K",
          "supported": true
        },
        {
          "id": "4k-9x16",
          "size": "2160x3840",
          "aspect_ratio": "9:16",
          "resolution": "4K",
          "supported": true
        },
        {
          "id": "4k-16x9",
          "size": "3840x2160",
          "aspect_ratio": "16:9",
          "resolution": "4K",
          "supported": true
        },
        {
          "id": "4k-21x9",
          "size": "3808x1632",
          "aspect_ratio": "21:9",
          "resolution": "4K",
          "supported": true
        },
        {
          "id": "4k-9x21",
          "size": "1632x3808",
          "aspect_ratio": "9:21",
          "resolution": "4K",
          "supported": true
        }
      ],
      "billing": {
        "mode": "per_call",
        "unit": "request",
        "price": 0.12
      }
    },
    "Image-2.5-Sunburst-02": {
      "model": "Image-2.5-Sunburst-02",
      "documentation": "https://xinfeng.best/video-api-docs/images.html#colorflowai-image02",
      "description": "原生AD渠道，非超分。本站按上游原图交付。文生图和参考图编辑均按请求计费。生图分组倍率为1时，固定 ✦0.12/次。",
      "output_presets": [
        {
          "id": "1k-1x1",
          "size": "1024x1024",
          "aspect_ratio": "1:1",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-2x3",
          "size": "832x1248",
          "aspect_ratio": "2:3",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-3x2",
          "size": "1248x832",
          "aspect_ratio": "3:2",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-3x4",
          "size": "864x1152",
          "aspect_ratio": "3:4",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-4x3",
          "size": "1152x864",
          "aspect_ratio": "4:3",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-4x5",
          "size": "1024x1280",
          "aspect_ratio": "4:5",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-5x4",
          "size": "1280x1024",
          "aspect_ratio": "5:4",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-9x16",
          "size": "720x1280",
          "aspect_ratio": "9:16",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-16x9",
          "size": "1280x720",
          "aspect_ratio": "16:9",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-21x9",
          "size": "1344x576",
          "aspect_ratio": "21:9",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-9x21",
          "size": "576x1344",
          "aspect_ratio": "9:21",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "2k-1x1",
          "size": "2048x2048",
          "aspect_ratio": "1:1",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-2x3",
          "size": "1344x2016",
          "aspect_ratio": "2:3",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-3x2",
          "size": "2016x1344",
          "aspect_ratio": "3:2",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-3x4",
          "size": "1536x2048",
          "aspect_ratio": "3:4",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-4x3",
          "size": "2048x1536",
          "aspect_ratio": "4:3",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-4x5",
          "size": "1600x2048",
          "aspect_ratio": "4:5",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-5x4",
          "size": "2048x1600",
          "aspect_ratio": "5:4",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-9x16",
          "size": "1152x2048",
          "aspect_ratio": "9:16",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-16x9",
          "size": "2048x1152",
          "aspect_ratio": "16:9",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-21x9",
          "size": "2016x864",
          "aspect_ratio": "21:9",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-9x21",
          "size": "864x2016",
          "aspect_ratio": "9:21",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "4k-1x1",
          "size": "2880x2880",
          "aspect_ratio": "1:1",
          "resolution": "4K",
          "supported": true
        },
        {
          "id": "4k-2x3",
          "size": "2304x3456",
          "aspect_ratio": "2:3",
          "resolution": "4K",
          "supported": true
        },
        {
          "id": "4k-3x2",
          "size": "3456x2304",
          "aspect_ratio": "3:2",
          "resolution": "4K",
          "supported": true
        },
        {
          "id": "4k-3x4",
          "size": "2448x3264",
          "aspect_ratio": "3:4",
          "resolution": "4K",
          "supported": true
        },
        {
          "id": "4k-4x3",
          "size": "3264x2448",
          "aspect_ratio": "4:3",
          "resolution": "4K",
          "supported": true
        },
        {
          "id": "4k-4x5",
          "size": "2304x2880",
          "aspect_ratio": "4:5",
          "resolution": "4K",
          "supported": true
        },
        {
          "id": "4k-5x4",
          "size": "2880x2304",
          "aspect_ratio": "5:4",
          "resolution": "4K",
          "supported": true
        },
        {
          "id": "4k-9x16",
          "size": "2160x3840",
          "aspect_ratio": "9:16",
          "resolution": "4K",
          "supported": true
        },
        {
          "id": "4k-16x9",
          "size": "3840x2160",
          "aspect_ratio": "16:9",
          "resolution": "4K",
          "supported": true
        },
        {
          "id": "4k-21x9",
          "size": "3808x1632",
          "aspect_ratio": "21:9",
          "resolution": "4K",
          "supported": true
        },
        {
          "id": "4k-9x21",
          "size": "1632x3808",
          "aspect_ratio": "9:21",
          "resolution": "4K",
          "supported": true
        }
      ],
      "billing": {
        "mode": "per_call",
        "unit": "request",
        "price": 0.12
      }
    },
    "image-2.6-Flare-02": {
      "model": "image-2.6-Flare-02",
      "documentation": "https://xinfeng.best/video-api-docs/images.html#colorflowai-image02",
      "description": "原生AD渠道，非超分。本站按上游原图交付。文生图和参考图编辑均按请求计费。生图分组倍率为1时，固定 ✦0.12/次。",
      "output_presets": [
        {
          "id": "1k-1x1",
          "size": "1024x1024",
          "aspect_ratio": "1:1",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-2x3",
          "size": "832x1248",
          "aspect_ratio": "2:3",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-3x2",
          "size": "1248x832",
          "aspect_ratio": "3:2",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-3x4",
          "size": "864x1152",
          "aspect_ratio": "3:4",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-4x3",
          "size": "1152x864",
          "aspect_ratio": "4:3",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-4x5",
          "size": "1024x1280",
          "aspect_ratio": "4:5",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-5x4",
          "size": "1280x1024",
          "aspect_ratio": "5:4",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-9x16",
          "size": "720x1280",
          "aspect_ratio": "9:16",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-16x9",
          "size": "1280x720",
          "aspect_ratio": "16:9",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-21x9",
          "size": "1344x576",
          "aspect_ratio": "21:9",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-9x21",
          "size": "576x1344",
          "aspect_ratio": "9:21",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "2k-1x1",
          "size": "2048x2048",
          "aspect_ratio": "1:1",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-2x3",
          "size": "1344x2016",
          "aspect_ratio": "2:3",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-3x2",
          "size": "2016x1344",
          "aspect_ratio": "3:2",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-3x4",
          "size": "1536x2048",
          "aspect_ratio": "3:4",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-4x3",
          "size": "2048x1536",
          "aspect_ratio": "4:3",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-4x5",
          "size": "1600x2048",
          "aspect_ratio": "4:5",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-5x4",
          "size": "2048x1600",
          "aspect_ratio": "5:4",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-9x16",
          "size": "1152x2048",
          "aspect_ratio": "9:16",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-16x9",
          "size": "2048x1152",
          "aspect_ratio": "16:9",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-21x9",
          "size": "2016x864",
          "aspect_ratio": "21:9",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-9x21",
          "size": "864x2016",
          "aspect_ratio": "9:21",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "4k-1x1",
          "size": "2880x2880",
          "aspect_ratio": "1:1",
          "resolution": "4K",
          "supported": true
        },
        {
          "id": "4k-2x3",
          "size": "2304x3456",
          "aspect_ratio": "2:3",
          "resolution": "4K",
          "supported": true
        },
        {
          "id": "4k-3x2",
          "size": "3456x2304",
          "aspect_ratio": "3:2",
          "resolution": "4K",
          "supported": true
        },
        {
          "id": "4k-3x4",
          "size": "2448x3264",
          "aspect_ratio": "3:4",
          "resolution": "4K",
          "supported": true
        },
        {
          "id": "4k-4x3",
          "size": "3264x2448",
          "aspect_ratio": "4:3",
          "resolution": "4K",
          "supported": true
        },
        {
          "id": "4k-4x5",
          "size": "2304x2880",
          "aspect_ratio": "4:5",
          "resolution": "4K",
          "supported": true
        },
        {
          "id": "4k-5x4",
          "size": "2880x2304",
          "aspect_ratio": "5:4",
          "resolution": "4K",
          "supported": true
        },
        {
          "id": "4k-9x16",
          "size": "2160x3840",
          "aspect_ratio": "9:16",
          "resolution": "4K",
          "supported": true
        },
        {
          "id": "4k-16x9",
          "size": "3840x2160",
          "aspect_ratio": "16:9",
          "resolution": "4K",
          "supported": true
        },
        {
          "id": "4k-21x9",
          "size": "3808x1632",
          "aspect_ratio": "21:9",
          "resolution": "4K",
          "supported": true
        },
        {
          "id": "4k-9x21",
          "size": "1632x3808",
          "aspect_ratio": "9:21",
          "resolution": "4K",
          "supported": true
        }
      ],
      "billing": {
        "mode": "per_call",
        "unit": "request",
        "price": 0.12
      }
    },
    "image-2.6-Sunburst-02": {
      "model": "image-2.6-Sunburst-02",
      "documentation": "https://xinfeng.best/video-api-docs/images.html#colorflowai-image02",
      "description": "原生AD渠道，非超分。本站按上游原图交付。文生图和参考图编辑均按请求计费。生图分组倍率为1时，固定 ✦0.12/次。",
      "output_presets": [
        {
          "id": "1k-1x1",
          "size": "1024x1024",
          "aspect_ratio": "1:1",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-2x3",
          "size": "832x1248",
          "aspect_ratio": "2:3",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-3x2",
          "size": "1248x832",
          "aspect_ratio": "3:2",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-3x4",
          "size": "864x1152",
          "aspect_ratio": "3:4",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-4x3",
          "size": "1152x864",
          "aspect_ratio": "4:3",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-4x5",
          "size": "1024x1280",
          "aspect_ratio": "4:5",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-5x4",
          "size": "1280x1024",
          "aspect_ratio": "5:4",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-9x16",
          "size": "720x1280",
          "aspect_ratio": "9:16",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-16x9",
          "size": "1280x720",
          "aspect_ratio": "16:9",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-21x9",
          "size": "1344x576",
          "aspect_ratio": "21:9",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "1k-9x21",
          "size": "576x1344",
          "aspect_ratio": "9:21",
          "resolution": "1K",
          "supported": true
        },
        {
          "id": "2k-1x1",
          "size": "2048x2048",
          "aspect_ratio": "1:1",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-2x3",
          "size": "1344x2016",
          "aspect_ratio": "2:3",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-3x2",
          "size": "2016x1344",
          "aspect_ratio": "3:2",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-3x4",
          "size": "1536x2048",
          "aspect_ratio": "3:4",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-4x3",
          "size": "2048x1536",
          "aspect_ratio": "4:3",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-4x5",
          "size": "1600x2048",
          "aspect_ratio": "4:5",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-5x4",
          "size": "2048x1600",
          "aspect_ratio": "5:4",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-9x16",
          "size": "1152x2048",
          "aspect_ratio": "9:16",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-16x9",
          "size": "2048x1152",
          "aspect_ratio": "16:9",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-21x9",
          "size": "2016x864",
          "aspect_ratio": "21:9",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "2k-9x21",
          "size": "864x2016",
          "aspect_ratio": "9:21",
          "resolution": "2K",
          "supported": true
        },
        {
          "id": "4k-1x1",
          "size": "2880x2880",
          "aspect_ratio": "1:1",
          "resolution": "4K",
          "supported": true
        },
        {
          "id": "4k-2x3",
          "size": "2304x3456",
          "aspect_ratio": "2:3",
          "resolution": "4K",
          "supported": true
        },
        {
          "id": "4k-3x2",
          "size": "3456x2304",
          "aspect_ratio": "3:2",
          "resolution": "4K",
          "supported": true
        },
        {
          "id": "4k-3x4",
          "size": "2448x3264",
          "aspect_ratio": "3:4",
          "resolution": "4K",
          "supported": true
        },
        {
          "id": "4k-4x3",
          "size": "3264x2448",
          "aspect_ratio": "4:3",
          "resolution": "4K",
          "supported": true
        },
        {
          "id": "4k-4x5",
          "size": "2304x2880",
          "aspect_ratio": "4:5",
          "resolution": "4K",
          "supported": true
        },
        {
          "id": "4k-5x4",
          "size": "2880x2304",
          "aspect_ratio": "5:4",
          "resolution": "4K",
          "supported": true
        },
        {
          "id": "4k-9x16",
          "size": "2160x3840",
          "aspect_ratio": "9:16",
          "resolution": "4K",
          "supported": true
        },
        {
          "id": "4k-16x9",
          "size": "3840x2160",
          "aspect_ratio": "16:9",
          "resolution": "4K",
          "supported": true
        },
        {
          "id": "4k-21x9",
          "size": "3808x1632",
          "aspect_ratio": "21:9",
          "resolution": "4K",
          "supported": true
        },
        {
          "id": "4k-9x21",
          "size": "1632x3808",
          "aspect_ratio": "9:21",
          "resolution": "4K",
          "supported": true
        }
      ],
      "billing": {
        "mode": "per_call",
        "unit": "request",
        "price": 0.12
      }
    },
    "image-2.0-02": {
      "model": "image-2.0-02",
      "documentation": "https://xinfeng.best/video-api-docs/images.html#image-2-0-02",
      "example": {
        "model": "image-2.0-02",
        "prompt": "A red ceramic teapot on a pale wooden table, soft natural light, no text.",
        "size": "1024x1024",
        "quality": "medium",
        "n": 1,
        "response_format": "url"
      },
      "billing": {
        "mode": "per_image",
        "model_price": 0.1
      },
      "description": "已验证 1024×1024 PNG 文生图；基础售价 0.10 额度/张。未开放 4K 和参考图编辑。"
    },
    "magi-2-1080P": {
      "guide": "/video-api-docs/magi-2-1080P.md",
      "contract_version": "magi2-1080p-higgsfield-cli-v3"
    }
  },
  "x-image26-gif-verified": {
    "version": "2026-11-07",
    "model": "image-2.6-01",
    "output_format": "gif",
    "measured_size": "832x832",
    "frame_controls": "provider-determined; explicit frame_count was ignored",
    "svg": "not-verified; supplier400",
    "billing": "existing0.04base-per-result; existing group ratio",
    "ui_selector_verified": false
  },
  "x-minimax-h3": {
    "local_parameter_restrictions": [
      {
        "variant": "03",
        "resolution": "768p",
        "workflow_id": "multi-reference",
        "aspect_ratio": "2:3",
        "code": "minimax_parameter_unavailable",
        "validation": "local",
        "message": "MiniMax H3 03: 768P + multi-reference + 2:3 is rejected locally with HTTP 400 / minimax_parameter_unavailable before generation or billing. Use output.ratio=768p-9x16. Other workflows/resolutions are unchanged."
      }
    ]
  },
  "x-midjourney-full-series": {
    "version": "mj-full-0.20-v5",
    "model": "Midjourney-全系列",
    "aliases": [
      "Midjourney v6",
      "Midjourney v6.1",
      "Midjourney v7",
      "Midjourney v8.1",
      "Midjourney v8.2"
    ],
    "parameters": [
      "model",
      "prompt",
      "version",
      "niji_version",
      "operation",
      "action",
      "aspect_ratio",
      "size",
      "quality",
      "response_format",
      "image",
      "images",
      "raw",
      "hd",
      "tile",
      "stylize",
      "chaos",
      "seed",
      "weird",
      "stop",
      "no",
      "iw",
      "sref",
      "sw",
      "cref",
      "cw",
      "oref",
      "ow",
      "dref",
      "dw",
      "personalize",
      "task_id",
      "custom_id",
      "index",
      "zoom_ratio",
      "enable_remix",
      "content",
      "mask",
      "n"
    ],
    "operations": [
      "imagine",
      "blend",
      "describe",
      "upscale",
      "variation",
      "reroll",
      "high_variation",
      "low_variation",
      "zoom",
      "custom_zoom",
      "pan",
      "inpaint",
      "remix",
      "modal",
      "action",
      "change",
      "simple_change"
    ],
    "base_price_credits": 0.2,
    "n": 1,
    "max_image_prompts": 5,
    "output_count": {
      "imagine": 4,
      "blend": 4,
      "upscale": 1,
      "describe": 0
    },
    "describe_output": "mj.description",
    "original_task": "mj.task_id",
    "original_buttons": "mj.buttons[].customId",
    "modal_continuation": "POST /v1/images/generations with operation=modal and the original same-key task_id",
    "interaction_lookup": "GET /v1/images/tasks/{task_id}/interaction",
    "modal_new_generation_charge": false,
    "depth_reference": {
      "field": "dref",
      "operation": "imagine",
      "accepted_types": [
        "string",
        "array"
      ],
      "ordered": true
    },
    "example_documents": {
      "Midjourney-全系列": "mj-examples/full.json",
      "Midjourney v6": "mj-examples/v6.json",
      "Midjourney v6.1": "mj-examples/v6.1.json",
      "Midjourney v7": "mj-examples/v7.json",
      "Midjourney v8.1": "mj-examples/v8.1.json",
      "Midjourney v8.2": "mj-examples/v8.2.json"
    },
    "public_images_api": {
      "protocol": "OpenAI Images",
      "generation_path": "/v1/images/generations",
      "reference_path": "/v1/images/edits",
      "default_version": "8.2",
      "version_fields": [
        "version",
        "niji_version"
      ],
      "reference_json": [
        "images[].image_url",
        "images[].file_id"
      ],
      "reference_multipart": "image[]",
      "blend_reference_count": [
        2,
        5
      ],
      "describe_reference_count": 1,
      "legacy_aspect": "新请求建议只指定一处画幅。旧固定型号的 imagine 请求仅在收到默认 size=1024x1024、提示词中有唯一合法的 --ar 或 --aspect、且没有其他显式尺寸或画幅字段时，沿用提示词画幅。",
      "optional_result_fallback": "data[].fallback_url"
    }
  },
  "x-model-native-options": {
    "Midjourney v6": {
      "quality": {
        "supported": true,
        "type": "string",
        "required": false,
        "default": "auto",
        "values": [
          "auto",
          "standard",
          "medium",
          "low",
          "high",
          "hd",
          "0.25",
          "0.5",
          "1",
          "2",
          "4"
        ]
      },
      "cref": {
        "supported": true,
        "type": "string",
        "required": false,
        "applies_to": [
          "v6",
          "v6.1",
          "niji6"
        ],
        "description": "适用版本为 v6、v6.1、niji6。"
      },
      "cw": {
        "supported": true,
        "type": "integer",
        "required": false,
        "minimum": 0,
        "maximum": 100,
        "applies_to": [
          "v6",
          "v6.1",
          "niji6"
        ],
        "description": "适用版本为 v6、v6.1、niji6。"
      },
      "oref": {
        "supported": false,
        "type": "string",
        "required": false,
        "applies_to": [
          "v7"
        ],
        "description": "适用版本为 v7。"
      },
      "ow": {
        "supported": false,
        "type": "number",
        "required": false,
        "minimum": 0,
        "maximum": 1000,
        "applies_to": [
          "v7"
        ],
        "description": "适用版本为 v7。"
      }
    },
    "Midjourney v8.1": {
      "quality": {
        "supported": false,
        "type": "string",
        "compatibility_aliases": [
          "auto",
          "standard",
          "medium",
          "1"
        ],
        "not_applicable_to": [
          "v8.1",
          "v8.2"
        ],
        "description": "该版本没有独立 quality 或 --q 选项。用 1K、2K 或 hd 选择清晰度。旧客户端默认值会兼容省略。"
      },
      "cref": {
        "supported": false,
        "type": "string",
        "required": false,
        "applies_to": [
          "v6",
          "v6.1",
          "niji6"
        ],
        "description": "适用版本为 v6、v6.1、niji6。"
      },
      "cw": {
        "supported": false,
        "type": "integer",
        "required": false,
        "minimum": 0,
        "maximum": 100,
        "applies_to": [
          "v6",
          "v6.1",
          "niji6"
        ],
        "description": "适用版本为 v6、v6.1、niji6。"
      },
      "oref": {
        "supported": false,
        "type": "string",
        "required": false,
        "applies_to": [
          "v7"
        ],
        "description": "适用版本为 v7。"
      },
      "ow": {
        "supported": false,
        "type": "number",
        "required": false,
        "minimum": 0,
        "maximum": 1000,
        "applies_to": [
          "v7"
        ],
        "description": "适用版本为 v7。"
      }
    },
    "Midjourney-全系列": {
      "quality": {
        "supported": true,
        "type": "string",
        "required": false,
        "default": "auto",
        "values": [
          "auto",
          "standard",
          "medium",
          "low",
          "high",
          "hd",
          "0.25",
          "0.5",
          "1",
          "2",
          "4"
        ],
        "not_applicable_to": [
          "v8.1",
          "v8.2"
        ],
        "compatibility_aliases_on_v8": [
          "auto",
          "standard",
          "medium",
          "1"
        ],
        "description": "quality 和 --q 依所选版本生效。v8.1 和 v8.2 使用 1K、2K 或 hd；旧客户端默认值会兼容省略。"
      },
      "cref": {
        "supported": true,
        "type": "string",
        "required": false,
        "applies_to": [
          "v6",
          "v6.1",
          "niji6"
        ],
        "description": "适用版本为 v6、v6.1、niji6。"
      },
      "cw": {
        "supported": true,
        "type": "integer",
        "required": false,
        "minimum": 0,
        "maximum": 100,
        "applies_to": [
          "v6",
          "v6.1",
          "niji6"
        ],
        "description": "适用版本为 v6、v6.1、niji6。"
      },
      "oref": {
        "supported": true,
        "type": "string",
        "required": false,
        "applies_to": [
          "v7"
        ],
        "description": "适用版本为 v7。"
      },
      "ow": {
        "supported": true,
        "type": "number",
        "required": false,
        "minimum": 0,
        "maximum": 1000,
        "applies_to": [
          "v7"
        ],
        "description": "适用版本为 v7。"
      }
    },
    "Midjourney v8.2": {
      "quality": {
        "supported": false,
        "type": "string",
        "compatibility_aliases": [
          "auto",
          "standard",
          "medium",
          "1"
        ],
        "not_applicable_to": [
          "v8.1",
          "v8.2"
        ],
        "description": "该版本没有独立 quality 或 --q 选项。用 1K、2K 或 hd 选择清晰度。旧客户端默认值会兼容省略。"
      },
      "cref": {
        "supported": false,
        "type": "string",
        "required": false,
        "applies_to": [
          "v6",
          "v6.1",
          "niji6"
        ],
        "description": "适用版本为 v6、v6.1、niji6。"
      },
      "cw": {
        "supported": false,
        "type": "integer",
        "required": false,
        "minimum": 0,
        "maximum": 100,
        "applies_to": [
          "v6",
          "v6.1",
          "niji6"
        ],
        "description": "适用版本为 v6、v6.1、niji6。"
      },
      "oref": {
        "supported": false,
        "type": "string",
        "required": false,
        "applies_to": [
          "v7"
        ],
        "description": "适用版本为 v7。"
      },
      "ow": {
        "supported": false,
        "type": "number",
        "required": false,
        "minimum": 0,
        "maximum": 1000,
        "applies_to": [
          "v7"
        ],
        "description": "适用版本为 v7。"
      }
    },
    "Midjourney v6.1": {
      "quality": {
        "supported": true,
        "type": "string",
        "required": false,
        "default": "auto",
        "values": [
          "auto",
          "standard",
          "medium",
          "low",
          "high",
          "hd",
          "0.25",
          "0.5",
          "1",
          "2",
          "4"
        ]
      },
      "cref": {
        "supported": true,
        "type": "string",
        "required": false,
        "applies_to": [
          "v6",
          "v6.1",
          "niji6"
        ],
        "description": "适用版本为 v6、v6.1、niji6。"
      },
      "cw": {
        "supported": true,
        "type": "integer",
        "required": false,
        "minimum": 0,
        "maximum": 100,
        "applies_to": [
          "v6",
          "v6.1",
          "niji6"
        ],
        "description": "适用版本为 v6、v6.1、niji6。"
      },
      "oref": {
        "supported": false,
        "type": "string",
        "required": false,
        "applies_to": [
          "v7"
        ],
        "description": "适用版本为 v7。"
      },
      "ow": {
        "supported": false,
        "type": "number",
        "required": false,
        "minimum": 0,
        "maximum": 1000,
        "applies_to": [
          "v7"
        ],
        "description": "适用版本为 v7。"
      }
    },
    "Midjourney v7": {
      "quality": {
        "supported": true,
        "type": "string",
        "required": false,
        "default": "auto",
        "values": [
          "auto",
          "standard",
          "medium",
          "low",
          "high",
          "hd",
          "0.25",
          "0.5",
          "1",
          "2",
          "4"
        ]
      },
      "cref": {
        "supported": false,
        "type": "string",
        "required": false,
        "applies_to": [
          "v6",
          "v6.1",
          "niji6"
        ],
        "description": "适用版本为 v6、v6.1、niji6。"
      },
      "cw": {
        "supported": false,
        "type": "integer",
        "required": false,
        "minimum": 0,
        "maximum": 100,
        "applies_to": [
          "v6",
          "v6.1",
          "niji6"
        ],
        "description": "适用版本为 v6、v6.1、niji6。"
      },
      "oref": {
        "supported": true,
        "type": "string",
        "required": false,
        "applies_to": [
          "v7"
        ],
        "description": "适用版本为 v7。"
      },
      "ow": {
        "supported": true,
        "type": "number",
        "required": false,
        "minimum": 0,
        "maximum": 1000,
        "applies_to": [
          "v7"
        ],
        "description": "适用版本为 v7。"
      }
    }
  }
}
