Gemini 3.1 Flash Image(Nano Banana 2)
/v1beta/models/gemini-3.1-flash-image:generateContentGenerate or edit images with Nano Banana 2 through the native Google Gemini protocol. SandBase preserves the provider request and response payload instead of converting it to Chat Completions.
Request body
Send a native Gemini GenerateContent body. Provider-defined fields are passed through for this model.
Gemini Content objects containing the prompt and optional input images.
Requested output modalities. Include IMAGE; include TEXT when you also want a text part.
Image options such as aspectRatio, when supported by the provider.