inference.gemini-3-1-flash.txt2img.v1
The inference.gemini-3-1-flash.txt2img.v1 job generates an image from a text prompt using Gemini 3.1 Flash Image.
{ "type": "inference.gemini-3-1-flash.txt2img.v1", "config": { "prompt": "a serene mountain landscape at golden hour" }}Additional configuration:
aspect_ratio(string; one of1:1,2:3,3:2,3:4,4:3,4:5,5:4,9:16,16:9,21:9; default1:1)resolution(string; one of1K,2K,4K; default1K)google_search(boolean; defaultFalse)include_messages(boolean; defaultFalse)
This job type is also available under its partner alias inference.partner.gemini-3-1-flash.txt2img.v1.
Schema
Section titled “Schema”{ "type": "object", "required": [ "type", "config" ], "additionalProperties": false, "properties": { "type": { "type": "string" }, "config": { "type": "object", "additionalProperties": false, "required": [ "prompt" ], "properties": { "prompt": { "type": "string", "minLength": 1, "maxLength": 5000, "examples": [ "A hyper-realistic infographic of a gourmet cheeseburger" ], "description": "A description of the desired output image." }, "aspect_ratio": { "type": "string", "default": "1:1", "enum": [ "1:1", "2:3", "3:2", "3:4", "4:3", "4:5", "5:4", "9:16", "16:9", "21:9" ], "description": "Aspect ratio of output image." }, "resolution": { "type": "string", "default": "1K", "enum": [ "1K", "2K", "4K" ], "description": "Resolution/image size of output. Use uppercase K." }, "google_search": { "type": "boolean", "default": false, "description": "Enable Google Search grounding to inform image generation with real-world information." }, "include_messages": { "type": "boolean", "default": false, "description": "Enable to include the model's messages in the output as message.txt files." } } } }, "$schema": "https://json-schema.org/draft/2020-12/schema"}