Fish Audio

Fish Audio S2.1 Pro — Text to audio API

Fish Audio, text-to-audio. Credits per byte of text (counted as bytes:speech.text): 0.0019.

← Fish Audio

Endpoint: POST https://queue.auray.run/auray-serverless/fishaudio/s2-1-pro

Endpoint ID: auray-serverless/fishaudio/s2-1-pro

Open in PlaygroundFish Audio S2.1 Pro · Text to audio

Usage notes

One of Auray's catalogue models: the same key, the same credits, the same job lifecycle as every other address.

Its request shape is published below. Whether it runs right now is GET /v1/catalogue's word, with no key needed: its addresses say connected for an address that runs, and a submit to any other is refused before anything is charged — described answers 501 model_not_connected, paused 503 model_disabled.

Category text-to-audio · Scope audio:write (or external:write on an older key) · Price Credits per byte of text (counted as bytes:speech.text): 0.0019. From 1107 to 9000 bytes of text a request. Quoted when you submit, at the most the request can cost; the charge settles to what the job cost and never above the quote. The submit's answer carries the quote as credits_quoted, and credits_charged says what has been taken.

  • speech — Text → Speech
  • voice-clone — Voice clone: 1 sound
  • dialogue — Dialogue
  • Prompt: up to 3,000 characters
  • Sound: makes its own sound
  • Priced by: char_in (the whole rule is under Price)

Find the addresses that do any of these with GET /v1/models?operation=<id>; the openapi.json carries them as data under x-auray-capability.

Quick start

curl -X POST https://queue.auray.run/auray-serverless/fishaudio/s2-1-pro \
  -H "Authorization: Bearer $AURAY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
  "speech": {
    "text": "a brass orrery on a walnut desk, morning light from a window to the left"
  }
}'

The same body on https://auray.run runs synchronously and answers the result — unless it usually takes longer than a run may hold its connection, which is refused 400 model_not_synchronous before anything is charged. Options — ?webhook=, ?wait=, priority and timeout headers — are on Submit a request.

Input schema

inputsobject
Show child attributes
referenceVoicesobject[]
Show child attributes
audiostring
Reference audio clip for the voice to clone (an http(s) URL). Audio duration must be between 1.0 and 90.0 seconds. This model copies the voice in a recording here: a recording you upload, or a link from anywhere else, is taken once your account has accepted, one time, that you have the right to the faces and voices you use — send acceptance: {"real_people": "2026-11-03"} with the request, or accept in the Auray app — and is refused 403 acceptance_required until then, before anything is charged. A recording made here — a job's result — asks nothing. While uploads are paused here, a recording you upload, or a link from anywhere else, is refused 403 voice_sample_not_made_here instead, before anything is charged. The files the examples here send are ours, and are taken. A URL.
textstring
Transcript of the reference audio clip. Must match the spoken content of the reference audio. Documented range: 1 to 1,000 characters.
speechobjectrequired
Show child attributes
textstringrequired
Text to convert to speech. For multi-speaker dialogue, embed inline speaker tags such as <|speaker:0|> and <|speaker:1|>. Bracket-style paralinguistic cues such as [laughs], [sigh], [short pause], and [whispering] can also be embedded inline. Documented range: 1 to 3,000 characters.
voicestring
Voice model ID from the Fish Audio voice library or a custom voice. Browse all available voices at https://api.fish.audio/model?page_size=100&page_number=1&sort_by=score.
voicesstring[]
Voice model IDs for multi-speaker dialogue. Speaker tags in speech.text such as <|speaker:0|> and <|speaker:1|> map to the matching array index.
volumenumberdefault: 0
Volume adjustment in decibels. 0 = no change.
speednumberdefault: 1
Playback speed of the generated speech. Documented range: 0.5 to 2.
settingsobject
Show child attributes
temperaturenumberdefault: 0.7
Expressiveness of the generated speech. Documented range: 0 to 1.
topPnumberdefault: 0.7
Nucleus sampling parameter that controls diversity by limiting the probability mass. Lower values make outputs more focused, higher values increase diversity. Documented range: 0 to 1.
chunkLengthintegerdefault: 300
Text segment size for processing. Documented range: 100 to 300.
conditionOnPreviousChunksbooleandefault: true
Previous audio context for voice consistency across chunks.
earlyStopThresholdnumberdefault: 1
Early stopping threshold for batch processing. Documented range: 0 to 1.
latencystringdefault: "normal"
Latency / quality trade-off. One of "low", "normal", "balanced".
maxTokensintegerdefault: 1024
Maximum audio tokens to generate per text chunk. Documented range: 1 to 4,294,967,295.
minChunkLengthintegerdefault: 50
Minimum characters before splitting into a new chunk. Documented range: 0 to 100.
normalizebooleandefault: true
Text normalization for English and Chinese. Improves stability for numbers.
normalizeLoudnessbooleandefault: true
Normalize output loudness for consistent perceived volume.
repetitionPenaltynumberdefault: 1.2
Penalty for repeating audio patterns. Documented range: 0 to 2.
outputTypestringdefault: "URL"
Audio output type. One of "URL".
outputFormatstringdefault: "MP3"
Specifies the file format of the generated output. The available values depend on the task type and the specific model's capabilities. - `JPG`: Best for photorealistic images with smaller file sizes (no transparency). - `PNG`: Lossless compression, supports high quality and transparency (alpha channel). - `WEBP`: Modern format providing superior compression and transparency support. - `MP4`: Widely supported video container (H.264), recommended for general use. - `WEBM`: Optimized for web delivery. - `MOV`: QuickTime format, common in professional workflows (Apple ecosystem). - `GIF`: Animated image format (no audio), suitable for short loops or previews. - `MP3`: Compressed audio, smaller file size. - `WAV`: Uncompressed, high-quality audio. - `FLAC`: Lossless compression. - `OGG`: Open-source compressed audio format (Vorbis codec). - `SVG`: Scalable Vector Graphics. - `TIFF`: High-quality output supporting layers. - `GLB`: Binary glTF format for 3D models, including geometry, textures, and PBR materials. > [!NOTE] > **Transparency**: If you are using features like background removal or LayerDiffuse that require transparency, you must select a format that supports an alpha channel (e.g., `PNG`, `WEBP`, `TIFF`). `JPG` does not support transparency. One of "MP3", "WAV", "FLAC", "OGG".
audioSettingsobject
Show child attributes
bitrateinteger
Audio bitrate in kbps. Documented range: 8 or more.
channelsintegerdefault: 2
Number of audio channels. 1 for mono, 2 for stereo. One of 1, 2.
sampleRateinteger
Audio sample rate in Hz.
idempotency_keystring
Your own name for this request. Send the same one twice and the second call is answered with the first request rather than charged again. Idempotency-Key: as a header is accepted as an alias — that is the spelling a retrying proxy replays, and the one to use when running a model on auray.run, where a request that outlives its connection is answered 504 and recovered by replay. Omit it and the platform mints one. 1 to 64 characters.
acceptanceobject
Your account's one acceptance, sent with the request that first needs it: a file of a real person's face or voice you upload, in a field this model makes speak or move, copies the voice of or puts into a clip, is taken once your account has accepted, one time, that you have the right to the faces and voices you use. Kept for your account before anything is charged, so no later request asks again — in any app or through the API — and asked of no file made here. You can accept in the Auray app (Account → Privacy) instead; an assistant cannot accept for you, so through MCP it is accepted in the app.
Show child attributes
real_peoplestring
The version of the words you accept: that you have the right to every face and voice you upload, and to any voice or style you pick that sounds like a real person — it is yours, or you have permission — and that you are responsible for what you make with them. One of "2026-11-03".

