Skip to content

Reve Edit

Reve’s edit model lets you upload an existing image and then transform it via a text prompt.

API Endpoint

POST `https://image.siraya.pro/v1/images/edits``

Request Parameters

Parameter Type Required Description
Authorization string Yes Your API Key (e.g., Bearer <API_KEY>).

Body

Parameter Type Default Description
model string - The model ID: Header.
prompt string - A text description for the output.
n integer 1 Number of outputs to generate.
output_format string url Result format (url or b64_json).

Usage Examples

curl https://image.siraya.pro/v1/images/edits` \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <API_KEY>" \
  -d '{...}'
import requests

url = "https://image.siraya.pro/v1/images/edits`"
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <API_KEY>"
}
data = {...}

response = requests.post(url, headers=headers, json=data)
print(response.json())