# Reve Edit > Reve's edit model lets you upload an existing image and then transform it via a text prompt. ## Overview - **Endpoint**: `https://api.runflow.io/v1/run/reve/edit` - **Model ID**: `reve/edit` - **Provider**: Reve - **License**: commercial - **Last Updated**: 2026-04-08 ## Pricing - **Base price**: $0.04/image - **Note**: Per image ## Input Schema ### `prompt` (string, required) The text description of how to edit the provided image. ### `image_url` (image, required) URL of the reference image to edit. Must be publicly accessible or base64 data URI. Supports PNG, JPEG, WebP, AVIF, and HEIF formats. ### `num_images` (integer, optional) Number of images to generate - **Default**: `1` ### `output_format` (string, optional) Output format for the generated image. - **Default**: `png` - **Options**: `png`, `jpeg`, `webp` ### `sync_mode` (boolean, optional) If True, the media will be returned as a data URI and the output data won't be available in the request history. - **Default**: `false` ## Usage Examples ### cURL ```bash curl -X POST https://api.runflow.io/v1/run/reve/edit \ -H "Authorization: Bearer $RUNFLOW_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "prompt": "A professional headshot, soft studio lighting", "image_url": "https://example.com/input.jpg", "output_format": "png" }' ``` ### Python ```python import requests response = requests.post( "https://api.runflow.io/v1/run/reve/edit", headers={"Authorization": "Bearer RUNFLOW_API_KEY"}, json={ "prompt": "A professional headshot, soft studio lighting", "image_url": "https://example.com/input.jpg", "output_format": "png", }, ) data = response.json() print(data["images"][0]["url"]) ``` ### JavaScript ```javascript const response = await fetch( "https://api.runflow.io/v1/run/reve/edit", { method: "POST", headers: { "Authorization": "Bearer RUNFLOW_API_KEY", "Content-Type": "application/json", }, body: JSON.stringify({ prompt: "A professional headshot, soft studio lighting", image_url: "https://example.com/input.jpg", output_format: "png", }), } ); const data = await response.json(); console.log(data.images[0].url); ``` ## Additional Resources - [Playground](https://www.runflow.io/models/reve/edit) - [API Reference](https://www.runflow.io/models/reve/edit/api) - [Documentation](https://www.runflow.io/docs)