Recraft

App · 20 actions

Generate and edit raster or vector images and manage reusable styles.

Actions

ActionWhat it does
Create styleCreate style in Recraft.
Creative upscaleCreative upscale in Recraft.
Crisp upscaleCrisp upscale in Recraft.
Delete styleDelete style in Recraft.
Enhance imageEnhance image in Recraft.
Enhance promptEnhance prompt in Recraft.
Generate backgroundGenerate background in Recraft.
Generate raster imageGenerate raster image in Recraft.
Generate vector imageGenerate vector image in Recraft.
Get accountRetrieve account from Recraft.
Get styleRetrieve style from Recraft.
Inpaint imageInpaint image in Recraft.
List basic stylesRetrieve a page of basic styles from Recraft.
List stylesRetrieve a page of styles from Recraft.
Outpaint imageOutpaint image in Recraft.
Remove backgroundRemove background in Recraft.
Replace backgroundReplace background in Recraft.
Restyle imageRestyle image in Recraft.
Vary imageVary image in Recraft.
Vectorize imageVectorize image in Recraft.

Create style

Create style in Recraft.

Inputs

Image weightsimage_weightslist
Image weights.
Matchmatchtext
Match.One of: regular, precise, flexible.
Mix policymix_policytext
Mix policy.One of: PaletteMatch, MaxWeight.
Modelmodeltext
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.
Palettepaletteobject
Palette.
Privateprivatetrue/false
Private.
Promptprompttext
Prompt.
Source style weightssource_style_weightslist
Source style weights.
Source stylessource_styleslist
Source styles.
Stylestyletext
Style.One of: any, digital_illustration (Digital illustration), icon, realistic_image (Realistic image), vector_illustration (Vector illustration), logo_raster (Logo raster).
Image urlsimage_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 formatimage_formattext
Image format.One of: webp, png.
Response formatresponse_formattext
Response format.One of: url, b64_json (B64 json).
Upscaleupscaletext
Upscale.One of: upscale4mp, upscale16mp.
Image URLimage_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 formatimage_formattext
Image format.One of: webp, png.
Response formatresponse_formattext
Response format.One of: url, b64_json (B64 json).
Upscaleupscaletext
Upscale.One of: upscale4mp, upscale16mp.
Image URLimage_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

Stylestyle_idtextRequired
Style id.

Outputs

dataobject
The result returned by Recraft.
Example output
{
  "data": {}
}

Enhance image

Enhance image in Recraft.

Inputs

Image formatimage_formattext
Image format.One of: webp, png.
Refinementrefinementtext
Refinement.One of: subtle, moderate.
Response formatresponse_formattext
Response format.One of: url, b64_json (B64 json).
Image URLimage_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

PromptprompttextRequired
Prompt.

Outputs

dataobject
The result returned by Recraft.
Example output
{
  "data": {
    "enhanced_prompt": "example"
  }
}

Generate background

Generate background in Recraft.

Inputs

Controlscontrolsobject
Controls.
Image formatimage_formattext
Image format.One of: webp, png.
Modelmodeltext
Model.One of: recraftv3, recraftv3_vector (Recraftv3 vector).
Nnnumber
N.
Negative promptnegative_prompttext
Negative prompt.
PromptprompttextRequired
Prompt.
Random seedrandom_seednumber
Random seed.
Response formatresponse_formattext
Response format.One of: url, b64_json (B64 json).
Stylestyletext
Style.
Stylestyle_idtext
Style id.
Style matchstyle_matchtext
Style match.One of: regular, precise, flexible.
Text layouttext_layoutlist
Text layout.
Image URLimage_urltextRequired
URL or data URL of the input image. JSON counterpart of the `image` file.
Mask URLmask_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

Controlscontrolsobject
Controls.
Image formatimage_formattext
Image format.One of: webp, png.
Modelmodeltext
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.
Nnnumber
N.
Negative promptnegative_prompttext
Negative prompt.
PromptprompttextRequired
Prompt.
Random seedrandom_seednumber
Random seed.
Response formatresponse_formattext
Response format.One of: url, b64_json (B64 json).
Sizesizetext
Size.One of: 1024x1024, 1365x1024, 1024x1365, 1536x1024, 1024x1536, 1820x1024, 1024x1820, 1024x2048, 2048x1024, 1434x1024, and 46 more.
Stylestyletext
Style.
Stylestyle_idtext
Style id.
Style matchstyle_matchtext
Style match.One of: regular, precise, flexible.
Text layouttext_layoutlist
Text layout.
Upscaleupscaletext
Upscale.One of: upscale4mp, upscale16mp.
Style reference urlsstyle_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

Controlscontrolsobject
Controls.
Image formatimage_formattext
Image format.One of: webp, png.
Modelmodeltext
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.
Nnnumber
N.
Negative promptnegative_prompttext
Negative prompt.
PromptprompttextRequired
Prompt.
Random seedrandom_seednumber
Random seed.
Response formatresponse_formattext
Response format.One of: url, b64_json (B64 json).
Sizesizetext
Size.One of: 1024x1024, 1365x1024, 1024x1365, 1536x1024, 1024x1536, 1820x1024, 1024x1820, 1024x2048, 2048x1024, 1434x1024, and 46 more.
Stylestyletext
Style.
Stylestyle_idtext
Style id.
Style matchstyle_matchtext
Style match.One of: regular, precise, flexible.
Text layouttext_layoutlist
Text layout.
Upscaleupscaletext
Upscale.One of: upscale4mp, upscale16mp.
Style reference urlsstyle_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

