Generate Gemini Content

Use Gemini-native content generation through AnyInt Gateway.

Send Gemini content parts directly to a selected model.

POST/gemini/v1beta/models/{model}:generateContent

Path Parameter

model identifies the Gemini model used for the request.

Request Body

FieldTypeRequiredDescription
contentsarrayYesGemini content objects containing text or multimodal parts.
systemInstructionobjectNoSystem-level guidance for generation.
generationConfigobjectNoSampling and output controls.

Streaming

Use :streamGenerateContent for an incremental response while preserving the Gemini protocol shape.