Skip to main content
POST
/
api
/
v1
/
client
/
prompt
/
image2image
cURL
curl --request POST \
  --url https://api.deapi.ai/api/v1/client/prompt/image2image \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'prompt=A beautiful landscape with mountains' \
  --form 'negative_prompt=blurry, low quality' \
  --form image='@example-file'
{
  "prompt": "<string>",
  "negative_prompt": "<string>"
}
This endpoint is shared with v1. v2 clients call the same /api/v1/client/prompt/image2image path.
Enhance a raw user prompt into a detailed, model-friendly prompt optimized for image edit (image-to-image) transformations. Use the enhanced prompt with /api/v2/images/edits.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multipart/form-data
prompt
string
Minimum string length: 3
Example:

"A beautiful landscape with mountains"

negative_prompt
string | null
Minimum string length: 3
Example:

"blurry, low quality"

image
file

Reference image for image-to-image transformation. Supported formats: JPEG, PNG, BMP, GIF, SVG, WebP.

Response

Enhanced prompts returned successfully

prompt
string
negative_prompt
string | null