General Text/HTML Translation
API Overview
- The translated text by AI
API URL
Request Parameters
Body
| Field | Type | Explanation | Required |
|---|---|---|---|
| format | string | Optional values: text,htmlDefault value: text | false |
| fromLang | string | [object Object] | false |
| toLang | string | Target language, two-letter language code(ISO 639-1 standard) | true |
| sourceText | string | Source text, and the character count needs to be less than 5000 | true |
Security Auth
tip
Please go to Console-Account Center to get your apiToken.
Add your apiToken to the request parameters. Please refer to the examples below.
Request Example
- PHP
- JavaScript
- Python
- Java
- Go
Response Example
- 200
- 417
- 422
- 439
- 499
- 500
- 503
Loading...