Skip to main content

What can you do with it?

The /image-generate command enables you to create unique images from text descriptions using Google’s Gemini 2.5 Flash Image model. You can generate artwork, product mockups, marketing visuals, concept designs, illustrations, and professional graphics by simply describing what you want to see.

How to use it?

Basic Command Structure

/image-generate [description]

Parameters

Required:
  • prompt - Text description of the image you want to generate
Optional:
  • output_format - Format of output images: “jpg”, “png” (defaults to “png”)
  • fileLinksExpireInDays - How long generated files remain accessible: 1-7 days (defaults to 7)
  • fileLinksExpireInMinutes - How long generated files remain accessible in minutes (takes precedence over days)

Response Format

The command returns:
{
  "output": [
    {
      "url": "https://generated-file-url",
      "mimeType": "image/png"
    }
  ]
}
Note: All generated images are automatically saved to your “Multimedia Artifact” file store and will be accessible for the duration specified by the fileLinksExpireInDays parameter.

Examples

Basic Image Generation

/image-generate
prompt: A modern office space with plants and natural lighting
Generates an image of an office space with default PNG format.

Marketing Visual Creation

/image-generate
prompt: Professional product photography of a sleek wireless headphones on a marble surface with soft studio lighting
output_format: png
Creates a high-quality product photo perfect for e-commerce or marketing materials.

Artistic Illustration

/image-generate
prompt: Watercolor painting of a serene mountain landscape with a crystal clear lake reflecting autumn colors
output_format: jpg
Generates an artistic landscape in JPG format.

Logo and Branding

/image-generate
prompt: Minimalist logo design for a tech startup, clean geometric shapes, blue and white color scheme, modern typography
output_format: png
Creates a logo concept with PNG format for transparency support.

Social Media Content

/image-generate
prompt: Instagram-style flat lay of a cozy reading nook with books, coffee cup, and warm lighting, aesthetic composition
fileLinksExpireInDays: 3
Generates content that expires in 3 days instead of the default 7.

Character Design

/image-generate
prompt: Character design of a friendly robot mascot for a children's app, colorful, approachable, cartoon style
output_format: png
Creates a character design with PNG format.

Architectural Visualization

/image-generate
prompt: Architectural rendering of a sustainable eco-friendly house with solar panels, green roof, large windows, modern design
output_format: jpg
fileLinksExpireInDays: 7
Generates an architectural visualization that stays accessible for a week.

Notes

Model Capabilities:
  • Fast generation using Google’s Gemini 2.5 Flash Image model
  • High-quality outputs suitable for various creative applications
  • Excellent for artwork, product mockups, marketing visuals, and illustrations
  • Supports both photorealistic and artistic styles
Limitations:
  • Cannot generate images of specific real people
  • Avoids creating harmful or inappropriate content
  • Results may vary based on prompt complexity
  • Limited to basic parameters (prompt and output format)

Model Parameters (google/gemini-2.5-flash-image)

Image Generation Parameters

  • prompt (required): Text description of the image to generate
  • output_format: Format of output images (“jpg”, “png”, default: “png”)
  • fileLinksExpireInDays: How long generated files remain accessible (1-7 days, default: 7)
  • fileLinksExpireInMinutes: How long generated files remain accessible in minutes (takes precedence over days)