3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Claude のレート制限について - 429 エラー

Posted at

Cline で Claude を使っていると 429 エラーが出力されることがある

スクリーンショット 2025-01-26 13.40.13.jpg

API Request Failed
429 {"type":"error","error":{"type":"rate_limit_error","message":"This request would exceed your organization’s rate limit of 80,000 input tokens per minute. For details, refer to: https://docs.anthropic.com/en/api/rate-limits; see the response headers for current usage. Please reduce the prompt length or the maximum tokens requested, or try again later. You may also contact sales at https://www.anthropic.com/contact-sales to discuss your options for a rate limit increase."}}

これが出始めると1回コード修正したらしばらく時間空けて、リトライして・・・と面倒です。

これは何なのか

これは Claude のレート制限にかかっている状態です。
リクエスト多すぎるので制限しますね〜というイメージですね。

レート制限の上限は増やせる?

とはいえもっとリクエストしたい!という方も多いのではないでしょうか?
この上限は増やすことができます。

ここで Tier という概念が出てきます。

Tier とは?

会員グレードというようなイメージでいいと思います。
そのグレードに応じて、上限が変わってきます。

  • 入金額を増やすことでグレードを上げることができます。
  • 入金後、グレードが上がるまでに待機期間があるので注意が必要です。(※下の表で言うとWait After First Purchaseの箇所)
    • 40ドル入金後、コンソール上はすぐに Tier 2 の表示になりましたが、おそらく適用は7日後なのかと思います。
    • Credit Purchase が累計の入金額か、一括で入金する必要があるかはわかっておらず、、ご存じの方は教えていただけると助かります:pray:

スクリーンショット 2025-01-26 13.56.41.jpg
(https://docs.anthropic.com/en/api/rate-limits#requirements-to-advance-tier)

Tier 毎の上限

  • Tier 1 の場合
    スクリーンショット 2025-01-26 13.51.20.jpg
  • Tier 2 の場合
    スクリーンショット 2025-01-26 13.54.03.jpg

上記は執筆時点(2025/01/26)の表です。
詳しくは、Anthropic の Rate limits のページをご覧ください。

以上、参考になれば幸いです。

3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?