Gemini REST documentation disappeared

Hello,

In the beginning, there used to be the REST documentation tab here: Gemini API 빠른 시작  |  Google AI for Developers

It gave a snippet just like:

curl https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-pro-latest:generateContent?key=$GOOGLE_API_KEY \
-H 'Content-Type: application/json' \
-X POST \
-d '{...}'

But now it has disappeared. Do you know why?

Yes, Im also wondering whether it is possible to get an OpenAPI spec, so Gemini could be supported in SpringAI.

See: Missing openai spec · Issue #261 · google-gemini/cookbook · GitHub

Ah, sorry! We are working on this. It’s still in progress, but not published yet.

In the meantime you can see the REST samples we will be using on that page in the API reference (look for the Shell tabs).

They are loaded from GitHub too, so you can browse them directly here.

1 Like