Reve API - Docs - Edit

Edit

Edit images based on a text description. To learn more about the pricing for this endpoint, visit the pricing page.

POST https://api.reve.com/v1/image/edit

Playground

API Key

Reference Image (1/1)

0

Edit Instruction

Aspect Ratio

16:93:24:31:13:42:39:16 auto

Version

latest

latest

latest-fast

reve-edit@20250915

reve-edit-fast@20251030

reve-edit-passthrough@20260625

Test Time Scaling

Postprocessing

Add Post-processor

Generate Image

Result

Request Headers

Default: application/json

Request Body

Default: If not provided, the aspect ratio of the reference image will be used.

Default: latest

Default: none

Default: 1

JSON Request

REVE_API_KEY=""

# Make the API request
curl -X POST https://api.reve.com/v1/image/edit \
  -H "Authorization: Bearer $REVE_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "edit_instruction": "Make this into an impasto painting.",
    "reference_image": "'"$(base64 < reference.jpg | tr -d '\n')"'",
    "aspect_ratio": "16:9",
    "version": "latest"
  }'

JSON Response Body (default)

For successful responses (200 status code)

For failure (non-200 HTTP status code)

Successful JSON Response (200)

// Status: 200
// Content-Type: application/json
// X-Reve-Content-Violation: false
// X-Reve-Request-Id: rsid-...

{
  "image": "...",
  "version": "reve-edit@20250915",
  "content_violation": false,
  "request_id": "rsid-...",
  "credits_used": 30,
  "credits_remaining": 970
}

Image Response Body

Successful responses (200 status code) with no content policy violations will return a base64 encoded image.