Audio
Spraakherkenning
Stuur model en file als multipart/form-data: een volledig mono PCM WAV-bestand, maximaal 25,000,000 bytes, met de samplefrequentie- en duurlimieten van het kanaal. Optioneel: language (twee kleine letters, zoals nl) en response_format=json (enige formaat en standaard). Laat curl de boundary maken. URL's, bestands-ID's, prompt, tijdstempels en stream worden niet ondersteund.
STT gebruikt input_audio_second of tokens; TTS gebruikt input_character. Bij speech_billing_unit tellen utf16_code_unit en unicode_code_point emoji anders. De reservering is geen uitgavenlimiet; afrekening kan asynchroon zijn. Ontbrekend bewijs betekent niet gratis. Beide accepteren X-Felo-Channel en versturen eenmaal naar het gekozen kanaal. Zet automatische herhalingen, ook in SDK's, uit na timeout of verbreking. Bewaar X-Request-Id en beschikbare X-Generation-Id. Console Playground ondersteunt audio nog niet. configured_rates gebruikt vastgezette tarieven en geverifieerd gebruik; upstream_cost gebruikt geverifieerde leverancierskosten met gepubliceerde opslag en korting.
- Type: stringX
- Felo - Channel Ordered comma-separated public channel codes. Omit this header to use default; default must be used alone. In wallet mode, default scans the model's effective public channel order in reverse, skips unpublished or unavailable channels, and uses the first eligible channel. Explicit codes follow the supplied order. For stateless Chat Completions, Messages and Responses, the server may try another selected channel or provider group after a confirmed upstream rejection. A single explicit channel limits routing to that channel. Legacy provider headers cannot override channel routing.
- Type: object200
De synchrone JSON bevat
texten eventueelusagein seconden of tokens.usage.costzijn leverancierskosten, niet de uiteindelijke Felo-afschrijving. Geen taakpolling nodig.- Type: stringtextverplicht
- Type: object | nullusage
- costType: numbermin.:0
Reported upstream cost in USD.
- inputType: object
_token _details - audioType: integer
_tokens min.:0Integer numbers.
- textType: integer
_tokens min.:0Integer numbers.
- inputType: integer
_tokens min.:0Integer numbers.
- outputType: integer
_tokens min.:0Integer numbers.
- secondsType: numbermin.:0
Duration reported by the selected channel.
- totalType: integer
_tokens min.:0Integer numbers.
- typeType: string enumwaarden
- duration
- tokens
application/json - Type: object400
Upload, wallet or upstream error
- Type: objecterrorverplicht
- codeType: string | null
- messageType: string
- paramType: string | null
- typeType: string
application/json - Type: object402
Upload, wallet or upstream error
- Type: objecterrorverplicht
- codeType: string | null
- messageType: string
- paramType: string | null
- typeType: string
application/json - Type: object413
Upload, wallet or upstream error
- Type: objecterrorverplicht
- codeType: string | null
- messageType: string
- paramType: string | null
- typeType: string
application/json - Type: object415
Upload, wallet or upstream error
- Type: objecterrorverplicht
- codeType: string | null
- messageType: string
- paramType: string | null
- typeType: string
application/json - Type: object429
Upload, wallet or upstream error
- Type: objecterrorverplicht
- codeType: string | null
- messageType: string
- paramType: string | null
- typeType: string
application/json - Type: object500
Upload, wallet or upstream error
- Type: objecterrorverplicht
- codeType: string | null
- messageType: string
- paramType: string | null
- typeType: string
application/json - Type: object502
Upload, wallet or upstream error
- Type: objecterrorverplicht
- codeType: string | null
- messageType: string
- paramType: string | null
- typeType: string
application/json - Type: object503
Upload, wallet or upstream error
- Type: objecterrorverplicht
- codeType: string | null
- messageType: string
- paramType: string | null
- typeType: string
application/json - Type: object504
Upload, wallet or upstream error
- Type: objecterrorverplicht
- codeType: string | null
- messageType: string
- paramType: string | null
- typeType: string
application/json
curl https://openapi.felo.ai/api/v1/audio/transcriptions \
--request POST \
--header 'Content-Type: multipart/form-data' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--form 'model=grok-stt-2.0' \
--form 'file=@filename' \
--form 'language=' \
--form 'response_format=json'
{
"text": "string",
"usage": {
"seconds": 0,
"type": "duration",
"input_tokens": 0,
"output_tokens": 0,
"total_tokens": 0,
"input_token_details": {
"text_tokens": 0,
"audio_tokens": 0
},
"cost": 0
}
}