1
Install the skill
.agents/skills/, with symlinks for Claude Code and Cursor). Run npx skills update later to refresh them.fish-audio-sdk
Python (
fish-audio-sdk) and JavaScript (fish-audio): exact method signatures, sync + async, model selection, and the real exception types.fish-audio-api
Raw REST + WebSocket for any language: auth, endpoints, MessagePack/JSON/multipart rules, and the streaming protocol.
fish-audio-agents
Voice agents over the Agents API: create and publish an agent, reach it in the console, on your own page, or by phone, and read the conversation back.
2
Set your API key
Create a key and export it; the code your agent writes reads it from the environment:
3
Ask your agent
Prompt in plain language; it uses the correct client, methods, and error types:
TTS in a cloned voice
“Generate speech with Fish Audio in a cloned voice and save it to a file.”
Transcribe with timestamps
“Transcribe
speech.wav with Fish Audio and print the segments.”Stream from an LLM
“Stream an LLM’s tokens to Fish Audio TTS over the WebSocket.”
Raw API, any language
“Call the Fish Audio TTS REST API from Go, no SDK.”
Build a voice agent
“Build a Fish Audio voice agent that takes orders for my bakery, and give me a browser demo I can talk to.”
Install options
AI Coding Assistants: full guide
Targeting specific agents, the Fish Audio MCP server, and reading the skills
before you install.
Next steps
Get your API key
Create a key and make your first request.
Quick Start
Generate your first audio by hand, in any language.
Text to Speech
Voices, formats, streaming, and the direct API.
API reference
Endpoints, parameters, and the OpenAPI schema.
For autonomous agents & RAG pipelines
Not a coding agent installing a skill, but an autonomous agent, RAG pipeline, or crawler? Start from these low-noise, machine-readable entry points:- llms.txt: curated documentation index (read this first)
- llms-full.txt: broader context across the whole site
- OpenAPI: REST schemas, parameters, and examples
- WebSocket TTS Streaming and WebSocket Realtime Speech to Text: the WebSocket protocols, each page ending with its AsyncAPI schema
Canonical API facts
Canonical API facts
- Base API URL:
https://api.fish.audio - Authentication:
Authorization: Bearer <FISH_API_KEY> - TTS model selection: optional
modelheader (s1(deprecated),s2-pro,s2.1-pro,s2.1-pro-free). Recommended:s2.1-profor production,s2.1-pro-freefor the free developer tier. If omitted, the server usess2.1-pro. S1 is deprecated and will be retired on December 31, 2026. After that date, requests that specifys1are served bys2.1-pro - ASR model selection:
modelheader onPOST /v1/asr(transcribe-1-pro,transcribe-1). Recommended:transcribe-1-pro(speaker turns, long recordings, emotion cues); send it explicitly. If the header is missing or not an exact match, the request is served and billed astranscribe-1. The/v1/asrentry inopenapi.jsondoes not yet list thetranscribe-1-profields,request_id,speaker_turns, or the errorcode; for those, follow the Speech to Text API reference - Main REST endpoints:
POST /v1/ttsPOST /v1/asrGET /modelPOST /modelGET /model/{id}PATCH /model/{id}DELETE /model/{id}
- Real-time streaming endpoint:
wss://api.fish.audio/v1/tts/live
Retrieval order
Retrieval order
- Read llms.txt for the curated
documentation index. 2. Read
llms-full.txt when broad site context
is needed. 3. Read
OpenAPI for REST
schemas, parameters, and examples. 4. Read WebSocket TTS
Streaming
or WebSocket Realtime Speech to
Text
for the WebSocket protocols and their AsyncAPI schemas. 5. Fetch individual
.mdpages only after narrowing to a specific task.
High-value URLs by task
High-value URLs by task
API specs
- OpenAPI
- AsyncAPI, WebSocket TTS Streaming
- AsyncAPI, WebSocket TTS with Timestamps
- AsyncAPI, WebSocket Realtime Speech to Text
- API Introduction
- Text to Speech Guide
- Speech to Text Guide
- Creating Voice Models
- Emotion Control
- Fine-grained Control
- WebSocket TTS Streaming
- Real-time Streaming Best Practices
- Realtime Streaming (SDK)
- LiveKit Integration
- Pipecat Integration
Task routing
Task routing
- Generate speech → Quick Start, the Text to Speech guide, and
POST /v1/tts. - Transcribe audio → the Speech to Text guide andPOST /v1/asrwithmodel: transcribe-1-pro. - Clone or manage voices → Creating Voice Models and the/modelendpoints. - Stream audio in real time → WebSocket TTS Streaming and the realtime guides. - Pick a model or estimate cost → Models Overview and Pricing & Rate Limits.
Notes for agents
Notes for agents
- Prefer
openapi.jsonfor machine-readable REST schemas, except for the/v1/asrgaps listed under Canonical API facts. For a WebSocket endpoint, the AsyncAPI schema is at the end of its page’s.mdexport. - Append
.mdto any page URL to fetch the human-authored page as plain Markdown. - Some richer pages use interactive MDX widgets. If a fetched page contains UI or component noise, fall back to
llms.txt,llms-full.txt, or the API spec files.

