Reve Edit
Reve’s edit model lets you upload an existing image and then transform it via a text prompt.
Header parameters
AuthorizationstringRequiredExample:
sk-XIl7IWyv0rWebaWIlTJwGsLtfxH1bCh1lA4p6eXDtDaScfOFBody
modelstringRequiredExample:
model is the model name
reve-edit-image-to-imagepromptstringRequiredExample:
The text description of how to edit the provided image.
Give him a friendimage_urlsstring[] · min: 1 · max: 1Required
List of URLs of reference images. Must provide between 1 and 4 images (inclusive). Each image must be less than 1.5 MB. Supports PNG, JPEG, WebP, AVIF, and HEIF formats.
ninteger · enumOptionalDefault:
n is the number of images to generate, default value is 1.
1Example: 1Possible values: output_formatstring · enumOptionalDefault:
output_format indicate the output format, default value is url.
urlExample: urlPossible values: Responses
200Success
application/json
post
/v1/images/editsPOST /v1/images/edits HTTP/1.1
Host: image.onerouter.pro
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 207
{
"model": "reve-edit-image-to-image",
"prompt": "Give him a friend",
"image_urls": [
"https://resource.trustai.sg/image/generated%2Fonerouter_a146ee8a-1fe2-43ce-803a-fb1e7f3f6949.png"
],
"n": 1,
"output_format": "url"
}200Success
{
"data": [
{
"url": "https://resource.onerouter.pro/image/generated%2Fonerouter_d7cc967c-b001-4992-bfe6-be8bdd1d011e.png",
"b64_json": "",
"revised_prompt": ""
}
],
"created": 1761218293
}Last updated