Information API
Query Supported OCR Models
POST/v1/ocrModels
Query all available OCR models.
- Complete Address
- https://deploy-demo.otranslator.com/api/v1/ocrModels
- Authentication
- API Key needs to be passed in the Authorization request header
- Content-Type
- application/json
- Error Format
- { "error": "Invalid API key." }
Example
1curl -X POST 'https://deploy-demo.otranslator.com/api/v1/ocrModels' \
2--header 'Authorization: [yourSecretKey]' \
3--header 'Content-Type: application/json' \
4--data '{}'Response
| Parameters | Type | Default | Description | Example |
|---|---|---|---|---|
| models | String[] | - | Supported models | - |
Common Errors
401 Missing API key.
The Authorization request header is required.
401 Invalid API key.
The API key does not exist, has been deleted, or is no longer valid.