# Recraft V4.1 API

> Recraft V4.1 by Recraft - generate stunning images from text prompts with state-of-the-art AI. Supports multiple aspect ratios, styles, and high-resolution output for creative and commercial use.

Source: https://www.sandbase.ai/models/recraft/recraft/v4.1
API reference: https://www.sandbase.ai/models/recraft/recraft/v4.1#api

## Facts

- Provider: Recraft
- Type: Image model
- Model ID: `recraft/recraft/v4.1`
- Price: $0.04 per run
- Capabilities: text to image
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

- Unified Run API: `POST https://api.sandbase.ai/v1/run`

```bash
curl -X POST https://api.sandbase.ai/v1/run \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "recraft/recraft/v4.1",
  "colors": [],
  "prompt": "Tilt-shift miniature effect on a real Portuguese fishing village at golden hour, colorful boats in the harbor appearing toy-like, selective focus band across the middle, saturated primary colors of blue red and yellow boats against white buildings, 90mm tilt-shift lens, the familiar made fantastical, Wes Anderson color sensibility"
}'
```

The response returns a run id; poll `GET https://api.sandbase.ai/v1/run/{id}` until the status is `completed` or `failed`.

## FAQ

### How do I call Recraft V4.1 through SandBase?

Create a SandBase API key, then send requests with the model ID "recraft/recraft/v4.1" to Unified Run API (/v1/run) at https://api.sandbase.ai. The request examples on this page show the exact payload.

### Do I need a separate Recraft account?

No. One SandBase API key and balance gives you access to Recraft V4.1 and the other models in the catalog; you do not need to sign up with Recraft separately.

## README

### Recraft V4.1

Recraft V4.1 generates design-ready images with precise color control via `colors` and `background_color`.

#### Fields

| Field | Type | Default | Notes |
|---|---|---|---|
| `prompt` | string, required | — | Up to 10,000 characters. |
| `aspect_ratio` | `21:9` / `16:9` / `3:2` / `4:3` / `5:4` / `1:1` / `4:5` / `3:4` / `2:3` / `9:16` | — | Output shape. |
| `background_color` | string | — | Background color. |
| `colors` | object[] | `[]` | Preferred palette as RGB values. |

#### Billing

$0.035 per image.

| Request | Price |
|---|---|
| One image | $0.035 |

Failed runs are not charged.

#### Prompting

- Name the style: flat illustration, product shot, icon.

#### Also on SandBase

Related: `recraft/recraft/v4.1/utility`.
