Skip to main content
Model ID

API Usage

You can interact with the Gemini 3 Flash Preview model through our OpenAI-compatible APIs and Gemini native APIs. Below are examples showing how to use the model’s API.

API Examples

Generate a model response using the chat endpoint of Gemini 3 Flash Preview.

Shell

example for function call

example for vision (image input)

example for video input

Gemini Native API

basic generateContent

example for video input (Gemini Native)

Python

Google Vertex SDK