Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

免费计划的API不能用吧? #21

Closed
wha4up opened this issue May 30, 2024 · 10 comments
Closed

免费计划的API不能用吧? #21

wha4up opened this issue May 30, 2024 · 10 comments
Labels
invalid This doesn't seem right

Comments

@wha4up
Copy link

wha4up commented May 30, 2024

如题

@Amery2010
Copy link
Collaborator

自己试试就清楚了

@Amery2010 Amery2010 added the invalid This doesn't seem right label May 30, 2024
@wha4up
Copy link
Author

wha4up commented May 30, 2024

自己试试就清楚了

400: [GoogleGenerativeAI Error]: Error fetching from https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:streamGenerateContent?alt=sse: [400 ] API key expired. Please renew the API key. [{"@type":"type.googleapis.com/google.rpc.ErrorInfo","reason":"API_KEY_INVALID","domain":"googleapis.com","metadata":{"service":"generativelanguage.googleapis.com"}}]

不能

@Amery2010
Copy link
Collaborator

你的 key 过期了,只要进入 https://aistudio.google.com/app/apikey 重新申请一个或者更新之前过期的 key 应该就可以了,你需要注意的是,请尽可能创建一个新项目来生成 key,这样不会出现被误认为是付费计划的情况。

@wha4up
Copy link
Author

wha4up commented Jun 2, 2024

你的 key 过期了,只要进入 https://aistudio.google.com/app/apikey 重新申请一个或者更新之前过期的 key 应该就可以了,你需要注意的是,请尽可能创建一个新项目来生成 key,这样不会出现被误认为是付费计划的情况。

看了下,是我这项目被封了,新建了个项目能正常使用。感谢!

@wha4up
Copy link
Author

wha4up commented Jun 2, 2024

400: [GoogleGenerativeAI Error]: Error fetching from https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:streamGenerateContent?alt=sse: [400 ] API key expired. Please renew the API key. [{"@type":"type.googleapis.com/google.rpc.ErrorInfo","reason":"API_KEY_INVALID","domain":"googleapis.com","metadata":{"service":"generativelanguage.googleapis.com"}}]

新项目的新API刚过一个小时又出现这问题了

@Amery2010
Copy link
Collaborator

我觉得你是不是可以考虑重新申请一个新的 Google 开发者账号,我觉得你目前的账号似乎被 ban 了。

@wha4up
Copy link
Author

wha4up commented Jun 3, 2024

我觉得你是不是可以考虑重新申请一个新的 Google 开发者账号,我觉得你目前的账号似乎被 ban 了。

估计是黑号了,这个项目也没看到有封停的通知。另外申请了一个,试试看啥情况。

@98654lemon
Copy link

image
我也出现了

@Amery2010
Copy link
Collaborator

image 我也出现了

大概率是 Google 账号存在问题,您可以试着重新注册一个账号。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


![image](https://private-user-images.githubusercontent.com/96613608/386339812-d21ccfb7-3f9d-4d6d-b 820-09b27393874b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoic mF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzIzNjE4NTEsIm5iZiI6MTczMjM2MTU1MSw icGF0aCI6Ii85NjYxMzYwOC8zODYzMzk4MTItZDIxY2NmYjctM2Y5ZC00ZDZkLWI4MjAtMDliMjczOTM4NzRiLnBuZz9YLUFtei 1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDEx MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQxMTIzVDExMzIzMVomWC1BbXotRXhwaXJ lcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU2MmY2OWE4N2U1Mzc1MzEwMmQzYTIwMzU2ZGViNGRmZDdlMDgwOGE3Zjc5ZTg5OWRkN jRkZWZkNmIwYzMzNGUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.l1PQ8o9BnxC7I75WCO4Vj1NdGRSvQsU1yTxXDu78vpc) I also appeared

There is a high probability that there is a problem with your Google account. You can try to register a new account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

4 participants