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>"
}
Visual context required: This endpoint requires a reference image. The enhancement is tailored specifically to work with your source image’s content, style, and composition.

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