We use cookies. Cookies and browser storage keep you signed in and remember your preferences. With your permission we also measure how the site is used. You can any time. See our cookie policy.
Recraft: Recraft V4 Pro Vector
recraft/recraft-v4-pro-vectorTry Recraft: Recraft V4 Pro Vector now
Runs on your balance at the prices above. New accounts start with free usage.
Settings
Recraft: Recraft V4 Pro Vector at a glance
- Context window of 65,536 tokens, enough for long documents and multi-turn conversations.
About Recraft: Recraft V4 Pro Vector
Recraft V4 Pro Vector is an image generation model from Recraft, the vector (SVG) variant of Recraft V4 Pro. It sits in the image category and is identified on api14 by the model id recraft/recraft-v4-pro-vector. Recraft built this variant specifically for vector output, which distinguishes it from raster image models that return pixel based files.
The model accepts text and image inputs and produces image output. Its context window is 65,536 tokens, with a maximum output of 58,982. The image parameters expose an aspect ratio enum with the values 1:1, 4:3, 3:4, 16:9, 9:16 and auto, and the output format enum currently lists only svg. The n parameter is a range from 1 to 6, so a single request can return up to six images, and input_references is a range from 0 to 1, meaning you can attach at most one reference image alongside your text prompt.
Because the output is SVG rather than a raster format, the practical use cases follow from vector graphics themselves. Logos, icons, interface illustrations, diagrams and other assets that need to scale cleanly to any size are a natural fit. The aspect ratio options cover square, landscape and portrait layouts, which helps when generating assets for different placements such as social posts, banners or app screens. The single reference image slot is useful when you want the output to follow the style or composition of an existing image, and the n range lets you generate several variations in one call and pick the best.
You call the model through api14's OpenAI-compatible API using the model id recraft/recraft-v4-pro-vector, so existing OpenAI client libraries work without changes to your integration pattern. The request parameters supported by this model are the image parameters listed above: aspect_ratio, output_format, n and input_references. Note that the general supported_parameters list is empty, so the image specific parameters are the ones to use when shaping a request.
Keep the constraints in mind when choosing this model. Output is limited to SVG, so if you need a raster format such as PNG or JPEG, a different image model will fit better. Only one reference image can be supplied per request, and the n parameter caps at six images. If your task does not involve vector graphics, the vector specific strengths of this model may not be relevant to you.
How to call the Recraft: Recraft V4 Pro Vector API
- Create an API key in your dashboard.
- Install the official openai SDK for your language.
- Set baseURL to https://api14.com/api/v1 and model to "recraft/recraft-v4-pro-vector".
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api14.com/api/v1",
apiKey: process.env.API14_API_KEY,
});
const result = await client.images.generate({
"model": "recraft/recraft-v4-pro-vector",
"prompt": "A minimalist product photo of a ceramic mug on a wooden table",
"n": 1,
"aspect_ratio": "1:1"
});
import { writeFile } from "node:fs/promises";
await writeFile("image.png", Buffer.from(result.data[0].b64_json, "base64"));
Specifications
- Context length
- 65,536
- Max output
- 58,982
- Input
- text, image
- Output
- image
Requests on api14 · last 7 days
Recraft: Recraft V4 Pro Vector: frequently asked questions
- How much does the Recraft: Recraft V4 Pro Vector API cost?
- Recraft: Recraft V4 Pro Vector costs Image output $1.05 / image. It is charged from your USD balance only for successful requests; failed requests are free.
- What is the context window of Recraft: Recraft V4 Pro Vector?
- Recraft: Recraft V4 Pro Vector reads up to 65,536 tokens per request: prompt, history and documents together. It writes up to 58,982 output tokens per response.
- What can Recraft: Recraft V4 Pro Vector do?
- Recraft: Recraft V4 Pro Vector accepts text, image and returns image.
- How do I call Recraft: Recraft V4 Pro Vector from my code?
- Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "recraft/recraft-v4-pro-vector". No other code changes. Copy a ready example from the code panel on this page.
- What are alternatives to Recraft: Recraft V4 Pro Vector?
- Comparable Image models at a similar price: Recraft: Recraft V4.1 Pro Vector, Recraft: Recraft V4 Pro, Recraft: Recraft V4.1 Utility Pro. Each runs through the same API key, so switching is one string.
Recraft: Recraft V4 Pro Vector community
New topicThis community has no topics yet. Open the first one about Recraft: Recraft V4 Pro Vector.