Generate Content
post_generateContentThe official Google Gemini API endpoint for generating content using Gemini models. This endpoint supports multimodal inputs, including text, images, audio, video, and documents, depending on the capabilities of the selected model. It also supports conversation history, system instructions, function calling, structured JSON output, safety settings, and configurable generation parameters. Group: Google Endpoints. Billing per call: Credits: metered.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | JSON request body. Example: {"model":"gemini-4-argon","contents":[{"role":"user","parts":[{"text":"There are ten birds in a tree. A hunter shoots one. How many are left in the tree?"}]}]} |