Recraft
App · 20 actions
Generate and edit raster or vector images and manage reusable styles.
Actions
| Action | What it does |
|---|---|
| Create style | Create style in Recraft. |
| Creative upscale | Creative upscale in Recraft. |
| Crisp upscale | Crisp upscale in Recraft. |
| Delete style | Delete style in Recraft. |
| Enhance image | Enhance image in Recraft. |
| Enhance prompt | Enhance prompt in Recraft. |
| Generate background | Generate background in Recraft. |
| Generate raster image | Generate raster image in Recraft. |
| Generate vector image | Generate vector image in Recraft. |
| Get account | Retrieve account from Recraft. |
| Get style | Retrieve style from Recraft. |
| Inpaint image | Inpaint image in Recraft. |
| List basic styles | Retrieve a page of basic styles from Recraft. |
| List styles | Retrieve a page of styles from Recraft. |
| Outpaint image | Outpaint image in Recraft. |
| Remove background | Remove background in Recraft. |
| Replace background | Replace background in Recraft. |
| Restyle image | Restyle image in Recraft. |
| Vary image | Vary image in Recraft. |
| Vectorize image | Vectorize image in Recraft. |
Create style
Create style in Recraft.
Inputs
- Image weights
image_weightslist - Image weights.
- Match
matchtext - Match.One of:
regular,precise,flexible. - Mix policy
mix_policytext - Mix policy.One of:
PaletteMatch,MaxWeight. - Model
modeltext - Model.One of:
recraftv2,recraftv2_raster(Recraftv2 raster),recraftv2_vector(Recraftv2 vector),recraftv3,recraftv3_raster(Recraftv3 raster),recraftv3_vector(Recraftv3 vector),recraftv4,recraftv4_raster(Recraftv4 raster),recraftv4_vector(Recraftv4 vector),recraftv4_pro(Recraftv4 pro), and 22 more. - Palette
paletteobject - Palette.
- Private
privatetrue/false - Private.
- Prompt
prompttext - Prompt.
- Source style weights
source_style_weightslist - Source style weights.
- Source styles
source_styleslist - Source styles.
- Style
styletext - Style.One of:
any,digital_illustration(Digital illustration),icon,realistic_image(Realistic image),vector_illustration(Vector illustration),logo_raster(Logo raster). - Image urls
image_urlslist - URLs or data URLs of the reference images. JSON counterpart of the uploaded files.
Outputs
dataobject- The result returned by Recraft.
Example output
{
"data": {
"creation_time": "example",
"credits": 1,
"id": "example",
"is_private": false,
"style": "any"
}
}Creative upscale
Creative upscale in Recraft.
Inputs
- Image format
image_formattext - Image format.One of:
webp,png. - Response format
response_formattext - Response format.One of:
url,b64_json(B64 json). - Upscale
upscaletext - Upscale.One of:
upscale4mp,upscale16mp. - Image URL
image_urltextRequired - URL or data URL of the input image. JSON counterpart of the `image` file.
Outputs
dataobject- The result returned by Recraft.
Example output
{
"data": {
"created": 1,
"credits": 1,
"image": {
"b64_json": "example",
"image_id": "example",
"revised_prompt": "example",
"url": "example"
}
}
}Crisp upscale
Crisp upscale in Recraft.
Inputs
- Image format
image_formattext - Image format.One of:
webp,png. - Response format
response_formattext - Response format.One of:
url,b64_json(B64 json). - Upscale
upscaletext - Upscale.One of:
upscale4mp,upscale16mp. - Image URL
image_urltextRequired - URL or data URL of the input image. JSON counterpart of the `image` file.
Outputs
dataobject- The result returned by Recraft.
Example output
{
"data": {
"created": 1,
"credits": 1,
"image": {
"b64_json": "example",
"image_id": "example",
"revised_prompt": "example",
"url": "example"
}
}
}Delete style
Delete style in Recraft.
Inputs
- Style
style_idtextRequired - Style id.
Outputs
dataobject- The result returned by Recraft.
Example output
{
"data": {}
}Enhance image
Enhance image in Recraft.
Inputs
- Image format
image_formattext - Image format.One of:
webp,png. - Refinement
refinementtext - Refinement.One of:
subtle,moderate. - Response format
response_formattext - Response format.One of:
url,b64_json(B64 json). - Image URL
image_urltextRequired - URL or data URL of the input image. JSON counterpart of the `image` file.
Outputs
dataobject- The result returned by Recraft.
Example output
{
"data": {
"created": 1,
"credits": 1,
"image": {
"b64_json": "example",
"image_id": "example",
"revised_prompt": "example",
"url": "example"
}
}
}Enhance prompt
Enhance prompt in Recraft.
Inputs
- Prompt
prompttextRequired - Prompt.
Outputs
dataobject- The result returned by Recraft.
Example output
{
"data": {
"enhanced_prompt": "example"
}
}Generate background
Generate background in Recraft.
Inputs
- Controls
controlsobject - Controls.
- Image format
image_formattext - Image format.One of:
webp,png. - Model
modeltext - Model.One of:
recraftv3,recraftv3_vector(Recraftv3 vector). - N
nnumber - N.
- Negative prompt
negative_prompttext - Negative prompt.
- Prompt
prompttextRequired - Prompt.
- Random seed
random_seednumber - Random seed.
- Response format
response_formattext - Response format.One of:
url,b64_json(B64 json). - Style
styletext - Style.
- Style
style_idtext - Style id.
- Style match
style_matchtext - Style match.One of:
regular,precise,flexible. - Text layout
text_layoutlist - Text layout.
- Image URL
image_urltextRequired - URL or data URL of the input image. JSON counterpart of the `image` file.
- Mask URL
mask_urltextRequired - URL or data URL of the mask image. JSON counterpart of the `mask` file.
Outputs
dataobject- The result returned by Recraft.
Example output
{
"data": {
"created": 1,
"credits": 1,
"data": [],
"style_id": "example"
}
}Generate raster image
Generate raster image in Recraft.
Inputs
- Controls
controlsobject - Controls.
- Image format
image_formattext - Image format.One of:
webp,png. - Model
modeltext - Model.One of:
recraftv2,recraftv2_raster(Recraftv2 raster),recraftv2_vector(Recraftv2 vector),recraftv3,recraftv3_raster(Recraftv3 raster),recraftv3_vector(Recraftv3 vector),recraftv4,recraftv4_raster(Recraftv4 raster),recraftv4_vector(Recraftv4 vector),recraftv4_pro(Recraftv4 pro), and 22 more. - N
nnumber - N.
- Negative prompt
negative_prompttext - Negative prompt.
- Prompt
prompttextRequired - Prompt.
- Random seed
random_seednumber - Random seed.
- Response format
response_formattext - Response format.One of:
url,b64_json(B64 json). - Size
sizetext - Size.One of:
1024x1024,1365x1024,1024x1365,1536x1024,1024x1536,1820x1024,1024x1820,1024x2048,2048x1024,1434x1024, and 46 more. - Style
styletext - Style.
- Style
style_idtext - Style id.
- Style match
style_matchtext - Style match.One of:
regular,precise,flexible. - Text layout
text_layoutlist - Text layout.
- Upscale
upscaletext - Upscale.One of:
upscale4mp,upscale16mp. - Style reference urls
style_reference_urlslist - URLs or data URLs of 1 to 10 style reference images. JSON counterpart of `style_references`.
Outputs
dataobject- The result returned by Recraft.
Example output
{
"data": {
"created": 1,
"credits": 1,
"data": [],
"style_id": "example"
}
}Generate vector image
Generate vector image in Recraft.
Inputs
- Controls
controlsobject - Controls.
- Image format
image_formattext - Image format.One of:
webp,png. - Model
modeltext - Model.One of:
recraftv2,recraftv2_raster(Recraftv2 raster),recraftv2_vector(Recraftv2 vector),recraftv3,recraftv3_raster(Recraftv3 raster),recraftv3_vector(Recraftv3 vector),recraftv4,recraftv4_raster(Recraftv4 raster),recraftv4_vector(Recraftv4 vector),recraftv4_pro(Recraftv4 pro), and 22 more. - N
nnumber - N.
- Negative prompt
negative_prompttext - Negative prompt.
- Prompt
prompttextRequired - Prompt.
- Random seed
random_seednumber - Random seed.
- Response format
response_formattext - Response format.One of:
url,b64_json(B64 json). - Size
sizetext - Size.One of:
1024x1024,1365x1024,1024x1365,1536x1024,1024x1536,1820x1024,1024x1820,1024x2048,2048x1024,1434x1024, and 46 more. - Style
styletext - Style.
- Style
style_idtext - Style id.
- Style match
style_matchtext - Style match.One of:
regular,precise,flexible. - Text layout
text_layoutlist - Text layout.
- Upscale
upscaletext - Upscale.One of:
upscale4mp,upscale16mp. - Style reference urls
style_reference_urlslist - URLs or data URLs of 1 to 10 style reference images. JSON counterpart of `style_references`.
Outputs
dataobject- The result returned by Recraft.
Example output
{
"data": {
"created": 1,
"credits": 1,
"data": [],
"style_id": "example"
}
}Get account
Retrieve account from Recraft.
Inputs
None.
Outputs
dataobject- The result returned by Recraft.
Example output
{
"data": {
"credits": 1,
"email": "example",
"id": "example",
"name": "example"
}
}Get style
Retrieve style from Recraft.
Inputs
- Style
style_idtextRequired - Style id.
Outputs
dataobject- The result returned by Recraft.
Example output
{
"data": {
"creation_time": "example",
"id": "example",
"is_private": false,
"style": "any"
}
}Inpaint image
Inpaint image in Recraft.
Inputs
- Controls
controlsobject - Controls.
- Image format
image_formattext - Image format.One of:
webp,png. - Model
modeltext - Model.One of:
recraftv3,recraftv3_vector(Recraftv3 vector). - N
nnumber - N.
- Negative prompt
negative_prompttext - Negative prompt.
- Prompt
prompttextRequired - Prompt.
- Random seed
random_seednumber - Random seed.
- Response format
response_formattext - Response format.One of:
url,b64_json(B64 json). - Style
styletext - Style.
- Style
style_idtext - Style id.
- Style match
style_matchtext - Style match.One of:
regular,precise,flexible. - Text layout
text_layoutlist - Text layout.
- Image URL
image_urltextRequired - URL or data URL of the input image. JSON counterpart of the `image` file.
- Mask URL
mask_urltextRequired - URL or data URL of the mask image. JSON counterpart of the `mask` file.
Outputs
dataobject- The result returned by Recraft.
Example output
{
"data": {
"created": 1,
"credits": 1,
"data": [],
"style_id": "example"
}
}List basic styles
Retrieve a page of basic styles from Recraft.
Inputs
None.
Outputs
dataobject- The result returned by Recraft.
Example output
{
"data": {
"styles": []
}
}List styles
Retrieve a page of styles from Recraft.
Inputs
None.
Outputs
dataobject- The result returned by Recraft.
Example output
{
"data": {
"styles": []
}
}Outpaint image
Outpaint image in Recraft.
Inputs
- Controls
controlsobject - Controls.
- Image format
image_formattext - Image format.One of:
webp,png. - Model
modeltext - Model.One of:
recraftv3,recraftv3_vector(Recraftv3 vector). - N
nnumber - N.
- Negative prompt
negative_prompttext - Negative prompt.
- Prompt
prompttextRequired - Prompt.
- Random seed
random_seednumber - Random seed.
- Response format
response_formattext - Response format.One of:
url,b64_json(B64 json). - Style
styletext - Style.
- Style
style_idtext - Style id.
- Style match
style_matchtext - Style match.One of:
regular,precise,flexible. - Text layout
text_layoutlist - Text layout.
- Expand bottom
expand_bottomnumber - Expand bottom.
- Expand left
expand_leftnumber - Expand left.
- Expand right
expand_rightnumber - Expand right.
- Expand top
expand_topnumber - Expand top.
- Size
sizetext - Size.One of:
1024x1024,1365x1024,1024x1365,1536x1024,1024x1536,1820x1024,1024x1820,1024x2048,2048x1024,1434x1024, and 46 more. - Zoom out percentage
zoom_out_percentagenumber - Zoom out percentage.
- Image URL
image_urltextRequired - URL or data URL of the input image. JSON counterpart of the `image` file.
Outputs
dataobject- The result returned by Recraft.
Example output
{
"data": {
"created": 1,
"credits": 1,
"data": [],
"style_id": "example"
}
}Remove background
Remove background in Recraft.
Inputs
- Image format
image_formattext - Image format.One of:
webp,png. - Response format
response_formattext - Response format.One of:
url,b64_json(B64 json). - Upscale
upscaletext - Upscale.One of:
upscale4mp,upscale16mp. - Image URL
image_urltextRequired - URL or data URL of the input image. JSON counterpart of the `image` file.
Outputs
dataobject- The result returned by Recraft.
Example output
{
"data": {
"created": 1,
"credits": 1,
"image": {
"b64_json": "example",
"image_id": "example",
"revised_prompt": "example",
"url": "example"
}
}
}Replace background
Replace background in Recraft.
Inputs
- Controls
controlsobject - Controls.
- Image format
image_formattext - Image format.One of:
webp,png. - Model
modeltext - Model.One of:
recraftv3,recraftv3_vector(Recraftv3 vector). - N
nnumber - N.
- Negative prompt
negative_prompttext - Negative prompt.
- Prompt
prompttextRequired - Prompt.
- Random seed
random_seednumber - Random seed.
- Response format
response_formattext - Response format.One of:
url,b64_json(B64 json). - Style
styletext - Style.
- Style
style_idtext - Style id.
- Style match
style_matchtext - Style match.One of:
regular,precise,flexible. - Text layout
text_layoutlist - Text layout.
- Image URL
image_urltextRequired - URL or data URL of the input image. JSON counterpart of the `image` file.
Outputs
dataobject- The result returned by Recraft.
Example output
{
"data": {
"created": 1,
"credits": 1,
"data": [],
"style_id": "example"
}
}Restyle image
Restyle image in Recraft.
Inputs
- Controls
controlsobject - Controls.
- Image format
image_formattext - Image format.One of:
webp,png. - Model
modeltext - Model.One of:
recraftv2,recraftv2_raster(Recraftv2 raster),recraftv2_vector(Recraftv2 vector),recraftv3,recraftv3_raster(Recraftv3 raster),recraftv3_vector(Recraftv3 vector),recraftv4,recraftv4_raster(Recraftv4 raster),recraftv4_vector(Recraftv4 vector),recraftv4_pro(Recraftv4 pro), and 22 more. - N
nnumber - N.
- Negative prompt
negative_prompttext - Negative prompt.
- Prompt
prompttextRequired - Prompt.
- Random seed
random_seednumber - Random seed.
- Response format
response_formattext - Response format.One of:
url,b64_json(B64 json). - Style
styletext - Style.
- Style
style_idtext - Style id.
- Style match
style_matchtext - Style match.One of:
regular,precise,flexible. - Text layout
text_layoutlist - Text layout.
- Image URL
image_urltextRequired - URL or data URL of the input image. JSON counterpart of the `image` file.
- Strength
strengthnumber - Strength.
Outputs
dataobject- The result returned by Recraft.
Example output
{
"data": {
"created": 1,
"credits": 1,
"data": [],
"style_id": "example"
}
}Vary image
Vary image in Recraft.
Inputs
- Image format
image_formattext - Image format.One of:
webp,png. - Model
modeltext - Model.One of:
recraftv2,recraftv2_raster(Recraftv2 raster),recraftv2_vector(Recraftv2 vector),recraftv3,recraftv3_raster(Recraftv3 raster),recraftv3_vector(Recraftv3 vector),recraftv4,recraftv4_raster(Recraftv4 raster),recraftv4_vector(Recraftv4 vector),recraftv4_pro(Recraftv4 pro), and 22 more. - N
nnumber - N.
- Random seed
random_seednumber - Random seed.
- Response format
response_formattext - Response format.One of:
url,b64_json(B64 json). - Size
sizetextRequired - Size.One of:
1024x1024,1365x1024,1024x1365,1536x1024,1024x1536,1820x1024,1024x1820,1024x2048,2048x1024,1434x1024, and 46 more. - Image URL
image_urltextRequired - URL or data URL of the input image. JSON counterpart of the `image` file.
Outputs
dataobject- The result returned by Recraft.
Example output
{
"data": {
"created": 1,
"credits": 1,
"data": [],
"style_id": "example"
}
}Vectorize image
Vectorize image in Recraft.
Inputs
- Image format
image_formattext - Image format.One of:
webp,png. - Response format
response_formattext - Response format.One of:
url,b64_json(B64 json). - Upscale
upscaletext - Upscale.One of:
upscale4mp,upscale16mp. - Color reduction
color_reductiontext - Color reduction.One of:
on,off. - Limit num shapes
limit_num_shapestext - Limit num shapes.One of:
on,off. - Max num colors
max_num_colorsnumber - Max num colors.
- Max num shapes
max_num_shapesnumber - Max num shapes.
- Return gradients
return_gradientstext - Return gradients.One of:
on,off. - Shape stacking
shape_stackingtext - Shape stacking.One of:
cut_out(Cut out),hierarchical. - Small shape filter
small_shape_filtertext - Small shape filter.One of:
on,off. - Strict color palette
strict_color_palettelist - Strict color palette.
- Svg compression
svg_compressiontext - Svg compression.One of:
on,off. - Image URL
image_urltextRequired - URL or data URL of the input image. JSON counterpart of the `image` file.
Outputs
dataobject- The result returned by Recraft.
Example output
{
"data": {
"created": 1,
"credits": 1,
"image": {
"b64_json": "example",
"image_id": "example",
"revised_prompt": "example",
"url": "example"
}
}
}