Audio
Spracherkennung
Senden Sie model und file als multipart/form-data: vollständiges Mono-PCM-WAV, höchstens 25,000,000 Bytes, unter Beachtung der Abtastraten- und Dauergrenzen des Kanals. Optional: language (zwei Kleinbuchstaben, etwa de) und response_format=json (einziges Format und Standard). curl erzeugt die boundary. URLs, Datei-IDs, prompt, Zeitstempel und stream werden nicht unterstützt.
STT nutzt input_audio_second oder Tokens, TTS input_character. Bei speech_billing_unit zählen utf16_code_unit und unicode_code_point Emojis unterschiedlich. Reservierungen sind keine Kostenobergrenze; die Abrechnung kann asynchron erfolgen. Fehlende Belege bedeuten nicht kostenlos. Beide APIs akzeptieren X-Felo-Channel und senden einmal an den ausgewählten Kanal. Automatische Wiederholungen nach Timeout oder Abbruch auch im SDK deaktivieren. X-Request-Id und verfügbare X-Generation-Id aufbewahren. Console Playground unterstützt Audio noch nicht. configured_rates nutzt eingefrorene Tarife und bestätigte Nutzung; upstream_cost nutzt bestätigte Anbieterkosten mit veröffentlichtem Aufschlag und Rabatt.
- 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
Die synchrone JSON-Antwort enthält
textund optionalusagein Sekunden oder Tokens.usage.costsind Anbieter-Kosten, nicht die endgültige Felo-Abbuchung. Kein Task-Polling nötig.- Typ: stringtexterforderlich
- 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 enumWerte
- duration
- tokens
application/json - Typ: object400
Upload, wallet or upstream error
- Typ: objecterrorerforderlich
- codeTyp: string | null
- messageTyp: string
- paramTyp: string | null
- typeTyp: string
application/json - Typ: object402
Upload, wallet or upstream error
- Typ: objecterrorerforderlich
- codeTyp: string | null
- messageTyp: string
- paramTyp: string | null
- typeTyp: string
application/json - Typ: object413
Upload, wallet or upstream error
- Typ: objecterrorerforderlich
- codeTyp: string | null
- messageTyp: string
- paramTyp: string | null
- typeTyp: string
application/json - Typ: object415
Upload, wallet or upstream error
- Typ: objecterrorerforderlich
- codeTyp: string | null
- messageTyp: string
- paramTyp: string | null
- typeTyp: string
application/json - Typ: object429
Upload, wallet or upstream error
- Typ: objecterrorerforderlich
- codeTyp: string | null
- messageTyp: string
- paramTyp: string | null
- typeTyp: string
application/json - Typ: object500
Upload, wallet or upstream error
- Typ: objecterrorerforderlich
- codeTyp: string | null
- messageTyp: string
- paramTyp: string | null
- typeTyp: string
application/json - Typ: object502
Upload, wallet or upstream error
- Typ: objecterrorerforderlich
- codeTyp: string | null
- messageTyp: string
- paramTyp: string | null
- typeTyp: string
application/json - Typ: object503
Upload, wallet or upstream error
- Typ: objecterrorerforderlich
- codeTyp: string | null
- messageTyp: string
- paramTyp: string | null
- typeTyp: string
application/json - Typ: object504
Upload, wallet or upstream error
- Typ: objecterrorerforderlich
- 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
}
}