Skip to content

Gemini 3.1 Flash Image

POST /v1/images/generations

Verified against the model schema on November 5, 2026. Required flags and limits below apply to this exact model ID; variants may differ.

API fieldTypeRequiredValues / limit
modelstringYesgoogle/gemini-3-1-flash-image
promptstringYes—
imagearrayNoup to 10; ≤10 MB each; images
image_sizeenumYes1K, 2K, 4K; default 2K
aspect_ratioenumYes1:1, 4:3, 3:4, 9:16, 16:9, 21:9; default 9:16

Replace example media URLs with your own publicly accessible files. Do not submit while this model is marked unavailable.

Terminal window
curl https://api.apimart.cc/v1/images/generations \
-H "Authorization: Bearer $HIPIX_API_KEY" \
-H "Content-Type: application/json" \
--data-raw '{"model": "google/gemini-3-1-flash-image", "prompt": "A kitten running through a sunlit garden", "image_size": "2K", "aspect_ratio": "9:16"}'

The standard image request waits for generation and returns image entries in data. Save returned files promptly. A timeout does not prove generation failed; do not automatically submit a duplicate.

Current availability and prices are shown in the HiPix model directory. Use only the input types and options exposed for this model.

Back to Gemini Image