# Wan 2.5 Text to Image · Text To Image

Generate images from text with Wan 2.5 Text to Image · Text To Image from fal through one Spiral API key. It runs in the background and returns images. Pay as you go, with no subscription.

- Provider: fal
- Category: Image
- Runs: In the background
- Returns: image
- Tool id: `fal` / `fal-ai/wan-25-preview/text-to-image`
- Page: https://spiral.ai/tools/fal/fal-ai/wan-25-preview/text-to-image

## Pricing

$0.065 per image. Billed on `num_images`, default 1.

## Limits

- Longest queue wait: 1 hour
- Run deadline: 30 minutes
- Longest run, end to end: 225 minutes
- Largest inline input: 1 MB
- Largest input file: 2 GB
- Largest output: 5 GB

## Input

| Field | Kind | Allowed | Default | Description |
| --- | --- | --- | --- | --- |
| `prompt` (required) | text |  | — | The prompt for image generation. Supports Chinese and English, max 2000 characters. |
| `negative_prompt` | text |  | — | Negative prompt to describe content to avoid. Max 500 characters. |
| `num_images` | number (whole) | 1 to 4 | 1 | Number of images to generate. Values from 1 to 4. |
| `image_size` | JSON |  | square | The size of the generated image. Can use preset names like 'square', 'landscape_16_9', etc., or specific dimensions. Total pixels must be between 768×768 and 1440×1440, with aspect ratio between [1:4, 4:1]. |
| `enable_prompt_expansion` | true or false |  | true | Whether to enable prompt rewriting using LLM. Improves results for short prompts but increases processing time. |
| `seed` | number (whole) |  | — | Random seed for reproducibility. If None, a random seed is chosen. |

## Example

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "fal",
    "model": "fal-ai/wan-25-preview/text-to-image",
    "input": {
      "prompt": "A lone samurai standing on the edge of a cliff at twilight, overlooking a vast valley shrouded in mist. The sky burns with deep orange and purple hues from the…"
    }
  }'
```

Try it in the Playground: https://spiral.ai/start?provider=fal&model=fal-ai%2Fwan-25-preview%2Ftext-to-image

## Common questions

### Wan 2.5 Text to Image · Text To Image

**How much does Wan 2.5 Text to Image · Text To Image cost?**

$0.065 per image. Billed on `num_images`, default 1. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.

**How do I use Wan 2.5 Text to Image · Text To Image through an API?**

Send `POST /v1/runs` with `"provider": "fal"`, `"model": "fal-ai/wan-25-preview/text-to-image"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.

**Do I need an account with fal to use Wan 2.5 Text to Image · Text To Image?**

No. Spiral runs it on its own fal account and charges your Spiral balance.

**Can my AI agent use Wan 2.5 Text to Image · Text To Image?**

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.

