First month for free!

Get started

  Overview
Text-to-Speech API

Text-to-Speech API

High-quality Speech API

ElevenLabs and OpenAI compatible API

Lowest price on the market: $2.50 per 1,000,000 characters

Our low-latency API can be used for chat applications, to narrate a blog post, to create voice-overs for videos, and much more. The API is the most affordable on the market. Save up to 90% compared to other providers, like ElevenLabs or OpenAI.

Languages and Voices

We support 8 languages and more than 50 voices to choose from.

API Usage

Switch from:

Our OpenAI and ElevenLabs compatible API makes it easy to switch. If you haven't already, you will need to create an API key to authenticate your requests.

import { createWriteStream } from "fs";
import { Readable } from "stream";
import { finished } from "stream/promises";

const response = await fetch("https://api.lemonfox.ai/v1/audio/speech", {
  method: "POST",
  headers: {
    "Authorization": "Bearer YOUR_API_KEY",
  },
  body: JSON.stringify({
    input: "Artificial intelligence is the intelligence of machines or software.",
    voice: "sarah",
    response_format: "mp3"
  })
})
const fileStream = createWriteStream("speech.mp3", { flags: "wx" });
await finished(Readable.fromWeb(response.body).pipe(fileStream));

API Response

The API returns the audio file content. You can specify the format of the audio file with the response_format parameter.

API Parameters

The API POST https://api.lemonfox.ai/v1/audio/speech takes the following parameters:

Start Your Free Trial