{
  "id": "llm/embeddings-api-quota-exceeded",
  "signature": "openai.RateLimitError: You exceeded your current quota, please check your plan and billing details.",
  "signature_zh": "openai.RateLimitError: 您已超出当前配额，请检查您的计划和账单详情。",
  "regex": "openai\\.RateLimitError: You exceeded your current quota",
  "domain": "llm",
  "category": "resource_error",
  "subcategory": null,
  "root_cause": "The API usage has exceeded the paid tier's token or request quota for the billing period, or the account has insufficient credits.",
  "root_cause_type": "generic",
  "root_cause_zh": "API使用量已超出当前付费层的令牌数或请求配额，或账户余额不足。",
  "versions": [
    {
      "version": "openai>=1.0.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "openai==0.28.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "The error is a quota exhaustion, not a rate limit. Retrying will keep failing until the billing period resets or more credits are added.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The quota is based on total usage, not request size. Reducing batch size doesn't help if the total quota is exhausted.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Check billing dashboard at https://platform.openai.com/account/billing and add funds or upgrade plan. Then monitor usage via API:\nimport openai\nusage = openai.Usage.retrieve()\nprint(usage)",
      "success_rate": 0.9,
      "how": "Check billing dashboard at https://platform.openai.com/account/billing and add funds or upgrade plan. Then monitor usage via API:\nimport openai\nusage = openai.Usage.retrieve()\nprint(usage)",
      "condition": "",
      "sources": []
    },
    {
      "action": "Implement a fallback to a different embedding model or provider when quota is exceeded:\nif 'quota' in str(e):\n    model = 'text-embedding-ada-002'  # Fallback to cheaper model\n    response = openai.Embedding.create(input=text, model=model)",
      "success_rate": 0.8,
      "how": "Implement a fallback to a different embedding model or provider when quota is exceeded:\nif 'quota' in str(e):\n    model = 'text-embedding-ada-002'  # Fallback to cheaper model\n    response = openai.Embedding.create(input=text, model=model)",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "在https://platform.openai.com/account/billing检查账单仪表板并添加资金或升级套餐。然后通过API监控使用量：\nimport openai\nusage = openai.Usage.retrieve()\nprint(usage)",
    "当超出配额时，实现回退到不同的嵌入模型或提供商：\nif 'quota' in str(e):\n    model = 'text-embedding-ada-002'  # 回退到更便宜的模型\n    response = openai.Embedding.create(input=text, model=model)"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://platform.openai.com/docs/guides/error-codes/api-errors",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.88,
  "fix_success_rate": 0.85,
  "resolvable": "true",
  "first_seen": "2023-06-15",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}