Audio
Transcription vocale
Envoyez model et file en multipart/form-data : WAV PCM mono complet, au plus 25,000,000 octets, avec les limites de fréquence et de durée du canal. Champs facultatifs : language (deux lettres minuscules, par exemple fr) et response_format=json (seul format, également par défaut). Laissez curl générer la boundary. URL, ID de fichier, prompt, horodatages et stream ne sont pas pris en charge.
STT utilise input_audio_second ou des tokens ; TTS utilise input_character. Dans speech_billing_unit, utf16_code_unit et unicode_code_point comptent différemment les emoji. La réservation n'est pas un plafond ; le règlement peut être asynchrone. Un manque de preuves ne signifie pas gratuité. Les deux API acceptent X-Felo-Channel et envoient une seule fois au canal choisi. Désactivez les tentatives automatiques, SDK compris, après délai dépassé ou coupure. Conservez X-Request-Id et, si disponible, X-Generation-Id. Console Playground ne prend pas encore en charge l'audio. configured_rates utilise les tarifs figés et l’usage vérifié ; upstream_cost utilise le coût fournisseur vérifié avec la majoration et la remise publiées.
- 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
Le JSON synchrone contient
textet éventuellementusageen secondes ou tokens.usage.costest le coût fournisseur, pas le débit final Felo. Aucune tâche à interroger.- Type: stringtextobligatoire
- 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 enumvaleurs
- duration
- tokens
application/json - Type: object400
Upload, wallet or upstream error
- Type: objecterrorobligatoire
- codeType: string | null
- messageType: string
- paramType: string | null
- typeType: string
application/json - Type: object402
Upload, wallet or upstream error
- Type: objecterrorobligatoire
- codeType: string | null
- messageType: string
- paramType: string | null
- typeType: string
application/json - Type: object413
Upload, wallet or upstream error
- Type: objecterrorobligatoire
- codeType: string | null
- messageType: string
- paramType: string | null
- typeType: string
application/json - Type: object415
Upload, wallet or upstream error
- Type: objecterrorobligatoire
- codeType: string | null
- messageType: string
- paramType: string | null
- typeType: string
application/json - Type: object429
Upload, wallet or upstream error
- Type: objecterrorobligatoire
- codeType: string | null
- messageType: string
- paramType: string | null
- typeType: string
application/json - Type: object500
Upload, wallet or upstream error
- Type: objecterrorobligatoire
- codeType: string | null
- messageType: string
- paramType: string | null
- typeType: string
application/json - Type: object502
Upload, wallet or upstream error
- Type: objecterrorobligatoire
- codeType: string | null
- messageType: string
- paramType: string | null
- typeType: string
application/json - Type: object503
Upload, wallet or upstream error
- Type: objecterrorobligatoire
- codeType: string | null
- messageType: string
- paramType: string | null
- typeType: string
application/json - Type: object504
Upload, wallet or upstream error
- Type: objecterrorobligatoire
- 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
}
}