How to Generate an Image
Step-by-step guide to generating images with WaveSpeedAI.
Not sure which model to use? Try our Image Generator — we’ve curated the best image models so you can start creating right away.
Quick Start
Web Interface
- Go to wavespeed.ai/models
- Select a text-to-image model (e.g., Z-Image Turbo, Seedream, Nano Banana)
- Enter your prompt
- Click Run
API
curl --fail-with-body --connect-timeout 10 --max-time 60 --request POST 'https://api.wavespeed.ai/api/v3/wavespeed-ai/z-image/turbo' \
--header "Content-Type: application/json" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}" \
--data-raw '{
"prompt": "A majestic mountain landscape at sunset, cinematic lighting",
"size": "1024*1024"
}'Recommended Models
| Model | Best For | Speed |
|---|---|---|
| Z-Image Turbo | Fast, photorealistic generation | Very fast |
| Seedream | Versatile, good prompt following | Medium |
| Nano Banana Pro | High quality, realistic | Fast |
Common Parameters
| Parameter | Description | Example |
|---|---|---|
prompt | What to generate | ”A cat in space” |
size | Output dimensions, when supported | 1024*1024 |
output_format | Output file format, when supported | jpeg |
seed | For reproducibility | 12345 |
Parameter names vary by model. Always use the schema on the selected model’s page.
Example: High Quality Image
{
"prompt": "A fluffy orange cat sitting on a windowsill, soft afternoon sunlight streaming through the window, bokeh background, photography style, 4K, high detail",
"size": "1024*1024"
}Example: Multiple Requests
Generate multiple images by making separate API calls:
# First image
curl --fail-with-body --connect-timeout 10 --max-time 60 --request POST 'https://api.wavespeed.ai/api/v3/wavespeed-ai/z-image/turbo' \
--header "Content-Type: application/json" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}" \
--data-raw '{
"prompt": "A cat in space",
"size": "1024*1024"
}'
# Second image
curl --fail-with-body --connect-timeout 10 --max-time 60 --request POST 'https://api.wavespeed.ai/api/v3/wavespeed-ai/z-image/turbo' \
--header "Content-Type: application/json" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}" \
--data-raw '{
"prompt": "A cat in space",
"size": "1024*1024"
}'Tips for Better Results
- Be specific — Include details about subject, style, lighting
- Use Prompt Enhancer — Click the button to optimize your prompt
- Start small — Test with lower resolution first
- Check model README — Each model has specific tips
See How to Write Better Prompts for more tips.