Skip to main content
Model ID
google/gemini-3.1-flash-lite-image
See pricing & more on mynth.io.

Capabilities

ModesText-to-image · Image-to-image
InputsUp to 14 images (image-to-image)
Native auto sizeYes (image-to-image)
Magic promptSupported
Native enhance promptYes

Generate

import Mynth from "@mynthio/sdk";

const mynth = new Mynth();

const task = await mynth.image.generate({
  prompt: "Architectural photograph of a brutalist library at golden hour",
  model: "google/gemini-3.1-flash-lite-image",
  size: "landscape",
  count: 1,
});

console.log(task.urls);
curl https://api.mynth.io/image/generate \
  -X POST \
  -H "Authorization: Bearer $MYNTH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Architectural photograph of a brutalist library at golden hour",
    "model": "google/gemini-3.1-flash-lite-image",
    "size": "landscape",
    "count": 1
  }'

Use inputs

Pass up to 14 input images for image-to-image. URLs or uploaded files both work. See Upload input images.
const task = await mynth.image.generate({
  prompt: "Restyle this photo as a cinematic still",
  model: "google/gemini-3.1-flash-lite-image",
  inputs: ["https://example.com/input-image.jpg"],
  size: "landscape",
});
curl https://api.mynth.io/image/generate \
  -X POST \
  -H "Authorization: Bearer $MYNTH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Restyle this photo as a cinematic still",
    "model": "google/gemini-3.1-flash-lite-image",
    "inputs": [
      {
        "type": "image",
        "source": { "type": "url", "url": "https://example.com/input-image.jpg" }
      }
    ],
    "size": "landscape"
  }'

Auto size

This model supports native auto size in image-to-image mode.
size: "auto";
// or
size: {
  type: "auto";
}
See Control size.