Generate content (Gemini-compatible)
create_gemini_contentGenerate content using the native Gemini GenerateContent API with support for tools, safety settings, and generation configuration.
Instructions
Generate content (Gemini-compatible) Generates content using the native Gemini GenerateContent shape. This route is exposed only when the model details advertise Gemini requests and a same-protocol route is currently available. ProtoJSON lowerCamelCase and original proto snake_case field names are preserved. Unknown fields are forwarded best-effort and support is determined by the selected provider. Authentication: Use ?key= query parameter, x-goog-api-key header, or Authorization: Bearer header.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Model name (e.g., gemini-2.5-pro) | |
| tools | No | Gemini tools. Tool types and combinations are interpreted by the selected service. | |
| contents | Yes | Conversation contents | |
| toolConfig | No | Gemini tool configuration such as functionCallingConfig. | |
| tool_config | No | Original proto field-name spelling of toolConfig. | |
| cachedContent | No | Gemini cached content resource name for compatible models. | |
| cached_content | No | Original proto field-name spelling of cachedContent. | |
| safetySettings | No | ||
| safety_settings | No | Original proto field-name spelling of safetySettings. | |
| generationConfig | No | ||
| generation_config | No | Original proto field-name spelling of generationConfig. | |
| systemInstruction | No | ||
| system_instruction | No | Original proto field-name spelling of systemInstruction. |