Skip to main content
The Recraft API is a REST API for generating and editing images with Recraft’s own models. It returns raster images and editable SVG vectors, and it also vectorizes, upscales, and removes backgrounds. It works with any HTTP client or the OpenAI Python library, and you pay per image from $0.007, with no subscription.
Building with an AI agent? Give Claude, Cursor, or ChatGPT this one link. It has every model, parameter, and a working request:
Using Claude Code? Install the Recraft skill once and ask for what you need.

Your first image

Create a token in API tokens and set it once per terminal session:
Then send a prompt:
You get a link to an SVG file, valid for about 24 hours:
New to the API? The Quickstart walks through each step.

Models

V4.1 Flash V2

About 1.1 s and $0.007 per image, quality close to V4.1.RasterFastest

V4.1

The default. Photorealism, illustration, and strong short prompts. From $0.035.RasterVectorStyles

V4 Styles

Match any style from 1 to 10 reference images. From $0.035.RasterVectorStyle match

V4

Design taste and production-grade vectors. From $0.04.RasterVectorStyles

V3

Previous generation: curated styles, negative prompts, and text layout, and the only line with inpainting, outpainting, and background operations. From $0.04.InpaintOutpaintText layout

V2

The cheapest vector option, for icons and simple illustration. From $0.022.RasterVectorIcons
Not sure which to pick? Compare them in All models.

What else you can do

Edit

Image to image, inpaint, outpaint, and erase region.

Background

Remove, replace, or generate a background.

Vectorize

PNG, JPG or WEBP to SVG from $0.01, or $0.04 with Vectorizer Pro.

Upscale

Crisp or creative upscale, and enhance details.

Styles

Save your brand look once, reuse it in every request.

Enhance prompt

Expand a short prompt into a detailed one.

Reference