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
| Field | Type | What it is |
|---|---|---|
| charsrequired | integer | From 1 to 20000. |
| torequired | string | The 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.
| Field | Type | What it is |
|---|---|---|
| micros | integer | |
| model | string | |
| modelName | string | The 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.