Felo API PlatformFelo API Platform
v0.4.0
OpenAPI 3.1.0

音声文字起こし

サーバー:https://openapi.felo.ai
クライアントライブラリ

Audio

​

音声文字起こし

​

model と file を multipart/form-data で送信します。完全なモノラル PCM WAV、最大 25,000,000 バイトに限り、チャネルのサンプルレート・時間制限も適用されます。任意項目は language(小文字2文字、例 ja)と response_format=json(唯一の形式、既定値)です。boundary は curl に生成させます。URL、ファイル ID、prompt、タイムスタンプ、stream は使えません。

STT は input_audio_second または token、TTS は input_character で課金されます。speech_billing_unit の utf16_code_unit と unicode_code_point では絵文字の数え方が異なります。仮押さえは上限ではなく、精算が非同期になる場合があります。証拠不足は無料を意味しません。両APIは X-Felo-Channel に対応し、選択チャネルへ一度だけ送信します。タイムアウト・切断後の自動再試行(SDKを含む)を無効にし、X-Request-Id と取得できた X-Generation-Id を保管してください。Console Playground は音声呼び出し未対応です。 configured_rates は固定済み単価と確認済み使用量、upstream_cost は確認済み上流コストと公開マークアップ・割引で精算します。

ヘッダー
  • X-Felo-Channel
    型: 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.

リクエストボディ
必須
application/json
レスポンス
  • 200
    型: object

    同期 JSON 応答には text が含まれます。任意の usage は秒数または token を返します。usage.cost は上流コストであり、Felo の最終請求額ではありません。ポーリングは不要です。

    • text
      型: string
      必須
    • usage
      型: object | null
      • cost
        型: number
        最小値:  
        0

        Reported upstream cost in USD.

      • input_token_details
        型: object
        • audio_tokens
          型: integer
          最小値:  
          0

          Integer numbers.

        • text_tokens
          型: integer
          最小値:  
          0

          Integer numbers.

      • input_tokens
        型: integer
        最小値:  
        0

        Integer numbers.

      • output_tokens
        型: integer
        最小値:  
        0

        Integer numbers.

      • seconds
        型: number
        最小値:  
        0

        Duration reported by the selected channel.

      • total_tokens
        型: integer
        最小値:  
        0

        Integer numbers.

      • type
        型: string 列挙値
        値
        • duration
        • tokens
    application/json
  • 400
    型: object

    Upload, wallet or upstream error

    • error
      型: object
      必須
      • code
        型: string | null
      • message
        型: string
      • param
        型: string | null
      • type
        型: string
    application/json
  • 402
    型: object

    Upload, wallet or upstream error

    • error
      型: object
      必須
      • code
        型: string | null
      • message
        型: string
      • param
        型: string | null
      • type
        型: string
    application/json
  • 413
    型: object

    Upload, wallet or upstream error

    • error
      型: object
      必須
      • code
        型: string | null
      • message
        型: string
      • param
        型: string | null
      • type
        型: string
    application/json
  • 415
    型: object

    Upload, wallet or upstream error

    • error
      型: object
      必須
      • code
        型: string | null
      • message
        型: string
      • param
        型: string | null
      • type
        型: string
    application/json
  • 429
    型: object

    Upload, wallet or upstream error

    • error
      型: object
      必須
      • code
        型: string | null
      • message
        型: string
      • param
        型: string | null
      • type
        型: string
    application/json
  • 500
    型: object

    Upload, wallet or upstream error

    • error
      型: object
      必須
      • code
        型: string | null
      • message
        型: string
      • param
        型: string | null
      • type
        型: string
    application/json
  • 502
    型: object

    Upload, wallet or upstream error

    • error
      型: object
      必須
      • code
        型: string | null
      • message
        型: string
      • param
        型: string | null
      • type
        型: string
    application/json
  • 503
    型: object

    Upload, wallet or upstream error

    • error
      型: object
      必須
      • code
        型: string | null
      • message
        型: string
      • param
        型: string | null
      • type
        型: string
    application/json
  • 504
    型: object

    Upload, wallet or upstream error

    • error
      型: object
      必須
      • code
        型: string | null
      • message
        型: string
      • param
        型: string | null
      • type
        型: 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

ヘルプが必要ですか?

  • API・請求・アカウントのご質問はサポートへ。
  • Discord で Felo の開発者と交流できます。
  • 更新履歴 をご覧ください。
  • ボリューム価格や購買についてのご相談は営業窓口へ。
  • LLM での構築をお考えですか?llms.txt をご覧ください。