Skip to content

Qwen Image Edit 2509 Trainer

Integrate

Model id qwen-image-edit-2509-trainer
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/qwen-image-edit-2509-trainer?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image_data_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Files like the example: $4.00 4,000 API credits your files are measured before the run Run it on this page

Get API key
Alibaba Training

Trains a custom LoRA for Qwen Image Edit 2509 from a zip of paired start and end images

Alibaba · File

Your first result goes here

Build a request below and run it with your API key. Outputs are copied to our storage, kept forever or 7 days for free.

Build a request

Controls are generated from the model schema. The code and the price update as you change them.

•required

URL of a ZIP archive containing paired images named ROOT_start.EXT and ROOT_end.EXT, such as photo_start.jpg and photo_end.jpg. Multiple reference images per pair are supported using ROOT_start.EXT, ROOT_start2.EXT, ROOT_start3.EXT, ..., ROOT_end.EXT (for example, photo_start.jpg, photo_start2.jpg, photo_end.jpg); set Reference Image Count to match the reference image total. Each pair may also include editing instructions in ROOT.txt (for example, photo.txt); without that file, training uses default_caption, and training fails if default_caption is also absent.

default 1000

Total training step count.

Advanced default_caption · learning_rate

Caption used in place of missing caption files, with None making their absence an error instead.

default 0.0001

Rate used to update LoRA parameters during learning.

POST /run/qwen-image-edit-2509-trainer?wait=20 quote → $4.00
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/qwen-image-edit-2509-trainer?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image_data_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Run this request

Your key stays in this browser: it is sent only to the Doitong API and saved (localStorage) only if you tick Remember. Get an API key

About Qwen Image Edit 2509 Trainer

Fits a LoRA on your own before/after examples. `image_data_url` points to a zip of image pairs named ROOT_start.EXT and ROOT_end.EXT. Set `steps` (1 to 30000, default 1000) and `learning_rate`, and optionally a `default_caption` for pairs without caption files. Outputs a config file and diffusers LoRA weights.

Parameters

NameType DefaultAllowed Description
image_data_urlrequired
Typestring
URL of a ZIP archive containing paired images named ROOT_start.EXT and ROOT_end.EXT, such as photo_start.jpg and photo_end.jpg. Multiple reference images per pair are supported using ROOT_start.EXT, ROOT_start2.EXT, ROOT_start3.EXT, ..., ROOT_end.EXT (for example, photo_start.jpg, photo_start2.jpg, photo_end.jpg); set Reference Image Count to match the reference image total. Each pair may also include editing instructions in ROOT.txt (for example, photo.txt); without that file, training uses default_caption, and training fails if default_caption is also absent.
learning_rateoptional
Typenumber
Default0.0001
Rate used to update LoRA parameters during learning.
stepsoptional
Typeinteger
Default1000
1 – 30,000
Total training step count.
default_captionoptional
Typestring | null
Caption used in place of missing caption files, with None making their absence an error instead.
required

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "qwen-image-edit-2509-trainer",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 4000,
    "usd": "4.00",
    "charged": 4000,
    "refunded": 0
  },
  "input": {
    "image_data_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "output": {
    "diffusers_lora_file": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_name": "0-output.jpeg",
      "file_size": 1843200
    },
    "config_file": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_name": "0-output.jpeg",
      "file_size": 1843200
    }
  },
  "outputs": [
    {
      "type": "file",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Your files, your choiceEvery outputs[].url is a copy on our storage: kept forever (paid per GB-month) or 7 days for free, by your account setting or ?storage=.
Same shape on every modeltype, url, content_type, width, height and duration, for images, video and audio alike. output is the model’s own result object.
Fields of output
diffusers_lora_file
object {url, content_type, file_name, file_size}URL pointing to the trained LoRA weights in diffusers format.
config_file
object {url, content_type, file_name, file_size}URL pointing to the trained model's configuration file.

For AI agents: this page as Markdown is at https://doitong.com/developers/models/qwen-image-edit-2509-trainer.md. All models and guides: https://doitong.com/developers/llms.txt