Audio
Přepis řeči
Pošlete model a file jako multipart/form-data: úplný mono PCM WAV, nejvýše 25,000,000 bajtů, při dodržení limitů vzorkovací frekvence a délky kanálu. Volitelné: language (dvě malá písmena, např. cs) a response_format=json (jediný i výchozí formát). boundary vytvoří curl. URL, ID souboru, prompt, časové značky a stream nejsou podporovány.
STT používá input_audio_second nebo tokeny, TTS input_character. V speech_billing_unit počítají utf16_code_unit a unicode_code_point emoji odlišně. Rezervace není limit útraty; vyúčtování může být asynchronní. Chybějící důkazy neznamenají nulovou cenu. Obě API přijímají X-Felo-Channel a odesílají jednou do zvoleného kanálu. Vypněte automatická opakování včetně SDK po timeoutu nebo odpojení; uchovejte X-Request-Id a dostupné X-Generation-Id. Console Playground zatím zvuk nepodporuje. configured_rates používá zmrazené sazby a ověřenou spotřebu; upstream_cost ověřené náklady dodavatele s publikovanou přirážkou a slevou.
- Typ: 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.
- Typ: object200
Synchronní JSON obsahuje
texta volitelněusagev sekundách nebo tokenech.usage.costje cena dodavatele, nikoli konečná platba Felo. Není třeba dotazovat stav úlohy.- Typ: stringtextpovinné
- Typ: object | nullusage
- costTyp: numbermin:0
Reported upstream cost in USD.
- inputTyp: object
_token _details - audioTyp: integer
_tokens min:0Integer numbers.
- textTyp: integer
_tokens min:0Integer numbers.
- inputTyp: integer
_tokens min:0Integer numbers.
- outputTyp: integer
_tokens min:0Integer numbers.
- secondsTyp: numbermin:0
Duration reported by the selected channel.
- totalTyp: integer
_tokens min:0Integer numbers.
- typeTyp: string enumhodnoty
- duration
- tokens
application/json - Typ: object400
Upload, wallet or upstream error
- Typ: objecterrorpovinné
- codeTyp: string | null
- messageTyp: string
- paramTyp: string | null
- typeTyp: string
application/json - Typ: object402
Upload, wallet or upstream error
- Typ: objecterrorpovinné
- codeTyp: string | null
- messageTyp: string
- paramTyp: string | null
- typeTyp: string
application/json - Typ: object413
Upload, wallet or upstream error
- Typ: objecterrorpovinné
- codeTyp: string | null
- messageTyp: string
- paramTyp: string | null
- typeTyp: string
application/json - Typ: object415
Upload, wallet or upstream error
- Typ: objecterrorpovinné
- codeTyp: string | null
- messageTyp: string
- paramTyp: string | null
- typeTyp: string
application/json - Typ: object429
Upload, wallet or upstream error
- Typ: objecterrorpovinné
- codeTyp: string | null
- messageTyp: string
- paramTyp: string | null
- typeTyp: string
application/json - Typ: object500
Upload, wallet or upstream error
- Typ: objecterrorpovinné
- codeTyp: string | null
- messageTyp: string
- paramTyp: string | null
- typeTyp: string
application/json - Typ: object502
Upload, wallet or upstream error
- Typ: objecterrorpovinné
- codeTyp: string | null
- messageTyp: string
- paramTyp: string | null
- typeTyp: string
application/json - Typ: object503
Upload, wallet or upstream error
- Typ: objecterrorpovinné
- codeTyp: string | null
- messageTyp: string
- paramTyp: string | null
- typeTyp: string
application/json - Typ: object504
Upload, wallet or upstream error
- Typ: objecterrorpovinné
- codeTyp: string | null
- messageTyp: string
- paramTyp: string | null
- typeTyp: 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
}
}