更新日: 2026-06-06
HTTP ステータスコード
エラーレスポンス形式
よくあるエラー
401 - Authentication Failed
sk- で始まっているか確認してください。
429 - Rate Limited
403 - Insufficient Balance
リトライ方針
- 429 は指数バックオフでリトライします。
- 500/502/503 は数秒待ってからリトライします。
- 400/401/403 はリクエスト内容、認証情報、モデル権限を確認します。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
API のステータスコードとエラーレスポンスの読み方
更新日: 2026-06-06
| Status Code | 説明 |
|---|---|
| 200 | リクエスト成功 |
| 400 | リクエストパラメータが不正 |
| 401 | 認証失敗。API キーが無効または未指定 |
| 403 | 権限不足。トークンが対象モデルを利用できない |
| 429 | レート制限超過 |
| 500 | 内部サーバーエラー |
| 502 | 上流サービスが利用不可 |
| 503 | サービスが一時的に利用不可 |
{
"error": {
"message": "Error description",
"type": "error_type",
"code": "error_code"
}
}
{
"error": {
"message": "Invalid API key",
"type": "authentication_error",
"code": "invalid_api_key"
}
}
sk- で始まっているか確認してください。
{
"error": {
"message": "Rate limit exceeded",
"type": "rate_limit_error",
"code": "rate_limit_exceeded"
}
}
{
"error": {
"message": "Insufficient quota",
"type": "insufficient_quota",
"code": "insufficient_quota"
}
}