generate_asset
Create a web asset from a text prompt, using reference images, color palettes, logos, and resolutions up to 4K for icons, banners, backgrounds, or UI elements.
Instructions
Generate a single web asset using Nano Banana Pro. Supports reference images, color palettes, logos, and various aspect ratios/resolutions (including 2K/4K). Can generate icons, banners, backgrounds, UI elements, and more.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Detailed description of the asset to generate (e.g., 'Create a modern hero banner with gradient background for a tech startup') | |
| logoFile | No | Logo file URL or base64-encoded data URL to include in the asset | |
| resolution | No | Target resolution (e.g., '1920x1080', '2K', '4K', '1080x1080') | |
| aspectRatio | No | Aspect ratio for the asset (e.g., '16:9', '1:1', '4:3', '21:9', '9:16') | |
| colorPalette | No | Array of hex color codes to incorporate into the design (e.g., ['#FF5733', '#3498DB']) | |
| referenceImages | No | Array of reference image URLs or base64-encoded data URLs for style guidance (max 5) | |
| editInstructions | No | Optional editing instructions if modifying an existing asset (e.g., 'Adjust lighting', 'Change background color') |