Saltar al contenido
Iniciar sesiónEmpieza gratis

Audio generation API

Make speech in four languages, short tracks and sound effects. Audio is a job: you start it, then ask until it is done. You can ask for the exact price before you run anything.

Models open for the API now

Read live from the API's own model list, so the prices here are the prices charged.

ModeloModesPrecio
Seed Audio 1.0tts music sfxfrom 807 credits per 1,000 characters
Eleven v4ttsfrom 135 credits per 1,000 characters
Eleven v3ttsfrom 168 credits per 1,000 characters
MiniMax Speech 2.8 HDttsfrom 168 credits per 1,000 characters
Seed Speech TTS 2.0ttsfrom 51 credits per 1,000 characters
Gemini Flash TTSttsfrom 76 credits per 1,000 characters
Grok Voice TTSttsfrom 26 credits per 1,000 characters
Cellotts clonefrom 25 credits per 1,000 characters
Violatts clonefrom 20 credits per 1,000 characters
Harptts clonefrom 30 credits per 1,000 characters
Oboeclonefrom 20 credits per 1,000 characters
Eleven Music v2.5musicfrom 1,008 credits per minute
Lyria 3musicfrom 68 credits per run
Etudemusic sfxfrom 20 credits per run
Sonatamusicfrom 12 credits per minute
Nocturnemusicfrom 20 credits per minute
MiniMax-Music3musicfrom 110 credits per minute
Eleven Sound Effects v2sfxfrom 202 credits per minute
Mirelo SFX 1.6sfxfrom 1,008 credits per minute
Mirelo SFX 2.0sfxfrom 1,512 credits per minute
Kling Video-to-Audiosfxfrom 59 credits per run
ThinkSoundsfxfrom 17 credits per run

Your first request

Ask for the price. Asking never charges.

# 1. the price: asking never charges
curl https://pickshot.ai/api/v1/estimate \
  -H "Authorization: Bearer $PICKSHOT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"kind":"audio","request":{"model":"viola","mode":"tts","text":"Hello from Pickshot.","lang":"en"}}'

# 2. the run, capped at the price you were quoted (a higher price is refused before anything is taken)
curl https://pickshot.ai/api/v1/audio \
  -H "Authorization: Bearer $PICKSHOT_API_KEY" \
  -H "Idempotency-Key: my-run-0001" \
  -H "Content-Type: application/json" \
  -d '{"model":"viola","mode":"tts","text":"Hello from Pickshot.","lang":"en","max_credits":QUOTED_CREDITS}'

como funciona

  1. Make an API key on the API page.
  2. Ask for the price of your exact request: POST /api/v1/estimate.
  3. Run it with max_credits set to that price and an Idempotency-Key header. A higher price is refused before anything is taken.
  4. A clip or sound returns a job id: ask GET /api/v1/jobs/{id} until it is done.

Try it in the Playground · Get an API key · OpenAPI description

Preguntas

Is there a free trial through the API?

No. Every generation through a key costs credits, including models that are free on the website. Reading prices and asking for a quote cost nothing.

What if a run fails?

What was not delivered is given back to your credits. The job or the reply says so.

Can I retry safely?

Yes. Send the same Idempotency-Key with the same request and you get the first result back instead of a second charge. Receipts are kept for 24 hours.