# Recraft 20b

Generate images from text with Recraft 20b 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/recraft-20b`
- Page: https://spiral.ai/tools/fal/fal-ai/recraft-20b

## Pricing

$0.02847 per image.

## 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 |  | — |  |
| `image_size` | JSON |  | square_hd |  |
| `style` | one of | any, realistic_image, digital_illustration, vector_illustration, realistic_image/b_and_w, realistic_image/enterprise, realistic_image/hard_flash, realistic_image/hdr, realistic_image/motion_blur, realistic_image/natural_light, realistic_image/studio_portrait, digital_illustration/2d_art_poster, digital_illustration/2d_art_poster_2, digital_illustration/3d, digital_illustration/80s, digital_illustration/engraving_color, digital_illustration/glow, digital_illustration/grain, digital_illustration/hand_drawn, digital_illustration/hand_drawn_outline, digital_illustration/handmade_3d, digital_illustration/infantile_sketch, digital_illustration/kawaii, digital_illustration/pixel_art, digital_illustration/psychedelic, digital_illustration/seamless, digital_illustration/voxel, digital_illustration/watercolor, vector_illustration/cartoon, vector_illustration/doodle_line_art, vector_illustration/engraving, vector_illustration/flat_2, vector_illustration/kawaii, vector_illustration/line_art, vector_illustration/line_circuit, vector_illustration/linocut, vector_illustration/seamless | realistic_image | The style of the generated images. Vector images cost 2X as much. |
| `colors` | JSON |  | [] | An array of preferable colors |
| `style_id` | text |  | — | The ID of the custom style reference (optional) |

## 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/recraft-20b",
    "input": {
      "prompt": "a red panda in Kyoto"
    }
  }'
```

Try it in the Playground: https://spiral.ai/start?provider=fal&model=fal-ai%2Frecraft-20b

## Common questions

### Recraft 20b

**How much does Recraft 20b cost?**

$0.02847 per image. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.

**How do I use Recraft 20b through an API?**

Send `POST /v1/runs` with `"provider": "fal"`, `"model": "fal-ai/recraft-20b"` 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 Recraft 20b?**

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

**Can my AI agent use Recraft 20b?**

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

