Gemini SDK — generateContent (image) or predictLongRunning (video)
SDK Compatibility
Gemini SDK — generateContent (image) or predictLongRunning (video)
POST
Gemini SDK — generateContent (image) or predictLongRunning (video)
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
e.g. gemini-2.5-flash-image:generateContent or veo-3.1-generate-preview:predictLongRunning
Body
application/json
Gemini generateContent or predictLongRunning request body
Response
Success
The response is of type object.