Table des matières du document

API de tâches de traduction

Redémarrer la tâche de traduction

/v1/translation/start

Utilisé pour redémarrer les tâches terminées ou payer des crédits pour effectuer une traduction complète

Exemple

curl
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}'

Paramètres de requête

ParamètresTypePar défautDescriptionExemple
*taskIdString-

ID de la tâche de traduction

-
payWithCreditsBoolean-

Effectuer le paiement de la tâche de traduction, valide uniquement pour les documents non payés, les documents déjà réglés ne feront pas l'objet d'une double facturation

-
modelString-
  • Lorsque payWithCredits est true, spécifie le model utilisé pour la traduction intégrale - Modèles pris en charge : 查询- 当payWithCredits为true时,指定全文翻译使用的model - 支持模型:查询- 当payWithCredits为true时,指定全文翻译使用的model - 支持模型:查询- 当payWithCredits为true时,指定全文翻译使用的model - 支持模型:查询- 当payWithCredits为true时,指定全文翻译使用的model - 支持模型:查询- 当payWithCredits为true时,指定全文翻译使用的model - 支持模型:查询- 当payWithCredits为true时,指定全文翻译使用的model - 支持模型:查询- 当payWithCredits为true时,指定全文翻译使用的model - 支持模型:查询- 当payWithCredits为true时,指定全文翻译使用的model - 支持模型:查询- 当payWithCredits为true时,指定全文翻译使用的model - 支持模型:查询
-

Réponse

ParamètresTypePar défautDescriptionExemple
successBoolean-

Démarrage effectué avec succès

-
API de tâches de traduction
Réviser la traduction
API de tâches de traduction
Texte traduit