{"components":{"schemas":{"ChatCompletionResponse":{"properties":{"choices":{"items":{"properties":{"finish_reason":{"type":"string"},"index":{"type":"integer"},"message":{"$ref":"#/components/schemas/ChatMessage"}},"type":"object"},"type":"array"},"created":{"type":"integer"},"id":{"type":"string"},"model":{"type":"string"},"object":{"type":"string"},"usage":{"properties":{"completion_tokens":{"type":"integer"},"prompt_tokens":{"type":"integer"},"total_tokens":{"type":"integer"}},"type":"object"}},"type":"object"},"ChatMessage":{"properties":{"content":{"type":"string"},"role":{"enum":["user","assistant","system"],"type":"string"}},"required":["role","content"],"type":"object"},"ErrorResponse":{"properties":{"error":{"oneOf":[{"type":"string"},{"properties":{"code":{"type":["string","null"]},"message":{"type":"string"},"param":{"type":["string","null"]},"type":{"type":"string"}},"type":"object"}]},"request_id":{"type":"string"}},"type":"object"},"QwenMtChatCompletionRequest":{"properties":{"messages":{"items":{"$ref":"#/components/schemas/ChatMessage"},"maxItems":1,"minItems":1,"type":"array"},"model":{"enum":["qwen-mt-flash","qwen-mt-plus","qwen-mt-lite"],"type":"string"},"stream":{"description":"Whether to request streaming output for supported models.","type":"boolean"},"translation_options":{"$ref":"#/components/schemas/TranslationOptions"}},"required":["model","messages","translation_options"],"type":"object"},"TranslationOptions":{"properties":{"domain":{"type":"string"},"source_lang":{"description":"Use auto to enable source language detection.","type":"string"},"target_lang":{"type":"string"},"tm_list":{"items":{"properties":{"source":{"type":"string"},"target":{"type":"string"}},"type":"object"},"type":"array"}},"required":["source_lang","target_lang"],"type":"object"}}},"info":{"description":"Filtered OpenAPI description for the Qwen-MT translation proxy. The upstream endpoint is Alibaba Cloud Model Studio's OpenAI-compatible chat completions API in the Singapore region.","title":"Alibaba Cloud Model Studio Translation API","version":"v1"},"openapi":"3.0.3","paths":{"/compatible-mode/v1/chat/completions":{"post":{"description":"Submit a single-turn translation request. The request body mirrors Alibaba Cloud Model Studio's OpenAI-compatible chat completions format and accepts translation_options in the JSON body.","operationId":"alibaba.translate.chatCompletions","requestBody":{"content":{"application/json":{"example":{"messages":[{"content":"No me rei despues de ver este video","role":"user"}],"model":"qwen-mt-flash","translation_options":{"source_lang":"auto","target_lang":"English"}},"schema":{"$ref":"#/components/schemas/QwenMtChatCompletionRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatCompletionResponse"}}},"description":"Successful translation response."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid request."}},"summary":"Translate text with Qwen-MT","tags":["chat.completions"],"x-pay-metering":{"dimensions":[{"direction":"input","meter":{"path":"/usage/prompt_tokens","source":"response_json"},"scale":1000000,"tiers":[{"price_usd":2.46}],"unit":"tokens"},{"direction":"output","meter":{"path":"/usage/completion_tokens","source":"response_json"},"scale":1000000,"tiers":[{"price_usd":7.37}],"unit":"tokens"}],"schemes":["mpp-session","x402-upto"],"upto":{"max_usd":0.1,"response_body":{"max_bytes":4194304,"mode":"buffer"}},"variants":[{"dimensions":[{"direction":"input","meter":{"path":"/usage/prompt_tokens","source":"response_json"},"scale":1000000,"tiers":[{"price_usd":2.46}],"unit":"tokens"},{"direction":"output","meter":{"path":"/usage/completion_tokens","source":"response_json"},"scale":1000000,"tiers":[{"price_usd":7.37}],"unit":"tokens"}],"param":"model","value":"qwen-mt-plus"},{"dimensions":[{"direction":"input","meter":{"path":"/usage/prompt_tokens","source":"response_json"},"scale":1000000,"tiers":[{"price_usd":0.16}],"unit":"tokens"},{"direction":"output","meter":{"path":"/usage/completion_tokens","source":"response_json"},"scale":1000000,"tiers":[{"price_usd":0.49}],"unit":"tokens"}],"param":"model","value":"qwen-mt-flash"},{"dimensions":[{"direction":"input","meter":{"path":"/usage/prompt_tokens","source":"response_json"},"scale":1000000,"tiers":[{"price_usd":0.12}],"unit":"tokens"},{"direction":"output","meter":{"path":"/usage/completion_tokens","source":"response_json"},"scale":1000000,"tiers":[{"price_usd":0.36}],"unit":"tokens"}],"param":"model","value":"qwen-mt-lite"},{"dimensions":[{"direction":"input","meter":{"path":"/usage/prompt_tokens","source":"response_json"},"scale":1000000,"tiers":[{"price_usd":0.16}],"unit":"tokens"},{"direction":"output","meter":{"path":"/usage/completion_tokens","source":"response_json"},"scale":1000000,"tiers":[{"price_usd":0.49}],"unit":"tokens"}],"param":"model","value":"qwen-mt-turbo"}]}}}},"servers":[{"url":"https://translate.alibaba.gateway-402.com"}],"tags":[{"name":"chat.completions"}]}