Recraft REST API
AI-powered vector graphics and image generation API
Recraft is an AI-powered design tool API that generates vector graphics, icons, illustrations, and images with precise control over style and brand consistency. Developers use it to automate design workflows, create scalable brand assets, and generate custom imagery programmatically with controllable artistic styles.
https://api.recraft.ai/v1
API Endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST | /images/generate | Generate AI images from text prompts with customizable styles and parameters |
| POST | /vectors/generate | Create vector graphics and SVG assets from text descriptions |
| POST | /images/upscale | Upscale generated images to higher resolutions while maintaining quality |
| POST | /images/edit | Edit existing images with AI-powered inpainting and modifications |
| POST | /styles/create | Create custom brand styles from reference images for consistent generation |
| GET | /styles | List all available custom and preset styles |
| GET | /styles/{style_id} | Retrieve details of a specific style |
| POST | /images/vectorize | Convert raster images to vector format automatically |
| POST | /images/background/remove | Remove backgrounds from images with AI precision |
| GET | /generations/{generation_id} | Get the status and results of a specific generation job |
| POST | /images/variations | Generate variations of an existing image while maintaining core elements |
| DELETE | /generations/{generation_id} | Cancel an in-progress generation job |
| GET | /account/usage | Get current API usage statistics and credit balance |
Sponsor this page
AvailableReach developers actively building with Recraft. See live pageview data and self-serve checkout — your slot goes live in minutes.
View inventory & pricing →Code Examples
curl -X POST https://api.recraft.ai/v1/images/generate \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "minimalist tech startup logo with geometric shapes",
"style": "vector_illustration",
"size": "1024x1024",
"n": 1
}'
Use Recraft from Claude / Cursor / ChatGPT
Get a hosted MCP endpoint for Recraft. Paste your Recraft API key, copy back one URL, drop it into Claude Desktop, Cursor, or any AI client that supports remote MCP. Your AI calls Recraft directly with your credentials — no local install, works on mobile.
generate_brand_assets
Generate consistent brand images and icons using custom style references
create_vector_graphics
Create scalable vector illustrations and graphics from text descriptions
upscale_images
Enhance image resolution for generated or uploaded images
remove_backgrounds
Automatically remove backgrounds from images for product photography or design
manage_custom_styles
Create, retrieve, and manage custom brand styles for consistent AI generation
Connect in 60 seconds
Paste your Recraft key → get an MCP URL → paste into Claude/Cursor. Hosted by IOX, encrypted at rest.
Connect Recraft to your AI →