[GH-ISSUE #316] gemini-antigravity接口不能使用,提示 lack a Gemini Code Assist license. #228

Closed
opened 2026-02-27 07:18:34 +03:00 by kerem · 1 comment
Owner

Originally created by @lazycy on GitHub (Feb 10, 2026).
Original GitHub issue: https://github.com/justlovemaki/AIClient-2-API/issues/316

Image

curl http://192.168.193.250:3000/gemini-antigravity/v1/chat/completions
-H "Content-Type: application/json"
-H "Authorization: Bearer 123456"
-d '{
"model": "gemini-3-pro-image-preview",
"messages": [{"role": "user", "content": "Hello!"}],
"max_tokens": 1000
}'
{"error":{"message":"You are currently configured to use a Google Cloud Project but lack a Gemini Code Assist license. Please contact your administrator to request a license. (#3501)","type":"permission_error","code":"permission_error"}}

有办法解决吗?

Originally created by @lazycy on GitHub (Feb 10, 2026). Original GitHub issue: https://github.com/justlovemaki/AIClient-2-API/issues/316 <img width="1181" height="777" alt="Image" src="https://github.com/user-attachments/assets/7187b3f9-58be-4d16-9f5d-4d8103e38970" /> > curl http://192.168.193.250:3000/gemini-antigravity/v1/chat/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer 123456" \ -d '{ "model": "gemini-3-pro-image-preview", "messages": [{"role": "user", "content": "Hello!"}], "max_tokens": 1000 }' {"error":{"message":"You are currently configured to use a Google Cloud Project but lack a Gemini Code Assist license. Please contact your administrator to request a license. (#3501)","type":"permission_error","code":"permission_error"}} 有办法解决吗?
kerem closed this issue 2026-02-27 07:18:34 +03:00
Author
Owner

@justlovemaki commented on GitHub (Feb 10, 2026):

账号权限问题,找管理员

<!-- gh-comment-id:3877528485 --> @justlovemaki commented on GitHub (Feb 10, 2026): 账号权限问题,找管理员
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/AIClient-2-API-justlovemaki#228
No description provided.