Felo API PlatformFelo API Platform
v0.4.0
OpenAPI 3.1.0

Trascrizione vocale

Server:https://openapi.felo.ai
Librerie client

Audio

​

Trascrizione vocale

​

Invia model e file come multipart/form-data: WAV PCM mono completo, massimo 25,000,000 byte, rispettando frequenza e durata del canale. Facoltativi: language (due lettere minuscole, es. it) e response_format=json (unico formato e predefinito). Lascia generare boundary a curl. URL, ID file, prompt, timestamp e stream non sono supportati.

STT usa input_audio_second o token; TTS usa input_character. In speech_billing_unit, utf16_code_unit e unicode_code_point contano gli emoji diversamente. La prenotazione non è un tetto di spesa; la liquidazione può essere asincrona. Prove mancanti non significano costo zero. Entrambi accettano X-Felo-Channel e inviano una sola volta al canale scelto. Disattiva i tentativi automatici anche dell'SDK dopo timeout o disconnessione. Conserva X-Request-Id e l'eventuale X-Generation-Id. Console Playground non supporta ancora l'audio. configured_rates usa tariffe congelate e utilizzo verificato; upstream_cost usa il costo verificato del fornitore con ricarico e sconto pubblicati.

Intestazioni
  • X-Felo-Channel
    Tipo: string

    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.

Corpo
obbligatorio
application/json
Risposte
  • 200
    Tipo: object

    Il JSON sincrono contiene text e, facoltativamente, usage in secondi o token. usage.cost è il costo del fornitore, non l'addebito finale Felo. Non occorre interrogare un task.

    • text
      Tipo: string
      obbligatorio
    • usage
      Tipo: object | null
      • cost
        Tipo: number
        min:  
        0

        Reported upstream cost in USD.

      • input_token_details
        Tipo: object
        • audio_tokens
          Tipo: integer
          min:  
          0

          Integer numbers.

        • text_tokens
          Tipo: integer
          min:  
          0

          Integer numbers.

      • input_tokens
        Tipo: integer
        min:  
        0

        Integer numbers.

      • output_tokens
        Tipo: integer
        min:  
        0

        Integer numbers.

      • seconds
        Tipo: number
        min:  
        0

        Duration reported by the selected channel.

      • total_tokens
        Tipo: integer
        min:  
        0

        Integer numbers.

      • type
        Tipo: string enum
        valori
        • duration
        • tokens
    application/json
  • 400
    Tipo: object

    Upload, wallet or upstream error

    • error
      Tipo: object
      obbligatorio
      • code
        Tipo: string | null
      • message
        Tipo: string
      • param
        Tipo: string | null
      • type
        Tipo: string
    application/json
  • 402
    Tipo: object

    Upload, wallet or upstream error

    • error
      Tipo: object
      obbligatorio
      • code
        Tipo: string | null
      • message
        Tipo: string
      • param
        Tipo: string | null
      • type
        Tipo: string
    application/json
  • 413
    Tipo: object

    Upload, wallet or upstream error

    • error
      Tipo: object
      obbligatorio
      • code
        Tipo: string | null
      • message
        Tipo: string
      • param
        Tipo: string | null
      • type
        Tipo: string
    application/json
  • 415
    Tipo: object

    Upload, wallet or upstream error

    • error
      Tipo: object
      obbligatorio
      • code
        Tipo: string | null
      • message
        Tipo: string
      • param
        Tipo: string | null
      • type
        Tipo: string
    application/json
  • 429
    Tipo: object

    Upload, wallet or upstream error

    • error
      Tipo: object
      obbligatorio
      • code
        Tipo: string | null
      • message
        Tipo: string
      • param
        Tipo: string | null
      • type
        Tipo: string
    application/json
  • 500
    Tipo: object

    Upload, wallet or upstream error

    • error
      Tipo: object
      obbligatorio
      • code
        Tipo: string | null
      • message
        Tipo: string
      • param
        Tipo: string | null
      • type
        Tipo: string
    application/json
  • 502
    Tipo: object

    Upload, wallet or upstream error

    • error
      Tipo: object
      obbligatorio
      • code
        Tipo: string | null
      • message
        Tipo: string
      • param
        Tipo: string | null
      • type
        Tipo: string
    application/json
  • 503
    Tipo: object

    Upload, wallet or upstream error

    • error
      Tipo: object
      obbligatorio
      • code
        Tipo: string | null
      • message
        Tipo: string
      • param
        Tipo: string | null
      • type
        Tipo: string
    application/json
  • 504
    Tipo: object

    Upload, wallet or upstream error

    • error
      Tipo: object
      obbligatorio
      • code
        Tipo: string | null
      • message
        Tipo: string
      • param
        Tipo: string | null
      • type
        Tipo: string
    application/json
Request Example for post/api/v1/audio/transcriptions
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
  }
}
Transcribe a WAV recording

Serve aiuto?