Wan-Image-Small

Fast, efficient text-to-image generation

Overview

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

Price: 0.005$ / image

Quickstart

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

Required Parameters

ParameterTypeDescription
promptstringText description of the image to generate

Optional Parameters

ParameterTypeDefaultDescription
juicedbooleanfalseEnable faster generation mode
aspect_ratiostring"1:1"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".
heigthintegerheight of the output image. Caveat! Only used when aspect_ratio is "custom", and only works in multiples of 16
widthintegerwidth of the output image. Caveat! Only used when aspect_ratio is "custom", and only works in multiples of 16
output_formatstring"jpg"Output format: "png", "jpg", or "webp"
seedintegerRandom seed. Set for reproducible generation. Default is random
output_qualityinteger80Quality for jpg/webp (1-100)
num_outputsinteger1Number of images to generate, between 1 and 4