ModelStream LogoModelStream Logo
Models
Video API
Image API
Chat API
Audio API
Studio
Pricing
Docs
Menu
IntroductionQuickstartAPI KeysUse with Hermes AgentUse with OpenClaw
Model ListBilling Guide
ModelStream

Video API

  • Seedance 2.0
  • Happyhorse 1.0
  • Vidu Q3
  • Kling V3.0
  • Veo 3.1
  • Wan 2.7
  • More Video Models →

Image API

  • GPT Image 2
  • Nano Banana 2
  • Seedream 5.0
  • Imagen 4
  • Qwen Image 2.0
  • Z-Image Turbo
  • More Image Models →

Audio API

  • Suno Music
  • Qwen3 TTS Flash
  • More Audio Models →

Chat API

  • GLM-5.2
  • Claude Opus 4.8
  • Gemini 3.5 Flash
  • Qwen 3.7 Max
  • GPT 5.5
  • More Chat Models →

About Us

  • Privacy Policy
  • Terms of Service
  • Support
  • Enterprise

© 2026 ModelStream Inc. All rights reserved.

API Documentation
API Reference
Audio
Speech Synthesis

Speech Synthesis

Loading models...

Speech synthesis

https://api.modelstream.ai
POST/v1/audio/speech

Authentication

BearerAuth
AuthenticationBearer <token>

All API requests must be authenticated using a Bearer token in the Authorization header. Please ensure your API key is active.Authorization: Bearer sk-xxxxxx

Parameter Location: Header Param

Request Body

application/json

Due to parameter differences across provider models, we recommend referring to the complete form parameter instructions during the specific model trial. The form view intuitively shows parameter types, and the JSON view reveals the exact parameters requested.

model*string

Model ID used

Required
input*string

Input data or text to process

Required
voice*string

Voice used for audio synthesis

Required
Enum/Options:
"alloy""echo""fable""onyx""nova""shimmer"
response_format?string

Response Data Format

Example Value: mp3
Enum/Options:
"mp3""opus""aac""flac""wav""pcm"
speed?number

Playback speed multiplier

Example Value: 1Value Range: 0.25 ≤ value ≤ 4

Response Parameters

application/json
200apiDocs.responses.successGenerateAudio
curl -X POST "https://api.modelstream.ai/v1/audio/speech" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "tts-1",
  "input": "string",
  "voice": "string",
  "response_format": "string",
  "speed": 0
}'
"string"