generate_gpt_image
Generate GPT Image 2 images from text prompts, with optional reference files and settings for resolution, aspect ratio, and background. Premium plan required.
Instructions
Generate an image with GPT Image 2. POST /uapi/v1/imagen/gpt-image-2. Premium plan required by snapgen.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | medium | |
| prompt | Yes | ||
| file_urls | No | ||
| background | No | ||
| resolution | No | 1K, 2K, 4K, up to 12K if the account allows it | 1K |
| ref_history | No | ||
| aspect_ratio | No | 1:1 |