anyllm.space
Main navigation
Documentation sections ▾
Documentation / Speech and media

Speech and media

Estimate speech by character count, save the audio response and check pilot availability for image and video.

Text to speech

Check availability and units on the model card before sending a paid request. The speech endpoint accepts a model, voice and input text. Keep the idempotency key and order reference stable for one recording.

curl --fail-with-body -D speech-headers.txt https://api.anyllm.space/v1/audio/speech \
  -H "Authorization: Bearer $ANYLLM_API_KEY" \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: order17-voice-v1' \
  -H 'X-Max-Cost-Rub: 1.00' \
  -d '{"model":"elevenlabs/v4-ru","voice":"ru-studio-neutral","input":"Hello"}' \
  -o order17.mp3

Save the response file and its request ID when the call completes. If a repeat returns result_not_retained, use the original file or inspect the request record before requesting another recording. A new job can incur a new charge.

Image and video

Pilot model pages describe prospective image and video formats. Confirm production access, endpoints and delivery with the team before implementing a media workflow. A published pilot card by itself is insufficient to start a production job.