Skip to content

inference.gemini-3-1-flash.img2img.v1

View markdown

The inference.gemini-3-1-flash.img2img.v1 job transforms an input image guided by a text prompt using Gemini 3.1 Flash Image.

{
"type": "inference.gemini-3-1-flash.img2img.v1",
"config": {
"prompt": "a serene mountain landscape at golden hour",
"image": "reference.png"
}
}

Additional configuration:

  • images (array)
  • aspect_ratio (string; one of 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9; default 1:1)
  • resolution (string; one of 1K, 2K, 4K; default 1K)
  • google_search (boolean; default False)
  • include_messages (boolean; default False)

This job type is also available under its partner alias inference.partner.gemini-3-1-flash.img2img.v1.

{
"type": "object",
"required": [
"type",
"config"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string"
},
"config": {
"type": "object",
"additionalProperties": false,
"required": [
"prompt"
],
"properties": {
"images": {
"type": "array",
"minItems": 1,
"maxItems": 14,
"items": {
"type": "string",
"format": "filename",
"example": "input.png",
"description": "The filename of the input image."
},
"description": "Reference images for image-to-image generation. Up to 14 images can be provided."
},
"prompt": {
"type": "string",
"minLength": 1,
"maxLength": 5000,
"examples": [
"Transform this into a watercolor painting"
],
"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"
}