API reference

API reference · Account

The most writing a dub's words could cost

POST/api/studio/dub/translate/quoteSigned in session

The worst case of the translation's chat call for words of up to chars characters, each priced as three bytes, as dispatch would hold it, billed micro USD; nothing is held and nothing is sent to a model.

Request body

application/json, required

Request body fields
FieldTypeWhat it is
charsrequiredintegerFrom 1 to 20000.
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

{
  "chars": 1,
  "to": "en"
}

Answer 200

The worst case.

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

Errors

  • 400OpenAI shaped error.
  • 401OpenAI shaped error.
  • 402OpenAI 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