Skip to main content
POST
/
api
/
v2
/
images
/
edits
/
price
cURL
curl --request POST \
  --url https://api.deapi.ai/api/v2/images/edits/price \
  --header 'Accept: <accept>' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "A beautiful sunset over mountains",
  "model": "QwenImageEdit_Plus_NF4",
  "steps": 20,
  "seed": 42,
  "negative_prompt": "blur, darkness, noise",
  "loras": [
    {
      "name": "style_lora",
      "weight": 0.75
    }
  ],
  "guidance": 7.5
}
'
{
  "data": {
    "price": 0.25
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.deapi.ai/llms.txt

Use this file to discover all available pages before exploring further.

Estimate the cost of an image edit job before submitting it.

Authorizations

Authorization
string
header
required

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

Headers

Accept
enum<string>
default:application/json
required
Available options:
application/json

Body

application/json

Image generation parameters

prompt
string
required

The main prompt for image generation

Example:

"A beautiful sunset over mountains"

model
string
required

The model to use for generation

Example:

"QwenImageEdit_Plus_NF4"

steps
integer
required

Number of inference steps

Example:

20

seed
integer
required

Random seed for generation

Example:

42

negative_prompt
string | null

Elements to avoid in the generated image

Example:

"blur, darkness, noise"

loras
object[]

Array of LoRA models to apply

guidance
number

Guidance scale for the generation

Example:

7.5

Response

Calculated price for img2img inference.

data
object