1
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?

【Unity】OpenAI API 「Error: StatusCode: 429, ReasonPhrase: 'Too Many Requests'」

Posted at

エラー内容

UnityでOpenAIのAPIを触っていたら急に「Error: StatusCode: 429, ReasonPhrase: 'Too Many Requests', Version: 1.1, Content: System.Net.Http.StreamContent, Headers: ...」というエラーが出て使えなくなった。

解決法

残金がゼロになっていたのが原因。というよりチャージ制なのを忘れてた。
「Add to credit balance」を押してチャージ。あるいはEnable auto rechargeで解決。
image.png

余談

プロンプトを毎回更新して新規作成しているつもりが後ろに追記する仕様になっており、知らず知らずのうちに尋常じゃない文字数のプロンプトを送り付けてtoo many requestsになって、原因特定に悩んだこともありました。OpenAIくんごめんね

1
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
1
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?