Skip to main content
Image to image creates a new image from an existing one. It can keep aspects of the original, such as composition, color, or subject identity, and change the rest based on your prompt. Use strength to set how similar the result stays to the original.

$0.04 / $0.08

per image with V3 raster / vector. V4 and V4.1 prices

Image + prompt → image

up to 10 MB, 16 MP

POST /v1/images/imageToImage

endpoint

Try it

Get an API token on your profile page (it needs a positive API units balance) and set it once per terminal session:
Then run. The request turns a public sample illustration into a winter scene. It uses the default model, recraftv4_1:

Response

  • data has one entry per image (n). Download each image from its url.
  • The model decides whether the output is raster or vector. A vector model returns SVG files.
  • Image URLs are temporary: files are kept for about 24 hours, so download them. See Limits and sizes.
  • credits is the number of API units charged for the request.
  • Pass "response_format": "b64_json" to get the image bytes inline, or "multipart" for the lowest latency. See Image inputs and results.

Parameters

The input image must be PNG, JPG, WEBP, or SVG, under 10 MB, up to 16 MP, with sides between 256 and 4096 px. See Input images.

Examples

A low strength keeps the result almost identical to the input, so the prompt changes only small details. Here n returns two variants.
style and negative_prompt work only with V3 models. With recraftv3 an image costs $0.04. Use recraftv3_vector for SVG output.

Remix image

Make variations of an image without a prompt.

Enhance prompt

Expand a short prompt before you use it.

Recraft V4.1

The default model for this endpoint.

Pricing

Prices of every model and tool.