Audio & Music OpenAI

OpenAI TTS API

Use the OpenAI TTS API via RunAPI with a model skill, unified auth, and pay-as-you-go pricing.

runapi.ai
curl -X POST https://runapi.ai/api/v1/openai_tts/text_to_speech \
  -H "Authorization: Bearer $RUNAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "tts-1-hd",
  "text": "Convert this product onboarding script into clear, natural speech for an in-app walkthrough."
}'
import { OpenaiTtsClient } from "@runapi.ai/openai-tts";

const client = new OpenaiTtsClient();
const result = await client.textToSpeech.run({
    model: "tts-1-hd",
    text: "Convert this product onboarding script into clear, natural speech for an in-app walkthrough.",
});
require "runapi/openai_tts"

client = RunApi::OpenaiTts::Client.new
result = client.text_to_speech.run(
    model: "tts-1-hd",
    text: "Convert this product onboarding script into clear, natural speech for an in-app walkthrough."
)
npx skills add runapi-ai/openai-tts -g
# Claude Code
claude mcp add runapi -s user -- npx -y @runapi.ai/mcp

# Codex
codex plugin install runapi-mcp@agents

# Cursor / Windsurf / VS Code
npx @runapi.ai/mcp init cursor
@runapi.ai/openai-tts v1
OVERVIEW

About OpenAI TTS

OpenAI TTS converts text into speech through a synchronous RunAPI endpoint. Choose tts-1 for latency-sensitive applications or tts-1-hd for higher-fidelity narration; both return a managed MP3 URL.

Provider
OpenAI
Modality
Audio & Music

Available Versions

Variant Billing Pricing
tts-1 1K UTF-8 bytes $0.02 View →
tts-1-hd 1K UTF-8 bytes $0.03 View →
PRICING

OpenAI TTS Pricing

Endpoint Resolution Duration Price
text_to_speech — — $0.02 / 1K UTF-8 bytes

Prices shown for tts-1. Other variants retain their own endpoint pricing.

Agent integration

Run OpenAI TTS From an Agent

HOW IT WORKS

Get Started with OpenAI TTS

  1. Create an API key

    Sign up and generate an API key from the dashboard.

  2. Pick a version

    Choose the version that best matches your quality and cost requirements.

  3. Send a request

    Submit your prompt and parameters to the model's documented endpoint.

  4. Get your result

    Poll the task or set a webhook, then download the completed output.

CONTEXT

About OpenAI TTS on RunAPI

OpenAI TTS provides focused text-to-speech models for interactive playback and polished narration. Through RunAPI, both variants share one request shape and return managed audio metadata.

Provider
OpenAI
See all →
Modality
Audio & Music
Browse models →

Why Use OpenAI TTS Through RunAPI

One auth, every provider

A single RunAPI API key unlocks the whole model catalog across all providers. No separate accounts to create, no API keys to rotate per integration, and no credential management overhead. Add a new model to your app by changing one parameter.

Unified pricing & billing

Per-call pricing in USD, billed monthly into a single invoice. No subscription tiers, no minimum spend, and failed generations are never charged. The pricing page and check_pricing API show exact costs before you commit to a model.

Schema-first SDK

Typed schemas, parameter constraints, and setup notes are packaged in the model skill so your implementation starts from the right contract. The skill loads into Claude Code, Codex, Gemini CLI, Cursor, and VS Code — your agent knows the correct request shape before you write a line of code.

OpenAI TTS Questions

What is the difference between tts-1 and tts-1-hd?

tts-1 prioritizes low latency for interactive playback, while tts-1-hd prioritizes higher audio quality for narration and finished content.

What audio format does OpenAI TTS return?

Both variants return MP3 audio with format, MIME type, and byte-size metadata in the RunAPI response.

Is the generated audio hosted by RunAPI?

Yes. RunAPI validates the audio and returns a managed URL instead of exposing a temporary source URL.

Can I select a custom voice or speed?

The initial endpoint uses the published default voice and speed. Custom voice and speed controls are not part of this endpoint contract.

Is text-to-speech synchronous?

Yes. A successful request returns the completed audio result directly, without a separate polling endpoint.

Which variant should I start with?

Pick the cheapest variant that meets your quality bar. Most teams start on the fast variant and graduate to pro for production.

SIMILAR MODELS

Similar Audio & Music Models

Start generating with OpenAI TTS