Skip to content

Maya · Batch

Integrate

Model id maya/batch
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/maya/batch?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "texts": [
      "Hello from Doitong. This is a short test sentence."
    ],
    "prompts": [
      "Hello from Doitong. This is a short test sentence."
    ]
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

This request: ≈$0.049 49 API credits Run it on this page

Get API key
Maya Research Text to Speech #text-to-speech#tts

Batch version of Maya speech that renders up to 100 texts with matching voice descriptions

Maya Research · Audio

Your first result goes here

Build a request below and run it with your API key. Outputs are copied to our storage, kept forever or 7 days for free.

Build a request

Controls are generated from the model schema. The code and the price update as you change them.

•required

Speech synthesis text list with support for <emotion_name> tags embedded within any entry.

•required

Voice or character attributes for each text, supplied as a list of descriptions. The number of descriptions must equal the number of texts.

Advanced sample_rate · output_format · temperature · top_p · max_tokens · repetition_penalty · enable_safety_checker
sample_rate default 48 kHz

Shared audio sample-rate setting for every generation, offering a choice between faster processing at 24 kHz and better quality at 48 kHz.

output_format default wav

File format used for every generated speech recording.

default 0.4

Sampling temperature applied to every generation.

default 0.9

Nucleus sampling setting applied to every generation.

default 2000

Upper limit on SNAC tokens for each generation.

default 1.1

Repetition penalty applied to every generation.

POST /run/maya/batch?wait=20 quote → $0.049
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/maya/batch?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "texts": [
      "Hello from Doitong. This is a short test sentence."
    ],
    "prompts": [
      "Hello from Doitong. This is a short test sentence."
    ]
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Run this request

Your key stays in this browser: it is sent only to the Doitong API and saved (localStorage) only if you tick Remember. Get an API key

About Maya · Batch

Synthesizes many clips in one request. `texts` and `prompts` each take 1 to 100 entries and must match in length, pairing each text with a voice description. Emotion tags work in each text. Settings such as sample rate, output format and temperature apply to all, and results include a list of audio files and durations.

Parameters

NameType DefaultAllowed Description
textsrequired
Typestring[]
≤ 100 items
Speech synthesis text list with support for <emotion_name> tags embedded within any entry.
promptsrequired
Typestring[]
≤ 100 items
Voice or character attributes for each text, supplied as a list of descriptions. The number of descriptions must equal the number of texts.
temperatureoptional
Typenumber
Default0.4
0 – 2
Sampling temperature applied to every generation.
top_poptional
Typenumber
Default0.9
0 – 1
Nucleus sampling setting applied to every generation.
max_tokensoptional
Typeinteger
Default2000
28 – 4,000
Upper limit on SNAC tokens for each generation.
repetition_penaltyoptional
Typenumber
Default1.1
1 – 2
Repetition penalty applied to every generation.
sample_rateoptional
Typeenum
Default48 kHz
48 kHz24 kHz
Shared audio sample-rate setting for every generation, offering a choice between faster processing at 24 kHz and better quality at 48 kHz.
output_formatoptional
Typeenum
Defaultwav
wavmp3
File format used for every generated speech recording.
enable_safety_checkeroptional
Typeboolean
Defaulttrue
Screening can be relaxed by setting false, provided the caller is authorized.
required

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "maya/batch",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 49,
    "usd": "0.049",
    "charged": 49,
    "refunded": 0
  },
  "input": {
    "texts": [
      "Hello from Doitong. This is a short test sentence."
    ],
    "prompts": [
      "Hello from Doitong. This is a short test sentence."
    ]
  },
  "output": {
    "audios": [
      {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp3",
        "content_type": "audio/mpeg",
        "file_name": "0-output.mp3",
        "file_size": 1843200
      }
    ],
    "durations": [
      5
    ],
    "sample_rate": "48 kHz",
    "total_generation_time": 5.7,
    "average_rtf": 0.15
  },
  "outputs": [
    {
      "type": "audio",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp3",
      "content_type": "audio/mpeg",
      "file_size": 1843200,
      "duration": 12,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Your files, your choiceEvery outputs[].url is a copy on our storage: kept forever (paid per GB-month) or 7 days for free, by your account setting or ?storage=.
Same shape on every modeltype, url, content_type, width, height and duration, for images, video and audio alike. output is the model’s own result object.
Fields of output
audios
array of object {url, content_type, file_name, file_size}Audio files produced, returned as a list.
durations
array of numberLength in seconds of each generated audio recording.
sample_rate
stringSampling rate shared by all generated audio files.
total_generation_time
numberCombined generation time in seconds for all audio files.
average_rtf
numberMean real-time factor over all generations.

More models: Text to Speech

For AI agents: this page as Markdown is at https://doitong.com/en-US/developers/models/maya/batch.md. All models and guides: https://doitong.com/developers/llms.txt