Skip to navigation

Generate synthetic voice candidates (Voice Design)

View as Markdown

Relays to https://api.fish.audio/v1/voice-design, overwriting Authorization with the gateway’s Fish Audio key. Billed a flat $0.01055 per successful request (Fish Audio’s own rate plus the gateway’s 5.5% fee); validation, balance, concurrency, and service errors are not billed. Candidates are one-off generations, not persisted voices — turning one into a reusable model would need /model, which this gateway does not mount.

Authentication

AuthorizationBearer

Your per-client bearer token — the API key the gateway issued to you. Present it in Authorization: Bearer <token> form. A token that is missing, unknown, or revoked draws a 401. Before the call is sent upstream the token is removed (stripped, or swapped for the upstream’s own credential); it never makes it past the gateway.

Headers

modelenumRequiredDefaults to voice-design-1

Voice-design model to use — currently only one value.

Allowed values:

Request

This endpoint expects an object.
instructionstringRequired1-2000 characters
Voice design prompt.
reference_textstring or nullOptional<=150 characters
languagestring or nullOptional

Optional BCP-47 language hint.

nintegerOptional1-4Defaults to 2
Number of voice candidates to generate.
speeddoubleOptionalDefaults to 1
num_stepintegerOptionalDefaults to 32
guidance_scaledoubleOptionalDefaults to 2
instruct_guidance_scaledoubleOptionalDefaults to 0
seedinteger or nullOptional

Response

The generated candidates, relayed untouched.
candidateslist of objects

Errors

401
Unauthorized Error
404
Not Found Error