OpenAlchemyOpenAlchemy
← All modalities

Narration · Readout · Voice agents

TTS (Text → Speech)

Beta

Render text as natural-sounding audio — for narration, readouts, and voice agents.

Overview

TTS (Text → Speech)

Use it for video narration, podcast generation, voice assistants, accessibility readouts, and IVR voice prompts. Output is WAV. Built-in voices (list them with `GET /v1/audio/voices`) and your own cloned voices, emotion and style control via `instruct` on CosyVoice models, and streaming playback with `stream: true`.

Endpoint
/v1/audio/speech
Example model
cosyvoice2

API

API example

# 1) discover an online TTS model — Grid's set changes constantly,
#    don't hardcode an id in your code.
MODEL=$(curl -s https://api.openalchemy.io/v1/models \
  -H "Authorization: Bearer $OPENALCHEMY_API_KEY" \
  | jq -r '.data[] | select(.online and .endpoint_type=="tts") | .id' \
  | head -1)

# 2) synthesize — returns WAV bytes. Built-in voices: GET /v1/audio/voices
curl https://api.openalchemy.io/v1/audio/speech \
  -H "Authorization: Bearer $OPENALCHEMY_API_KEY" \
  -H "Content-Type: application/json" \
  -d "{
    \"model\": \"$MODEL\",
    \"voice\": \"en_alice\",
    \"input\": \"OpenAlchemy turns idle GPUs into an open AI inference grid. Run a node on a 4090 or 5090 and earn credits, or call our APIs and pay per token. Open weights, distributed compute.\"
  }" \
  --output openalchemy_pitch.wav

Status

Quota and pricing (per project)

Allotments and rate limits apply to the project that issued the API key. A second domain-scoped policy layer constrains which origins may invoke each modality.

Read the docs for this modality →

START TODAY

Ready to turn inference cost into something closer to alchemy?

Sign up and get 2,000 free credits ($2) — no credit card required.