NewsCrawler.org

How to get a Gemini API key for the Sina app: a shared chat with errors

How to get a Gemini API key for the Sina app: a shared chat with errors
Image: Reddit

This is a shared chat with Gemini in Portuguese. A user wants an API key[1] to connect Gemini AI to the Sina app. The assistant advises creating the key in Google AI Studio with the "Get API key" button and pasting it into the app's settings.

The assistant gives a curl[2] command that sends a request to the generateContent endpoint[3] with the key in the x-goog-api-key header. When the test failed, the assistant first called the example key invalid and recommended the models gemini-3.8-flash or gemini-3.5-flash-lite. Later it said real keys start with AIzaSy and have 39 characters, while keys starting with AQ.Ab are temporary tokens that do not work with the Gemini API. The same chat then tells the user to paste an AQ.Ab key into Sina, so its statements on the key format contradict each other.

The user reports the error "API key not valid" in Sina and asks the assistant to send the key in the chat. The assistant refuses, saying it has no access to the account and the full key is hidden in the screenshots. It also says that one key works with every Gemini model.

Read the original share.gemini.googleDiscussion

Sources

Published: First seen: Читать по-русски

Open as a page