{"components": {"schemas": {"MediaActionProfile": {"properties": {"output": {"enum": ["image", "text", "video", "interaction"], "type": "string"}, "parameters": {"additionalProperties": {"$ref": "#/components/schemas/MediaParameterRule"}, "type": "object"}, "requirements": {"items": {"type": "string"}, "type": "array"}}, "required": ["parameters", "output"], "type": "object"}, "MediaBilling": {"additionalProperties": false, "properties": {"amount": {"description": "AuralinkUSD金额；null表示未知，不能按零处理。", "pattern": "^\\d+(?:\\.\\d+)?$", "type": ["string", "null"]}, "charged": {"description": "AuralinkUSD金额；null表示未知，不能按零处理。", "pattern": "^\\d+(?:\\.\\d+)?$", "type": ["string", "null"]}, "currency": {"const": "USD"}, "refunded": {"description": "AuralinkUSD金额；null表示未知，不能按零处理。", "pattern": "^\\d+(?:\\.\\d+)?$", "type": ["string", "null"]}, "status": {"description": "待核实、预计占用、实际费用、退款处理中、已退款。任务状态与费用状态分别读取。", "enum": ["pending", "reserved", "settled", "pending_refund", "refunded"], "type": "string"}}, "required": ["amount", "currency", "status"], "type": "object"}, "MediaGeneration": {"description": "所有业务参数直接放在JSON顶层，不传params对象。这是跨型号字段并集，不表示每个型号支持全部选项。模型详情public_parameters给出required/allowed/default、类型、范围、组合必填与模式依赖；报价spec_prices[].parameters给出明确组合，两者同时满足后才可提交。", "oneOf": [{"additionalProperties": false, "anyOf": [{"required": ["prompt"]}, {"required": ["image_url", "video_url"]}, {"required": ["source_task_id"]}, {"required": ["video_urls"]}, {"required": ["reference_videos"]}, {"required": ["referenceVideos"]}, {"required": ["videoUrls"]}], "description": "通过 /model-parameters.json 查阅每个型号和分组开放的时长、输出分辨率与参考素材字段。可使用视频别名的型号和字段以逐型号参数为准。建议只发送标准字段。同时发送时，标准字段和别名的类型与值须完全相同，冲突返回 400。", "properties": {"aspect_ratio": {"description": "部分型号接受的画幅别名，按型号参数填写。", "enum": ["16:9", "9:16", "1:1", "4:3", "3:4", "21:9", "2:1", "2:3", "3:2", "adaptive", "auto"]}, "audioUrls": {"description": "与 audio_urls 同义，按所选型号的规格取值。", "items": {"description": "可公开访问的HTTPS素材地址；不接受本机、内网或带账号密码的地址。", "format": "uri", "pattern": "^https://", "type": "string"}, "maxItems": 10, "minItems": 1, "type": "array"}, "audio_urls": {"description": "仅使用型号文档列出的素材字段与数量。", "items": {"description": "可公开访问的HTTPS素材地址；不接受本机、内网或带账号密码的地址。", "format": "uri", "pattern": "^https://", "type": "string"}, "maxItems": 10, "minItems": 1, "type": "array"}, "capability": {"const": "video"}, "duration": {"description": "生成时长（秒），使用型号文档的取值。", "maximum": 120, "minimum": 0, "type": "integer"}, "generation_mode": {"description": "填写逐型号参数列出的生成模式；各模式的素材要求不同。", "type": "string"}, "imageUrls": {"description": "与 image_urls 同义，按所选型号的规格取值。", "items": {"description": "可公开访问的HTTPS素材地址；不接受本机、内网或带账号密码的地址。", "format": "uri", "pattern": "^https://", "type": "string"}, "maxItems": 30, "minItems": 1, "type": "array"}, "image_url": {"description": "可公开访问的HTTPS素材地址；不接受本机、内网或带账号密码的地址。", "format": "uri", "pattern": "^https://", "type": "string"}, "image_urls": {"description": "仅使用型号文档列出的素材字段与数量。", "items": {"description": "可公开访问的HTTPS素材地址；不接受本机、内网或带账号密码的地址。", "format": "uri", "pattern": "^https://", "type": "string"}, "maxItems": 30, "minItems": 1, "type": "array"}, "model": {"description": "GET /models返回的已开放媒体型号。", "maxLength": 200, "minLength": 1, "type": "string"}, "prompt": {"maxLength": 16000, "minLength": 1, "type": "string"}, "ratio": {"enum": ["16:9", "9:16", "1:1", "4:3", "3:4", "21:9", "2:1", "2:3", "3:2", "adaptive", "auto"]}, "referenceAudio": {"description": "与 audio_urls 同义，按所选型号的规格取值。", "items": {"description": "可公开访问的HTTPS素材地址；不接受本机、内网或带账号密码的地址。", "format": "uri", "pattern": "^https://", "type": "string"}, "maxItems": 10, "minItems": 1, "type": "array"}, "referenceImages": {"description": "与 image_urls 同义，按所选型号的规格取值。", "items": {"description": "可公开访问的HTTPS素材地址；不接受本机、内网或带账号密码的地址。", "format": "uri", "pattern": "^https://", "type": "string"}, "maxItems": 30, "minItems": 1, "type": "array"}, "referenceVideos": {"description": "与 video_urls 同义，按所选型号的规格取值。", "items": {"description": "可公开访问的HTTPS素材地址；不接受本机、内网或带账号密码的地址。", "format": "uri", "pattern": "^https://", "type": "string"}, "maxItems": 10, "minItems": 1, "type": "array"}, "reference_audio": {"description": "与 audio_urls 同义，按所选型号的规格取值。", "items": {"description": "可公开访问的HTTPS素材地址；不接受本机、内网或带账号密码的地址。", "format": "uri", "pattern": "^https://", "type": "string"}, "maxItems": 10, "minItems": 1, "type": "array"}, "reference_audios": {"description": "部分型号接受的参考音频数组别名，按型号参数填写。", "items": {"description": "可公开访问的HTTPS素材地址；不接受本机、内网或带账号密码的地址。", "format": "uri", "pattern": "^https://", "type": "string"}, "maxItems": 10, "minItems": 1, "type": "array"}, "reference_images": {"description": "与 image_urls 同义，按所选型号的规格取值。", "items": {"description": "可公开访问的HTTPS素材地址；不接受本机、内网或带账号密码的地址。", "format": "uri", "pattern": "^https://", "type": "string"}, "maxItems": 30, "minItems": 1, "type": "array"}, "reference_videos": {"description": "与 video_urls 同义，按所选型号的规格取值。", "items": {"description": "可公开访问的HTTPS素材地址；不接受本机、内网或带账号密码的地址。", "format": "uri", "pattern": "^https://", "type": "string"}, "maxItems": 10, "minItems": 1, "type": "array"}, "resolution": {"description": "必须使用型号公开参数与已核实报价中的取值，不把default或动作名当成分辨率。", "maxLength": 32, "minLength": 1, "type": "string"}, "resolutionName": {"description": "与 resolution 同义，按所选型号的规格取值。", "maxLength": 32, "minLength": 1, "type": "string"}, "resolution_name": {"description": "与 resolution 同义，按所选型号的规格取值。", "maxLength": 32, "minLength": 1, "type": "string"}, "seconds": {"description": "与 duration 同义，按所选型号的规格取值。", "maximum": 120, "minimum": 0, "type": "integer"}, "size": {"type": "string"}, "videoUrls": {"description": "与 video_urls 同义，按所选型号的规格取值。", "items": {"description": "可公开访问的HTTPS素材地址；不接受本机、内网或带账号密码的地址。", "format": "uri", "pattern": "^https://", "type": "string"}, "maxItems": 10, "minItems": 1, "type": "array"}, "video_urls": {"description": "仅使用型号文档列出的素材字段与数量。", "items": {"description": "可公开访问的HTTPS素材地址；不接受本机、内网或带账号密码的地址。", "format": "uri", "pattern": "^https://", "type": "string"}, "maxItems": 10, "minItems": 1, "type": "array"}}, "required": ["model", "capability"], "type": "object"}, {"additionalProperties": false, "description": "Midjourney 使用专用入口。", "properties": {"aspect_ratio": {"description": "仅已开放此字段的型号接受；不与size别名同时使用。", "type": "string"}, "capability": {"const": "image"}, "model": {"description": "GET /models返回的已开放媒体型号。", "maxLength": 200, "minLength": 1, "not": {"const": "midjourney"}, "type": "string"}, "output_format": {"enum": ["png", "jpeg", "webp"]}, "prompt": {"maxLength": 16000, "minLength": 1, "type": "string"}, "quality": {"description": "仅在当前型号明确开放且价格已核实时使用。", "enum": ["auto", "low", "medium", "high", "standard", "hd", "xhigh", "max"]}, "response_format": {"description": "这是输入选项；Auralink始终返回异步任务JSON。", "enum": ["url", "b64_json"]}, "size": {"description": "输出画幅或像素尺寸。按照型号文档和所选报价的字段组合填写。", "type": "string"}}, "required": ["model", "capability", "prompt"], "type": "object"}, {"additionalProperties": false, "properties": {"capability": {"const": "upscale"}, "model": {"description": "GET /models返回的已开放媒体型号。", "maxLength": 200, "minLength": 1, "type": "string"}, "resolution": {"description": "必须使用型号公开参数与已核实报价中的取值，不把default或动作名当成分辨率。", "maxLength": 32, "minLength": 1, "type": "string"}, "video_url": {"description": "可公开访问的HTTPS素材地址；不接受本机、内网或带账号密码的地址。", "format": "uri", "pattern": "^https://", "type": "string"}}, "required": ["model", "capability", "video_url", "resolution"], "type": "object"}]}, "MediaParameterRule": {"additionalProperties": false, "description": "模型详情公开参数的单字段规则；按已开放协议和报价交集生成，不把可选首值假设为默认。", "properties": {"allowed": {"maxItems": 100, "type": "array"}, "by_action": {"additionalProperties": {"$ref": "#/components/schemas/MediaActionProfile"}, "description": "各项操作的参数和结果。", "type": "object"}, "by_mode": {"additionalProperties": {"$ref": "#/components/schemas/MediaParameterRule"}, "description": "所选模式下的字段规则，maximum_items=0表示该模式不接受此素材。", "type": "object"}, "default": {}, "description": {"type": "string"}, "example": {}, "exclusive_with": {"items": {"type": "string"}, "type": "array"}, "guidance": {"type": "string"}, "item_type": {"type": "string"}, "items_type": {"type": "string"}, "max_length": {"minimum": 0, "type": "integer"}, "maximum": {"type": "number"}, "maximum_bytes": {"minimum": 0, "type": "integer"}, "maximum_items": {"minimum": 0, "type": "integer"}, "maximum_length": {"minimum": 0, "type": "integer"}, "min_length": {"minimum": 0, "type": "integer"}, "minimum": {"type": "number"}, "minimum_items": {"minimum": 0, "type": "integer"}, "minimum_length": {"minimum": 0, "type": "integer"}, "pattern": {"type": "string"}, "required": {"type": "boolean"}, "required_any_of": {"description": "组合必填，相关字段至少填写一个；不是请求字段。", "items": {"type": "string"}, "type": "array"}, "requires_images": {"type": "boolean"}, "type": {"oneOf": [{"type": "string"}, {"items": {"type": "string"}, "type": "array"}]}}, "type": "object"}, "MediaTask": {"additionalProperties": false, "properties": {"artifacts": {"description": "逐个文件的Auralink受保护下载地址；仅在完成后返回。", "items": {"additionalProperties": false, "properties": {"index": {"maximum": 7, "minimum": 0, "type": "integer"}, "url": {"type": "string"}}, "type": "object"}, "maxItems": 8, "type": "array"}, "attention": {"description": "存在核实中状态时，不自动重新创建。", "type": "string"}, "billing": {"$ref": "#/components/schemas/MediaBilling"}, "capability": {"type": "string"}, "completed_at": {"description": "未结束时为null", "type": ["integer", "null"]}, "created_at": {"description": "Unix秒", "type": "integer"}, "error": {"additionalProperties": false, "properties": {"code": {"type": "string"}, "message": {"type": "string"}}, "type": "object"}, "id": {"pattern": "^media_[a-f0-9]{32}$", "type": "string"}, "model": {"type": "string"}, "object": {"enum": ["video", "media.task"]}, "progress": {"maximum": 100, "minimum": 0, "type": "integer"}, "result": {"additionalProperties": false, "description": "提示词增强任务完成且结算后返回增强的提示词。", "properties": {"prompt": {"type": "string"}}, "required": ["prompt"], "type": "object"}, "status": {"enum": ["queued", "in_progress", "completed", "failed"]}, "url": {"description": "文件生成任务完成后返回Auralink短效结果地址；可用同一Key读取/content，避免记录或分享含签名的URL。", "type": "string"}, "usage": {"additionalProperties": false, "properties": {"audio_tracks": {"minimum": 0, "type": "integer"}, "cache_creation_tokens": {"description": "仅在可靠用量已取得时提供，不从文字长度或价格反推。", "minimum": 0, "type": "integer"}, "cached_image_tokens": {"description": "仅在可靠用量已取得时提供，不从文字长度或价格反推。", "minimum": 0, "type": "integer"}, "cached_text_tokens": {"description": "仅在可靠用量已取得时提供，不从文字长度或价格反推。", "minimum": 0, "type": "integer"}, "cached_tokens": {"description": "仅在可靠用量已取得时提供，不从文字长度或价格反推。", "minimum": 0, "type": "integer"}, "cached_tokens_details": {"additionalProperties": false, "description": "已取得的用量细分，字段可能缺省。", "properties": {"audio_tokens": {"minimum": 0, "type": "integer"}, "cache_write_tokens": {"minimum": 0, "type": "integer"}, "cached_tokens": {"minimum": 0, "type": "integer"}, "cached_tokens_details": {"additionalProperties": false, "properties": {"audio_tokens": {"minimum": 0, "type": "integer"}, "cache_write_tokens": {"minimum": 0, "type": "integer"}, "cached_tokens": {"minimum": 0, "type": "integer"}, "image_tokens": {"minimum": 0, "type": "integer"}, "text_tokens": {"minimum": 0, "type": "integer"}}, "type": "object"}, "image_tokens": {"minimum": 0, "type": "integer"}, "text_tokens": {"minimum": 0, "type": "integer"}}, "type": "object"}, "completion_tokens": {"description": "仅在可靠用量已取得时提供，不从文字长度或价格反推。", "minimum": 0, "type": "integer"}, "completion_tokens_details": {"additionalProperties": false, "description": "已取得的用量细分，字段可能缺省。", "properties": {"audio_tokens": {"minimum": 0, "type": "integer"}, "cache_write_tokens": {"minimum": 0, "type": "integer"}, "cached_tokens": {"minimum": 0, "type": "integer"}, "cached_tokens_details": {"additionalProperties": false, "properties": {"audio_tokens": {"minimum": 0, "type": "integer"}, "cache_write_tokens": {"minimum": 0, "type": "integer"}, "cached_tokens": {"minimum": 0, "type": "integer"}, "image_tokens": {"minimum": 0, "type": "integer"}, "text_tokens": {"minimum": 0, "type": "integer"}}, "type": "object"}, "image_tokens": {"minimum": 0, "type": "integer"}, "text_tokens": {"minimum": 0, "type": "integer"}}, "type": "object"}, "cost": {"$ref": "#/components/schemas/MediaBilling"}, "image_input_tokens": {"description": "仅在可靠用量已取得时提供，不从文字长度或价格反推。", "minimum": 0, "type": "integer"}, "image_output_tokens": {"description": "仅在可靠用量已取得时提供，不从文字长度或价格反推。", "minimum": 0, "type": "integer"}, "images_generated": {"minimum": 0, "type": "integer"}, "input_tokens": {"description": "仅在可靠用量已取得时提供，不从文字长度或价格反推。", "minimum": 0, "type": "integer"}, "input_tokens_details": {"additionalProperties": false, "description": "已取得的用量细分，字段可能缺省。", "properties": {"audio_tokens": {"minimum": 0, "type": "integer"}, "cache_write_tokens": {"minimum": 0, "type": "integer"}, "cached_tokens": {"minimum": 0, "type": "integer"}, "cached_tokens_details": {"additionalProperties": false, "properties": {"audio_tokens": {"minimum": 0, "type": "integer"}, "cache_write_tokens": {"minimum": 0, "type": "integer"}, "cached_tokens": {"minimum": 0, "type": "integer"}, "image_tokens": {"minimum": 0, "type": "integer"}, "text_tokens": {"minimum": 0, "type": "integer"}}, "type": "object"}, "image_tokens": {"minimum": 0, "type": "integer"}, "text_tokens": {"minimum": 0, "type": "integer"}}, "type": "object"}, "output_tokens": {"description": "仅在可靠用量已取得时提供，不从文字长度或价格反推。", "minimum": 0, "type": "integer"}, "output_tokens_details": {"additionalProperties": false, "description": "已取得的用量细分，字段可能缺省。", "properties": {"audio_tokens": {"minimum": 0, "type": "integer"}, "cache_write_tokens": {"minimum": 0, "type": "integer"}, "cached_tokens": {"minimum": 0, "type": "integer"}, "cached_tokens_details": {"additionalProperties": false, "properties": {"audio_tokens": {"minimum": 0, "type": "integer"}, "cache_write_tokens": {"minimum": 0, "type": "integer"}, "cached_tokens": {"minimum": 0, "type": "integer"}, "image_tokens": {"minimum": 0, "type": "integer"}, "text_tokens": {"minimum": 0, "type": "integer"}}, "type": "object"}, "image_tokens": {"minimum": 0, "type": "integer"}, "text_tokens": {"minimum": 0, "type": "integer"}}, "type": "object"}, "prompt_tokens": {"description": "仅在可靠用量已取得时提供，不从文字长度或价格反推。", "minimum": 0, "type": "integer"}, "prompt_tokens_details": {"additionalProperties": false, "description": "已取得的用量细分，字段可能缺省。", "properties": {"audio_tokens": {"minimum": 0, "type": "integer"}, "cache_write_tokens": {"minimum": 0, "type": "integer"}, "cached_tokens": {"minimum": 0, "type": "integer"}, "cached_tokens_details": {"additionalProperties": false, "properties": {"audio_tokens": {"minimum": 0, "type": "integer"}, "cache_write_tokens": {"minimum": 0, "type": "integer"}, "cached_tokens": {"minimum": 0, "type": "integer"}, "image_tokens": {"minimum": 0, "type": "integer"}, "text_tokens": {"minimum": 0, "type": "integer"}}, "type": "object"}, "image_tokens": {"minimum": 0, "type": "integer"}, "text_tokens": {"minimum": 0, "type": "integer"}}, "type": "object"}, "seconds": {"description": "本次任务实际采用的计费秒数。参考视频线路在供应商回执核对完成后提供。", "oneOf": [{"minimum": 0, "type": "number"}, {"pattern": "^\\d+(?:\\.\\d+)?$", "type": "string"}]}, "text_input_tokens": {"description": "仅在可靠用量已取得时提供，不从文字长度或价格反推。", "minimum": 0, "type": "integer"}, "text_output_tokens": {"description": "仅在可靠用量已取得时提供，不从文字长度或价格反推。", "minimum": 0, "type": "integer"}, "total_tokens": {"description": "仅在可靠用量已取得时提供，不从文字长度或价格反推。", "minimum": 0, "type": "integer"}}, "type": "object"}}, "required": ["id", "object", "capability", "model", "status", "progress", "created_at", "completed_at", "billing", "usage"], "type": "object"}, "TextResponseCost": {"additionalProperties": false, "properties": {"amount": {"description": "十进制金额。null 表示待核实。", "pattern": "^\\d+(?:\\.\\d+)?$", "type": ["string", "null"]}, "currency": {"const": "USD"}, "status": {"enum": ["pending", "settled"]}}, "required": ["amount", "currency", "status"], "type": "object"}, "UploadedFile": {"additionalProperties": false, "properties": {"bytes": {"maximum": 104857600, "minimum": 0, "type": "integer"}, "content_type": {"type": "string"}, "created_at": {"type": "integer"}, "expires_at": {"type": "integer"}, "filename": {"type": "string"}, "id": {"pattern": "^file-[a-f0-9]{32}$", "type": "string"}, "object": {"const": "file"}, "purpose": {"type": "string"}, "status": {"const": "uploaded"}}, "required": ["object", "id", "filename", "content_type", "bytes", "created_at", "expires_at", "purpose", "status"], "type": "object"}}, "securitySchemes": {"anthropicKey": {"description": "与控制台同一把项目密钥；也可使用 Authorization: Bearer。", "in": "header", "name": "x-api-key", "type": "apiKey"}, "geminiKey": {"description": "使用 Auralink 项目密钥。", "in": "header", "name": "x-goog-api-key", "type": "apiKey"}, "geminiQueryKey": {"description": "兼容使用查询参数认证的 Gemini 客户端。", "in": "query", "name": "key", "type": "apiKey"}, "mediaResultExpiry": {"description": "结果地址自带的过期时间。", "in": "query", "name": "expires", "type": "apiKey"}, "mediaResultSignature": {"description": "结果地址自带的签名。", "in": "query", "name": "signature", "type": "apiKey"}, "platformKey": {"description": "使用个人控制台创建的项目密钥。", "scheme": "bearer", "type": "http"}}}, "info": {"description": "Auralink提供文本普通/SSE对话与异步媒体任务。型号及规格以当前密钥可调用列表和型号参数为准；已结算的响应费用为实际 USD 费用。 媒体接口创建异步任务，返回任务 ID。用同一把项目密钥查询进度、结果及 USD 费用。逐型号的请求字段见 /model-parameters.json。", "title": "Auralink API", "version": "2026-11-18"}, "openapi": "3.1.0", "paths": {"/chat/completions": {"post": {"operationId": "createChatCompletion", "requestBody": {"content": {"application/json": {"schema": {"additionalProperties": false, "allOf": [{"if": {"required": ["prediction"]}, "then": {"not": {"required": ["max_completion_tokens"]}}}], "description": "文本接口 JSON 请求体最多 100 MiB，包含 Base64 数据、消息历史和工具定义。", "if": {"required": ["stream_options"]}, "not": {"required": ["max_tokens", "max_completion_tokens"]}, "properties": {"extra_body": {"additionalProperties": false, "description": "支持此参数的 Gemini 分组接受 google.thinking_config。可用思考级别和摘要开关取决于型号。", "properties": {"google": {"additionalProperties": false, "properties": {"thinking_config": {"additionalProperties": false, "minProperties": 1, "properties": {"include_thoughts": {"type": "boolean"}, "thinking_level": {"enum": ["minimal", "low", "medium", "high", "xhigh"]}}, "type": "object"}}, "required": ["thinking_config"], "type": "object"}}, "required": ["google"], "type": "object"}, "frequency_penalty": {"description": "按内容的出现次数调节重复倾向。 仅在所用型号支持时填写。", "type": "number"}, "function_call": {"description": "旧客户端的函数选择。新接入使用 tool_choice。 仅在所用型号支持时填写。", "type": ["string", "object"]}, "functions": {"description": "兼容旧客户端的自定义函数格式。", "items": {"type": "object"}, "type": "array"}, "logit_bias": {"description": "按 Token ID 调整生成概率。 仅在所用型号支持时填写。", "type": "object"}, "logprobs": {"type": "boolean"}, "max_completion_tokens": {"description": "与另一输出上限字段二选一。部分分组及公网高费用请求需要明确填写，实际可用上限取决于型号。`gpt-6.2-sol` 带输出上限的请求在自动选价时可选到兼容分组。该分组会尽力遵守指定的输出上限，实际输出 Token 可能超过设定值。费用按实际 Token 用量结算，包含超出设定值的部分。", "minimum": 1, "type": "integer"}, "max_tokens": {"description": "与另一输出上限字段二选一。部分分组及公网高费用请求需要明确填写，实际可用上限取决于型号。`gpt-6.2-sol` 带输出上限的请求在自动选价时可选到兼容分组。该分组会尽力遵守指定的输出上限，实际输出 Token 可能超过设定值。费用按实际 Token 用量结算，包含超出设定值的部分。", "minimum": 1, "type": "integer"}, "messages": {"description": "支持对应附件的型号允许在 user 消息和 tool 结果中使用 image_url 或 PDF file。", "items": {"additionalProperties": false, "allOf": [{"if": {"properties": {"role": {"const": "user"}}}, "then": {"properties": {"content": {"oneOf": [{"type": "string"}, {"items": {"oneOf": [{"additionalProperties": false, "properties": {"text": {"type": "string"}, "type": {"const": "text"}}, "required": ["type", "text"], "type": "object"}, {"additionalProperties": false, "properties": {"image_url": {"additionalProperties": false, "properties": {"detail": {"enum": ["auto", "low", "high"]}, "url": {"description": "JPEG、PNG、GIF 或 WebP 的 Base64 数据地址。", "minLength": 1, "pattern": "^data:(?:image/jpeg|image/png|image/gif|image/webp);base64,(?=[A-Za-z0-9+/])(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$", "type": "string"}}, "required": ["url"], "type": "object"}, "type": {"const": "image_url"}}, "required": ["type", "image_url"], "type": "object"}, {"additionalProperties": false, "properties": {"file": {"additionalProperties": false, "properties": {"file_data": {"pattern": "^data:application/pdf;base64,", "type": "string"}, "filename": {"type": "string"}}, "required": ["file_data", "filename"], "type": "object"}, "type": {"const": "file"}}, "required": ["type", "file"], "type": "object"}, {"additionalProperties": false, "description": "可引用当前密钥的 file_id。常见文本、文档和电子书会转为正文。PDF 可按线路使用原生附件、页面图片或正文。", "properties": {"file": {"additionalProperties": false, "properties": {"file_id": {"pattern": "^file-[a-f0-9]{32}$", "type": "string"}}, "required": ["file_id"], "type": "object"}, "type": {"const": "file"}}, "required": ["type", "file"], "type": "object"}]}, "minItems": 1, "type": "array"}]}}, "required": ["content"]}}, {"if": {"properties": {"role": {"const": "tool"}}}, "then": {"properties": {"content": {"oneOf": [{"type": "string"}, {"items": {"oneOf": [{"additionalProperties": false, "properties": {"text": {"type": "string"}, "type": {"const": "text"}}, "required": ["type", "text"], "type": "object"}, {"additionalProperties": false, "properties": {"image_url": {"additionalProperties": false, "properties": {"detail": {"enum": ["auto", "low", "high"]}, "url": {"description": "JPEG、PNG、GIF 或 WebP 的 Base64 数据地址。", "minLength": 1, "pattern": "^data:(?:image/jpeg|image/png|image/gif|image/webp);base64,(?=[A-Za-z0-9+/])(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$", "type": "string"}}, "required": ["url"], "type": "object"}, "type": {"const": "image_url"}}, "required": ["type", "image_url"], "type": "object"}, {"additionalProperties": false, "properties": {"file": {"additionalProperties": false, "properties": {"file_data": {"pattern": "^data:application/pdf;base64,", "type": "string"}, "filename": {"type": "string"}}, "required": ["file_data", "filename"], "type": "object"}, "type": {"const": "file"}}, "required": ["type", "file"], "type": "object"}]}, "minItems": 1, "type": "array"}]}}, "required": ["content"]}}, {"else": {"not": {"anyOf": [{"required": ["reasoning_content"]}, {"required": ["reasoning"]}, {"required": ["reasoning_details"]}, {"properties": {"refusal": {"type": "string"}}, "required": ["refusal"]}]}}, "if": {"properties": {"role": {"const": "assistant"}}}, "then": {"anyOf": [{"properties": {"content": {"oneOf": [{"type": "string"}, {"items": {"oneOf": [{"additionalProperties": false, "properties": {"text": {"type": "string"}, "type": {"const": "text"}}, "required": ["type", "text"], "type": "object"}, {"additionalProperties": false, "properties": {"refusal": {"type": "string"}, "type": {"const": "refusal"}}, "required": ["type", "refusal"], "type": "object"}]}, "minItems": 1, "type": "array"}]}}, "required": ["content"]}, {"properties": {"tool_calls": {"minItems": 1, "type": "array"}}, "required": ["tool_calls"]}, {"properties": {"function_call": {"minProperties": 1, "type": "object"}}, "required": ["function_call"]}, {"properties": {"refusal": {"type": "string"}}, "required": ["refusal"]}], "properties": {"content": {"oneOf": [{"oneOf": [{"type": "string"}, {"items": {"oneOf": [{"additionalProperties": false, "properties": {"text": {"type": "string"}, "type": {"const": "text"}}, "required": ["type", "text"], "type": "object"}, {"additionalProperties": false, "properties": {"refusal": {"type": "string"}, "type": {"const": "refusal"}}, "required": ["type", "refusal"], "type": "object"}]}, "minItems": 1, "type": "array"}]}, {"type": "null"}]}}}}, {"if": {"properties": {"role": {"enum": ["system", "developer", "function"]}}}, "then": {"properties": {"content": {"oneOf": [{"type": "string"}, {"items": {"additionalProperties": false, "properties": {"text": {"type": "string"}, "type": {"const": "text"}}, "required": ["type", "text"], "type": "object"}, "minItems": 1, "type": "array"}]}}, "required": ["content"]}}], "properties": {"content": {"oneOf": [{"type": "string"}, {"items": {"oneOf": [{"additionalProperties": false, "properties": {"text": {"type": "string"}, "type": {"const": "text"}}, "required": ["type", "text"], "type": "object"}, {"additionalProperties": false, "properties": {"image_url": {"additionalProperties": false, "properties": {"detail": {"enum": ["auto", "low", "high"]}, "url": {"description": "JPEG、PNG、GIF 或 WebP 的 Base64 数据地址。", "minLength": 1, "pattern": "^data:(?:image/jpeg|image/png|image/gif|image/webp);base64,(?=[A-Za-z0-9+/])(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$", "type": "string"}}, "required": ["url"], "type": "object"}, "type": {"const": "image_url"}}, "required": ["type", "image_url"], "type": "object"}, {"additionalProperties": false, "properties": {"file": {"additionalProperties": false, "properties": {"file_data": {"pattern": "^data:application/pdf;base64,", "type": "string"}, "filename": {"type": "string"}}, "required": ["file_data", "filename"], "type": "object"}, "type": {"const": "file"}}, "required": ["type", "file"], "type": "object"}, {"additionalProperties": false, "description": "可引用当前密钥的 file_id。常见文本、文档和电子书会转为正文。PDF 可按线路使用原生附件、页面图片或正文。", "properties": {"file": {"additionalProperties": false, "properties": {"file_id": {"pattern": "^file-[a-f0-9]{32}$", "type": "string"}}, "required": ["file_id"], "type": "object"}, "type": {"const": "file"}}, "required": ["type", "file"], "type": "object"}, {"additionalProperties": false, "properties": {"refusal": {"type": "string"}, "type": {"const": "refusal"}}, "required": ["type", "refusal"], "type": "object"}]}, "minItems": 1, "type": "array"}, {"type": "null"}]}, "function_call": {}, "name": {}, "reasoning": {"description": "Kimi 响应原样回传时可保留，与 reasoning_content 一致。", "type": ["string", "null"]}, "reasoning_content": {"description": "支持的 DeepSeek V4 和 Kimi 型号可在 assistant 消息中原样回传。", "type": ["string", "null"]}, "reasoning_details": {"description": "Kimi 响应原样回传时可保留其中的推理文本副本。", "type": ["array", "null"]}, "refusal": {"description": "assistant 历史拒答文本，转为 assistant 对话文本发送给模型。", "type": ["string", "null"]}, "role": {"enum": ["system", "developer", "user", "assistant", "tool", "function"]}, "tool_call_id": {}, "tool_calls": {}}, "required": ["role"], "type": "object"}, "minItems": 1, "type": "array"}, "metadata": {"description": "客户端的请求元数据。 仅在所用型号支持时填写。", "type": "object"}, "model": {"description": "使用 /models 返回的公开型号。", "maxLength": 200, "minLength": 1, "type": "string"}, "n": {"const": 1, "type": "integer"}, "parallel_tool_calls": {"type": "boolean"}, "prediction": {"additionalProperties": false, "properties": {"content": {"oneOf": [{"type": "string"}, {"items": {"additionalProperties": false, "properties": {"text": {"type": "string"}, "type": {"const": "text"}}, "required": ["type", "text"], "type": "object"}, "minItems": 1, "type": "array"}]}, "type": {"const": "content"}}, "required": ["type", "content"], "type": "object"}, "presence_penalty": {"description": "调节再次提及已出现内容的倾向。 仅在所用型号支持时填写。", "type": "number"}, "prompt_cache_key": {"description": "用于复用提示词缓存的分组标识。 仅在所用型号支持时填写。", "type": "string"}, "prompt_cache_options": {"additionalProperties": false, "properties": {"mode": {"const": "implicit"}}, "required": ["mode"], "type": "object"}, "prompt_cache_retention": {"const": "in_memory", "description": "仅部分分组支持。实际缓存用量计入请求费用。"}, "reasoning": {"description": "按模型设置推理相关选项。 仅在所用型号支持时填写。", "type": "object"}, "reasoning_effort": {"description": "设置推理强度，取值依模型。 仅在所用型号支持时填写。", "type": "string"}, "response_format": {"description": "仅在所选型号支持时使用结构化输出选项。", "type": ["object", "null"]}, "safety_identifier": {"description": "客户端为最终用户分配的稳定标识。 仅在所用型号支持时填写。", "type": "string"}, "seed": {"description": "采样随机种子。 仅在所用型号支持时填写。", "type": "integer"}, "service_tier": {"description": "按模型选择服务档位。 仅在所用型号支持时填写。", "type": "string"}, "stop": {"description": "到这些字符序列时停止生成。 仅在所用型号支持时填写。", "type": ["string", "array"]}, "store": {"type": "boolean"}, "stream": {"default": false, "type": "boolean"}, "stream_options": {"additionalProperties": false, "properties": {"include_obfuscation": {"type": "boolean"}, "include_usage": {"type": "boolean"}}, "type": "object"}, "temperature": {"description": "可选采样参数；是否接受和有效范围取决于当前模型，未设置平台默认。", "type": "number"}, "thinking": {"additionalProperties": false, "description": "适用的 DeepSeek V4 分组接受 type=enabled 或 disabled。思考工具续轮需原样回传 assistant.reasoning_content。", "properties": {"type": {"enum": ["enabled", "disabled"]}}, "required": ["type"], "type": ["object", "null"]}, "tool_choice": {"description": "设置是否使用工具，或指定 tools 中的函数。 仅在所用型号支持时填写。", "type": ["string", "object"]}, "tools": {"description": "声明由客户端执行的 function 工具。", "items": {"oneOf": [{"additionalProperties": false, "properties": {"function": {"type": "object"}, "type": {"const": "function"}}, "required": ["type", "function"], "type": "object"}, {"additionalProperties": false, "properties": {"custom": {"additionalProperties": false, "properties": {"description": {"type": "string"}, "format": {"type": "object"}, "name": {"pattern": "^[A-Za-z0-9_-]{1,64}$", "type": "string"}}, "required": ["name"], "type": "object"}, "type": {"const": "custom"}}, "required": ["type", "custom"], "type": "object"}]}, "type": "array"}, "top_k": {"description": "Moe API 的 Gemini 4 Argon 可限制采样候选数，0 沿用模型默认。 仅在所用型号支持时填写。", "maximum": 2147483647, "minimum": 0, "type": "integer"}, "top_logprobs": {"maximum": 20, "minimum": 0, "type": "integer"}, "top_p": {"description": "按累计概率限制采样范围。 仅在所用型号支持时填写。", "type": "number"}, "user": {"description": "客户端分配的用户标识。 仅在所用型号支持时填写。", "type": "string"}, "verbosity": {"description": "按模型调节回答的详略程度。 仅在所用型号支持时填写。", "type": "string"}, "web_search_options": {"description": "支持联网搜索的 Moe API Gemini 4 Argon 档位可单独传空对象启用默认联网搜索。 仅在所用型号支持时填写。", "type": "object"}}, "required": ["model", "messages"], "then": {"properties": {"stream": {"const": true}}, "required": ["stream"]}, "type": "object"}}}, "required": true}, "responses": {"200": {"content": {"application/json": {"schema": {"properties": {"billing": {"$ref": "#/components/schemas/TextResponseCost"}, "choices": {"items": {"type": "object"}, "type": "array"}, "id": {"type": "string"}, "model": {"type": "string"}, "usage": {"properties": {"completion_tokens": {"minimum": 0, "type": "integer"}, "cost": {"$ref": "#/components/schemas/TextResponseCost"}, "prompt_tokens": {"minimum": 0, "type": "integer"}, "total_tokens": {"minimum": 0, "type": "integer"}}, "type": ["object", "null"]}}, "type": "object"}}, "text/event-stream": {"schema": {"type": "string"}}}, "description": "普通 JSON 或以 data: 事件传送的 SSE；流式应读到 [DONE]，不完整结束不能视为成功。设置 stream_options.include_usage 可请求流式用量字段。", "headers": {"X-Oneapi-Request-Id": {"description": "已取得时提供的请求编号。", "schema": {"type": "string"}}, "X-ZZ-Route": {"description": "本次请求使用的分组编号。", "schema": {"type": "string"}}, "X-Zz-Trace-Id": {"description": "平台追踪编号。", "schema": {"type": "string"}}}}, "400": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "操作失败；优先读取 error.message，部分错误为字符串 error。追踪编号见响应头。"}, "401": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "操作失败；优先读取 error.message，部分错误为字符串 error。追踪编号见响应头。"}, "402": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "操作失败；优先读取 error.message，部分错误为字符串 error。追踪编号见响应头。"}, "403": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "操作失败；优先读取 error.message，部分错误为字符串 error。追踪编号见响应头。"}, "404": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "操作失败；优先读取 error.message，部分错误为字符串 error。追踪编号见响应头。"}, "413": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "操作失败；优先读取 error.message，部分错误为字符串 error。追踪编号见响应头。"}, "429": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "操作失败；优先读取 error.message，部分错误为字符串 error。追踪编号见响应头。"}, "500": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "操作失败；优先读取 error.message，部分错误为字符串 error。追踪编号见响应头。"}, "502": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "操作失败；优先读取 error.message，部分错误为字符串 error。追踪编号见响应头。"}, "503": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "操作失败；优先读取 error.message，部分错误为字符串 error。追踪编号见响应头。"}, "504": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "操作失败；优先读取 error.message，部分错误为字符串 error。追踪编号见响应头。"}}, "summary": "Chat Completions 对话（JSON / SSE）"}}, "/files": {"get": {"operationId": "listProjectFiles", "responses": {"200": {"content": {"application/json": {"schema": {"properties": {"data": {"items": {"$ref": "#/components/schemas/UploadedFile"}, "type": "array"}, "has_more": {"const": false}, "object": {"const": "list"}}, "type": "object"}}}, "description": "文件列表。"}, "401": {"description": "需要有效的项目密钥。"}}, "summary": "查看此密钥上传的文件"}, "post": {"description": "接收任意媒体类型的文件，单文件最大 100M（104,857,600 字节）。文件按字节存储，上传操作不会解析或运行文件。", "operationId": "uploadProjectFile", "parameters": [{"description": "直接发送二进制时的可选文件名。", "in": "header", "name": "X-Filename", "schema": {"type": "string"}}, {"description": "直接发送二进制时的可选用途。", "in": "header", "name": "X-File-Purpose", "schema": {"default": "user_data", "type": "string"}}], "requestBody": {"content": {"application/octet-stream": {"schema": {"format": "binary", "type": "string"}}, "multipart/form-data": {"schema": {"additionalProperties": false, "properties": {"file": {"format": "binary", "type": "string"}, "purpose": {"default": "user_data", "type": "string"}}, "required": ["file"], "type": "object"}}}, "required": true}, "responses": {"200": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/UploadedFile"}}}, "description": "文件元数据。"}, "400": {"description": "表单或文件元数据无效。"}, "401": {"description": "需要有效的项目密钥。"}, "403": {"description": "来源 IP 不符合密钥规则。"}, "413": {"description": "单文件上传最大100M"}, "429": {"description": "文件空间已满，或请求过于频繁。"}}, "summary": "上传项目文件"}}, "/files/{id}": {"delete": {"operationId": "deleteProjectFile", "parameters": [{"in": "path", "name": "id", "required": true, "schema": {"pattern": "^file-[a-f0-9]{32}$", "type": "string"}}], "responses": {"200": {"description": "文件已删除。"}, "401": {"description": "需要有效的项目密钥。"}, "404": {"description": "此密钥下没有该文件。"}}, "summary": "删除文件"}, "get": {"operationId": "getProjectFile", "parameters": [{"in": "path", "name": "id", "required": true, "schema": {"pattern": "^file-[a-f0-9]{32}$", "type": "string"}}], "responses": {"200": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/UploadedFile"}}}, "description": "文件元数据。"}, "401": {"description": "需要有效的项目密钥。"}, "404": {"description": "此密钥下没有该文件。"}}, "summary": "读取文件元数据"}}, "/files/{id}/content": {"get": {"operationId": "downloadProjectFile", "parameters": [{"in": "path", "name": "id", "required": true, "schema": {"pattern": "^file-[a-f0-9]{32}$", "type": "string"}}], "responses": {"200": {"content": {"application/octet-stream": {"schema": {"format": "binary", "type": "string"}}}, "description": "以附件形式下载原始内容。"}, "401": {"description": "需要有效的项目密钥。"}, "404": {"description": "此密钥下没有该文件。"}}, "summary": "下载文件的原始字节"}}, "/images/generations": {"post": {"description": "此入口自动选择任务类型，无需capability；只填写model及型号支持的业务参数。返回异步任务JSON。新建图片生成、视频生成或视频超分任务需要账户可用余额至少 1.00 USD，余额不足返回 402。现有任务仍可查询和下载。", "operationId": "createImageTask", "parameters": [{"description": "建议UUID。同一用户、同一Key、相同请求重用此值返回原任务；相同值用于不同请求返回409。新任务用新值。", "in": "header", "name": "Idempotency-Key", "required": true, "schema": {"maxLength": 128, "minLength": 8, "pattern": "^[A-Za-z0-9._:\\-]{8,128}$", "type": "string"}}], "requestBody": {"content": {"application/json": {"schema": {"additionalProperties": false, "description": "Midjourney 使用专用入口。", "properties": {"aspect_ratio": {"description": "仅已开放此字段的型号接受；不与size别名同时使用。", "type": "string"}, "model": {"description": "GET /models返回的已开放媒体型号。", "maxLength": 200, "minLength": 1, "not": {"const": "midjourney"}, "type": "string"}, "output_format": {"enum": ["png", "jpeg", "webp"]}, "prompt": {"maxLength": 16000, "minLength": 1, "type": "string"}, "quality": {"description": "仅在当前型号明确开放且价格已核实时使用。", "enum": ["auto", "low", "medium", "high", "standard", "hd", "xhigh", "max"]}, "response_format": {"description": "这是输入选项；Auralink始终返回异步任务JSON。", "enum": ["url", "b64_json"]}, "size": {"description": "输出画幅或像素尺寸。按照型号文档和所选报价的字段组合填写。", "type": "string"}}, "required": ["model", "prompt"], "type": "object"}}}, "required": true}, "responses": {"200": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/MediaTask"}}}, "description": "任务已接收或返回同一幂等请求的原任务。这里只返回任务JSON，尚不代表生成或结算完成。", "headers": {"Idempotency-Key": {"schema": {"type": "string"}}, "X-Zz-Trace-Id": {"schema": {"type": "string"}}}}, "400": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "401": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "402": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "新建图片生成、视频生成或视频超分任务需要账户可用余额至少 1.00 USD，余额不足返回 402。现有任务仍可查询和下载。"}, "403": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "409": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "413": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "429": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "500": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "502": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "503": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}}, "summary": "创建图片任务", "tags": ["异步媒体任务"]}}, "/media/generations": {"post": {"description": "JSON 最多 131,072 字节。字段直接放在 JSON 顶层。创建后使用同一把密钥查询任务。新建图片生成、视频生成或视频超分任务需要账户可用余额至少 1.00 USD，余额不足返回 402。现有任务仍可查询和下载。", "operationId": "createMediaGeneration", "parameters": [{"description": "建议UUID。同一用户、同一Key、相同请求重用此值返回原任务；相同值用于不同请求返回409。新任务用新值。", "in": "header", "name": "Idempotency-Key", "required": true, "schema": {"maxLength": 128, "minLength": 8, "pattern": "^[A-Za-z0-9._:\\-]{8,128}$", "type": "string"}}], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/MediaGeneration"}}}, "required": true}, "responses": {"200": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/MediaTask"}}}, "description": "任务已接收或返回同一幂等请求的原任务。这里只返回任务JSON，尚不代表生成或结算完成。", "headers": {"Idempotency-Key": {"schema": {"type": "string"}}, "X-Zz-Trace-Id": {"schema": {"type": "string"}}}}, "400": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "401": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "402": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "新建图片生成、视频生成或视频超分任务需要账户可用余额至少 1.00 USD，余额不足返回 402。现有任务仍可查询和下载。"}, "403": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "409": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "413": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "429": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "500": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "502": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "503": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}}, "summary": "创建异步媒体任务", "tags": ["异步媒体任务"]}}, "/media/tasks/{id}": {"get": {"description": "提交与查询必须使用同一把平台Key。同一账号的另一把Key也不能查询此任务。建议每5秒查询，直到completed或failed；任务结束后仍需核对billing.status。", "operationId": "getMediaTask", "parameters": [{"in": "path", "name": "id", "required": true, "schema": {"pattern": "^media_[a-f0-9]{32}$", "type": "string"}}], "responses": {"200": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/MediaTask"}}}, "description": "进度、可用结果地址、可靠用量及AuralinkUSD费用观察。"}, "400": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "401": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "403": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "404": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "429": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "503": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}}, "summary": "查询当前Key创建的任务", "tags": ["异步媒体任务"]}}, "/media/tasks/{id}/content": {"get": {"description": "使用提交任务的同一Key。也可使用完成响应给出的短效签名URL，无需把Key拼进URL。过期后用同一Key重新查询任务获取地址。浏览器控制台使用当前登录会话的受保护结果入口。多文件分别读取artifacts中的地址。", "operationId": "getMediaContent", "parameters": [{"in": "path", "name": "id", "required": true, "schema": {"pattern": "^media_[a-f0-9]{32}$", "type": "string"}}, {"description": "选择任务返回的文件序号；使用签名URL时不能修改此值。", "in": "query", "name": "index", "required": false, "schema": {"default": 0, "maximum": 7, "minimum": 0, "type": "integer"}}, {"description": "可选单段字节范围。", "in": "header", "name": "Range", "required": false, "schema": {"type": "string"}}], "responses": {"200": {"content": {"application/octet-stream": {"schema": {"format": "binary", "type": "string"}}}, "description": "受保护的结果字节流。"}, "206": {"description": "单段结果字节流。"}, "400": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "401": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "403": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "404": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "413": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "416": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "429": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "503": {"description": "文件暂时无法完整读取。按 Retry-After 指示等待后，用原任务重新下载。", "headers": {"Retry-After": {"schema": {"minimum": 1, "type": "integer"}}}}}, "security": [{"platformKey": []}, {"mediaResultExpiry": [], "mediaResultSignature": []}], "summary": "安全读取已完成任务的结果", "tags": ["异步媒体任务"]}}, "/messages": {"post": {"description": "从开发文档的 Anthropic 消息页选择已开通型号。可选采样、思考及工具参数按所选型号能力使用。与 OpenAI 接口共用项目密钥、余额和账单。Claude Sonnet 5.5 的 Messages 请求请省略 temperature、top_p 和 top_k。", "operationId": "createMessage", "parameters": [{"in": "header", "name": "anthropic-version", "required": false, "schema": {"const": "2023-06-01"}}, {"description": "可用逗号列出功能标记，也可发送多行同名请求头。网关合并去重后转发，具体功能由所选线路决定。示例：prompt-caching-2024-07-31、interleaved-thinking-2025-05-14、effort-2025-11-24、context-management-2025-06-27。网关识别 Claude Code 附带的兼容标记（claude-code-20250219、prompt-caching-scope-2026-01-05）。claude-opus-5-5 及 Claude 分组的 claude-sonnet-5-5 可附带旧版 1M 上下文标记 context-1m-2025-08-07，按实际分组的限制和价格处理。", "in": "header", "name": "anthropic-beta", "required": false, "schema": {"type": "string"}}], "requestBody": {"content": {"application/json": {"schema": {"additionalProperties": false, "description": "文本接口 JSON 请求体最多 100 MiB，包含 Base64 数据、消息历史和工具定义。", "not": {"properties": {"thinking": {"properties": {"type": {"const": "enabled"}}}, "tool_choice": {"properties": {"type": {"enum": ["any", "tool"]}}}}, "required": ["thinking", "tool_choice"]}, "properties": {"cache_control": {"additionalProperties": false, "description": "部分分组支持默认或 5 分钟缓存，按实际用量计费。", "properties": {"scope": {"description": "可选缓存范围，取值由所选线路决定。", "type": ["string", "null"]}, "ttl": {"const": "5m"}, "type": {"const": "ephemeral"}}, "required": ["type"], "type": "object"}, "context_management": {"const": {"edits": [{"keep": "all", "type": "clear_thinking_20251015"}]}, "description": "保留所有思考记录。须同时发送 anthropic-beta: context-management-2025-06-27。"}, "max_tokens": {"description": "实际可用上限取决于所选型号。", "minimum": 1, "type": "integer"}, "messages": {"description": "支持会话中 system 消息的线路可在 user 后、assistant 前或会话末尾插入 system 文本。支持图片输入的型号可在 user 消息中添加 image 块。支持 PDF 的分组可在 user 消息中加入 document 块，使用 Base64 编码的 application/pdf。可引用当前密钥的 file_id。常见文本、文档和电子书会转为正文。PDF 可按线路使用原生附件、页面图片或正文。工具结果的 tool_result.content 数组也支持文本、图片和 PDF。附件规格按所选线路处理。", "items": {"oneOf": [{"additionalProperties": false, "properties": {"content": {"oneOf": [{"type": "string"}, {"items": {"oneOf": [{"additionalProperties": false, "properties": {"cache_control": {"additionalProperties": false, "properties": {"scope": {"description": "可选缓存范围，取值由所选线路决定。", "type": ["string", "null"]}, "ttl": {"const": "5m"}, "type": {"const": "ephemeral"}}, "required": ["type"], "type": "object"}, "text": {"type": "string"}, "type": {"const": "text"}}, "required": ["type", "text"], "type": "object"}, {"additionalProperties": false, "properties": {"cache_control": {"additionalProperties": false, "properties": {"scope": {"description": "可选缓存范围，取值由所选线路决定。", "type": ["string", "null"]}, "ttl": {"const": "5m"}, "type": {"const": "ephemeral"}}, "required": ["type"], "type": "object"}, "source": {"oneOf": [{"additionalProperties": false, "properties": {"data": {"minLength": 1, "pattern": "^(?=[A-Za-z0-9+/])(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$", "type": "string"}, "media_type": {"enum": ["image/jpeg", "image/png", "image/gif", "image/webp"]}, "type": {"const": "base64"}}, "required": ["type", "media_type", "data"], "type": "object"}, {"additionalProperties": false, "properties": {"file_id": {"pattern": "^file-[a-f0-9]{32}$", "type": "string"}, "type": {"const": "file"}}, "required": ["type", "file_id"], "type": "object"}]}, "type": {"const": "image"}}, "required": ["type", "source"], "type": "object"}, {"additionalProperties": false, "properties": {"cache_control": {"additionalProperties": false, "properties": {"scope": {"description": "可选缓存范围，取值由所选线路决定。", "type": ["string", "null"]}, "ttl": {"const": "5m"}, "type": {"const": "ephemeral"}}, "required": ["type"], "type": "object"}, "source": {"oneOf": [{"additionalProperties": false, "properties": {"data": {"minLength": 1, "pattern": "^(?=[A-Za-z0-9+/])(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$", "type": "string"}, "media_type": {"const": "application/pdf"}, "type": {"const": "base64"}}, "required": ["type", "media_type", "data"], "type": "object"}, {"additionalProperties": false, "properties": {"file_id": {"pattern": "^file-[a-f0-9]{32}$", "type": "string"}, "type": {"const": "file"}}, "required": ["type", "file_id"], "type": "object"}, {"additionalProperties": false, "properties": {"data": {"type": "string"}, "media_type": {"const": "text/plain"}, "type": {"const": "text"}}, "required": ["type", "media_type", "data"], "type": "object"}]}, "title": {"type": "string"}, "type": {"const": "document"}}, "required": ["type", "source"], "type": "object"}, {"additionalProperties": false, "properties": {"cache_control": {"additionalProperties": false, "properties": {"scope": {"description": "可选缓存范围，取值由所选线路决定。", "type": ["string", "null"]}, "ttl": {"const": "5m"}, "type": {"const": "ephemeral"}}, "required": ["type"], "type": "object"}, "content": {"oneOf": [{"type": "string"}, {"items": {"oneOf": [{"additionalProperties": false, "properties": {"cache_control": {"additionalProperties": false, "properties": {"scope": {"description": "可选缓存范围，取值由所选线路决定。", "type": ["string", "null"]}, "ttl": {"const": "5m"}, "type": {"const": "ephemeral"}}, "required": ["type"], "type": "object"}, "text": {"type": "string"}, "type": {"const": "text"}}, "required": ["type", "text"], "type": "object"}, {"additionalProperties": false, "properties": {"cache_control": {"additionalProperties": false, "properties": {"scope": {"description": "可选缓存范围，取值由所选线路决定。", "type": ["string", "null"]}, "ttl": {"const": "5m"}, "type": {"const": "ephemeral"}}, "required": ["type"], "type": "object"}, "source": {"oneOf": [{"additionalProperties": false, "properties": {"data": {"minLength": 1, "pattern": "^(?=[A-Za-z0-9+/])(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$", "type": "string"}, "media_type": {"enum": ["image/jpeg", "image/png", "image/gif", "image/webp"]}, "type": {"const": "base64"}}, "required": ["type", "media_type", "data"], "type": "object"}, {"additionalProperties": false, "properties": {"file_id": {"pattern": "^file-[a-f0-9]{32}$", "type": "string"}, "type": {"const": "file"}}, "required": ["type", "file_id"], "type": "object"}]}, "type": {"const": "image"}}, "required": ["type", "source"], "type": "object"}, {"additionalProperties": false, "properties": {"cache_control": {"additionalProperties": false, "properties": {"scope": {"description": "可选缓存范围，取值由所选线路决定。", "type": ["string", "null"]}, "ttl": {"const": "5m"}, "type": {"const": "ephemeral"}}, "required": ["type"], "type": "object"}, "source": {"oneOf": [{"additionalProperties": false, "properties": {"data": {"minLength": 1, "pattern": "^(?=[A-Za-z0-9+/])(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$", "type": "string"}, "media_type": {"const": "application/pdf"}, "type": {"const": "base64"}}, "required": ["type", "media_type", "data"], "type": "object"}, {"additionalProperties": false, "properties": {"file_id": {"pattern": "^file-[a-f0-9]{32}$", "type": "string"}, "type": {"const": "file"}}, "required": ["type", "file_id"], "type": "object"}, {"additionalProperties": false, "properties": {"data": {"type": "string"}, "media_type": {"const": "text/plain"}, "type": {"const": "text"}}, "required": ["type", "media_type", "data"], "type": "object"}]}, "title": {"type": "string"}, "type": {"const": "document"}}, "required": ["type", "source"], "type": "object"}]}, "type": "array"}]}, "is_error": {"type": "boolean"}, "tool_use_id": {"maxLength": 200, "minLength": 1, "type": "string"}, "type": {"const": "tool_result"}}, "required": ["type", "tool_use_id"], "type": "object"}]}, "minItems": 1, "type": "array"}]}, "role": {"const": "user"}}, "required": ["role", "content"], "type": "object"}, {"additionalProperties": false, "properties": {"content": {"oneOf": [{"type": "string"}, {"items": {"oneOf": [{"additionalProperties": false, "properties": {"cache_control": {"additionalProperties": false, "properties": {"scope": {"description": "可选缓存范围，取值由所选线路决定。", "type": ["string", "null"]}, "ttl": {"const": "5m"}, "type": {"const": "ephemeral"}}, "required": ["type"], "type": "object"}, "text": {"type": "string"}, "type": {"const": "text"}}, "required": ["type", "text"], "type": "object"}, {"additionalProperties": false, "properties": {"cache_control": {"additionalProperties": false, "properties": {"scope": {"description": "可选缓存范围，取值由所选线路决定。", "type": ["string", "null"]}, "ttl": {"const": "5m"}, "type": {"const": "ephemeral"}}, "required": ["type"], "type": "object"}, "caller": {"additionalProperties": false, "properties": {"type": {"const": "direct"}}, "required": ["type"], "type": "object"}, "id": {"maxLength": 200, "minLength": 1, "type": "string"}, "input": {"type": "object"}, "name": {"pattern": "[A-Za-z0-9_-]{1,64}", "type": "string"}, "type": {"const": "tool_use"}}, "required": ["type", "id", "name", "input"], "type": "object"}, {"additionalProperties": false, "properties": {"signature": {"minLength": 1, "type": "string"}, "thinking": {"type": "string"}, "type": {"const": "thinking"}}, "required": ["type", "thinking", "signature"], "type": "object"}, {"additionalProperties": false, "properties": {"data": {"type": "string"}, "type": {"const": "redacted_thinking"}}, "required": ["type", "data"], "type": "object"}]}, "minItems": 1, "type": "array"}]}, "role": {"const": "assistant"}}, "required": ["role", "content"], "type": "object"}, {"additionalProperties": false, "properties": {"content": {"oneOf": [{"type": "string"}, {"items": {"additionalProperties": false, "properties": {"cache_control": {"additionalProperties": false, "properties": {"scope": {"description": "可选缓存范围，取值由所选线路决定。", "type": ["string", "null"]}, "ttl": {"const": "5m"}, "type": {"const": "ephemeral"}}, "required": ["type"], "type": "object"}, "text": {"type": "string"}, "type": {"const": "text"}}, "required": ["type", "text"], "type": "object"}, "minItems": 1, "type": "array"}]}, "role": {"const": "system"}}, "required": ["role", "content"], "type": "object"}]}, "minItems": 1, "type": "array"}, "metadata": {"additionalProperties": false, "properties": {"user_id": {"maxLength": 512, "type": ["string", "null"]}}, "type": "object"}, "model": {"maxLength": 200, "minLength": 1, "type": "string"}, "output_config": {"properties": {"effort": {"enum": ["low", "medium", "high", "xhigh", "max", null]}, "format": {"oneOf": [{"additionalProperties": false, "properties": {"schema": {"type": "object"}, "type": {"const": "json_schema"}}, "required": ["type", "schema"], "type": "object"}, {"type": "null"}]}}, "type": "object"}, "output_format": {"deprecated": true, "description": "旧版结构化输出字段，使用时须向支持的线路发送 structured-outputs-2025-11-13 beta。", "oneOf": [{"additionalProperties": false, "properties": {"schema": {"type": "object"}, "type": {"const": "json_schema"}}, "required": ["type", "schema"], "type": "object"}, {"type": "null"}]}, "stop_sequences": {"items": {"maxLength": 200, "minLength": 1, "type": "string"}, "type": "array"}, "stream": {"default": false, "type": "boolean"}, "system": {"oneOf": [{"type": "string"}, {"items": {"additionalProperties": false, "properties": {"cache_control": {"additionalProperties": false, "properties": {"scope": {"description": "可选缓存范围，取值由所选线路决定。", "type": ["string", "null"]}, "ttl": {"const": "5m"}, "type": {"const": "ephemeral"}}, "required": ["type"], "type": "object"}, "text": {"type": "string"}, "type": {"const": "text"}}, "required": ["type", "text"], "type": "object"}, "type": "array"}]}, "temperature": {"maximum": 1, "minimum": 0, "type": "number"}, "thinking": {"description": "仅在所选型号支持时填写。enabled 模式的 budget_tokens 须小于 max_tokens，tool_choice 仅支持 auto 或 none。", "oneOf": [{"additionalProperties": false, "properties": {"budget_tokens": {"minimum": 1024, "type": "integer"}, "display": {"enum": ["summarized", "omitted", null]}, "type": {"const": "enabled"}}, "required": ["type", "budget_tokens"], "type": "object"}, {"additionalProperties": false, "properties": {"display": {"enum": ["summarized", "omitted", null]}, "type": {"enum": ["adaptive", "disabled"]}}, "required": ["type"], "type": "object"}]}, "tool_choice": {"description": "type 为 tool 时，name 须对应 tools 中已声明的函数。", "oneOf": [{"additionalProperties": false, "properties": {"disable_parallel_tool_use": {"type": "boolean"}, "type": {"enum": ["auto", "any", "none"]}}, "required": ["type"], "type": "object"}, {"additionalProperties": false, "properties": {"disable_parallel_tool_use": {"type": "boolean"}, "name": {"pattern": "[A-Za-z0-9_-]{1,64}", "type": "string"}, "type": {"const": "tool"}}, "required": ["type", "name"], "type": "object"}]}, "tools": {"description": "支持客户端函数。Opus 5.5 的 Claude 分组也支持原生网页搜索和代码执行，按实际 Token 计费。", "items": {"oneOf": [{"additionalProperties": false, "properties": {"allowed_callers": {"const": ["direct"], "type": "array"}, "cache_control": {"additionalProperties": false, "properties": {"scope": {"description": "可选缓存范围，取值由所选线路决定。", "type": ["string", "null"]}, "ttl": {"const": "5m"}, "type": {"const": "ephemeral"}}, "required": ["type"], "type": "object"}, "description": {"type": "string"}, "eager_input_streaming": {"description": "指定是否启用细粒度工具参数流。null 使用线路默认行为。", "type": ["boolean", "null"]}, "input_examples": {"oneOf": [{"items": {"type": "object"}, "type": "array"}, {"type": "null"}]}, "input_schema": {"properties": {"type": {"const": "object"}}, "required": ["type"], "type": "object"}, "name": {"pattern": "[A-Za-z0-9_-]{1,64}", "type": "string"}, "strict": {"type": ["boolean", "null"]}, "type": {"const": "custom"}}, "required": ["name", "input_schema"], "type": "object"}, {"additionalProperties": false, "properties": {"allowed_callers": {"items": {"const": "direct"}, "type": "array"}, "allowed_domains": {"items": {"type": "string"}, "type": "array"}, "blocked_domains": {"items": {"type": "string"}, "type": "array"}, "cache_control": {"additionalProperties": false, "properties": {"scope": {"description": "可选缓存范围，取值由所选线路决定。", "type": ["string", "null"]}, "ttl": {"const": "5m"}, "type": {"const": "ephemeral"}}, "required": ["type"], "type": "object"}, "max_uses": {"minimum": 1, "type": "integer"}, "name": {"const": "web_search"}, "type": {"const": "web_search_20250305"}, "user_location": {"additionalProperties": false, "properties": {"city": {"type": "string"}, "country": {"type": "string"}, "region": {"type": "string"}, "timezone": {"type": "string"}, "type": {"const": "approximate"}}, "required": ["type"], "type": "object"}}, "required": ["type", "name"], "type": "object"}, {"additionalProperties": false, "properties": {"cache_control": {"additionalProperties": false, "properties": {"scope": {"description": "可选缓存范围，取值由所选线路决定。", "type": ["string", "null"]}, "ttl": {"const": "5m"}, "type": {"const": "ephemeral"}}, "required": ["type"], "type": "object"}, "name": {"const": "code_execution"}, "type": {"enum": ["code_execution_20250522", "code_execution_20250825"]}}, "required": ["type", "name"], "type": "object"}]}, "type": "array"}, "top_k": {"maximum": 1000000, "minimum": 0, "type": "integer"}, "top_p": {"maximum": 1, "minimum": 0, "type": "number"}}, "required": ["model", "messages", "max_tokens"], "type": "object"}}}, "required": true}, "responses": {"200": {"content": {"application/json": {"schema": {"properties": {"billing": {"$ref": "#/components/schemas/TextResponseCost"}, "content": {"items": {"type": "object"}, "type": "array"}, "id": {"type": "string"}, "model": {"type": "string"}, "stop_reason": {"type": ["string", "null"]}, "usage": {"properties": {"cache_creation_input_tokens": {"minimum": 0, "type": "integer"}, "cache_read_input_tokens": {"minimum": 0, "type": "integer"}, "cost": {"$ref": "#/components/schemas/TextResponseCost"}, "input_tokens": {"minimum": 0, "type": "integer"}, "output_tokens": {"minimum": 0, "type": "integer"}}, "type": ["object", "null"]}}, "type": "object"}}, "text/event-stream": {"schema": {"type": "string"}}}, "description": "JSON 读取 content；SSE 依次读取 message_start、content_block_*、message_delta、message_stop。出现 error 或缺少正常结束事件视为未完整结束。", "headers": {"X-Oneapi-Request-Id": {"description": "已取得时提供的请求编号。", "schema": {"type": "string"}}, "X-ZZ-Route": {"description": "本次请求使用的分组编号。", "schema": {"type": "string"}}, "X-Zz-Trace-Id": {"description": "平台追踪编号。", "schema": {"type": "string"}}}}, "400": {"description": "Anthropic error 对象；保留请求追踪编号后检查参数、权限或账单。"}, "401": {"description": "Anthropic error 对象；保留请求追踪编号后检查参数、权限或账单。"}, "402": {"description": "Anthropic error 对象；保留请求追踪编号后检查参数、权限或账单。"}, "403": {"description": "Anthropic error 对象；保留请求追踪编号后检查参数、权限或账单。"}, "404": {"description": "Anthropic error 对象；保留请求追踪编号后检查参数、权限或账单。"}, "413": {"description": "Anthropic error 对象；保留请求追踪编号后检查参数、权限或账单。"}, "429": {"description": "Anthropic error 对象；保留请求追踪编号后检查参数、权限或账单。"}, "500": {"description": "Anthropic error 对象；保留请求追踪编号后检查参数、权限或账单。"}, "502": {"description": "Anthropic error 对象；保留请求追踪编号后检查参数、权限或账单。"}, "503": {"description": "Anthropic error 对象；保留请求追踪编号后检查参数、权限或账单。"}, "504": {"description": "Anthropic error 对象；保留请求追踪编号后检查参数、权限或账单。"}}, "security": [{"platformKey": []}, {"anthropicKey": []}], "summary": "Anthropic Messages 对话（JSON / SSE）"}}, "/models": {"get": {"operationId": "listRouteModels", "responses": {"200": {"content": {"application/json": {"schema": {"properties": {"data": {"items": {"properties": {"capabilities": {"description": "已开放的模型类型。", "items": {"type": "string"}, "readOnly": true, "type": "array"}, "id": {"type": "string"}, "image_input_protocols": {"description": "当前密钥可发送图片的对话协议。", "items": {"enum": ["openai_chat", "anthropic_messages"]}, "readOnly": true, "type": "array", "uniqueItems": true}, "input_modalities": {"description": "文本型号在当前密钥可用分组中支持的输入类型。", "items": {"enum": ["text", "image", "pdf"]}, "readOnly": true, "type": "array", "uniqueItems": true}, "object": {"type": "string"}, "pdf_input_protocols": {"description": "当前密钥可发送内联 PDF 的对话协议。", "items": {"enum": ["anthropic_messages", "openai_chat", "openai_responses", "gemini_generate_content"]}, "readOnly": true, "type": "array", "uniqueItems": true}, "request_protocols": {"description": "当前密钥至少有一条可供相应格式调用的文本线路。", "items": {"enum": ["openai_chat", "anthropic_messages", "openai_responses", "gemini_generate_content"]}, "readOnly": true, "type": "array", "uniqueItems": true}, "route_group": {"description": "发现时的参考分组，实际调用重新选路。", "type": "string"}}, "type": "object"}, "type": "array"}, "object": {"type": "string"}}, "type": "object"}}}, "description": "按自动选价或手动优先规则去重，仅返回当前密钥已授权且有可用报价的模型。"}, "401": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "操作失败；优先读取 error.message，部分错误为字符串 error。追踪编号见响应头。"}}, "summary": "列出当前密钥授权范围内可调用模型"}}, "/responses": {"post": {"description": "文本接口 JSON 请求体最多 100 MiB，包含 Base64 数据、消息历史和工具定义。", "operationId": "createCompatibleResponse", "requestBody": {"content": {"application/json": {"schema": {"properties": {"client_metadata": {"additionalProperties": {"type": "string"}, "description": "客户端诊断字段，网关忽略。", "type": ["object", "null"]}, "include": {"description": "请求上游返回可续传的思考信息，是否返回取决于所选线路。", "items": {"const": "reasoning.encrypted_content"}, "type": "array"}, "input": {"description": "user 内容块可使用 {\"type\":\"input_file\",\"file_id\":\"file-…\"}。可引用当前密钥的 file_id。常见文本、文档和电子书会转为正文。PDF 可按线路使用原生附件、页面图片或正文。", "oneOf": [{"type": "string"}, {"items": {"type": "object"}, "type": "array"}]}, "instructions": {"type": "string"}, "max_output_tokens": {"minimum": 1, "type": "integer"}, "model": {"type": "string"}, "prompt_cache_key": {"maxLength": 64, "minLength": 1, "type": "string"}, "prompt_cache_options": {"additionalProperties": false, "properties": {"mode": {"const": "implicit"}}, "type": "object"}, "reasoning": {"properties": {"effort": {"enum": ["none", "minimal", "low", "medium", "high", "xhigh", "max", null], "type": ["string", "null"]}, "summary": {"description": "请求返回线路公开的思考内容。省略或 null 时不返回思考文字。", "enum": ["auto", "concise", "detailed", null], "type": ["string", "null"]}}, "type": ["object", "null"]}, "store": {"const": false}, "stream": {"type": "boolean"}}, "required": ["model", "input"], "type": "object"}}}, "required": true}, "responses": {"200": {"description": "Responses JSON 或 response.* SSE，沿用实际文本用量结算。"}, "400": {"description": "请求格式无效，或选用的扩展功能不在兼容范围。"}}, "summary": "Responses 无状态文本兼容入口"}}, "/usage/token": {"get": {"description": "使用 Authorization Bearer 项目密钥进行只读查询。有效额度受账户钱包和密钥上限约束。", "operationId": "getProjectKeyQuota", "responses": {"200": {"content": {"application/json": {"schema": {"additionalProperties": false, "properties": {"code": {"const": true}, "data": {"additionalProperties": false, "properties": {"available_usd": {"description": "当前密钥可使用的 USD，十进制字符串。", "pattern": "^-?[0-9]+(?:\\.[0-9]+)?$", "type": "string"}, "balance": {"description": "当前密钥可使用的余额（USD），数值型，便于面板直接取值。", "type": "number"}, "currency": {"const": "USD"}, "key_quota": {"additionalProperties": false, "description": "当前密钥的独立余额。未设置上限时两项均为 null。", "properties": {"available_usd": {"type": ["string", "null"]}, "total_available": {"format": "int64", "type": ["integer", "null"]}}, "required": ["total_available", "available_usd"], "type": "object"}, "object": {"const": "token_usage"}, "quota_per_unit": {"description": "1 USD 对应的原生配额单位数。", "minimum": 1, "type": "integer"}, "total_available": {"description": "当前密钥可使用的原生额度。", "format": "int64", "minimum": 0, "type": "integer"}, "unlimited_quota": {"description": "该密钥是否未设置独立额度上限。", "type": "boolean"}, "user_quota": {"additionalProperties": false, "description": "当前密钥所属账户的钱包余额。", "properties": {"available_usd": {"pattern": "^-?[0-9]+(?:\\.[0-9]+)?$", "type": "string"}, "total_available": {"format": "int64", "type": "integer"}}, "required": ["total_available", "available_usd"], "type": "object"}}, "required": ["object", "currency", "quota_per_unit", "total_available", "available_usd", "balance", "unlimited_quota", "user_quota", "key_quota"], "type": "object"}, "message": {"const": "ok"}}, "required": ["code", "message", "data"], "type": "object"}}}, "description": "当前额度。"}, "401": {"description": "缺少有效且启用的项目密钥。"}, "403": {"description": "来源 IP 不在此密钥的白名单中。"}, "429": {"description": "请求频率超限。"}, "503": {"description": "暂时无法取得额度。"}}, "summary": "查询当前项目密钥可用额度"}}, "/v1beta/models": {"get": {"operationId": "listGeminiModels", "responses": {"200": {"description": "Gemini models 数组，包含 name、displayName 和 supportedGenerationMethods。"}, "401": {"description": "需要有效的项目密钥。"}}, "security": [{"geminiKey": []}, {"platformKey": []}, {"geminiQueryKey": []}], "servers": [{"url": "https://auralink.top"}], "summary": "读取当前密钥可用的 Gemini 文本型号"}}, "/v1beta/models/{model}": {"get": {"operationId": "getGeminiModel", "parameters": [{"in": "path", "name": "model", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Gemini 型号信息。"}, "404": {"description": "此密钥下没有该型号。"}}, "security": [{"geminiKey": []}, {"platformKey": []}, {"geminiQueryKey": []}], "servers": [{"url": "https://auralink.top"}], "summary": "读取当前密钥可用的指定 Gemini 文本型号"}}, "/v1beta/models/{model}:generateContent": {"post": {"description": "文本接口 JSON 请求体最多 100 MiB，包含 Base64 数据、消息历史和工具定义。", "operationId": "generateContent", "parameters": [{"in": "path", "name": "model", "required": true, "schema": {"type": "string"}}], "requestBody": {"content": {"application/json": {"schema": {"properties": {"contents": {"items": {"type": "object"}, "type": "array"}, "generationConfig": {"properties": {"thinkingConfig": {"properties": {"includeThoughts": {"description": "开启时显示该次请求中上游返回的可见思考摘要（如果有）。", "type": "boolean"}, "thinkingBudget": {"description": "Gemini 3.8 Flash 和 Gemini 4 Argon 的指定线路支持。与 thinkingLevel 二选一。", "type": "integer"}, "thinkingLevel": {"description": "可用级别见型号参数表，可使用 LOW 或 low 等对应写法。", "type": "string"}}, "type": "object"}}, "type": "object"}, "safetySettings": {"description": "空数组沿用线路默认安全设置。", "maxItems": 0, "type": "array"}, "systemInstruction": {"type": "object"}}, "required": ["contents"], "type": "object"}}}, "required": true}, "responses": {"200": {"description": "Gemini candidates、usageMetadata，流式使用 SSE。"}, "400": {"description": "请求格式无效，或选用的扩展功能不在兼容范围。"}}, "security": [{"geminiKey": []}, {"platformKey": []}, {"geminiQueryKey": []}], "servers": [{"url": "https://auralink.top"}], "summary": "Gemini 无状态文本兼容入口"}}, "/v1beta/models/{model}:streamGenerateContent": {"post": {"description": "文本接口 JSON 请求体最多 100 MiB，包含 Base64 数据、消息历史和工具定义。", "operationId": "streamGenerateContent", "parameters": [{"in": "path", "name": "model", "required": true, "schema": {"type": "string"}}], "requestBody": {"content": {"application/json": {"schema": {"properties": {"contents": {"items": {"type": "object"}, "type": "array"}, "generationConfig": {"properties": {"thinkingConfig": {"properties": {"includeThoughts": {"description": "开启时显示该次请求中上游返回的可见思考摘要（如果有）。", "type": "boolean"}, "thinkingBudget": {"description": "Gemini 3.8 Flash 和 Gemini 4 Argon 的指定线路支持。与 thinkingLevel 二选一。", "type": "integer"}, "thinkingLevel": {"description": "可用级别见型号参数表，可使用 LOW 或 low 等对应写法。", "type": "string"}}, "type": "object"}}, "type": "object"}, "safetySettings": {"description": "空数组沿用线路默认安全设置。", "maxItems": 0, "type": "array"}, "systemInstruction": {"type": "object"}}, "required": ["contents"], "type": "object"}}}, "required": true}, "responses": {"200": {"description": "Gemini candidates、usageMetadata，流式使用 SSE。"}, "400": {"description": "请求格式无效，或选用的扩展功能不在兼容范围。"}}, "security": [{"geminiKey": []}, {"platformKey": []}, {"geminiQueryKey": []}], "servers": [{"url": "https://auralink.top"}], "summary": "Gemini 无状态文本兼容入口"}}, "/videos": {"post": {"description": "此入口自动选择任务类型，无需capability；只填写model及型号支持的业务参数。返回异步任务JSON。通过 /model-parameters.json 查阅每个型号和分组开放的时长、输出分辨率与参考素材字段。可使用视频别名的型号和字段以逐型号参数为准。建议只发送标准字段。同时发送时，标准字段和别名的类型与值须完全相同，冲突返回 400。新建图片生成、视频生成或视频超分任务需要账户可用余额至少 1.00 USD，余额不足返回 402。现有任务仍可查询和下载。", "operationId": "createVideoTask", "parameters": [{"description": "建议UUID。同一用户、同一Key、相同请求重用此值返回原任务；相同值用于不同请求返回409。新任务用新值。", "in": "header", "name": "Idempotency-Key", "required": true, "schema": {"maxLength": 128, "minLength": 8, "pattern": "^[A-Za-z0-9._:\\-]{8,128}$", "type": "string"}}], "requestBody": {"content": {"application/json": {"schema": {"additionalProperties": false, "anyOf": [{"required": ["prompt"]}, {"required": ["image_url", "video_url"]}, {"required": ["source_task_id"]}, {"required": ["video_urls"]}, {"required": ["reference_videos"]}, {"required": ["referenceVideos"]}, {"required": ["videoUrls"]}], "description": "通过 /model-parameters.json 查阅每个型号和分组开放的时长、输出分辨率与参考素材字段。可使用视频别名的型号和字段以逐型号参数为准。建议只发送标准字段。同时发送时，标准字段和别名的类型与值须完全相同，冲突返回 400。", "properties": {"aspect_ratio": {"description": "部分型号接受的画幅别名，按型号参数填写。", "enum": ["16:9", "9:16", "1:1", "4:3", "3:4", "21:9", "2:1", "2:3", "3:2", "adaptive", "auto"]}, "audioUrls": {"description": "与 audio_urls 同义，按所选型号的规格取值。", "items": {"description": "可公开访问的HTTPS素材地址；不接受本机、内网或带账号密码的地址。", "format": "uri", "pattern": "^https://", "type": "string"}, "maxItems": 10, "minItems": 1, "type": "array"}, "audio_urls": {"description": "仅使用型号文档列出的素材字段与数量。", "items": {"description": "可公开访问的HTTPS素材地址；不接受本机、内网或带账号密码的地址。", "format": "uri", "pattern": "^https://", "type": "string"}, "maxItems": 10, "minItems": 1, "type": "array"}, "duration": {"description": "生成时长（秒），使用型号文档的取值。", "maximum": 120, "minimum": 0, "type": "integer"}, "generation_mode": {"description": "填写逐型号参数列出的生成模式；各模式的素材要求不同。", "type": "string"}, "imageUrls": {"description": "与 image_urls 同义，按所选型号的规格取值。", "items": {"description": "可公开访问的HTTPS素材地址；不接受本机、内网或带账号密码的地址。", "format": "uri", "pattern": "^https://", "type": "string"}, "maxItems": 30, "minItems": 1, "type": "array"}, "image_url": {"description": "可公开访问的HTTPS素材地址；不接受本机、内网或带账号密码的地址。", "format": "uri", "pattern": "^https://", "type": "string"}, "image_urls": {"description": "仅使用型号文档列出的素材字段与数量。", "items": {"description": "可公开访问的HTTPS素材地址；不接受本机、内网或带账号密码的地址。", "format": "uri", "pattern": "^https://", "type": "string"}, "maxItems": 30, "minItems": 1, "type": "array"}, "model": {"description": "GET /models返回的已开放媒体型号。", "maxLength": 200, "minLength": 1, "type": "string"}, "prompt": {"maxLength": 16000, "minLength": 1, "type": "string"}, "ratio": {"enum": ["16:9", "9:16", "1:1", "4:3", "3:4", "21:9", "2:1", "2:3", "3:2", "adaptive", "auto"]}, "referenceAudio": {"description": "与 audio_urls 同义，按所选型号的规格取值。", "items": {"description": "可公开访问的HTTPS素材地址；不接受本机、内网或带账号密码的地址。", "format": "uri", "pattern": "^https://", "type": "string"}, "maxItems": 10, "minItems": 1, "type": "array"}, "referenceImages": {"description": "与 image_urls 同义，按所选型号的规格取值。", "items": {"description": "可公开访问的HTTPS素材地址；不接受本机、内网或带账号密码的地址。", "format": "uri", "pattern": "^https://", "type": "string"}, "maxItems": 30, "minItems": 1, "type": "array"}, "referenceVideos": {"description": "与 video_urls 同义，按所选型号的规格取值。", "items": {"description": "可公开访问的HTTPS素材地址；不接受本机、内网或带账号密码的地址。", "format": "uri", "pattern": "^https://", "type": "string"}, "maxItems": 10, "minItems": 1, "type": "array"}, "reference_audio": {"description": "与 audio_urls 同义，按所选型号的规格取值。", "items": {"description": "可公开访问的HTTPS素材地址；不接受本机、内网或带账号密码的地址。", "format": "uri", "pattern": "^https://", "type": "string"}, "maxItems": 10, "minItems": 1, "type": "array"}, "reference_audios": {"description": "部分型号接受的参考音频数组别名，按型号参数填写。", "items": {"description": "可公开访问的HTTPS素材地址；不接受本机、内网或带账号密码的地址。", "format": "uri", "pattern": "^https://", "type": "string"}, "maxItems": 10, "minItems": 1, "type": "array"}, "reference_images": {"description": "与 image_urls 同义，按所选型号的规格取值。", "items": {"description": "可公开访问的HTTPS素材地址；不接受本机、内网或带账号密码的地址。", "format": "uri", "pattern": "^https://", "type": "string"}, "maxItems": 30, "minItems": 1, "type": "array"}, "reference_videos": {"description": "与 video_urls 同义，按所选型号的规格取值。", "items": {"description": "可公开访问的HTTPS素材地址；不接受本机、内网或带账号密码的地址。", "format": "uri", "pattern": "^https://", "type": "string"}, "maxItems": 10, "minItems": 1, "type": "array"}, "resolution": {"description": "必须使用型号公开参数与已核实报价中的取值，不把default或动作名当成分辨率。", "maxLength": 32, "minLength": 1, "type": "string"}, "resolutionName": {"description": "与 resolution 同义，按所选型号的规格取值。", "maxLength": 32, "minLength": 1, "type": "string"}, "resolution_name": {"description": "与 resolution 同义，按所选型号的规格取值。", "maxLength": 32, "minLength": 1, "type": "string"}, "seconds": {"description": "与 duration 同义，按所选型号的规格取值。", "maximum": 120, "minimum": 0, "type": "integer"}, "size": {"type": "string"}, "videoUrls": {"description": "与 video_urls 同义，按所选型号的规格取值。", "items": {"description": "可公开访问的HTTPS素材地址；不接受本机、内网或带账号密码的地址。", "format": "uri", "pattern": "^https://", "type": "string"}, "maxItems": 10, "minItems": 1, "type": "array"}, "video_urls": {"description": "仅使用型号文档列出的素材字段与数量。", "items": {"description": "可公开访问的HTTPS素材地址；不接受本机、内网或带账号密码的地址。", "format": "uri", "pattern": "^https://", "type": "string"}, "maxItems": 10, "minItems": 1, "type": "array"}}, "required": ["model"], "type": "object"}}}, "required": true}, "responses": {"200": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/MediaTask"}}}, "description": "任务已接收或返回同一幂等请求的原任务。这里只返回任务JSON，尚不代表生成或结算完成。", "headers": {"Idempotency-Key": {"schema": {"type": "string"}}, "X-Zz-Trace-Id": {"schema": {"type": "string"}}}}, "400": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "401": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "402": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "新建图片生成、视频生成或视频超分任务需要账户可用余额至少 1.00 USD，余额不足返回 402。现有任务仍可查询和下载。"}, "403": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "409": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "413": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "429": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "500": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "502": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "503": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}}, "summary": "创建视频任务", "tags": ["异步媒体任务"]}}, "/videos/{id}": {"get": {"description": "提交与查询必须使用同一把平台Key。同一账号的另一把Key也不能查询此任务。建议每5秒查询，直到completed或failed；任务结束后仍需核对billing.status。", "operationId": "getVideoTask", "parameters": [{"in": "path", "name": "id", "required": true, "schema": {"pattern": "^media_[a-f0-9]{32}$", "type": "string"}}], "responses": {"200": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/MediaTask"}}}, "description": "进度、可用结果地址、可靠用量及AuralinkUSD费用观察。"}, "400": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "401": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "403": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "404": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "429": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "503": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}}, "summary": "查询当前Key创建的任务（视频别名）", "tags": ["异步媒体任务"]}}, "/videos/{id}/content": {"get": {"description": "使用提交任务的同一Key。也可使用完成响应给出的短效签名URL，无需把Key拼进URL。过期后用同一Key重新查询任务获取地址。浏览器控制台使用当前登录会话的受保护结果入口。多文件分别读取artifacts中的地址。", "operationId": "getVideoContent", "parameters": [{"in": "path", "name": "id", "required": true, "schema": {"pattern": "^media_[a-f0-9]{32}$", "type": "string"}}, {"description": "选择任务返回的文件序号；使用签名URL时不能修改此值。", "in": "query", "name": "index", "required": false, "schema": {"default": 0, "maximum": 7, "minimum": 0, "type": "integer"}}, {"description": "可选单段字节范围。", "in": "header", "name": "Range", "required": false, "schema": {"type": "string"}}], "responses": {"200": {"content": {"application/octet-stream": {"schema": {"format": "binary", "type": "string"}}}, "description": "受保护的结果字节流。"}, "206": {"description": "单段结果字节流。"}, "400": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "401": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "403": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "404": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "413": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "416": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "429": {"content": {"application/json": {"schema": {"properties": {"error": {"oneOf": [{"type": "string"}, {"type": "object"}]}}, "type": "object"}}}, "description": "请求失败。请保存任务编号和追踪信息；创建结果不确定时不得自动更换幂等编号重发。"}, "503": {"description": "文件暂时无法完整读取。按 Retry-After 指示等待后，用原任务重新下载。", "headers": {"Retry-After": {"schema": {"minimum": 1, "type": "integer"}}}}}, "security": [{"platformKey": []}, {"mediaResultExpiry": [], "mediaResultSignature": []}], "summary": "安全读取已完成任务的结果（视频别名）", "tags": ["异步媒体任务"]}}}, "security": [{"platformKey": []}], "servers": [{"url": "https://auralink.top/v1"}]}