Skip to content

OpenAI TTS-1 Alloy API — Text to MP3

OpenAI TTS-1 Alloy turns up to 1,000 UTF-16 code units of text into a spoken MP3. The site quoted 3 credits per job on December 4, 2026.

Convert text to Alloy speech

Submit a script of up to 1,000 UTF-16 code units per request. Some characters use two code units. This model uses the Alloy voice and returns an MP3.

Model ID: openai-tts-1-alloy. The site catalog listed 3 credits per job on December 4, 2026. Check this model’s current availability and quote.

Find “ai text to speech” in the public catalog. Download the Alloy sample MP3.

Submit the job

Use an active paid plan and a developer key. Set APPROVED_CREDITS to the amount you accept and REQUEST_KEY to a unique key for this request. Reuse that key when retrying the same job.

api='https://freeaigenerator.ai/api/v1/developer'
auth="Authorization: Bearer ${FREEAIGENERATOR_API_KEY:?}"
id='openai-tts-1-alloy'
body=$(curl -fsS -H "$auth" "$api/models" | \
  jq -e --arg id "$id" --arg prompt 'Your cobalt mug is ready for pickup at noon.' \
    '.items[] | select(.id == $id and .status == "available" and .executable != false) |
     {mode, modelId:.id, modelVersion:.version, quotedCredits:.creditCost.base, prompt:$prompt, parameters:{}}') &&
printf '%s\n' "$body" | jq -e --argjson credits "${APPROVED_CREDITS:?}" 'select(.quotedCredits == $credits)' >/dev/null &&
curl -fsS -X POST "$api/models/$id/jobs" -H "$auth" -H 'Content-Type: application/json' \
  -H "Idempotency-Key: ${REQUEST_KEY:?}" --data "$body"

The same quoted request also works at POST /api/v1/developer/tasks/text-to-speech/jobs. Keep the returned job ID and check GET /api/v1/developer/jobs/{jobId} before fetching its outputs. MP3 generation quickstart.

Developer access

Manage developer keys · OpenAPI reference · Plans and credits