recraft-ai/recraft-v4-styles

Recraft V4 Styles generates 1K raster images that match a reusable style or attached reference images. Built for consistent campaign, brand, and product visuals.

96 runs

Run recraft-ai/recraft-v4-styles with an API

Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.

Input schema

The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.

Field Type Default value Description
prompt
string
Text prompt for image generation (up to 10,000 characters)
aspect_ratio
None
Not set
Aspect ratio of the generated image
size
None
1024x1024
Width and height of the generated image. Size is ignored if an aspect ratio is set.
style_id
string
Reusable Recraft style ID created with the Create style endpoint. Mutually exclusive with style_reference_urls.
style_reference_urls
string
Comma-separated PNG, JPG, or WEBP reference image URLs used to create a private style for this generation. Supports 1-10 images. Mutually exclusive with style_id.
style_match
None
precise
How closely the generated image should follow the style.

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{
  "type": "object",
  "title": "Output",
  "required": [
    "image"
  ],
  "properties": {
    "image": {
      "type": "string",
      "title": "Image",
      "format": "uri"
    },
    "style_id": {
      "type": "string",
      "title": "Style Id",
      "nullable": true
    }
  }
}