Create Image
create_imageGenerate an image for a social post, thumbnail or ad creative. Models include GPT Image 2.5 Flare / Sunburst, GPT Image 2, Nano Banana Pro / 2 / 2 Lite and Seedream 5.0 Pro — see list_models for each model's inputs. Attaching images in inputs edits / uses them as references. Priced live (get_price). Returns generation.id — poll with wait_for_image. Renders a live preview in app-capable hosts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Mode key from list_models. Omit to pick it from the attached media. | |
| model | No | Model key from list_models (category "image"). Default: nano-banana-2. | |
| inputs | No | WaveSpeed input fields for the chosen model and mode, exactly as list_models shows them (e.g. aspect_ratio, resolution, duration, generate_audio, image, last_image, reference_images). Media fields take URLs; files hosted elsewhere are imported into the user's library automatically. Omitted fields use the model's defaults. | |
| prompt | Yes | What to generate | |
| maxCredits | No | Refuse to start if the live price is above this. Pass the credits get_price returned. | |
| idempotencyKey | No |