Edit Image
Model Overview
The model allows you to modify images using plain text commands: adjust colors, text, and perspectives.
Setup your API Key
If you don’t have an API key for the AI/ML API yet, feel free to use our Quickstart guide.
API Schema
post
Body
modelstring · enumRequiredPossible values:
image_urlstring · uriRequired
The URL of the reference image.
promptstring · max: 2560Required
The text prompt describing the content, style, or composition of the image to be generated.
convert_base64_to_urlbooleanOptionalDefault:
If True, the URL to the image will be returned; otherwise, the file will be provided in base64 format.
trueResponses
200Success
application/json
post/v1/images/generations
POST /v1/images/generations HTTP/1.1
Host: api.aimlapi.com
Content-Type: application/json
Accept: */*
Content-Length: 106
{
"model": "reve/edit-image",
"image_url": "https://example.com",
"prompt": "text",
"convert_base64_to_url": true
}200Success
{
"data": [
{
"url": "https://cdn.aimlapi.com/generations/hedgehog/1749730923700-29fe35d2-4aef-4bc5-a911-6c39884d16a8.png",
"b64_json": null
}
],
"meta": {
"usage": {
"credits_used": 120000
}
}
}Quick Example
Let's generate a new image using the one from the flux/dev Quick Example as a reference — and make a simple change to it with a prompt.
Reference Image
Generated Image


Last updated
Was this helpful?