{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://zieapi.vercel.app"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/cloud:aliyun-anytrans/batch-translate":{"post":{"operationId":"cloud_aliyun_anytrans_batch_translate","summary":"Performs batch translation using the Qwen multimodal translation model","description":"POST /anytrans/translate/batch","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["workspaceId","sourceLanguage","targetLanguage","text"],"properties":{"endpoint":{"type":"string","enum":["https://anytrans.cn-beijing.aliyuncs.com"],"default":"https://anytrans.cn-beijing.aliyuncs.com","description":"Regional endpoint, for example https://anytrans.cn-beijing.aliyuncs.com"},"workspaceId":{"type":"string","description":"The ID of the Alibaba Cloud Model Studio workspace used for the current request"},"sourceLanguage":{"type":"string","description":"The source language"},"targetLanguage":{"type":"string","description":"The target language"},"text":{"type":"string","description":"The batch text to be translated (JSON-encoded)"},"scene":{"type":"string","description":"The translation model"},"format":{"type":"string","description":"The translation format"},"appName":{"type":"string","description":"The call source"},"ext":{"type":"string","description":"The extended parameters for controlling translation features (JSON-encoded)"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-anytrans/get-doc-translate-task":{"post":{"operationId":"cloud_aliyun_anytrans_get_doc_translate_task","summary":"Gets the results of a document translation task from Tongyi Multimodal Translation","description":"POST /anytrans/translate/doc/get","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["workspaceId","taskId"],"properties":{"endpoint":{"type":"string","enum":["https://anytrans.cn-beijing.aliyuncs.com"],"default":"https://anytrans.cn-beijing.aliyuncs.com","description":"Regional endpoint, for example https://anytrans.cn-beijing.aliyuncs.com"},"workspaceId":{"type":"string","description":"The ID of the Model Studio workspace"},"taskId":{"type":"string","description":"The document translation task ID"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-anytrans/get-html-translate-task":{"post":{"operationId":"cloud_aliyun_anytrans_get_html_translate_task","summary":"Retrieves the result of an HTML translation task from Tongyi Multimodal Translation","description":"POST /anytrans/translate/html/get","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["workspaceId"],"properties":{"endpoint":{"type":"string","enum":["https://anytrans.cn-beijing.aliyuncs.com"],"default":"https://anytrans.cn-beijing.aliyuncs.com","description":"Regional endpoint, for example https://anytrans.cn-beijing.aliyuncs.com"},"workspaceId":{"type":"string","description":"The ID of the Model Studio workspace"},"taskId":{"type":"string","description":"The ID of the HTML translation task"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-anytrans/get-image-translate-task":{"post":{"operationId":"cloud_aliyun_anytrans_get_image_translate_task","summary":"Tongyi Multimodal Translation: Getting image translation results","description":"POST /anytrans/translate/image/get","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["workspaceId","taskId"],"properties":{"endpoint":{"type":"string","enum":["https://anytrans.cn-beijing.aliyuncs.com"],"default":"https://anytrans.cn-beijing.aliyuncs.com","description":"Regional endpoint, for example https://anytrans.cn-beijing.aliyuncs.com"},"workspaceId":{"type":"string","description":"The ID of the workspace"},"taskId":{"type":"string","description":"The ID of the image translation task"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-anytrans/get-long-text-translate-task":{"post":{"operationId":"cloud_aliyun_anytrans_get_long_text_translate_task","summary":"Get document translations from Tongyi Multimodal Translation","description":"POST /anytrans/translate/longText/get","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["workspaceId"],"properties":{"endpoint":{"type":"string","enum":["https://anytrans.cn-beijing.aliyuncs.com"],"default":"https://anytrans.cn-beijing.aliyuncs.com","description":"Regional endpoint, for example https://anytrans.cn-beijing.aliyuncs.com"},"workspaceId":{"type":"string","description":"The ID of the Model Studio workspace"},"taskId":{"type":"string","description":"The ID of the long-text translation task"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-anytrans/submit-doc-translate-task":{"post":{"operationId":"cloud_aliyun_anytrans_submit_doc_translate_task","summary":"Submit a document translation task to Tongyi Multimodal Translation","description":"POST /anytrans/translate/doc/submit","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["workspaceId","sourceLanguage","text","scene"],"properties":{"endpoint":{"type":"string","enum":["https://anytrans.cn-beijing.aliyuncs.com"],"default":"https://anytrans.cn-beijing.aliyuncs.com","description":"Regional endpoint, for example https://anytrans.cn-beijing.aliyuncs.com"},"workspaceId":{"type":"string","description":"The ID of the Model Studio workspace for the current request"},"format":{"type":"string","description":"The format for the translation"},"sourceLanguage":{"type":"string","description":"The source language code"},"targetLanguage":{"type":"string","description":"The target language code"},"text":{"type":"string","description":"The URL of the document to translate"},"scene":{"type":"string","description":"The translation model"},"ext":{"type":"string","description":"Extension parameters that control translation features (JSON-encoded)"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-anytrans/submit-html-translate-task":{"post":{"operationId":"cloud_aliyun_anytrans_submit_html_translate_task","summary":"Submitting an HTML translation task with Tongyi Multimodal Translation","description":"POST /anytrans/translate/html/submit","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["workspaceId"],"properties":{"endpoint":{"type":"string","enum":["https://anytrans.cn-beijing.aliyuncs.com"],"default":"https://anytrans.cn-beijing.aliyuncs.com","description":"Regional endpoint, for example https://anytrans.cn-beijing.aliyuncs.com"},"workspaceId":{"type":"string","description":"The ID of the Model Studio workspace used for this request"},"format":{"type":"string","description":"The format of the input text"},"sourceLanguage":{"type":"string","description":"The source language"},"targetLanguage":{"type":"string","description":"The target language"},"text":{"type":"string","description":"The HTML content to be translated"},"scene":{"type":"string","description":"The translation model"},"ext":{"type":"string","description":"Extended parameters to control translation behavior (JSON-encoded)"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-anytrans/submit-image-translate-task":{"post":{"operationId":"cloud_aliyun_anytrans_submit_image_translate_task","summary":"Use Tongyi multimodal translation to submit an image for translation","description":"POST /anytrans/translate/image/submit","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["workspaceId","sourceLanguage","targetLanguage","text","scene"],"properties":{"endpoint":{"type":"string","enum":["https://anytrans.cn-beijing.aliyuncs.com"],"default":"https://anytrans.cn-beijing.aliyuncs.com","description":"Regional endpoint, for example https://anytrans.cn-beijing.aliyuncs.com"},"workspaceId":{"type":"string","description":"The ID of the Model Studio workspace"},"format":{"type":"string","description":"The translation format"},"sourceLanguage":{"type":"string","description":"The source language"},"targetLanguage":{"type":"string","description":"A list of target languages (JSON-encoded)"},"text":{"type":"string","description":"The URL of the image to translate"},"scene":{"type":"string","description":"Specifies the translation model"},"ext":{"type":"string","description":"Extended parameters to control translation features (JSON-encoded)"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-anytrans/submit-long-text-translate-task":{"post":{"operationId":"cloud_aliyun_anytrans_submit_long_text_translate_task","summary":"Submitting a long text translation task using Translate Multimodal","description":"POST /anytrans/translate/longText/submit","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["workspaceId"],"properties":{"endpoint":{"type":"string","enum":["https://anytrans.cn-beijing.aliyuncs.com"],"default":"https://anytrans.cn-beijing.aliyuncs.com","description":"Regional endpoint, for example https://anytrans.cn-beijing.aliyuncs.com"},"workspaceId":{"type":"string","description":"The ID of the Model Studio workspace"},"format":{"type":"string","description":"The format of the source text"},"sourceLanguage":{"type":"string","description":"The language code of the source language"},"targetLanguage":{"type":"string","description":"The language code of the target language"},"text":{"type":"string","description":"The long source text to translate"},"scene":{"type":"string","description":"The translation model"},"ext":{"type":"string","description":"A container for extended parameters that control translation features (JSON-encoded)"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-anytrans/term-edit":{"post":{"operationId":"cloud_aliyun_anytrans_term_edit","summary":"Editing the Tongyi Multimodal Translation termbase","description":"POST /anytrans/translate/intervene/edit","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["workspaceId","action","sourceLanguage","targetLanguage","scene","ext"],"properties":{"endpoint":{"type":"string","enum":["https://anytrans.cn-beijing.aliyuncs.com"],"default":"https://anytrans.cn-beijing.aliyuncs.com","description":"Regional endpoint, for example https://anytrans.cn-beijing.aliyuncs.com"},"workspaceId":{"type":"string","description":"The ID of the Model Studio workspace"},"action":{"type":"string","description":"The action type"},"sourceLanguage":{"type":"string","description":"The source language. The value must be a valid BCP-47 language code"},"targetLanguage":{"type":"string","description":"The target language. The value must be a valid BCP-47 language code"},"scene":{"type":"string","description":"The model type"},"ext":{"type":"string","description":"The extended parameters (JSON-encoded)"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-anytrans/term-query":{"post":{"operationId":"cloud_aliyun_anytrans_term_query","summary":"Queries the terminology database for Qwen multimodal machine translation","description":"POST /anytrans/translate/intervene/query","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["workspaceId","sourceLanguage","targetLanguage","scene"],"properties":{"endpoint":{"type":"string","enum":["https://anytrans.cn-beijing.aliyuncs.com"],"default":"https://anytrans.cn-beijing.aliyuncs.com","description":"Regional endpoint, for example https://anytrans.cn-beijing.aliyuncs.com"},"workspaceId":{"type":"string","description":"The ID of the Model Studio workspace used for the current request"},"sourceLanguage":{"type":"string","description":"The source language"},"targetLanguage":{"type":"string","description":"The target language"},"scene":{"type":"string","description":"The translation model"},"text":{"type":"string","description":"The input sentence that contains terminology interventions"},"ext":{"type":"string","description":"The extended parameters (JSON-encoded)"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-anytrans/text-translate":{"post":{"operationId":"cloud_aliyun_anytrans_text_translate","summary":"Translates text using the Tongyi multimodal translation service","description":"POST /anytrans/translate/text","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["workspaceId","sourceLanguage","targetLanguage","text"],"properties":{"endpoint":{"type":"string","enum":["https://anytrans.cn-beijing.aliyuncs.com"],"default":"https://anytrans.cn-beijing.aliyuncs.com","description":"Regional endpoint, for example https://anytrans.cn-beijing.aliyuncs.com"},"workspaceId":{"type":"string","description":"The workspace ID"},"format":{"type":"string","description":"The text format"},"sourceLanguage":{"type":"string","description":"The source language code"},"targetLanguage":{"type":"string","description":"The target language code"},"text":{"type":"string","description":"The text to be translated"},"scene":{"type":"string","description":"The model type"},"ext":{"type":"string","description":"The extended parameters that control translation behavior (JSON-encoded)"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-anytrans/version":{"post":{"operationId":"cloud_aliyun_anytrans_version","summary":"version","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"endpoint":{"type":"string","enum":["https://anytrans.cn-beijing.aliyuncs.com"],"default":"https://anytrans.cn-beijing.aliyuncs.com","description":"Regional endpoint, for example https://anytrans.cn-beijing.aliyuncs.com"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"RunEnvelope":{"type":"object","required":["project","data","timestamp"],"properties":{"project":{"type":"string","example":"dev-tools:hash"},"data":{},"timestamp":{"type":"string","format":"date-time"}}},"ErrorEnvelope":{"type":"object","properties":{"content":{},"message":{"type":"string"},"errors":{"type":"array","items":{}},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"Error":{"description":"Invalid key, plan gate, rate limit or upstream failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}