RawFrame

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.

ParameterAccepted valuesDefault
aspect_ratio1: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:161:1
num_outputs1 to 61
seed0 to 4294967295chosen by the provider
output_formatpng, jpeg, webpprovider'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);

On this page