Felo API PlatformFelo API Platform
v0.4.0
OpenAPI 3.1.0

Transkripsi suara

Server:https://openapi.felo.ai
Pustaka Klien

Audio

​

Transkripsi suara

​

Kirim model dan file sebagai multipart/form-data: WAV PCM mono utuh, maksimal 25,000,000 byte, sesuai batas laju sampel dan durasi kanal. Opsional: language (dua huruf kecil, misalnya id) dan response_format=json (satu-satunya format sekaligus default). Biarkan curl membuat boundary. URL, ID berkas, prompt, cap waktu dan stream tidak didukung.

STT memakai input_audio_second atau token; TTS memakai input_character. speech_billing_unit berupa utf16_code_unit dan unicode_code_point menghitung emoji berbeda. Reservasi bukan batas biaya; penyelesaian bisa asinkron. Bukti yang hilang bukan berarti gratis. Keduanya menerima X-Felo-Channel dan mengirim sekali ke kanal terpilih. Nonaktifkan percobaan ulang otomatis termasuk SDK setelah timeout atau putus koneksi. Simpan X-Request-Id dan X-Generation-Id jika tersedia. Console Playground belum mendukung audio. configured_rates memakai tarif beku dan penggunaan terverifikasi; upstream_cost memakai biaya penyedia terverifikasi dengan markup dan diskon terbit.

Header
  • X-Felo-Channel
    Tipe: 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.

Isi
wajib
application/json
Respons
  • 200
    Tipe: object

    JSON sinkron berisi text dan usage opsional dalam detik atau token. usage.cost adalah biaya penyedia, bukan tagihan akhir Felo. Tidak perlu polling tugas.

    • text
      Tipe: string
      wajib
    • usage
      Tipe: object | null
      • cost
        Tipe: number
        min:  
        0

        Reported upstream cost in USD.

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

          Integer numbers.

        • text_tokens
          Tipe: integer
          min:  
          0

          Integer numbers.

      • input_tokens
        Tipe: integer
        min:  
        0

        Integer numbers.

      • output_tokens
        Tipe: integer
        min:  
        0

        Integer numbers.

      • seconds
        Tipe: number
        min:  
        0

        Duration reported by the selected channel.

      • total_tokens
        Tipe: integer
        min:  
        0

        Integer numbers.

      • type
        Tipe: string enum
        nilai
        • duration
        • tokens
    application/json
  • 400
    Tipe: object

    Upload, wallet or upstream error

    • error
      Tipe: object
      wajib
      • code
        Tipe: string | null
      • message
        Tipe: string
      • param
        Tipe: string | null
      • type
        Tipe: string
    application/json
  • 402
    Tipe: object

    Upload, wallet or upstream error

    • error
      Tipe: object
      wajib
      • code
        Tipe: string | null
      • message
        Tipe: string
      • param
        Tipe: string | null
      • type
        Tipe: string
    application/json
  • 413
    Tipe: object

    Upload, wallet or upstream error

    • error
      Tipe: object
      wajib
      • code
        Tipe: string | null
      • message
        Tipe: string
      • param
        Tipe: string | null
      • type
        Tipe: string
    application/json
  • 415
    Tipe: object

    Upload, wallet or upstream error

    • error
      Tipe: object
      wajib
      • code
        Tipe: string | null
      • message
        Tipe: string
      • param
        Tipe: string | null
      • type
        Tipe: string
    application/json
  • 429
    Tipe: object

    Upload, wallet or upstream error

    • error
      Tipe: object
      wajib
      • code
        Tipe: string | null
      • message
        Tipe: string
      • param
        Tipe: string | null
      • type
        Tipe: string
    application/json
  • 500
    Tipe: object

    Upload, wallet or upstream error

    • error
      Tipe: object
      wajib
      • code
        Tipe: string | null
      • message
        Tipe: string
      • param
        Tipe: string | null
      • type
        Tipe: string
    application/json
  • 502
    Tipe: object

    Upload, wallet or upstream error

    • error
      Tipe: object
      wajib
      • code
        Tipe: string | null
      • message
        Tipe: string
      • param
        Tipe: string | null
      • type
        Tipe: string
    application/json
  • 503
    Tipe: object

    Upload, wallet or upstream error

    • error
      Tipe: object
      wajib
      • code
        Tipe: string | null
      • message
        Tipe: string
      • param
        Tipe: string | null
      • type
        Tipe: string
    application/json
  • 504
    Tipe: object

    Upload, wallet or upstream error

    • error
      Tipe: object
      wajib
      • code
        Tipe: string | null
      • message
        Tipe: string
      • param
        Tipe: string | null
      • type
        Tipe: 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

Butuh bantuan?