v1

latestOpenAPI 3.0.02026-07-228239173.7 KB
Client API v2

Estimate the price of an image edit request.

post/api/v2/images/edits/price

Headers

Accept'application/json' required

Request body

promptstring required

The main prompt for image generation

negative_promptstring nullable

Elements to avoid in the generated image

modelstring required

The model to use for generation

guidancenumber

Guidance scale for the generation

stepsinteger required

Number of inference steps

qualitystring nullable

Quality tier, for models that support one (e.g. gpt-image: low/medium/high/auto). Only the values listed in that model's available options are accepted; ignored for models without a quality tier.

seedinteger required

Random seed for generation

Example request

{
  "prompt": "A beautiful sunset over mountains",
  "negative_prompt": "blur, darkness, noise",
  "model": "QwenImageEdit_Plus_NF4",
  "loras": [
    {
      "name": "style_lora",
      "weight": 0.75
    }
  ],
  "guidance": 7.5,
  "steps": 20,
  "quality": "medium",
  "seed": 42
}

Response

Calculated price for img2img inference.

Example response

{
  "data": {
    "price": 0.25
  }
}