Skip to main content
POST

Authorization

  • Auth Type: Bearer Auth (In: header)
  • Format: Authorization: Bearer <YOUR_API_KEY>
  • Description: Use Bearer <YOUR_API_KEY>. Format: Authorization: Bearer sk-xxxxxx.
  • API Key: where API Key is your AGCloud API KEY
Google Gemini API provides two actions for content generation, distinguished by whether they return responses incrementally (streaming) or all at once (non-streaming).

Request Body

Core Parameters

Advanced Parameters

Web Search Grounding allows Gemini models to connect with real-time web content, providing more accurate answers with verifiable sources.

Tools Structure

Tool Config Structure

Generation Config Structure

Note: thinkingConfig.thinking_level is only supported on Gemini 3.0 and above. It cannot be used together with thinking_budget; doing so will return an error.

Safety Settings Structure

Multimodal input

Input Parameters