Recraft V4.1
Recraft V4.1 raster images at about 1 megapixel, with strong typography and design-minded composition. Text to image only.
Preview
Parameters and limits may change before this model is generally available.
- Model id:
recraft/recraft-v4.1 - Type: Image, from Recraft
- Modes: Text to image
- Prompt: up to 10,000 characters
- Canceling: Only while queued. Generations finish within seconds once submitted.
Parameters
Set these in params. Anything left out takes the default, which is what the price estimate assumes.
| Parameter | Accepted values | Default |
|---|---|---|
aspect_ratio | 1:1, 2:1, 1:2, 3:2, 2:3, 4:3, 3:4, 5:4, 4:5, 6:10, 14:10, 10:14, 16:9, 9:16 | 1:1 |
num_outputs | 1 to 6 | 1 |
seed | 0 to 4294967295 | chosen by the provider |
output_format | png, jpeg, webp | provider's |
References
This model takes no references.
Pricing
Billed per image delivered. The full price list for your account is on the dashboard's billing page and in pricing from GET /v1/models/recraft%2Frecraft-v4.1. Each request reserves its maximum price and is charged for what was produced (Pricing and credits).
Examples
Poster
import { RawFrame } from "@rawframe/sdk";
const rf = new RawFrame();
const generation = await rf.generations.createAndWait({
model: "recraft/recraft-v4.1",
prompt: "A minimalist travel poster of a mountain village at dawn, bold flat shapes, warm palette",
params: { aspect_ratio: "2:3" },
});
console.log(generation.outputs?.[0]?.url);Wide product shot
import { RawFrame } from "@rawframe/sdk";
const rf = new RawFrame();
const generation = await rf.generations.createAndWait({
model: "recraft/recraft-v4.1",
prompt: "A matte black wireless speaker on a pale concrete plinth, soft studio light",
params: { aspect_ratio: "16:9", num_outputs: 2 },
});
console.log(generation.outputs?.[0]?.url);