Recraft V4 Styles Pro Vector
Recraft V4 Styles Pro Vector. New SVG vector art in the style of an uploaded reference image, which is required.
Pricing, live playground and model overview: Recraft V4 Styles Pro Vector API on YepAPI
/v1/media/queueOverview
Style-consistent vector image generation via Recraft V4 Styles Pro Vector, the Pro vector tier of V4 Styles. Upload a style reference and describe the subject; the model generates a new SVG vector image in that style. Async operation — submit a job, poll for completion.
| Property | Value |
|---|---|
| Model ID | recraft/recraft-v4-styles-pro-vector |
| Alias | recraft-styles-pro-vector |
| Provider | Recraft |
| Category | Image Generation |
| Aspect Ratios | 1:1, 4:3, 3:4, 16:9, 9:16, auto |
| Output Formats | svg, png |
| Input Image | Required (imageData) |
| Billing | Dynamic (actual cost per job) |
| Typical Cost | ~$0.27 per image |
Usage
All media models use the async job queue. Submit a job, then poll for the result.
Step 1: Submit Job
Style Reference (Required)
recraft/recraft-v4-styles-pro-vector generates a new image in the style of a reference image. Send the style reference via imageData and describe the subject in prompt. Requests without imageData are rejected.
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-styles-pro-vector',
prompt: 'A lighthouse on a rocky point, in the style of the reference image',
options: { aspectRatio: '1:1' },
imageData: {
mimeType: 'image/png',
base64: '...', // Base64-encoded image
},
}),
});
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-styles-pro-vector", "prompt": "A lighthouse on a rocky point, in the style of the reference image", "options": {"aspectRatio": "1:1"}, "imageData": {"mimeType": "image/png", "base64": "BASE64_IMAGE"}}'imageData is required. A request without it fails at submit time with: recraft/recraft-v4-styles-pro-vector needs an input image: send it in imageData.
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-styles-pro-vector or alias recraft-styles-pro-vector | — |
prompt | string | Yes | Text description of the subject to generate in the reference style | — |
options.aspectRatio | string | No | One of: 1:1, 4:3, 3:4, 16:9, 9:16, auto | 1:1 |
options.outputFormat | string | No | svg, png | svg |
imageData.mimeType | string | Yes | MIME type of the input image (image/png, image/jpeg, image/webp) | — |
imageData.base64 | string | Yes | Base64-encoded style reference image | — |
Features
- Generates a new image in the rendering style of a reference image
- Requires a style reference image in
imageData - Prompt describes the subject
- Pro tier of Recraft V4 Styles
- SVG 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.27 |
Image jobs typically complete in 5–60 seconds. Results retained for 1 hour.
Powered by Recraft's Recraft V4 Styles Pro Vector via our AI provider.