仕組み
レスポンスが以下のすべての条件を満たす場合、そのリクエストには課金されません:usage.completion_tokens == 0finish_reasonが空、null、または"error"- 障害がプロバイダー側で発生した
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
ARouter は、エラーやプロバイダー側の障害により出力トークンがゼロのリクエストには課金しません。デフォルトで有効です。
usage.completion_tokens == 0finish_reason が空、null、または "error"| シナリオ | 対象 |
|---|---|
| 出力なしでのプロバイダータイムアウト | 対象 |
| プロバイダー内部エラー(5xx) | 対象 |
| モデルが応答を拒否(安全フィルター、0 トークン) | 対象 |
max_tokens: 1 で補完トークン 0 が返された | 対象外(有効なリクエスト) |
| リクエストにエラーがある(無効なモデル、不正な JSON) | 対象外(クライアントエラー) |