← Back to Models

ziframe/image

Auto-mode template for image generation. Frontend selects the actual model based on context.

template ziframe

Pricing

No pricing information available.

Input Parameters

Prompt required string

What to create or how to edit the image

Image string

Optional: provide an image to edit. If provided, switches to image-to-image model.

Aspect Ratio string

The aspect ratio of the generated image

Default: 16:9

Options: 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3

Number of Images integer

The number of images to generate

Default: 1

Directives

Advanced Keys:
Hidden Keys:
Raw JSON
{
    "identifier": "ziframe/image",
    "type": "template",
    "category": "ziframe",
    "description": "Auto-mode template for image generation. Frontend selects the actual model based on context.",
    "auto_mode": {
        "description": "Frontend auto-selects model based on whether an image file is loaded",
        "text_only": {
            "model": "google/nano-banana",
            "display": "Nano Banana (Text-to-Image)"
        },
        "with_image": {
            "model": "google/nano-banana-pro-edit",
            "display": "Nano Banana Pro Edit"
        }
    },
    "directives": {
        "isTemplate": true,
        "advancedKeys": [],
        "hiddenKeys": [],
        "imageKeys": [
            "image"
        ]
    },
    "inputSchema": {
        "type": "object",
        "title": "Input",
        "description": "Common input schema for auto-mode image generation",
        "required": [
            "prompt"
        ],
        "properties": {
            "prompt": {
                "type": "string",
                "title": "Prompt",
                "x-order": 0,
                "description": "What to create or how to edit the image"
            },
            "image": {
                "type": "string",
                "title": "Image",
                "format": "uri",
                "x-order": 1,
                "description": "Optional: provide an image to edit. If provided, switches to image-to-image model."
            },
            "aspect_ratio": {
                "enum": [
                    "1:1",
                    "16:9",
                    "9:16",
                    "4:3",
                    "3:4",
                    "3:2",
                    "2:3"
                ],
                "type": "string",
                "title": "Aspect Ratio",
                "description": "The aspect ratio of the generated image",
                "default": "16:9",
                "x-order": 2
            },
            "num_images": {
                "type": "integer",
                "title": "Number of Images",
                "default": 1,
                "minimum": 1,
                "maximum": 4,
                "x-order": 3,
                "description": "The number of images to generate"
            }
        }
    },
    "outputSchema": {
        "type": "array",
        "title": "Output",
        "description": "Array of output objects. Each object contains url, object_key, content_type, etc.",
        "items": {
            "type": "object",
            "properties": {
                "url": {
                    "type": "string",
                    "format": "uri"
                },
                "object_key": {
                    "type": "string"
                },
                "content_type": {
                    "type": "string"
                }
            }
        }
    }
}