API reference

API reference · Account

A dub's heard words written in another language

POST/api/studio/dub/translateSigned in session

One chat call on the signed in account under strict JSON, by the director plan's writer and billed like it: the speech heard from a clip written in the named language as a new voice will say it over the same pictures. Nothing is kept. What it cost is in micros and x-antimatter-cost-micros, refused or not. Same origin only.

Request body

application/json, required

Request body fields
FieldTypeWhat it is
textrequiredstringThe words heard. At most 20000 characters.
torequiredstringThe language to write the words in, a BCP 47 code. One of "en", "es", "pt", "de", "fr", "it", "ru", "tr", "ar", "zh", "ja", "ko", "vi", "id", "hi", "he", "nl", "pl", "uk", "th", "sv".

Example

{
  "text": "string",
  "to": "en"
}

Answer 200

The words, written again.

Fields of the 200 answer
FieldTypeWhat it is
textstring
microsinteger
modelstring
modelNamestringThe writer's name as a person reads it.

Errors

  • 400OpenAI shaped error.
  • 401OpenAI shaped error.
  • 402OpenAI shaped error.
  • 403OpenAI shaped error.
  • 429OpenAI shaped error.
  • 502OpenAI shaped error.
  • 503OpenAI shaped error.

Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.

Antimatter