generate_image
Generate a design image from a text prompt for custom merchandise. Choose size and style, then follow with transparency processing for apparel needing a transparent background.
Instructions
Generate a design image (split primitive of design_apparel). Returns the raw generated image; follow with process_transparency for apparel that needs a transparent background. Rate-limit errors are classified (model_rate_limited = one model's provider vs platform_rate_limited = this key's ApparelHub throttle vs request_not_sent = the call never reached ApparelHub), and fallback_trail shows any model substitutions.
[#e8fffe]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Output shape. 1024x1024 = square; 1024x1792 = tall/portrait (phone cases, posters, banners); 1792x1024 = wide/landscape (mugs, laptop sleeves, wide banners). Pick to match the product's print area — full-bleed goods like phone cases want a tall design that fills the whole area, or the mockup pads/crops it. To re-shape an EXISTING design without spending another generation, use fit_aspect instead. | |
| style | No | ||
| prompt | Yes | ||
| source | No | Explicit model name, or omit to auto-pick (Nano Banana; OpenAI for abstract). | |
| workspace | No | ||
| no_fallback | No | Disable the model-fallback ladder. By default a rate-limited/transient model transparently retries with a different model (see fallback_trail); set true to fail on the chosen source alone. | |
| augment_prompt_for_transparency | No | Add the solid-green-background hint so the background can be keyed out (default true). |