Rules

Across fields, as the model's documentation states them. Each is judged before anything is charged — warned with a Deprecation header until enforcement starts — and listed as JSON Schema under x-auray-rules in the openapi.json.

  • When outputFormat is one of "WAV", "FLAC", do not send audioSettings.
  • When outputFormat is "MP3", audioSettings.sampleRate must be one of 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000. When outputFormat is "MP3", when audioSettings.sampleRate is one of 16000, 22050, 24000, audioSettings.bitrate must be between 8 and 160. When outputFormat is "MP3", when audioSettings.sampleRate is one of 32000, 44100, 48000, audioSettings.bitrate must be between 32 and 320. When outputFormat is "MP3", when audioSettings.sampleRate is one of 8000, 11025, 12000, audioSettings.bitrate must be between 8 and 64.
  • When outputFormat is "OGG", audioSettings.sampleRate must be one of 8000, 12000, 16000, 24000, 48000. When outputFormat is "OGG", when audioSettings.sampleRate is 8000 and audioSettings.channels is 2, audioSettings.bitrate must be between 16 and 80. When outputFormat is "OGG", when audioSettings.sampleRate is 12000 and audioSettings.channels is 1, audioSettings.bitrate must be between 16 and 48. When outputFormat is "OGG", when audioSettings.sampleRate is 12000 and audioSettings.channels is 2, audioSettings.bitrate must be between 16 and 96. When outputFormat is "OGG", when audioSettings.sampleRate is 16000 and audioSettings.channels is 1, audioSettings.bitrate must be between 16 and 96. When outputFormat is "OGG", when audioSettings.sampleRate is 16000 and audioSettings.channels is 2, audioSettings.bitrate must be between 24 and 192. When outputFormat is "OGG", when audioSettings.sampleRate is 24000 and audioSettings.channels is 1, audioSettings.bitrate must be between 16 and 80. When outputFormat is "OGG", when audioSettings.sampleRate is 24000 and audioSettings.channels is 2, audioSettings.bitrate must be between 32 and 160. When outputFormat is "OGG", when audioSettings.sampleRate is 48000 and audioSettings.channels is 1, audioSettings.bitrate must be between 32 and 224. When outputFormat is "OGG", when audioSettings.sampleRate is 48000 and audioSettings.channels is 2, audioSettings.bitrate must be between 48 and 256. When outputFormat is "OGG", when audioSettings.sampleRate is 8000 and audioSettings.channels is 1, audioSettings.bitrate must be between 8 and 40.
  • Do not send speech.voice together with speech.voices.
  • Do not send speech.voice together with inputs.referenceVoices.
  • Do not send speech.voices together with inputs.referenceVoices.
  • inputs.referenceVoices must hold exactly 1 item. In every item of inputs.referenceVoices: inputs.referenceVoices[].audio and inputs.referenceVoices[].text are required.

Machine contracts

  • openapi.json — this page as an OpenAPI 3.1 document, public.
  • llms.txt — the same, written for an agent.

Was this page helpful?

Use the up and down arrow keys to select a result, Enter to open it, and Escape to close search.