Gemini 3.1 Flash Image Text-to-Image
google/gemini-3-1-flash-image/text-to-image
Section titled “google/gemini-3-1-flash-image/text-to-image”POST /v1/images/generations
Supported parameters
Section titled “Supported parameters”Verified against the model schema on November 5, 2026. Required flags and limits below apply to this exact model ID; variants may differ.
| API field | Type | Required | Values / limit |
|---|---|---|---|
model | string | Yes | google/gemini-3-1-flash-image/text-to-image |
prompt | string | Yes | — |
image_size | enum | Yes | 1K, 2K, 4K; default 2K |
aspect_ratio | enum | Yes | 1:1, 4:3, 3:4, 9:16, 16:9, 21:9; default 16:9 |
Request example
Section titled “Request example”Replace example media URLs with your own publicly accessible files. Do not submit while this model is marked unavailable.
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/text-to-image", "prompt": "A kitten running through a sunlit garden", "image_size": "2K", "aspect_ratio": "16:9"}'Results and pricing
Section titled “Results and pricing”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.