YepAPI
AI Models

Eleven Flash v2.5

ElevenLabs' ultra-low-latency speech model for conversational and real-time use, in 32 languages.

POST/v1/media/queue
$0.0844/1K chars

Overview

Eleven Flash v2.5 is an ultra-low-latency text-to-speech model from ElevenLabs. It is suited for conversational and real-time use cases, supports 32 languages, and has a 40,000-character request limit.

PropertyValue
Model IDelevenlabs/eleven-flash-v2.5
Aliaseleven-flash
Upstream Modelelevenlabs/eleven-flash-v2.5
CategoryText to Speech
Languages32 languages
Outputmp3 (default) or pcm
Pricing$0.0844 per 1,000 characters

Usage

All media models use the async job queue. Submit a job, then poll for the result.

Step 1: Submit Job

const res = await fetch('https://api.yepapi.com/v1/media/queue', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    model: 'elevenlabs/eleven-flash-v2.5',
    prompt: 'Your text to speak goes here.',
    options: { voice: 'sarah' },
  }),
});
const { data } = await res.json();
// data.jobId — use this to poll for results
curl -X POST https://api.yepapi.com/v1/media/queue \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "elevenlabs/eleven-flash-v2.5", "prompt": "Your text to speak goes here."}'

Step 2: Poll for Result

const status = await fetch(`https://api.yepapi.com/v1/media/status/${data.jobId}`, {
  headers: { 'x-api-key': 'YOUR_API_KEY' },
});
const { data: job } = await status.json();
// job.status — "pending" | "processing" | "completed" | "failed"
// job.result.audio — { mimeType, base64 } when completed
curl https://api.yepapi.com/v1/media/status/JOB_ID \
  -H "x-api-key: YOUR_API_KEY"

Write the audio to a file:

import { writeFileSync } from 'node:fs';

writeFileSync('speech.mp3', Buffer.from(job.result.audio.base64, 'base64'));

Request Body

ParameterTypeRequiredDescriptionDefault
modelstringYeselevenlabs/eleven-flash-v2.5—
promptstringYesThe text to speak (max 40,000 characters)—
options.voicestringNoVoice identifiersarah
options.outputFormatstringNomp3 (default) or pcmmp3
options.speednumberNoPlayback speed multiplier. Honoured only by models that support it1.0

Voices

sarah is used when options.voice is omitted. 21 voices available (10 of 21 shown):

  • sarah
  • george
  • adam
  • alice
  • bella
  • bill
  • brian
  • callum
  • charlie
  • chris

Features

  • Ultra-low latency
  • Suited to conversational and real-time use
  • 32 languages
  • Up to 40,000 characters per request

Billing

Speech is billed on the length of the input text, in UTF-8 bytes — for English text one byte is one character. The cost is known before synthesis starts, so the balance check at submit time quotes the exact final charge. Jobs have a $0.01 minimum.

Under the Hood

Powered by OpenRouter's unified speech API.

On this page