reve/remix-edit-image
Model Overview
The model takes multiple images as input, with the prompt defining how they are used or combined.
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
Authorizations
Body
modelundefined · enumRequiredPossible values:
image_urlsstring · uri[] · min: 1 · max: 4Required
List of URLs or local Base64 encoded images to edit.
aspect_ratiostring · enumOptionalDefault:
The aspect ratio of the generated image.
3:2
Possible values: 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.
true
output_formatstring · enumOptionalDefault:
The format of the generated image.
json
Possible values: Responses
201
Successfully generated image
application/json
post
async function main() {
const response = await fetch('https://api.aimlapi.com/v1/images/generations', {
method: 'POST',
headers: {
'Authorization': 'Bearer <YOUR_AIMLAPI_KEY>',
'Content-Type': 'application/json',
},
body: JSON.stringify({
model: 'reve/remix-edit-image',
prompt: "Add a crown to the T-rex's head.",
image_urls: ['https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/t-rex.png'],
}),
});
const data = await response.json();
console.log(JSON.stringify(data, null, 2));
}
main();
201
Successfully generated image
{
"data": [
{
"url": "text",
"b64_json": "text"
}
]
}
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.
import requests
import json # for getting a structured output with indentation
def main():
response = requests.post(
"https://api.aimlapi.com/v1/images/generations",
headers={
# Insert your AIML API Key instead of <YOUR_AIMLAPI_KEY>:
"Authorization": "Bearer <YOUR_AIMLAPI_KEY>",
"Content-Type": "application/json",
},
json={
"model": "reve/remix-edit-image",
"prompt": "Combine the images so the T-Rex is wearing a business suit, sitting in a cozy small café, drinking from the mug. Blur the background slightly to create a bokeh effect.",
"image_urls": [
"https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/t-rex.png",
"https://raw.githubusercontent.com/aimlapi/api-docs/main/reference-files/blue-mug.jpg"
]
}
)
data = response.json()
print(json.dumps(data, indent=2, ensure_ascii=False))
if __name__ == "__main__":
main()
Reference Images
Generated Image


"Combine the images so the T-Rex is wearing a business suit, sitting in a cozy small café, drinking from the mug. Blur the background slightly to create a bokeh effect."

Last updated
Was this helpful?