Wan-Image-Small
Fast, efficient text-to-image generation
Wan-Image-Small is optimized for speed and efficiency, making it perfect for rapid prototyping, testing ideas, or generating large batches of images quickly. While smaller than other models, it still produces quality results with minimal parameters.
Rate Limit: 150 requests per minute
Category: Text-to-Image Generation
Pricing:
num_outputs | Price |
|---|---|
1 (default) | $0.005 / image |
2 | $0.01 / image |
3 | $0.015 / image |
4 | $0.02 / image |
Quickstart
Section titled “Quickstart”Asynchronous Request (Default)
Section titled “Asynchronous Request (Default)”curl -X POST 'https://api.pruna.ai/v1/predictions' \ -H 'Content-Type: application/json' \ -H 'apikey: YOUR_API_KEY' \ -H 'Model: wan-image-small' \ -d '{ "input": { "prompt": "A cute cat sitting on a windowsill, soft lighting, cozy atmosphere", "aspect_ratio": "1:1" } }'Synchronous Request (Try-Sync)
curl -X POST 'https://api.pruna.ai/v1/predictions' \-H 'Content-Type: application/json' \-H 'apikey: YOUR_API_KEY' \-H 'Model: wan-image-small' \-H 'Try-Sync: true' \-d '{"input": {"prompt": "A cute cat sitting on a windowsill, soft lighting, cozy atmosphere","aspect_ratio": "1:1"}}'Parameters
Section titled “Parameters”Required Parameters
Section titled “Required Parameters”| Parameter | Type | Description |
|---|---|---|
| prompt | string | Text description of the image to generate |
Optional Parameters
Section titled “Optional Parameters”| Parameter | Type | Default | Description |
|---|---|---|---|
| juiced | boolean | false | Enable faster generation mode |
| aspect_ratio | string | "16:9" | Image aspect ratio. Options: "1:1", "16:9", "9:16", "4:3", "3:4", "21:9", "custom". If you choose "custom", you will have to fill "height" and "width". |
| height | integer | Height of the output image. Only used when aspect_ratio is "custom", and only works in multiples of 16 | |
| width | integer | width of the output image. Caveat! Only used when aspect_ratio is "custom", and only works in multiples of 16 | |
| output_format | string | "jpg" | Output format: "png", "jpg", or "webp" |
| seed | integer | Random seed. Set for reproducible generation. Default is random | |
| output_quality | integer | 80 | Quality for jpg/webp (1-100) |
| num_outputs | integer | 1 | Number of images to generate, between 1 and 4 |