Generate Content
Generate content with Google Vertex AI compatible generateContent API.
Authorizations
Authorization: Bearer YOUR_API_KEY
Path Parameters
Model ID in Google Native API format (e.g. gemini-3.5-flash, gemini-2.5-flash).
"gemini-3.5-flash"
Body
Conversation contents. Supports multi-turn dialogue and multimodal input.
1System instruction (optional). Use text parts only.
Generation parameters (sampling, length, structured output, modalities, thinking, etc.).
Tools the model may call (function calling, search, code execution, etc.).
Tool configuration shared across all tools in the request.
Per-request safety settings for candidates.
Cached content resource name, e.g. cachedContents/{id}.