{"openapi":"3.1.0","info":{"title":"平台对外 API","version":"2026-11-22","description":"只包含实际已实现的端点。示例模型和签名为占位符，模型约束以鉴权后的实时目录为准。"},"servers":[{"url":"https://cresily.cn","description":"本站对外域名，paths 已包含 /v1"}],"paths":{"/v1/models":{"get":{"operationId":"ref_models","summary":"模型列表","description":"读取当前密钥可用的模型。使用 kind 过滤分类，expand=parameters 获取参数、默认值和素材限制。\n\n模型 ID 来自实际 data 数组；空数组表示此 Key 当前没有匹配的开放模型，不能把示例 ID 当作可用模型。\n\n推荐查询 ?kind=video&expand=parameters。mode_parameters 给出每种视频模式的独立参数。\n\n此规范用于端点、鉴权、基础类型及示例导入；完整模型参数值、必填条件和组合约束以 /v1/models?expand=parameters 为准。","security":[{"bearerAuth":[]},{"apiKeyAuth":[]}],"parameters":[{"in":"query","name":"kind","schema":{"enum":["chat","image","video","audio"]}},{"in":"query","name":"expand","schema":{"enum":["parameters"]}},{"in":"query","name":"include_deprecated","schema":{"type":"boolean"},"description":"仅保留兼容，当前目录不返回已下架模型。"}],"responses":{"200":{"description":"读取当前密钥可用的模型。使用 kind 过滤分类，expand=parameters 获取参数、默认值和素材限制。","headers":{"X-Request-Id":{"schema":{"type":"string"}},"Location":{"schema":{"type":"string"}},"X-Task-Id":{"schema":{"type":"string"}},"Idempotency-Replayed":{"schema":{"type":"string"}},"Retry-After":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"},"example":{"object":"list","schema_version":"2026-11-22","data":[]}}}},"400":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"413":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"504":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/models/{id}":{"get":{"operationId":"ref_model","summary":"模型详情","description":"读取一个模型的参数说明。id 请使用列表返回的模型 ID，作为路径段时需要 URL 编码。\n\n返回 object=model，包含 parameters、mode_parameters（适用时）和 capability_version。参数说明采用平台描述符，不是完整 JSON Schema。\n\n同名展示名称有歧义时改用 ID；停用、下架、密钥权限和开放范围都会影响可用性。\n\n此规范用于端点、鉴权、基础类型及示例导入；完整模型参数值、必填条件和组合约束以 /v1/models?expand=parameters 为准。","security":[{"bearerAuth":[]},{"apiKeyAuth":[]}],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"},"description":"模型 ID，路径段须 URL 编码"}],"responses":{"200":{"description":"读取一个模型的参数说明。id 请使用列表返回的模型 ID，作为路径段时需要 URL 编码。","headers":{"X-Request-Id":{"schema":{"type":"string"}},"Location":{"schema":{"type":"string"}},"X-Task-Id":{"schema":{"type":"string"}},"Idempotency-Replayed":{"schema":{"type":"string"}},"Retry-After":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"413":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"504":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/chat/completions":{"post":{"operationId":"ref_chat","summary":"Chat Completions","description":"文本对话与函数工具。stream=false 返回 JSON，stream=true 返回 OpenAI 风格 SSE。\n\n工具调用要检查 message.tool_calls；以 role=tool 和匹配的 tool_call_id 提交工具结果。所选模型必须支持工具。\n\nSSE 可能先发 HTTP 200，随后出现 error 数据帧；连接断开或错误帧不能算完成。接收 data: [DONE] 后结束读取。\n\nn 仅支持 1，store 仅支持 false。采样、推理和结构化输出参数按模型声明。对话不支持幂等重放。\n\n此规范用于端点、鉴权、基础类型及示例导入；完整模型参数值、必填条件和组合约束以 /v1/models?expand=parameters 为准。","security":[{"bearerAuth":[]},{"apiKeyAuth":[]}],"parameters":[],"responses":{"200":{"description":"文本对话与函数工具。stream=false 返回 JSON，stream=true 返回 OpenAI 风格 SSE。","headers":{"X-Request-Id":{"schema":{"type":"string"}},"Location":{"schema":{"type":"string"}},"X-Task-Id":{"schema":{"type":"string"}},"Idempotency-Replayed":{"schema":{"type":"string"}},"Retry-After":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"},"example":{"id":"chatcmpl-example","object":"chat.completion","created":1795305600,"model":"YOUR_CHAT_MODEL_ID","choices":[{"index":0,"message":{"role":"assistant","content":"你好，有什么可以帮你？"},"finish_reason":"stop","logprobs":null}]}},"text/event-stream":{"schema":{"type":"string","description":"stream=true。SSE 终态与错误格式按所选协议解析。"}}}},"400":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"413":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"504":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model","messages"],"additionalProperties":false,"properties":{"model":{"type":"string","minLength":1,"description":"使用当前 Key 查询 /v1/models 得到的 ID 或唯一展示名称。"},"messages":{"type":"array","minItems":1,"items":{"type":"object","required":["role"],"properties":{"role":{"type":"string"},"content":{"description":"文本或该协议支持的文本 / 工具内容块；Chat 助手工具调用时 content 可省略或为 null。"}}}},"stream":{"type":["boolean","null"]},"stream_options":{"type":["object","null"]},"max_tokens":{"type":["integer","null"],"minimum":1,"description":"最大值与默认值以所选模型 chat_limits 为准。"},"max_completion_tokens":{"type":["integer","null"],"minimum":1,"description":"最大值与默认值以所选模型 chat_limits 为准。"},"temperature":{"type":["number","null"],"minimum":0,"maximum":2},"top_p":{"type":["number","null"],"exclusiveMinimum":0,"maximum":1},"user":{"type":["string","null"]},"tools":{"type":["array","null"],"items":{"type":"object"}},"tool_choice":{"description":"格式依赖所选协议，请查看端点说明；不支持的明确取值会被拒绝。"},"parallel_tool_calls":{"type":["boolean","null"]},"stop":{"description":"格式依赖所选协议，请查看端点说明；不支持的明确取值会被拒绝。"},"reasoning_effort":{"enum":["none","minimal","low","medium","high","xhigh","max","ultra",null],"description":"还必须属于所选模型公开的 reasoningEfforts。"},"response_format":{"type":["object","null"]},"verbosity":{"type":["string","null"]},"n":{"enum":[1,null]},"store":{"enum":[false,null],"description":"只兼容 false；不能开启服务端存储或后台响应。"},"metadata":{"type":["object","null"]},"prompt_cache_key":{"type":["string","null"]},"safety_identifier":{"type":["string","null"]},"seed":{"type":["integer","null"]},"presence_penalty":{"type":["number","null"],"minimum":-2,"maximum":2},"frequency_penalty":{"type":["number","null"],"minimum":-2,"maximum":2},"logprobs":{"enum":[false,null]},"top_logprobs":{"enum":[0,null]},"logit_bias":{"type":["object","null"]},"service_tier":{"enum":["auto","default",null],"description":"兼容默认服务级别，不提供优先服务档位保证。"},"prompt_cache_retention":{"enum":["in-memory","24h",null],"description":"兼容字段，不承诺提供服务端缓存管理。"}}},"example":{"model":"YOUR_CHAT_MODEL_ID","messages":[{"role":"user","content":"你好"}],"stream":false}}}}}},"/v1/responses":{"post":{"operationId":"ref_responses","summary":"Responses","description":"Responses 文本与客户端工具协议，可供使用该协议的 Agent 接入。\n\n每轮携带完整 input 历史，store=false。previous_response_id、conversation、context_management 和 background=true 明确拒绝。\n\n返回文本位于 output 中的 message；工具调用是独立 output 项。不能只读取第一个 output 项。\n\n流式通过 response.completed、response.incomplete 或 response.failed 判断终态，不使用 Chat Completions 的 choices 结构。\n\n此规范用于端点、鉴权、基础类型及示例导入；完整模型参数值、必填条件和组合约束以 /v1/models?expand=parameters 为准。","security":[{"bearerAuth":[]},{"apiKeyAuth":[]}],"parameters":[],"responses":{"200":{"description":"Responses 文本与客户端工具协议，可供使用该协议的 Agent 接入。","headers":{"X-Request-Id":{"schema":{"type":"string"}},"Location":{"schema":{"type":"string"}},"X-Task-Id":{"schema":{"type":"string"}},"Idempotency-Replayed":{"schema":{"type":"string"}},"Retry-After":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"},"example":{"id":"resp_example","object":"response","status":"completed","model":"YOUR_CHAT_MODEL_ID","output_text":"你好","output":[{"id":"msg_example","type":"message","role":"assistant","status":"completed","content":[{"type":"output_text","text":"你好","annotations":[]}]}]}},"text/event-stream":{"schema":{"type":"string","description":"stream=true。SSE 终态与错误格式按所选协议解析。"}}}},"400":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"413":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"504":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model","input"],"additionalProperties":false,"properties":{"model":{"type":"string","minLength":1,"description":"使用当前 Key 查询 /v1/models 得到的 ID 或唯一展示名称。"},"stream":{"type":["boolean","null"]},"input":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"object"}}]},"instructions":{"type":["string","null"]},"max_output_tokens":{"type":["integer","null"],"minimum":1,"description":"最大值与默认值以所选模型 chat_limits 为准。"},"temperature":{"type":["number","null"],"minimum":0,"maximum":2},"top_p":{"type":["number","null"],"exclusiveMinimum":0,"maximum":1},"tools":{"type":["array","null"],"items":{"type":"object"}},"tool_choice":{"description":"格式依赖所选协议，请查看端点说明；不支持的明确取值会被拒绝。"},"parallel_tool_calls":{"type":["boolean","null"]},"reasoning":{"type":["object","null"]},"text":{"type":["object","null"]},"store":{"enum":[false,null],"description":"只兼容 false；不能开启服务端存储或后台响应。"},"metadata":{"type":["object","null"]},"include":{"type":["array","null"],"items":{"type":"string"}},"prompt_cache_key":{"type":["string","null"]},"prompt_cache_retention":{"enum":["in-memory","24h",null],"description":"兼容字段，不承诺提供服务端缓存管理。"},"client_metadata":{"type":["object","null"]},"safety_identifier":{"type":["string","null"]},"service_tier":{"enum":["auto","default","standard_only",null],"description":"兼容默认服务级别，不提供优先服务档位保证。"},"truncation":{"enum":["disabled",null]},"previous_response_id":{"type":"null","description":"尚未开放，只能省略或传 null。"},"background":{"enum":[false,null],"description":"只兼容 false；不能开启服务端存储或后台响应。"},"conversation":{"type":"null","description":"尚未开放，只能省略或传 null。"},"context_management":{"type":"null","description":"尚未开放，只能省略或传 null。"},"user":{"type":["string","null"]}}},"example":{"model":"YOUR_CHAT_MODEL_ID","input":"你好","store":false,"stream":false}}}}}},"/v1/messages":{"post":{"operationId":"ref_messages","summary":"Messages","description":"Messages 文本内容块与客户端工具协议。Anthropic SDK 的 baseURL 只填写站点域名。\n\n可使用 x-api-key；SDK 自动追加 /v1/messages，baseURL 不要重复包含 /v1。\n\n工具使用 tool_use 与 tool_result 内容块。错误信封是 {type:error,error:{type,message},request_id}，不能按 OpenAI 的 error.code 假定解析。\n\nmax_tokens 必须符合模型输出预算，不能直接套用示例值。\n\n此规范用于端点、鉴权、基础类型及示例导入；完整模型参数值、必填条件和组合约束以 /v1/models?expand=parameters 为准。","security":[{"bearerAuth":[]},{"apiKeyAuth":[]}],"parameters":[],"responses":{"200":{"description":"Messages 文本内容块与客户端工具协议。Anthropic SDK 的 baseURL 只填写站点域名。","headers":{"X-Request-Id":{"schema":{"type":"string"}},"Location":{"schema":{"type":"string"}},"X-Task-Id":{"schema":{"type":"string"}},"Idempotency-Replayed":{"schema":{"type":"string"}},"Retry-After":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"},"example":{"id":"msg_example","type":"message","role":"assistant","model":"YOUR_CHAT_MODEL_ID","content":[{"type":"text","text":"你好"}],"stop_reason":"end_turn","stop_sequence":null,"usage":{"input_tokens":10,"output_tokens":2}}},"text/event-stream":{"schema":{"type":"string","description":"stream=true。SSE 终态与错误格式按所选协议解析。"}}}},"400":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"type":"object","required":["type","error"],"properties":{"type":{"const":"error"},"error":{"type":"object","properties":{"type":{"type":"string"},"message":{"type":"string"}}},"request_id":{"type":"string"}}}}}},"401":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"type":"object","required":["type","error"],"properties":{"type":{"const":"error"},"error":{"type":"object","properties":{"type":{"type":"string"},"message":{"type":"string"}}},"request_id":{"type":"string"}}}}}},"402":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"type":"object","required":["type","error"],"properties":{"type":{"const":"error"},"error":{"type":"object","properties":{"type":{"type":"string"},"message":{"type":"string"}}},"request_id":{"type":"string"}}}}}},"403":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"type":"object","required":["type","error"],"properties":{"type":{"const":"error"},"error":{"type":"object","properties":{"type":{"type":"string"},"message":{"type":"string"}}},"request_id":{"type":"string"}}}}}},"404":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"type":"object","required":["type","error"],"properties":{"type":{"const":"error"},"error":{"type":"object","properties":{"type":{"type":"string"},"message":{"type":"string"}}},"request_id":{"type":"string"}}}}}},"409":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"type":"object","required":["type","error"],"properties":{"type":{"const":"error"},"error":{"type":"object","properties":{"type":{"type":"string"},"message":{"type":"string"}}},"request_id":{"type":"string"}}}}}},"413":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"type":"object","required":["type","error"],"properties":{"type":{"const":"error"},"error":{"type":"object","properties":{"type":{"type":"string"},"message":{"type":"string"}}},"request_id":{"type":"string"}}}}}},"429":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"type":"object","required":["type","error"],"properties":{"type":{"const":"error"},"error":{"type":"object","properties":{"type":{"type":"string"},"message":{"type":"string"}}},"request_id":{"type":"string"}}}}}},"500":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"type":"object","required":["type","error"],"properties":{"type":{"const":"error"},"error":{"type":"object","properties":{"type":{"type":"string"},"message":{"type":"string"}}},"request_id":{"type":"string"}}}}}},"502":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"type":"object","required":["type","error"],"properties":{"type":{"const":"error"},"error":{"type":"object","properties":{"type":{"type":"string"},"message":{"type":"string"}}},"request_id":{"type":"string"}}}}}},"503":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"type":"object","required":["type","error"],"properties":{"type":{"const":"error"},"error":{"type":"object","properties":{"type":{"type":"string"},"message":{"type":"string"}}},"request_id":{"type":"string"}}}}}},"504":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"type":"object","required":["type","error"],"properties":{"type":{"const":"error"},"error":{"type":"object","properties":{"type":{"type":"string"},"message":{"type":"string"}}},"request_id":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model","messages","max_tokens"],"additionalProperties":false,"properties":{"model":{"type":"string","minLength":1,"description":"使用当前 Key 查询 /v1/models 得到的 ID 或唯一展示名称。"},"stream":{"type":["boolean","null"]},"messages":{"type":"array","minItems":1,"items":{"type":"object","required":["role"],"properties":{"role":{"type":"string"},"content":{"description":"文本或该协议支持的文本 / 工具内容块；Chat 助手工具调用时 content 可省略或为 null。"}}}},"system":{"description":"格式依赖所选协议，请查看端点说明；不支持的明确取值会被拒绝。"},"max_tokens":{"type":["integer","null"],"minimum":1,"description":"最大值与默认值以所选模型 chat_limits 为准。"},"temperature":{"type":["number","null"],"minimum":0,"maximum":2},"top_p":{"type":["number","null"],"exclusiveMinimum":0,"maximum":1},"tools":{"type":["array","null"],"items":{"type":"object"}},"tool_choice":{"description":"格式依赖所选协议，请查看端点说明；不支持的明确取值会被拒绝。"},"stop_sequences":{"type":["array","null"],"items":{"type":"string"}},"metadata":{"type":["object","null"]},"thinking":{"type":["object","null"]},"output_config":{"type":["object","null"]},"service_tier":{"enum":["auto","default","standard_only",null],"description":"兼容默认服务级别，不提供优先服务档位保证。"}}},"example":{"model":"YOUR_CHAT_MODEL_ID","max_tokens":512,"messages":[{"role":"user","content":"你好"}],"stream":false}}}}}},"/v1/images/generations":{"post":{"operationId":"ref_images","summary":"图片生成与参考图编辑","description":"省略 response_format 创建异步任务；显式指定 url 或 b64_json 等待结果并返回 200 + data。\n\nresponse_format 是结果返回方式；output_format 是图片文件格式，两者含义不同。\n\n同步返回 {created,data:[{url}]} 或 {created,data:[{b64_json}]}。120 秒等待超时后根据 Location 和 X-Task-Id 查询已有任务。\n\n参考图通过 image_urls 提交；模型要求参考图时必须填写。当前没有 /v1/images/edits 的 multipart / mask 协议。\n\n此规范用于端点、鉴权、基础类型及示例导入；完整模型参数值、必填条件和组合约束以 /v1/models?expand=parameters 为准。","security":[{"bearerAuth":[]},{"apiKeyAuth":[]}],"parameters":[{"in":"header","name":"Idempotency-Key","schema":{"type":"string","minLength":8,"maxLength":150,"pattern":"^[A-Za-z0-9._:-]+$"},"description":"同一次业务请求保持不变，参数改变或主动重新生成时使用新值。"}],"responses":{"200":{"description":"显式 response_format=url 或 b64_json 的同步结果","content":{"application/json":{"schema":{"type":"object","required":["created","data"],"properties":{"created":{"type":"integer"},"data":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"b64_json":{"type":"string"}}}}}}}}},"202":{"description":"省略 response_format 创建异步任务；显式指定 url 或 b64_json 等待结果并返回 200 + data。","headers":{"X-Request-Id":{"schema":{"type":"string"}},"Location":{"schema":{"type":"string"}},"X-Task-Id":{"schema":{"type":"string"}},"Idempotency-Replayed":{"schema":{"type":"string"}},"Retry-After":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"},"example":{"id":"task_example123","object":"task","kind":"image","model":"YOUR_IMAGE_MODEL_ID","status":"queued","created_at":1795305600,"expires_at":1795564800,"usage":{"credits_reserved":1,"credits_charged":null,"settled":false}}}}},"400":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"413":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"504":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model","prompt"],"additionalProperties":false,"properties":{"model":{"type":"string","minLength":1,"description":"使用当前 Key 查询 /v1/models 得到的 ID 或唯一展示名称。"},"prompt":{"type":"string","minLength":1},"negative_prompt":{"type":["string","null"]},"n":{"type":["integer","null"]},"size":{"type":["string","null"]},"aspect_ratio":{"type":["string","null"]},"resolution":{"type":["string","null"]},"quality":{"type":["string","null"]},"output_format":{"type":["string","null"]},"background":{"enum":[false,null],"description":"只兼容 false；不能开启服务端存储或后台响应。"},"image_urls":{"type":["array","null"],"items":{"type":"string"}},"seed":{"type":["integer","null"]},"speed_mode":{"type":["string","null"]},"style_prompt":{"type":["string","null"]},"user":{"type":["string","null"]},"response_format":{"enum":["url","b64_json",null],"description":"显式指定时返回同步图片结果；省略或 null 返回 202 异步任务。"}}},"example":{"model":"YOUR_IMAGE_MODEL_ID","prompt":"海边日落，光线柔和"}}}}}},"/v1/videos/generations":{"post":{"operationId":"ref_video","summary":"视频生成","description":"创建异步视频任务，使用同一把 Key 查询 /v1/tasks/{id}，从 output.urls 下载全部结果。\n\nSeedance 兼容入口：POST /seedance/v3/contents/generations/tasks 使用 content 与 ratio；GET 同路径/{id} 查询，成功状态为 succeeded，视频地址为 content.video_url。需要一个 text 提示词块；媒体使用 HTTPS URL，图片角色为 first_frame、last_frame 或 reference_image，视频与音频角色为 reference_video、reference_audio。模型 ID 和能力以本站目录为准；水印、固定镜头、回调、尾帧输出、草稿及其他未列参数暂不支持，明确传入时返回 400。\n\n示例只适用于支持 text_to_video 的模型。首帧、首尾帧、图片参考、多模态参考各有独立必填素材，以 mode_parameters 为准。\n\nseconds 是 duration 的别名，二者不能同时传。resolution 与 aspect_ratio 分别控制分辨率和画幅。\n\n这是平台任务协议，不是 OpenAI SDK 的 /v1/videos 对象协议。\n\n此规范用于端点、鉴权、基础类型及示例导入；完整模型参数值、必填条件和组合约束以 /v1/models?expand=parameters 为准。","security":[{"bearerAuth":[]},{"apiKeyAuth":[]}],"parameters":[{"in":"header","name":"Idempotency-Key","schema":{"type":"string","minLength":8,"maxLength":150,"pattern":"^[A-Za-z0-9._:-]+$"},"description":"同一次业务请求保持不变，参数改变或主动重新生成时使用新值。"}],"responses":{"202":{"description":"创建异步视频任务，使用同一把 Key 查询 /v1/tasks/{id}，从 output.urls 下载全部结果。","headers":{"X-Request-Id":{"schema":{"type":"string"}},"Location":{"schema":{"type":"string"}},"X-Task-Id":{"schema":{"type":"string"}},"Idempotency-Replayed":{"schema":{"type":"string"}},"Retry-After":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"},"example":{"id":"task_example123","object":"task","kind":"video","model":"YOUR_VIDEO_MODEL_ID","status":"queued","created_at":1795305600,"expires_at":1795564800,"usage":{"credits_reserved":1,"credits_charged":null,"settled":false}}}}},"400":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"413":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"504":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model","prompt"],"additionalProperties":false,"properties":{"model":{"type":"string","minLength":1,"description":"使用当前 Key 查询 /v1/models 得到的 ID 或唯一展示名称。"},"prompt":{"type":"string","minLength":1},"negative_prompt":{"type":["string","null"]},"mode":{"type":["string","null"]},"image_urls":{"type":["array","null"],"items":{"type":"string"}},"first_frame_url":{"type":["string","null"]},"last_frame_url":{"type":["string","null"]},"reference_video_urls":{"type":["array","null"],"items":{"type":"string"}},"reference_audio_urls":{"type":["array","null"],"items":{"type":"string"}},"duration":{"type":["number","null"]},"seconds":{"type":["string","integer","null"],"description":"duration 的互斥别名；只能使用模型允许的整数时长。"},"resolution":{"type":["string","null"]},"aspect_ratio":{"type":["string","null"]},"generate_audio":{"type":["boolean","null"]},"seed":{"type":["integer","null"]},"style_prompt":{"type":["string","null"]},"user":{"type":["string","null"]}}},"example":{"model":"YOUR_VIDEO_MODEL_ID","prompt":"海边日落，镜头缓慢推进","mode":"text_to_video"}}}}}},"/v1/audio/generations":{"post":{"operationId":"ref_audio","summary":"异步音频生成","description":"使用 input 提交文本，按任务协议查询和下载音频。\n\nresponse_format 在音频接口表示音频文件格式，不是图片的 url / b64_json。\n\n音色、格式、语速和时长必须符合模型能力；没有公开音色目录时不能套用其他模型的音色。\n\n不提供转录或翻译接口，不能把音频文件上传到此端点进行识别。\n\n此规范用于端点、鉴权、基础类型及示例导入；完整模型参数值、必填条件和组合约束以 /v1/models?expand=parameters 为准。","security":[{"bearerAuth":[]},{"apiKeyAuth":[]}],"parameters":[{"in":"header","name":"Idempotency-Key","schema":{"type":"string","minLength":8,"maxLength":150,"pattern":"^[A-Za-z0-9._:-]+$"},"description":"同一次业务请求保持不变，参数改变或主动重新生成时使用新值。"}],"responses":{"202":{"description":"使用 input 提交文本，按任务协议查询和下载音频。","headers":{"X-Request-Id":{"schema":{"type":"string"}},"Location":{"schema":{"type":"string"}},"X-Task-Id":{"schema":{"type":"string"}},"Idempotency-Replayed":{"schema":{"type":"string"}},"Retry-After":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"},"example":{"id":"task_example123","object":"task","kind":"audio","model":"YOUR_AUDIO_MODEL_ID","status":"queued","created_at":1795305600,"expires_at":1795564800,"usage":{"credits_reserved":1,"credits_charged":null,"settled":false}}}}},"400":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"413":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"504":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model","input"],"additionalProperties":false,"properties":{"model":{"type":"string","minLength":1,"description":"使用当前 Key 查询 /v1/models 得到的 ID 或唯一展示名称。"},"input":{"type":"string","minLength":1},"voice":{"type":["string","null"]},"speed":{"type":["number","null"],"minimum":0.25,"maximum":4},"response_format":{"type":["string","null"],"description":"音频文件格式，以模型参数说明为准。"},"duration":{"type":["number","null"]},"user":{"type":["string","null"]}}},"example":{"model":"YOUR_AUDIO_MODEL_ID","input":"欢迎使用创作平台。"}}}}}},"/v1/audio/speech":{"post":{"operationId":"ref_speech","summary":"文字转语音","description":"使用与音频生成相同的参数，等待完成后返回音频文件字节。\n\n成功保存二进制字节，不调用 response.json()；文件后缀按 Content-Type 或显式请求的格式选择。\n\n失败返回 JSON 错误；504 task_wait_timeout 表示任务仍可能运行，读取 Location / X-Task-Id 查询，不能把错误 JSON 保存成音频。\n\n当前是等待完成后交付文件，不提供 stream_format、实时语音或边合成边播放的保证。\n\n此规范用于端点、鉴权、基础类型及示例导入；完整模型参数值、必填条件和组合约束以 /v1/models?expand=parameters 为准。","security":[{"bearerAuth":[]},{"apiKeyAuth":[]}],"parameters":[{"in":"header","name":"Idempotency-Key","schema":{"type":"string","minLength":8,"maxLength":150,"pattern":"^[A-Za-z0-9._:-]+$"},"description":"同一次业务请求保持不变，参数改变或主动重新生成时使用新值。"}],"responses":{"200":{"description":"使用与音频生成相同的参数，等待完成后返回音频文件字节。","headers":{"X-Request-Id":{"schema":{"type":"string"}},"Location":{"schema":{"type":"string"}},"X-Task-Id":{"schema":{"type":"string"}},"Idempotency-Replayed":{"schema":{"type":"string"}},"Retry-After":{"schema":{"type":"string"}}},"content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"413":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"504":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model","input"],"additionalProperties":false,"properties":{"model":{"type":"string","minLength":1,"description":"使用当前 Key 查询 /v1/models 得到的 ID 或唯一展示名称。"},"input":{"type":"string","minLength":1},"voice":{"type":["string","null"]},"speed":{"type":["number","null"],"minimum":0.25,"maximum":4},"response_format":{"type":["string","null"],"description":"音频文件格式，以模型参数说明为准。"},"duration":{"type":["number","null"]},"user":{"type":["string","null"]}}},"example":{"model":"YOUR_AUDIO_MODEL_ID","input":"欢迎使用创作平台。"}}}}}},"/v1/files":{"post":{"operationId":"ref_files","summary":"上传图片、视频或音频","description":"每次上传一个 file 字段，取得可用于参考素材的签名 HTTPS 地址。\n\n/v1/files/upload 是上传兼容别名，返回 200，url 与 data.url 指向同一文件；正式 /v1/files 返回 201。两者都只接受一个 file 字段，鉴权、配额和素材安全校验相同。\n\nmultipart 只接受一个 file 字段；不要附加 purpose、model 或自行手写不含 boundary 的 Content-Type。\n\n上传响应的 expires_at 是 ISO 日期字符串；任务和结果列表中的时间戳使用 Unix 秒，签名 URL 的 exp 是不透明签名参数，请原样使用整条 URL。\n\n文件大小限制跟随站点与账户配置，最高 256 MiB；音频与图片使用图片大小档。上传本身不会创建生成任务，但会占用存储空间。\n\n此规范用于端点、鉴权、基础类型及示例导入；完整模型参数值、必填条件和组合约束以 /v1/models?expand=parameters 为准。","security":[{"bearerAuth":[]},{"apiKeyAuth":[]}],"parameters":[],"responses":{"201":{"description":"每次上传一个 file 字段，取得可用于参考素材的签名 HTTPS 地址。","headers":{"X-Request-Id":{"schema":{"type":"string"}},"Location":{"schema":{"type":"string"}},"X-Task-Id":{"schema":{"type":"string"}},"Idempotency-Replayed":{"schema":{"type":"string"}},"Retry-After":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"},"example":{"id":"example-file-id","object":"file","filename":"reference.png","bytes":1024,"media_type":"image","mime_type":"image/png","url":"https://example.invalid/v1/media/example-file-id?exp=EXPIRES_MS&sig=SIGNATURE","expires_at":"2026-11-23T00:00:00.000Z"}}}},"400":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"413":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"504":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["file"],"additionalProperties":false,"properties":{"file":{"type":"string","format":"binary"}}}}}}}},"/v1/tasks/{id}":{"get":{"operationId":"ref_task","summary":"查询任务与产物","description":"查询任务状态、结果地址、错误与积分用量。必须使用创建该任务的同一把 Key。\n\nHTTP 200 只代表查询成功。queued / in_progress 继续轮询；completed / failed / canceled 停止。\n\nfailed 且 partial=true 时也可能有部分 output，请保存已有结果并检查 error；不能重新提交来补取原结果。\n\n签名链接通常 24 小时有效，生成产物保留 3 天；以 expires_at / media_expires_at 为准，及时转存。\n\n此规范用于端点、鉴权、基础类型及示例导入；完整模型参数值、必填条件和组合约束以 /v1/models?expand=parameters 为准。","security":[{"bearerAuth":[]},{"apiKeyAuth":[]}],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"},"description":"创建任务时返回的 task_ ID，必须使用创建时的 Key"}],"responses":{"200":{"description":"查询任务状态、结果地址、错误与积分用量。必须使用创建该任务的同一把 Key。","headers":{"X-Request-Id":{"schema":{"type":"string"}},"Location":{"schema":{"type":"string"}},"X-Task-Id":{"schema":{"type":"string"}},"Idempotency-Replayed":{"schema":{"type":"string"}},"Retry-After":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"},"example":{"id":"task_example123","object":"task","kind":"video","model":"YOUR_VIDEO_MODEL_ID","status":"completed","created_at":1795305600,"expires_at":1795564800,"usage":{"credits_reserved":1,"credits_charged":1,"settled":true},"completed_at":1795305610,"media_expires_at":1795564810,"output":{"urls":[{"index":0,"url":"https://example.invalid/v1/media/example-file-id?exp=EXPIRES_MS&sig=SIGNATURE","mime_type":"video/mp4","expires_at":1795392010}]}}}}},"400":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"413":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"504":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/tasks/{id}/cancel":{"post":{"operationId":"ref_cancel","summary":"取消任务","description":"请求取消任务并返回当前任务对象；取消不等于全额退款。\n\n无需 JSON 请求体。未开始执行全额释放；已开始执行按该任务报价足额扣费。\n\n以 usage.settled 和 credits_charged 确认最终结算。终态调用不再次产生费用变化。\n\n此规范用于端点、鉴权、基础类型及示例导入；完整模型参数值、必填条件和组合约束以 /v1/models?expand=parameters 为准。","security":[{"bearerAuth":[]},{"apiKeyAuth":[]}],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"},"description":"创建任务时返回的 task_ ID，必须使用创建时的 Key"}],"responses":{"200":{"description":"请求取消任务并返回当前任务对象；取消不等于全额退款。","headers":{"X-Request-Id":{"schema":{"type":"string"}},"Location":{"schema":{"type":"string"}},"X-Task-Id":{"schema":{"type":"string"}},"Idempotency-Replayed":{"schema":{"type":"string"}},"Retry-After":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"},"example":{"id":"task_example123","object":"task","kind":"video","model":"YOUR_VIDEO_MODEL_ID","status":"canceled","created_at":1795305600,"expires_at":1795564800,"usage":{"credits_reserved":1,"credits_charged":null,"settled":false}}}}},"400":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"413":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"504":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/media/{id}":{"get":{"operationId":"ref_media","summary":"下载结果","description":"使用任务或上传响应返回的完整签名 URL 下载文件，无需 Authorization。\n\n签名 URL 已包含 exp 与 sig，不要拼接、解码再编码或更换域名；不要给结果地址转发 API Key。\n\n支持 HEAD 与单段 Range；完整文件返回 200，分段返回 206，范围无效返回 416。\n\n链接过期可在产物保留期内用同一 Key 再查任务获取新地址；产物到期或被下架后无法恢复。\n\n此规范用于端点、鉴权、基础类型及示例导入；完整模型参数值、必填条件和组合约束以 /v1/models?expand=parameters 为准。","security":[],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"},"description":"原始签名 URL 中的媒体 ID"},{"in":"query","name":"exp","required":true,"schema":{"type":"integer"},"description":"签名 URL 原始参数，勿修改"},{"in":"query","name":"sig","required":true,"schema":{"type":"string"}},{"in":"header","name":"Range","schema":{"type":"string"},"example":"bytes=0-1023"}],"responses":{"200":{"description":"使用任务或上传响应返回的完整签名 URL 下载文件，无需 Authorization。","headers":{"X-Request-Id":{"schema":{"type":"string"}},"Location":{"schema":{"type":"string"}},"X-Task-Id":{"schema":{"type":"string"}},"Idempotency-Replayed":{"schema":{"type":"string"}},"Retry-After":{"schema":{"type":"string"}}},"content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"206":{"description":"单段 Range 成功","headers":{"X-Request-Id":{"schema":{"type":"string"}},"Location":{"schema":{"type":"string"}},"X-Task-Id":{"schema":{"type":"string"}},"Idempotency-Replayed":{"schema":{"type":"string"}},"Retry-After":{"schema":{"type":"string"}},"Content-Range":{"schema":{"type":"string"}}},"content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"413":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"416":{"description":"范围无效，空正文，Content-Range: bytes */总字节数"},"429":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"504":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"head":{"operationId":"ref_media_head","summary":"探测结果媒体","description":"使用任务或上传响应返回的完整签名 URL 下载文件，无需 Authorization。\n\n签名 URL 已包含 exp 与 sig，不要拼接、解码再编码或更换域名；不要给结果地址转发 API Key。\n\n支持 HEAD 与单段 Range；完整文件返回 200，分段返回 206，范围无效返回 416。\n\n链接过期可在产物保留期内用同一 Key 再查任务获取新地址；产物到期或被下架后无法恢复。\n\n此规范用于端点、鉴权、基础类型及示例导入；完整模型参数值、必填条件和组合约束以 /v1/models?expand=parameters 为准。","security":[],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"},"description":"原始签名 URL 中的媒体 ID"},{"in":"query","name":"exp","required":true,"schema":{"type":"integer"},"description":"签名 URL 原始参数，勿修改"},{"in":"query","name":"sig","required":true,"schema":{"type":"string"}},{"in":"header","name":"Range","schema":{"type":"string"},"example":"bytes=0-1023"}],"responses":{"200":{"description":"只有响应头，没有文件正文"},"403":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/me":{"get":{"operationId":"ref_account","summary":"Key、余额与当日用量","description":"验证当前 Key，读取模型白名单、RPM、日额度、账户余额和当日累计用量。\n\n积分与人民币不是同一单位。daily_credit_limit=0 表示不设日额度；RPM=0 表示不设该项限制。\n\n余额 null 表示暂时未知；今日用量读取异常时可能降级为 0，因此不能把它当作历史审计账单。\n\n此端点没有时间区间查询或逐请求明细。历史用量与任务请到控制台查看；相关查询接口尚未对 API Key 开放。\n\n此规范用于端点、鉴权、基础类型及示例导入；完整模型参数值、必填条件和组合约束以 /v1/models?expand=parameters 为准。","security":[{"bearerAuth":[]},{"apiKeyAuth":[]}],"parameters":[],"responses":{"200":{"description":"验证当前 Key，读取模型白名单、RPM、日额度、账户余额和当日累计用量。","headers":{"X-Request-Id":{"schema":{"type":"string"}},"Location":{"schema":{"type":"string"}},"X-Task-Id":{"schema":{"type":"string"}},"Idempotency-Replayed":{"schema":{"type":"string"}},"Retry-After":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"},"example":{"object":"api_key","id":"key_example","name":"示例密钥","prefix":"sk-live-xxxx","status":"active","created_at":1795305600,"expires_at":null,"rpm_limit":60,"daily_credit_limit":0,"model_ids":[],"usage":{"today":{"date":"2026-11-22","credits":1,"requests":1},"balance_credits":99,"currency":"credits"}}}}},"400":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"413":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"504":{"description":"查看 HTTP 状态、错误正文及 Retry-After / X-Request-Id；创建超时可能已有任务，先查询原任务。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"},"apiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"ApiError":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","request_id","retryable"],"properties":{"type":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"string"},"request_id":{"type":"string"},"retryable":{"type":"boolean"}}}}}}}}