Overview
Generate stunning images from text prompts using leading image generation models from providers like Black Forest Labs, Stability AI, and more.Quick Start
Supported Models
- Black Forest Labs: Flux 1 Schnell
- Stability AI: SDXL, SD 2.1
- Qwen: Qwen Image
- See more available image models here
Parameters
- model: The image generation model to use
- prompt: Text description of desired image
- size: Output dimensions (e.g., “1024x1024”)
- n: Number of images to generate (1-4)
- response_format: “url” or “b64_json”
Example
Listing Available Models
Get a list of all available image generation models:Common Image Sizes
Different models support different output sizes:Standard Sizes
- 1024x1024: 1 megapixel - Fastest, most common size
- 1024x1792: ~1.8 megapixels - Portrait orientation
- 1792x1024: ~1.8 megapixels - Landscape orientation
- 2048x2048: 4 megapixels - Higher quality
Example
Pricing Examples
Image generation is billed per megapixel. Here are approximate costs for common models and sizes:Flux 1 Schnell
- 1024x1024 (1 MP): ~$0.003 per image
- 1024x1792 (1.8 MP): ~$0.005 per image
- 2048x2048 (4 MP): ~$0.012 per image
Stable Diffusion XL (SDXL)
- 1024x1024 (1 MP): ~$0.02 per image
- 1024x1792 (1.8 MP): ~$0.036 per image
Qwen Image
- 1024x1024 (1 MP): ~$0.02 per image
- 2048x2048 (4 MP): ~$0.08 per image