create_style
Generate custom visual styles by extracting patterns from reference images for use in image generation tools. Input includes style type and 1-5 image URLs or file paths, output provides the style ID.
Instructions
Create a style in Recraft from the set of style reference images. A style is extracted from the provided images and can be used in image generation tools. ID of the created style will be returned in the response.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
imageURIs | Yes | Array of images to use as a style references. Each item can be a URL (starting with http:// or https://) or a file path (starting with file://). The length should be from 1 to 5. | |
style | Yes | Basic visual style in which the style will be created. |
Input Schema (JSON Schema)
{
"properties": {
"imageURIs": {
"description": "Array of images to use as a style references. Each item can be a URL (starting with http:// or https://) or a file path (starting with file://). The length should be from 1 to 5.",
"items": {
"type": "string"
},
"type": "array"
},
"style": {
"description": "Basic visual style in which the style will be created.",
"enum": [
"realistic_image",
"digital_illustration",
"vector_illustration",
"icon"
],
"type": "string"
}
},
"required": [
"style",
"imageURIs"
],
"type": "object"
}