Connect to AI
AI & Machine Learning API Key

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.

Base URL https://api.recraft.ai/v1

API Endpoints

MethodEndpointDescription
POST/images/generateGenerate AI images from text prompts with customizable styles and parameters
POST/vectors/generateCreate vector graphics and SVG assets from text descriptions
POST/images/upscaleUpscale generated images to higher resolutions while maintaining quality
POST/images/editEdit existing images with AI-powered inpainting and modifications
POST/styles/createCreate custom brand styles from reference images for consistent generation
GET/stylesList all available custom and preset styles
GET/styles/{style_id}Retrieve details of a specific style
POST/images/vectorizeConvert raster images to vector format automatically
POST/images/background/removeRemove backgrounds from images with AI precision
GET/generations/{generation_id}Get the status and results of a specific generation job
POST/images/variationsGenerate variations of an existing image while maintaining core elements
DELETE/generations/{generation_id}Cancel an in-progress generation job
GET/account/usageGet current API usage statistics and credit balance

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 →

Related APIs