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:recraftv4_1:
Response
datahas one entry per image (n). Download each image from itsurl.- The
modeldecides 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.
creditsis 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
Upload a local file
Upload a local file
Stay close to the original
Stay close to the original
A low
strength keeps the result almost identical to the input, so the prompt changes only small details. Here n returns two variants.V3 with a style and a negative prompt
V3 with a style and a negative prompt
style and negative_prompt work only with V3 models. With recraftv3 an image costs $0.04. Use recraftv3_vector for SVG output.Related
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.