번역 작업 API
번역 작업 재시작
Terminated 작업의 재시작 또는 크레딧 결제를 통한 전문 번역에 사용됩니다
- 전체 주소
- https://otranslator.com/api/v1/translation/start
- 인증
- Authorization 요청 헤더에 API Key를 전달해야 합니다
- Content-Type
- application/json
- 잘못된 형식
- { "error": "Invalid API key." }
주의사항
이 인터페이스는 Terminated 작업을 재시작하는 데 사용할 수 있으며, 미리보기 작업 완료 후 payWithCredits로 결제하고 전체 번역을 시작할 수도 있습니다.
이미 결제된 작업은 중복 차감되지 않습니다. model을 전달할 때, payWithCredits가 true이고 작업이 결제되지 않은 경우에만 요금을 재계산하는 데 사용됩니다.
예시
1curl -X POST 'https://otranslator.com/api/v1/translation/start' \
2--header 'Authorization: [yourSecretKey]' \
3--header 'Content-Type: application/json' \
4--data '{
5 "taskId": "[string]"
6}'요청 매개변수
| 매개변수 | 유형 | 기본값 | 설명 | 예시 |
|---|---|---|---|---|
| *taskId | String | - | 번역 작업 ID | - |
| payWithCredits | Boolean | - | 번역 작업 결제 여부, 미결제 문서에만 적용되며 이미 결제된 문서는 중복 차감되지 않습니다 | - |
| model | String | - |
| - |
응답
| 매개변수 | 유형 | 기본값 | 설명 | 예시 |
|---|---|---|---|---|
| success | Boolean | - | 시작 성공 여부 | - |
일반적인 오류
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.
400 Missing required parameter: taskId.
Provide the taskId returned by the create translation task API.
402 Insufficient credits balance.
The account does not have enough credits to start the full translation.
404 Task not found.
The task does not exist or does not belong to the current API account.