商译AI Developer Platform
Enterprise Document Translation API
Integration of enterprise document translation and API for task management, glossary, text translation, formats, languages and models.
Developer Capabilities
Document Translation Task
Upload files like PDF, DOCX, PPTX, then track progress, cost, and download results.
Synchronized Text Translation
Synchronously translate small batches of text within application workflows.
Glossary management
Create and maintain private glossaries to ensure consistency of professional terminology.
Capability Discovery
Query supported file formats, languages, and currently available translation models.
Quick Start
- 1
Register as a Developer
Enable developer access and open the developer portal.
- 2
Create API Key
Use separate keys for different applications or environments.
- 3
Create Translation Task
Upload a file and save the returned taskId.
- 4
Get Results
Poll the task status, then download the translation or read the structured text.
https://shangyiai.com/apiAuthorization: [yourSecretKey]curl -X POST 'https://shangyiai.com/api/v1/translation/create' \
--header 'Authorization: [yourSecretKey]' \
--form 'file=@document.pdf' \
--form 'fromLang=English' \
--form 'toLang=Simplified Chinese'API Directory
Translation Task API
- Create Translation Task
Create a new translation task for document/file translation.
- Query translation tasks
Query translation task status and details.
- Delete Translation Task
Delete translation task by ID.
- Retrieve translation
Get system-extracted one-to-one correspondence of original text and translation, returned in JSON format
- Revise Translation
Submit revisions for translated text in tasks, with the option to regenerate translations.
- Restart translation task
Used for restarting terminated tasks or paying credits for full document translation
- Translation text
Translate text and return translation results synchronously.
Information API
- Query supported document types
Query all file formats supported for translation.
- Query supported languages
Query all languages supported by translation services.
- Query supported models
Query all available translation models.
Glossary API
- Create glossary
Create a new glossary containing terms and translations.
- Query glossary
Retrieve glossary details by ID.
- Update Glossary
Update glossary details or terminology.
- Delete glossary
Delete glossary by ID.
Account API
- Query account information
Query current user account details.
More
- Document comparison preview
Integrate document comparison display component via iframe.
Start Integration
Read the registration and authentication guide to get your API key and send your first request.