generate_image
Create custom images from text descriptions using AI. Specify your desired image with a text prompt and choose from multiple aspect ratios for optimal results.
Instructions
Generate a NEW image from text prompt using OpenRouter (Gemini 2.5 Flash Image). Use this ONLY when creating a completely new image, not when modifying an existing one.
Input Schema
| Name | Required | Description | Default | 
|---|---|---|---|
| aspectRatio | No | Optional aspect ratio for the generated image. Default is 1:1 (1024×1024). Options: 1:1, 16:9, 9:16, 3:4, 4:3, etc. | |
| prompt | Yes | Text prompt describing the NEW image to create from scratch | 
Input Schema (JSON Schema)
{
  "properties": {
    "aspectRatio": {
      "description": "Optional aspect ratio for the generated image. Default is 1:1 (1024×1024). Options: 1:1, 16:9, 9:16, 3:4, 4:3, etc.",
      "enum": [
        "1:1",
        "2:3",
        "3:2",
        "3:4",
        "4:3",
        "4:5",
        "5:4",
        "9:16",
        "16:9",
        "21:9"
      ],
      "type": "string"
    },
    "prompt": {
      "description": "Text prompt describing the NEW image to create from scratch",
      "type": "string"
    }
  },
  "required": [
    "prompt"
  ],
  "type": "object"
}