GeminiText to imageComing soon
gemini-3.1-flash-image-preview
gemini-3.1-flash-image-preview is a text to image tool from Gemini that runs in the background and returns images. Coming soon: listed with its price, not yet open to runs.
This tool is listed but not yet available to run.
Price pendingPricing
Price pending.
Limits
- Runs
- In the background
- Returns
- image
- Longest queue wait
- 3600s
- Run deadline
- 1800s
- Largest inline input
- 1024 KB
- Largest input file
- 500 MB
- Largest output
- 4768 MB
- Outputs per run
- 16
Input
| Field | Kind | Default | Description |
|---|---|---|---|
contents required | JSON | — | The content of the current conversation with the model. |
generationConfig | JSON | — | Configuration options for model generation and outputs. |
systemInstruction | JSON | — | Developer set [system instruction(s)](https://ai.google.dev/gemini-api/docs/system-instructions). |
Same request in code
curl https://api.spiral.ai/v1/runs \
-H "Authorization: Bearer $SPIRAL_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"provider": "gemini",
"model": "gemini-3.1-flash-image-preview",
"input": {
"contents": {}
}
}'