Saltar al cuntegna

Qwen Image 3 Edit

Integrar

ID dal model alibaba/qwen-image-3/edit
# 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/alibaba/qwen-image-3/edit?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Change the sign above the door to read \"Open Daily 8-20\" in the same lettering style and color, keep everything else unchanged.",
    "images": [
      "https://content.doitong.com/dev-api/2026/10/21/req_msc9ak2dbu4cu59zvf0c2ftb/0-RBrxxuL8Z-3AAI916Qh9o_hi2fj8yl.png"
    ]
  }'

# 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"

Questa dumonda: $0,075 75 credits API Lantschar sin questa pagina

Obtegna ina clav API
Alibaba Modificaziun da maletgs #editing#typography#multi-reference

Modifitgescha cun in fin trais maletgs da referenza, spezialmain bun per midar u agiuntar text en in maletg.

Exempels

Input
Output · ~105 s
Change the sign above the door to read "Open Daily 8-20" in the same lettering style and color, keep everything else ...

PromptChange the sign above the door to read "Open Daily 8-20" in the same lettering style and color, keep everything else unchanged.

$0,075 · 75 credits API

Construir ina dumonda

Ils controls vegnan generads dal schema dal model. Il code e ​​il pretsch s'actualiseschan durant che ti als midas.

•obligatori 127 / 5000

Text che descriva l'ediziun da far, en chinais u englais, limità a 5000 caracters.

•obligatori image_urls
Trametta in datoteca u

Furnescha 1–3 referenzas d'ediziun en format JPEG, JPG, PNG (senza alpha) u WEBP, cun maximalmain 10MB per datoteca e dimensiuns da 384–2048px sin mintga axa. Referescha ad ellas en il prompt sco 'image 1', 'image 2' e 'image 3', tenor l'urden furnì.

image_size

Dimensiuns dal maletg d'output, limitadas dad ina quantitad totala da pixels da 512 × 512 fin 2048 × 2048. Sche la grondezza vegn omessa, tscherna il model automaticamain ina resoluziun.

num_images standard 1

Dumber da maletgs dumandà per la generaziun.

Avanzà negative_prompt · output_format · seed · enable_prompt_expansion
0 / 500

Cuntengut da excluir dal maletg final, limità a 500 caracters.

output_format standard png

Format da datoteca dal maletg final.

Seed casual che permetta resultats reproducibels, da 0 fin 2147483647.

POST /run/alibaba/qwen-image-3/edit?wait=20 calculaziun → $0,075
# 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/alibaba/qwen-image-3/edit?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Change the sign above the door to read \"Open Daily 8-20\" in the same lettering style and color, keep everything else unchanged.",
    "images": [
      "https://content.doitong.com/dev-api/2026/10/21/req_msc9ak2dbu4cu59zvf0c2ftb/0-RBrxxuL8Z-3AAI916Qh9o_hi2fj8yl.png"
    ]
  }'

# 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"

Executar questa dumonda

Tia clav resta en quest browser: ella vegn tramessa mo al Doitong API e memorisada (localStorage) mo sch'ella scheccas Tiar a memoria. Obtegnair ina clav API

Davart Qwen Image 3 Edit

Il modus d'ediziun da Qwen Image 3 dovra ina fin a trais maletgs da referenza (384 fin 2048 px per vart) ed ina instrucziun che po sa referir ad els sco image 1, image 2 ed image 3. El è spezialmain bun per remplazzar u agiuntar scritturas. Laschai la grondezza vida per laschar tscherner il model, u tschernai ina grondezza standard u persunalisada fin a 2K; fin a sis resultats per dumonda.

Parameters

Invia u il num canonic u il num nativ, betg omaduas. Nums canonics

NumTip StandardPermess Descripziun
promptobligatori
Tipstring
≤ 5 000 caracters
Text che descriva l'ediziun da far, en chinais u englais, limità a 5000 caracters.
negative_promptopziunal
Tipstring | null
Standard
≤ 500 caracters
Cuntengut da excluir dal maletg final, limità a 500 caracters.
image_sizeopziunal
Tipobject
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
Dimensiuns dal maletg d'output, limitadas dad ina quantitad totala da pixels da 512 × 512 fin 2048 × 2048. Sche la grondezza vegn omessa, tscherna il model automaticamain ina resoluziun.
enable_prompt_expansionopziunal
Tipboolean
Standardtrue
Controlla la rescriziun automatica dal prompt tras in LLM per meglierar ils resultats.
seedopziunal
Tipinteger | null
Seed casual che permetta resultats reproducibels, da 0 fin 2147483647.
num_imagesopziunal num_outputs
Tipinteger
Standard1
1 – 6
Dumber da maletgs dumandà per la generaziun.
output_formatopziunal
Tipenum
Standardpng
jpegpngwebp
Format da datoteca dal maletg final.
image_urlsobligatori images
Tipurl[] · image
Furnescha 1–3 referenzas d'ediziun en format JPEG, JPG, PNG (senza alpha) u WEBP, cun maximalmain 10MB per datoteca e dimensiuns da 384–2048px sin mintga axa. Referescha ad ellas en il prompt sco 'image 1', 'image 2' e 'image 3', tenor l'urden furnì.
obligatori Num canonic, er acceptà

Ils parameters da datotecas acceptan ina URL publica https://, ina URI data: fin a 10 MB u il file_url d'ina chargiada. Datotecas

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "alibaba/qwen-image-3/edit",
  "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": 75,
    "usd": "0.075",
    "charged": 75,
    "refunded": 0
  },
  "input": {
    "prompt": "Change the text on the sneaker's side to read \"RUN\" in bold letters",
    "images": [
      "https://content.doitong.com/images/showcase/v3/gen_sneaker_ad.jpg"
    ]
  },
  "output": {
    "images": [
      {
        "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
      }
    ],
    "seed": 42
  },
  "outputs": [
    {
      "type": "image",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "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"
  }
}
Tias datotecas, tia decisiunMintga outputs[].url è ina copia en nossa memorisaziun: conservada per adina (pajà per GB-mes) u 7 dis gratuitamain, tenor la configuraziun dal conto u ?storage=.
La medema structura per mintga modeltype, url, content_type, width, height e duration, tant per maletgs sco per video e audio. output è l'object da resultat dal model sez.
Champs da l'output
images
array of object {url, content_type, file_name, file_size}Maletgs producids da la generaziun.
seed
integerValur da seed applitgada durant la generaziun.

Dapli models: Modificaziun da maletgs

Per agents AI: questa pagina sco Markdown è disponibla sut https://doitong.com/rm/developers/models/alibaba/qwen-image-3/edit.md. Tut ils models e las guidas: https://doitong.com/developers/llms.txt