AI Models
Recraft V4.1 Flash
Recraft V4.1 Flash. Fast, low-cost AI text-to-image generation from Recraft.
POST
from $0.02/image/v1/media/queueOverview
Fast, low-cost text-to-image generation via Recraft V4.1 Flash, the speed tier of the Recraft V4.1 family. Async operation — submit a job, poll for completion.
| Property | Value |
|---|---|
| Model ID | recraft/recraft-v4.1-flash |
| Alias | recraft-flash |
| Provider | Recraft |
| Category | Image Generation |
| Aspect Ratios | 1:1, 4:3, 3:4, 16:9, 9:16, auto |
| Output Formats | webp |
| Reference Images | Not supported |
| Billing | Dynamic (actual cost per job) |
| Typical Cost | ~$0.02 per image |
Usage
All media models use the async job queue. Submit a job, then poll for the result.
Step 1: Submit Job
Text-to-Image
const res = await fetch('https://api.yepapi.com/v1/media/queue', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
model: 'recraft/recraft-v4.1-flash',
prompt: 'A flat illustration of a cyclist crossing a city bridge at sunrise',
options: { aspectRatio: '1:1' },
}),
});
const { data } = await res.json();
// data.jobId — use this to poll for resultscurl -X POST https://api.yepapi.com/v1/media/queue \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "recraft/recraft-v4.1-flash", "prompt": "A flat illustration of a cyclist crossing a city bridge at sunrise", "options": {"aspectRatio": "1:1"}}'Step 2: Poll for Result
const status = await fetch(`https://api.yepapi.com/v1/media/status/${data.jobId}`, {
headers: { 'x-api-key': 'YOUR_API_KEY' },
});
const { data: job } = await status.json();
// job.status — "pending" | "processing" | "completed" | "failed"
// job.result.image — { mimeType, base64 } when completedcurl https://api.yepapi.com/v1/media/status/JOB_ID \
-H "x-api-key: YOUR_API_KEY"Request Body
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
model | string | Yes | recraft/recraft-v4.1-flash or alias recraft-flash | — |
prompt | string | Yes | Text description of the image to generate or edit | — |
options.aspectRatio | string | No | One of: 1:1, 4:3, 3:4, 16:9, 9:16, auto | 1:1 |
options.outputFormat | string | No | webp | webp |
Features
- Speed and cost tier of Recraft V4.1
- Generates ~1K raster images in about 1.5 seconds
- Text-to-image only (no input image)
- WebP output by default
Pricing
Billing is dynamic — each job is billed from the actual cost of that generation.
| Metric | Cost |
|---|---|
| Typical cost per image | ~$0.02 |
Info
Image jobs typically complete in 5–60 seconds. Results retained for 1 hour.
Under the Hood
Powered by Recraft's Recraft V4.1 Flash via our AI provider.