Check audio prices before you call
Speech and transcription models priced per character, per UTF-8 byte or per audio second now show that price on their own page, in the unit the provider counts.
Speech and transcription models priced per character, per UTF-8 byte or per audio second now list that price on their own page, so you can see the rate before you send a call. POST /v1/audio/speech and POST /v1/audio/transcriptions use the same API key and balance as every other call, and each call leaves one charge on your balance.
One speech call, one transcription call
Speech takes JSON and answers with the audio itself. model and input are required, and some models, speech-2.8-turbo and aura-2 among them, also need a voice; response_format and speed are optional.
curl https://api.apertis.ai/v1/audio/speech \
-H "Authorization: Bearer $APERTIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "speech-2.8-turbo", "input": "Hello.", "voice": "alloy"}' -o speech.outThe response is 200 with the audio as the body and its audio Content-Type; the body is not JSON. The charge here is Hello. counted as 6 units at USD 0.00006, USD 0.00036.
Transcription takes a multipart upload and answers with JSON that includes text and the audio seconds counted in usage.seconds. For example (abridged):
curl https://api.apertis.ai/v1/audio/transcriptions \
-H "Authorization: Bearer $APERTIS_API_KEY" \
-F model=gpt-transcribe -F file=@sample.wav{"text": "Hello.", "usage": {"seconds": 1}}That is 1 audio second at USD 0.000075, USD 0.000075. Transcription is priced per second of audio as the provider counts it, and the response reports those seconds in usage.seconds.

What each unit counts
| Unit on the model page | What it counts | Example model | Price per unit |
|---|---|---|---|
| UTF-8 byte | The bytes of input. | s2-pro | USD 0.000015 |
| character | The characters of input. | aura-2 | USD 0.00003 |
| character (Han/Chinese character counts as 2) | The characters of input, with each Han character counted twice. | speech-2.8-turbo | USD 0.00006 |
| audio second | The seconds of audio, as the provider reports them in usage.seconds. | gpt-transcribe | USD 0.000075 |
A speech call is charged from the text you send, counted before the call, so you can work out the price of a request before you make it. The first three units apply to /v1/audio/speech, the last to /v1/audio/transcriptions. Prices are read from the live model pages and are USD at a group multiplier of 1; your account's group may change the final charge.
Limits and errors
| Case | What you get |
|---|---|
input over 4096 characters | 400, code text_too_long |
| Largest transcription upload | 25 MiB of decoded audio |
| A request field the endpoint does not take | 400, code unsupported_audio_parameter |
A subscription key (sk-sub_...) | 403, code audio_requires_payg; audio needs a pay-as-you-go key |
See the price before you call
The price sits on the model's own page, in a block titled Customer audio pricing: the endpoint, the direction (Text to speech or Speech to text), and the rate in USD per unit, with a note that the base rates are shown at a group multiplier of 1 and that actual usage is deducted from your credit quota.

The same numbers are in the model's audio_pricing field, with no key needed:
curl -s https://api.apertis.ai/api/v2/models/speech-2.8-turbo | jq -c '.data.model.audio_pricing'{"basis":"group_ratio_1","currency":"USD","profiles":[{"endpoint":"audio_speech","direction":"text_to_speech","cache_policy":"not_applicable","rates":[{"side":"input","modality":"text","unit":"han_weighted_character","usd_per_unit":0.00006}]}]}