/api/orgs/{org_id}/provider/usage/model/{alias}1つのモデルの日次の健全性と収益を取得
お客様が提供する1つのモデルについて、日次の稼働率、キャッシュヒット率、レイテンシー、障害クラス別のエラー。uptimeはディスパッチされた試行のみを数えます(呼び出し元側の拒否はお客様の不利にはなりません)。モデルがお客様のルートでもなく、期間内にトラフィックもない場合は404を返します。429と503の挙動は日次使用量の読み取りと同じです。
認証: AuthorizationヘッダーにBearer形式のAPIキー
パスパラメーター
org_idstring必須お客様の組織ID(uuid)。
GET /api/whoamiで取得できます。aliasstring必須モデルスラッグ(
lanes[].model_slug、またはモデル別使用量の読み取りのalias)。
クエリパラメーター
daysinteger現在から遡って数えた期間の長さ(日数)。
レスポンス
200モデルの日次の行。
レスポンス
aliasstring必須daysinteger必須rowsarray<object>必須rows
daystring必須request_countinteger必須completed_countinteger必須lane_failure_countinteger必須ルート上で失敗したディスパッチ済みの試行。
error_countinteger必須完了しなかったすべてのイベント(呼び出し元側の拒否を含む)。
uptimenumber | null必須completed / (completed + ルートの失敗)、0〜1。何もディスパッチされなかった場合はnullです。
input_tokensinteger必須output_tokensinteger必須cached_input_tokensinteger必須reasoning_tokensinteger必須cache_hit_ratenumber | null必須入力トークンに対するキャッシュ入力トークンの割合。入力がない場合はnullです。
cost_usdnumber必須確定済みの課金額(米ドル)。
estimated_cost_usdnumber必須定価換算値(米ドル)。
distinct_api_keysinteger必須distinct_orgsinteger必須ttft_p50_msinteger | null必須ttft_p90_msinteger | null必須timeout_countinteger必須errors_by_classobject必須完了しなかったイベントを障害クラス別に集計したもの。
401APIキーがない、不明、または失効しています。
レスポンス
errorstring必須人が読めるメッセージ。
codestringエンドポイントが定義している場合の、安定した機械可読の理由(例:
pro_required)。actionstringエンドポイントが定義している場合の、安定した対処アクション。
detailsobject呼び出し元が対処するために必要な、顧客に提示して安全な文字列情報(推奨される識別子など)。
404このモデルはお客様のものではないか、組織がプロバイダーを運営していません。
レスポンス
errorstring必須人が読めるメッセージ。
codestringエンドポイントが定義している場合の、安定した機械可読の理由(例:
pro_required)。actionstringエンドポイントが定義している場合の、安定した対処アクション。
detailsobject呼び出し元が対処するために必要な、顧客に提示して安全な文字列情報(推奨される識別子など)。
422ボディまたはクエリの検証に失敗しました。
レスポンス
detailarray<object>必須detail
typestringlocarray<string | integer>msgstring
429使用量分析ストアが混雑しています。
Retry-Afterの秒数が経過してから再試行してください。レスポンス
errorstring必須人が読めるメッセージ。
codestringエンドポイントが定義している場合の、安定した機械可読の理由(例:
pro_required)。actionstringエンドポイントが定義している場合の、安定した対処アクション。
detailsobject呼び出し元が対処するために必要な、顧客に提示して安全な文字列情報(推奨される識別子など)。
503このデプロイ環境では使用量分析が利用できないか、一時的に失敗しています。
レスポンス
errorstring必須人が読めるメッセージ。
codestringエンドポイントが定義している場合の、安定した機械可読の理由(例:
pro_required)。actionstringエンドポイントが定義している場合の、安定した対処アクション。
detailsobject呼び出し元が対処するために必要な、顧客に提示して安全な文字列情報(推奨される識別子など)。
リクエスト
curl 'https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/provider/usage/model/llama-4.1-70b-instruct?days=30' \
-H "Authorization: Bearer <YOUR_API_KEY>"レスポンス
{
"alias": "llama-4.1-70b-instruct",
"days": 30,
"rows": [
{
"day": "2026-11-18",
"request_count": 31877,
"completed_count": 31790,
"lane_failure_count": 21,
"error_count": 87,
"uptime": 0.99934,
"input_tokens": 120511330,
"output_tokens": 14002871,
"cached_input_tokens": 61240511,
"reasoning_tokens": 0,
"cache_hit_rate": 0.5082,
"cost_usd": 54.7811,
"estimated_cost_usd": 2.9034,
"distinct_api_keys": 142,
"distinct_orgs": 61,
"ttft_p50_ms": 365,
"ttft_p90_ms": 880,
"timeout_count": 3,
"errors_by_class": {
"provider_error": 18,
"timeout": 3,
"quota_exceeded": 52,
"invalid_request": 14
}
}
]
}https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/provider/usage/model/llama-4.1-70b-instruct?days=30