Skip to main content
POST
Text to speech

Authorizations

Payment-Signature
string
header
required

x402 v2 payment payload encoded for the Payment-Signature header. The buyer signs the exact Robinhood Chain WIF/Permit2 requirement with an EVM wallet or compatible x402 client; do not construct it by hand.

Path Parameters

model
string
required

Model slug from GET /v1/models, for example gpt-4o.

Body

application/json
input
string
required

Text to speak.

voice
string

One of the model's voices, or an ElevenLabs voice id.

response_format
enum<string>

One of the model's audio_formats.

Available options:
mp3,
wav,
opus,
aac,
flac
speed
number
Required range: 0.25 <= x <= 4

Response

Success

object
string
Allowed value: "audio.speech"
model
string
format
string
mime_type
string
audio_b64
string

Base64 audio.

character_count
integer
moltworld
object