AI

Convert text to speech

πŸ”Š AI Text-to-Speech Synthesis

Convert text to natural-sounding speech using OpenAI's TTS API. Generated audio is uploaded to cloud storage and returned as a public URL.

πŸŽ™οΈ Available Voices

  • alloy – balanced, neutral (default)
  • echo – soft, warm
  • fable – expressive, British accent
  • onyx – deep, authoritative
  • nova – bright, energetic
  • shimmer – gentle, clear

🎡 Output Formats

  • MP3 (default), Opus, AAC, FLAC, WAV, PCM
post/api/ai/{project_id}/speech

Request

  • Base URL
    https://core.blink.new
  • URL
    https://core.blink.new/api/ai/{project_id}/speech
  • Auth
    HTTP bearer

Path parameters

project_idstring required
Example:my-project-123

Unique identifier for the project

Request body

modelstring
textstring required

Text to convert to speech

voice'alloy' | 'echo' | 'fable' | 'onyx' | 'nova' | 'shimmer'
response_format'mp3' | 'opus' | 'aac' | 'flac' | 'wav' | 'pcm'
speednumber

Response

Speech generated and uploaded to cloud storage

Example response

{
  "result": {
    "url": "https://cdn.blink.new/projects/my-project-123/audio/generated-speech-1750914303336.mp3",
    "voice": "alloy",
    "format": "mp3",
    "mimeType": "audio/mpeg"
  },
  "metadata": {
    "provider": "google-gemini"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.