Stylestyle_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

Controlscontrolsobject
Controls.
Image formatimage_formattext
Image format.One of: webp, png.
Modelmodeltext
Model.One of: recraftv3, recraftv3_vector (Recraftv3 vector).
Nnnumber
N.
Negative promptnegative_prompttext
Negative prompt.
PromptprompttextRequired
Prompt.
Random seedrandom_seednumber
Random seed.
Response formatresponse_formattext
Response format.One of: url, b64_json (B64 json).
Stylestyletext
Style.
Stylestyle_idtext
Style id.
Style matchstyle_matchtext
Style match.One of: regular, precise, flexible.
Text layouttext_layoutlist
Text layout.
Image URLimage_urltextRequired
URL or data URL of the input image. JSON counterpart of the `image` file.
Mask URLmask_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

Controlscontrolsobject
Controls.
Image formatimage_formattext
Image format.One of: webp, png.
Modelmodeltext
Model.One of: recraftv3, recraftv3_vector (Recraftv3 vector).
Nnnumber
N.
Negative promptnegative_prompttext
Negative prompt.
PromptprompttextRequired
Prompt.
Random seedrandom_seednumber
Random seed.
Response formatresponse_formattext
Response format.One of: url, b64_json (B64 json).
Stylestyletext
Style.
Stylestyle_idtext
Style id.
Style matchstyle_matchtext
Style match.One of: regular, precise, flexible.
Text layouttext_layoutlist
Text layout.
Expand bottomexpand_bottomnumber
Expand bottom.
Expand leftexpand_leftnumber
Expand left.
Expand rightexpand_rightnumber
Expand right.
Expand topexpand_topnumber
Expand top.
Sizesizetext
Size.One of: 1024x1024, 1365x1024, 1024x1365, 1536x1024, 1024x1536, 1820x1024, 1024x1820, 1024x2048, 2048x1024, 1434x1024, and 46 more.
Zoom out percentagezoom_out_percentagenumber
Zoom out percentage.
Image URLimage_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 formatimage_formattext
Image format.One of: webp, png.
Response formatresponse_formattext
Response format.One of: url, b64_json (B64 json).
Upscaleupscaletext
Upscale.One of: upscale4mp, upscale16mp.
Image URLimage_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

Controlscontrolsobject
Controls.
Image formatimage_formattext
Image format.One of: webp, png.
Modelmodeltext
Model.One of: recraftv3, recraftv3_vector (Recraftv3 vector).
Nnnumber
N.
Negative promptnegative_prompttext
Negative prompt.
PromptprompttextRequired
Prompt.
Random seedrandom_seednumber
Random seed.
Response formatresponse_formattext
Response format.One of: url, b64_json (B64 json).
Stylestyletext
Style.
Stylestyle_idtext
Style id.
Style matchstyle_matchtext
Style match.One of: regular, precise, flexible.
Text layouttext_layoutlist
Text layout.
Image URLimage_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

Controlscontrolsobject
Controls.
Image formatimage_formattext
Image format.One of: webp, png.
Modelmodeltext
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.
Nnnumber
N.
Negative promptnegative_prompttext
Negative prompt.
PromptprompttextRequired
Prompt.
Random seedrandom_seednumber
Random seed.
Response formatresponse_formattext
Response format.One of: url, b64_json (B64 json).
Stylestyletext
Style.
Stylestyle_idtext
Style id.
Style matchstyle_matchtext
Style match.One of: regular, precise, flexible.
Text layouttext_layoutlist
Text layout.
Image URLimage_urltextRequired
URL or data URL of the input image. JSON counterpart of the `image` file.
Strengthstrengthnumber
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 formatimage_formattext
Image format.One of: webp, png.
Modelmodeltext
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.
Nnnumber
N.
Random seedrandom_seednumber
Random seed.
Response formatresponse_formattext
Response format.One of: url, b64_json (B64 json).
SizesizetextRequired
Size.One of: 1024x1024, 1365x1024, 1024x1365, 1536x1024, 1024x1536, 1820x1024, 1024x1820, 1024x2048, 2048x1024, 1434x1024, and 46 more.
Image URLimage_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 formatimage_formattext
Image format.One of: webp, png.
Response formatresponse_formattext
Response format.One of: url, b64_json (B64 json).
Upscaleupscaletext
Upscale.One of: upscale4mp, upscale16mp.
Color reductioncolor_reductiontext
Color reduction.One of: on, off.
Limit num shapeslimit_num_shapestext
Limit num shapes.One of: on, off.
Max num colorsmax_num_colorsnumber
Max num colors.
Max num shapesmax_num_shapesnumber
Max num shapes.
Return gradientsreturn_gradientstext
Return gradients.One of: on, off.
Shape stackingshape_stackingtext
Shape stacking.One of: cut_out (Cut out), hierarchical.
Small shape filtersmall_shape_filtertext
Small shape filter.One of: on, off.
Strict color palettestrict_color_palettelist
Strict color palette.
Svg compressionsvg_compressiontext
Svg compression.One of: on, off.
Image URLimage_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"
    }
  }
}

On this page