- Category: ai content generation
- Auth: API_KEY
- Composio-managed OAuth available? N/A
- Tools: 22
- Triggers: 0
- Slug:
RECRAFT - Version: 00000000_00
Tools
Create Custom Style
Create Custom Style
Slug:
RECRAFT_CREATE_STYLECreate a private reusable style in the connected Recraft account from one to ten bounded reference images, existing V2/V3 styles, or both. The paid request is sent once and is not automatically retried.Input Parameters
Optional style matching mode: regular for V2/V3, or flexible/precise for V4/V4.1.
string ("recraftv2" | "recraftv2_raster" | "recraftv2_vector" | "recraftv3" | "recraftv3_raster" | "recraftv3_vector" | "recraftv4" | "recraftv4_raster" | "recraftv4_vector" | "recraftv4_pro" | "recraftv4_pro_raster" | "recraftv4_pro_vector" | "recraftv4_1" | "recraftv4_1_raster" | "recraftv4_1_vector" | "recraftv4_1_pro" | "recraftv4_1_pro_raster" | "recraftv4_1_pro_vector" | "recraftv4_1_utility" | "recraftv4_1_utility_raster" | "recraftv4_1_utility_vector" | "recraftv4_1_utility_pro" | "recraftv4_1_utility_pro_raster" | "recraftv4_1_utility_pro_vector" | "recraftv4_styles" | "recraftv4_styles_raster" | "recraftv4_styles_vector" | "recraftv4_styles_pro" | "recraftv4_styles_pro_raster" | "recraftv4_styles_pro_vector")
Optional canonical Recraft model for the style. Omit it to use recraftv4_styles. Flash and external models are not accepted.
string ("any" | "digital_illustration" | "icon" | "realistic_image" | "vector_illustration" | "logo_raster")
Optional base image style compatible with the model.
One to ten PNG, JPEG, or WebP references as protected Composio file uploads, public HTTP(S) URLs, or Base64 image data URLs. Local content must be under 20 MB per image and at most 64 MB in total.
Optional prompt associated with the style; V2/V3 allow up to 1,000 characters and V4/V4.1 up to 10,000.
Optional V2/V3 policy for mixing image and existing-style sources.
Output
Creative Upscale Image
Creative Upscale Image
Slug:
RECRAFT_CREATIVE_UPSCALE_IMAGEIncrease one raster image’s resolution while regenerating fine details and faces. Returns one temporary public signed URL. This paid operation is sent once without automatic HTTP retries.Input Parameters
Source PNG, JPEG, or WebP as a protected Composio upload, public HTTP(S) URL, or Base64 data URL. Local content must be under 20 MB, 256-4096 px per side, and no more than 16 megapixels.
Output
Crisp Upscale Image
Crisp Upscale Image
Slug:
RECRAFT_CRISP_UPSCALE_IMAGEIncrease one raster image’s resolution while sharpening it without promising a specific scale factor, then return a public signed URL that normally expires in about 24 hours. This duration is not guaranteed; download durable results promptly. The paid operation is sent once and is not automatically retried.Input Parameters
Source PNG, JPEG, or WebP as a protected Composio file upload, public HTTP(S) URL, or Base64 image data URL. Local content must be under 20 MB, 32-4096 px per side, and no more than 16 megapixels.
Output
Delete Custom Style
Delete Custom Style
Enhance Image Details
Enhance Image Details
Slug:
RECRAFT_ENHANCE_IMAGERe-render one raster image with Recraft V4.1 Pro for sharper texture and detail while retaining its composition. Returns one temporary public URL; the paid operation is sent once without automatic HTTP retries.Input Parameters
Source PNG, JPEG, or WebP as a protected Composio upload, public HTTP(S) URL, or Base64 data URL. Local content must be under 20 MB, 256-4096 px per side, and no more than 16 megapixels.
Output
Enhance Prompt
Enhance Prompt
Erase Image Region
Erase Image Region
Slug:
RECRAFT_ERASE_IMAGE_REGIONErase the pure-white area of a black-and-white mask from one raster or opaque untrusted SVG image. Returns one temporary public URL; the paid operation is sent once without automatic HTTP retries.Input Parameters
Grayscale PNG, JPEG, or WebP mask as a protected upload, public HTTP(S) URL, or Base64 data URL. Local masks must match a local raster source’s dimensions and contain only pure black and white pixels.
Source PNG, JPEG, WebP, or opaque untrusted SVG as a protected Composio upload, public HTTP(S) URL, or Base64 data URL. Local content must be under 20 MB, 256-4096 px per side, and no more than 16 megapixels.
Output
Generate Image
Generate Image
Slug:
RECRAFT_GENERATE_IMAGEGenerate one to six raster or vector images with any documented Recraft model, returning public signed URLs that normally expire in about 24 hours. This duration is not guaranteed; download durable results promptly and treat vector SVG output as untrusted. Use this model-selectable endpoint when output type is chosen dynamically; use Generate Raster Image or Generate Vector Image when the provider must enforce one output type. The paid operation is sent once and is not automatically retried.Input Parameters
string ("1024x1024" | "1365x1024" | "1024x1365" | "1536x1024" | "1024x1536" | "1820x1024" | "1024x1820" | "1024x2048" | "2048x1024" | "1434x1024" | "1024x1434" | "1024x1280" | "1280x1024" | "1024x1707" | "1707x1024" | "1216x896" | "896x1216" | "1280x832" | "832x1280" | "1152x896" | "896x1152" | "1280x896" | "896x1280" | "832x1344" | "768x1344" | "1344x768" | "768x1536" | "1536x768" | "2048x2048" | "2432x1792" | "1792x2432" | "2560x1664" | "1664x2560" | "2304x1792" | "1792x2304" | "2560x1792" | "1792x2560" | "1664x2688" | "1536x2688" | "2688x1536" | "1536x3072" | "3072x1536" | "1: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:16")
Output aspect ratio w:h, supported by every model, or a documented exact WxH size compatible with the selected raster model. Vector models accept ratios only.
string ("recraftv2" | "recraftv2_raster" | "recraftv2_vector" | "recraftv3" | "recraftv3_raster" | "recraftv3_vector" | "recraftv4" | "recraftv4_raster" | "recraftv4_vector" | "recraftv4_pro" | "recraftv4_pro_raster" | "recraftv4_pro_vector" | "recraftv4_1" | "recraftv4_1_raster" | "recraftv4_1_vector" | "recraftv4_1_pro" | "recraftv4_1_pro_raster" | "recraftv4_1_pro_vector" | "recraftv4_1_utility" | "recraftv4_1_utility_raster" | "recraftv4_1_utility_vector" | "recraftv4_1_utility_pro" | "recraftv4_1_utility_pro_raster" | "recraftv4_1_utility_pro_vector" | "recraftv4_styles" | "recraftv4_styles_raster" | "recraftv4_styles_vector" | "recraftv4_styles_pro" | "recraftv4_styles_pro_raster" | "recraftv4_styles_pro_vector" | "recraftv4_1_flash" | "recraftv4_1_flash_raster")
Optional Recraft generation model. Omit it for recraftv4_1, or recraftv4_styles when style_reference_urls are supplied. External models are not accepted.
Text description of the desired images; V2/V3 allow up to 1,000 characters and newer models up to 10,000.
Style matching mode: regular for V2/V3, or flexible/precise for V4/V4.1.
One to ten PNG, JPEG, or WebP style references as protected Composio uploads, public HTTP(S) URLs, or Base64 image data URLs. Local content must be under 20 MB per image and at most 64 MB in total.
Output
Generate Image Background
Generate Image Background
Slug:
RECRAFT_GENERATE_IMAGE_BACKGROUNDGenerate a new background in the pure-white area of a mask while preserving black areas. Produces one to six V3 raster or untrusted V3 SVG results in one paid, non-retried request.Input Parameters
Grayscale PNG, JPEG, or WebP mask as a protected upload, public HTTP(S) URL, or Base64 data URL. Local masks must match a local raster source’s dimensions and contain only pure black and white pixels.
Source PNG, JPEG, WebP, or opaque untrusted SVG as a protected Composio upload, public HTTP(S) URL, or Base64 data URL. Local content must be under 20 MB, 256-4096 px per side, and no more than 16 megapixels.
V3 raster or V3 vector; these are the only models this operation supports.
Output
Generate Raster Image
Generate Raster Image
Slug:
RECRAFT_GENERATE_RASTER_IMAGEGenerate one to six raster images with a documented raster model and return public signed URLs through Recraft’s raster-only endpoint, which rejects vector output. Use this when raster output must be provider-enforced. The paid operation is sent once and is not automatically retried.Input Parameters
string ("1024x1024" | "1365x1024" | "1024x1365" | "1536x1024" | "1024x1536" | "1820x1024" | "1024x1820" | "1024x2048" | "2048x1024" | "1434x1024" | "1024x1434" | "1024x1280" | "1280x1024" | "1024x1707" | "1707x1024" | "1216x896" | "896x1216" | "1280x832" | "832x1280" | "1152x896" | "896x1152" | "1280x896" | "896x1280" | "832x1344" | "768x1344" | "1344x768" | "768x1536" | "1536x768" | "2048x2048" | "2432x1792" | "1792x2432" | "2560x1664" | "1664x2560" | "2304x1792" | "1792x2304" | "2560x1792" | "1792x2560" | "1664x2688" | "1536x2688" | "2688x1536" | "1536x3072" | "3072x1536" | "1: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:16")
Output aspect ratio w:h, supported by every model, or a documented exact WxH size compatible with the selected raster model. Vector models accept ratios only.
string ("recraftv2" | "recraftv2_raster" | "recraftv3" | "recraftv3_raster" | "recraftv4" | "recraftv4_raster" | "recraftv4_pro" | "recraftv4_pro_raster" | "recraftv4_1" | "recraftv4_1_raster" | "recraftv4_1_pro" | "recraftv4_1_pro_raster" | "recraftv4_1_utility" | "recraftv4_1_utility_raster" | "recraftv4_1_utility_pro" | "recraftv4_1_utility_pro_raster" | "recraftv4_styles" | "recraftv4_styles_raster" | "recraftv4_styles_pro" | "recraftv4_styles_pro_raster" | "recraftv4_1_flash" | "recraftv4_1_flash_raster")
Optional Recraft generation model. Omit it for recraftv4_1, or recraftv4_styles when style_reference_urls are supplied. External models are not accepted.
Text description of the desired images; V2/V3 allow up to 1,000 characters and newer models up to 10,000.
Style matching mode: regular for V2/V3, or flexible/precise for V4/V4.1.
One to ten PNG, JPEG, or WebP style references as protected Composio uploads, public HTTP(S) URLs, or Base64 image data URLs. Local content must be under 20 MB per image and at most 64 MB in total.
Output
Generate Vector Image
Generate Vector Image
Slug:
RECRAFT_GENERATE_VECTOR_IMAGEGenerate one to six SVG images with a documented vector model and return public signed URLs through Recraft’s vector-only endpoint, which rejects raster output. Use this when SVG output must be provider-enforced. Treat the SVG as untrusted active content. The paid operation is sent once and is not automatically retried.Input Parameters
string ("1024x1024" | "1365x1024" | "1024x1365" | "1536x1024" | "1024x1536" | "1820x1024" | "1024x1820" | "1024x2048" | "2048x1024" | "1434x1024" | "1024x1434" | "1024x1280" | "1280x1024" | "1024x1707" | "1707x1024" | "1216x896" | "896x1216" | "1280x832" | "832x1280" | "1152x896" | "896x1152" | "1280x896" | "896x1280" | "832x1344" | "768x1344" | "1344x768" | "768x1536" | "1536x768" | "2048x2048" | "2432x1792" | "1792x2432" | "2560x1664" | "1664x2560" | "2304x1792" | "1792x2304" | "2560x1792" | "1792x2560" | "1664x2688" | "1536x2688" | "2688x1536" | "1536x3072" | "3072x1536" | "1: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:16")
Output aspect ratio w:h, supported by every model, or a documented exact WxH size compatible with the selected raster model. Vector models accept ratios only.
string ("recraftv2_vector" | "recraftv3_vector" | "recraftv4_vector" | "recraftv4_pro_vector" | "recraftv4_1_vector" | "recraftv4_1_pro_vector" | "recraftv4_1_utility_vector" | "recraftv4_1_utility_pro_vector" | "recraftv4_styles_vector" | "recraftv4_styles_pro_vector")
Optional Recraft generation model. Omit it for recraftv4_1, or recraftv4_styles when style_reference_urls are supplied. External models are not accepted.
Text description of the desired images; V2/V3 allow up to 1,000 characters and newer models up to 10,000.
Style matching mode: regular for V2/V3, or flexible/precise for V4/V4.1.
One to ten PNG, JPEG, or WebP style references as protected Composio uploads, public HTTP(S) URLs, or Base64 image data URLs. Local content must be under 20 MB per image and at most 64 MB in total.
Output
Get Current User
Get Current User
Get Custom Style
Get Custom Style
Transform Image From Prompt
Transform Image From Prompt
Slug:
RECRAFT_IMAGE_TO_IMAGECreate one to six new images from a source image and prompt with controlled similarity. Supports Recraft V3, V4, and V4.1 but not V2, Flash, dedicated Styles, or external models. SVG inputs and outputs are untrusted. This paid operation is sent once and is not automatically retried.Input Parameters
Source PNG, JPEG, WebP, or opaque untrusted SVG as a protected Composio upload, public HTTP(S) URL, or Base64 data URL. Local content must be under 20 MB, 256-4096 px per side, and no more than 16 megapixels.
string ("recraftv3" | "recraftv3_raster" | "recraftv3_vector" | "recraftv4" | "recraftv4_raster" | "recraftv4_vector" | "recraftv4_pro" | "recraftv4_pro_raster" | "recraftv4_pro_vector" | "recraftv4_1" | "recraftv4_1_raster" | "recraftv4_1_vector" | "recraftv4_1_pro" | "recraftv4_1_pro_raster" | "recraftv4_1_pro_vector" | "recraftv4_1_utility" | "recraftv4_1_utility_raster" | "recraftv4_1_utility_vector" | "recraftv4_1_utility_pro" | "recraftv4_1_utility_pro_raster" | "recraftv4_1_utility_pro_vector")
Supported V3, V4, or V4.1 model; V2, Flash, and external models are excluded.
Output
Inpaint Image
Inpaint Image
Slug:
RECRAFT_INPAINT_IMAGERegenerate the pure-white masked area of one image from a prompt, keeping black areas unchanged. Produces one to six V3 raster or untrusted V3 SVG results in one paid, non-retried request.Input Parameters
Grayscale PNG, JPEG, or WebP mask as a protected upload, public HTTP(S) URL, or Base64 data URL. Local masks must match a local raster source’s dimensions and contain only pure black and white pixels.
Source PNG, JPEG, WebP, or opaque untrusted SVG as a protected Composio upload, public HTTP(S) URL, or Base64 data URL. Local content must be under 20 MB, 256-4096 px per side, and no more than 16 megapixels.
V3 raster or V3 vector; these are the only models this operation supports.
Output
List Basic Styles
List Basic Styles
List Custom Styles
List Custom Styles
Outpaint Image
Outpaint Image
Slug:
RECRAFT_OUTPAINT_IMAGEExtend one image beyond its borders using a prompt and an output size, side expansion, or zoom-out percentage. Produces one to six V3 raster or untrusted V3 SVG results in one paid, non-retried request.Input Parameters
string ("1024x1024" | "2048x1024" | "1024x2048" | "1536x1024" | "1024x1536" | "1365x1024" | "1024x1365" | "1280x1024" | "1024x1280" | "1024x1707" | "1434x1024" | "1024x1434" | "1820x1024" | "1024x1820" | "1: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:16")
Supported V3 output ratio or exact size; cannot accompany expand fields.
Source PNG, JPEG, WebP, or opaque untrusted SVG as a protected Composio upload, public HTTP(S) URL, or Base64 data URL. Local content must be under 20 MB, 256-4096 px per side, and no more than 16 megapixels.
V3 raster or V3 vector; these are the only models this operation supports.
Output
Remove Image Background
Remove Image Background
Slug:
RECRAFT_REMOVE_IMAGE_BACKGROUNDRemove the background from one raster or SVG image and return a public signed result URL that normally expires in about 24 hours. This duration is not guaranteed; download durable results promptly. SVG remains untrusted. The paid operation is sent once and is not automatically retried.Input Parameters
Source PNG, JPEG, WebP, or opaque untrusted SVG as a protected Composio file upload, public HTTP(S) URL, or Base64 image data URL. Local raster content must be under 20 MB, 256-4096 px per side, and no more than 16 megapixels; local SVG bytes remain unparsed and unrendered.
Raster output format. Omit for Recraft’s lossless WebP default. Recraft ignores this setting for SVG output.
Output
Replace Image Background
Replace Image Background
Slug:
RECRAFT_REPLACE_IMAGE_BACKGROUNDDetect and redraw one image’s background from a prompt. Produces one to six V3 raster or untrusted V3 SVG results in one paid request without automatic HTTP retries.Input Parameters
Source PNG, JPEG, WebP, or opaque untrusted SVG as a protected Composio upload, public HTTP(S) URL, or Base64 data URL. Local content must be under 20 MB, 256-4096 px per side, and no more than 16 megapixels.
V3 raster or V3 vector; these are the only models this operation supports.
Output
Remix Image
Remix Image
Slug:
RECRAFT_VARIATE_IMAGECreate one to six prompt-free variations of an image at a required supported aspect ratio or model-compatible exact size. Accepts current Recraft models from the official API, but no external models; SVG content is untrusted. This paid operation is sent once and is not automatically retried.Input Parameters
string ("1024x1024" | "1365x1024" | "1024x1365" | "1536x1024" | "1024x1536" | "1820x1024" | "1024x1820" | "1024x2048" | "2048x1024" | "1434x1024" | "1024x1434" | "1024x1280" | "1280x1024" | "1024x1707" | "1707x1024" | "1216x896" | "896x1216" | "1280x832" | "832x1280" | "1152x896" | "896x1152" | "1280x896" | "896x1280" | "832x1344" | "768x1344" | "1344x768" | "768x1536" | "1536x768" | "2048x2048" | "2432x1792" | "1792x2432" | "2560x1664" | "1664x2560" | "2304x1792" | "1792x2304" | "2560x1792" | "1792x2560" | "1664x2688" | "1536x2688" | "2688x1536" | "1536x3072" | "3072x1536" | "1: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:16")
required
Required documented aspect ratio or exact WxH size.
Source PNG, JPEG, WebP, or opaque untrusted SVG as a protected Composio upload, public HTTP(S) URL, or Base64 data URL. Local content must be under 20 MB, 256-4096 px per side, and no more than 16 megapixels.
Output
Vectorize Image
Vectorize Image
Slug:
RECRAFT_VECTORIZE_IMAGEConvert one PNG, JPEG, or WebP raster image into an editable SVG and return a public signed URL that normally expires in about 24 hours. This duration is not guaranteed; download durable results promptly and treat the SVG as untrusted. The paid operation is sent once and is not automatically retried.Input Parameters
Source PNG, JPEG, or WebP as a protected Composio file upload, public HTTP(S) URL, or Base64 image data URL. Local content must be under 20 MB, 256-4096 px per side, and no more than 16 megapixels.
How SVG shapes overlap: hierarchical allows stacked shapes; cut_out removes covered portions.