App Logo
gemini.google.com

Ask Gemini

Open a new Gemini chat, send one question, and wait for the answer to finish generating (up to 3 min), then return the answer as rendered, the conversation id, and the citation labels Gemini attached to it. Requires a signed-in Google session: gemini.google.com has no anonymous chat, and signed out it serves the marketing page and never mounts a composer. An account that has never opened Gemini also has to accept its first-run terms once in a normal browser; until then the app stays on that same page and the script fails with a descriptive error rather than hanging. The answer is always read in English, whatever language the account is set to. Citations are publisher labels, not links: Gemini renders each grounded claim as an inline chip naming the source ("FIFA", "aimagazine.com +1") and keeps the target URL behind a dialog that only opens on click, so `citations` tells you whether the answer was grounded and on whom, but is not a URL list, and an ungrounded answer returns an empty one. Treat one run as a single draw rather than a measurement: the model may search differently, or not search at all, on the next run of the same question, so repeat a question before concluding anything from it.

Input

question required

The question/prompt to send as the first message of a new chat.

Output

answer required

The reply as rendered (innerText of the response's message-content). Inline widget labels appear as they do on screen and KaTeX math linearizes lossily. Never empty: a response that rendered no text is breakage, not an answer.

citations required

The inline citation chips as rendered, in order — a publisher label per grounded claim ("FIFA", "aimagazine.com +1"), not a URL: Gemini keeps each chip's target behind a click-only dialog. Empty when the answer cited nothing.

conversationId required

Conversation id from the /app/<id> URL, which the send creates. Required: a chat that never got one did not happen.

Start building not clicking