Models

Loading...

Reve 2.1 Edit API

Edit one source image from a natural-language instruction, keeping the rest of the image intact

Endpoint

POST https://api.hedra.com/v3/models/reve-21-edit

Example request

curl -X POST "https://api.hedra.com/v3/models/reve-21-edit" \
  -H "Authorization: Key $HEDRA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input": {"prompt": "a cinematic shot of a city at dusk"}}'

Parameters

promptstringrequired

Generation prompt. From 1 to 4000 characters.

num_outputsinteger

Number of outputs generated per job. Only 1 is supported.

enhance_promptboolean

Rewrite the prompt before generation. An LLM expands it into a fuller description and the model receives that text instead of the submitted one; the result's `prompt` reports what ran.

aspect_ratiostringrequired

Output aspect ratio.

imagesarrayrequired

The single source image to edit. Exactly 1 image, at most 30 MB.

output_formatstring

Output image format.