Neidio i'r cynnwys

Qwen Image 3 Text to Image

Integreiddio

ID y model alibaba/qwen-image-3/text-to-image
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/alibaba/qwen-image-3/text-to-image?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A cozy bookstore window at dusk with a hand-painted wooden sign that reads \"Moonlight Books · 月光书店\", stacks of books, warm string lights, light rain on the glass, photorealistic."
  }'

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

Y cais hwn: $0.04 40 o gredydau API · ≈ ₽4.29 Ei redeg ar y dudalen hon

Cael allwedd API
Alibaba Testun i Ddelwedd #typography#bilingual#budget

Model delwedd Alibaba gyda llythrennau dwyieithog rhagorol, ar 1K neu 2K.

Enghreifftiau

Allbwn · ~125 s
A cozy bookstore window at dusk with a hand-painted wooden sign that reads "Moonlight Books · 月光书店", stacks of books,...

AnogwrA cozy bookstore window at dusk with a hand-painted wooden sign that reads "Moonlight Books · 月光书店", stacks of books, warm string lights, light rain on the glass, photorealistic.

$0.04 · 40 o gredydau API

Adeiladu cais

Cynhyrchir rheolyddion o sgema'r model. Mae'r cod a'r pris yn diweddaru wrth i chi eu newid.

•gofynnol 178 / 5000

Testun sy'n disgrifio'r ddelwedd i'w chreu, yn Tsieinëeg neu'n Saesneg, wedi'i gyfyngu i 5000 nod.

0 / 500

Cynnwys i'w eithrio o'r ddelwedd sy'n deillio, wedi'i gyfyngu i 500 nod.

image_size rhagosodedig square_hd

Gosodwch ddimensiynau'r allbwn fel bod cyfanswm cyfrif picseli'r ddelwedd rhwng 512 × 512 a 2048 × 2048.

num_images rhagosodedig 1

Cyfrif delweddau y gofynnir amdano ar gyfer cynhyrchu.

Uwch output_format · seed · enable_prompt_expansion
output_format rhagosodedig png

Fformat ffeil y ddelwedd sy'n deillio.

Hadau ar hap sy'n galluogi canlyniadau atgynhyrchadwy, yn amrywio o 0 i 2147483647.

POST /run/alibaba/qwen-image-3/text-to-image?wait=20 dyfynbris → $0.04
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/alibaba/qwen-image-3/text-to-image?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A cozy bookstore window at dusk with a hand-painted wooden sign that reads \"Moonlight Books · 月光书店\", stacks of books, warm string lights, light rain on the glass, photorealistic."
  }'

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

Rhedeg y cais hwn

Mae'ch allwedd yn aros yn y porwr hwn: caiff ei hanfon at Doitong API yn unig a'i chadw (localStorage) dim ond os ticiwch Cofio. Cael allwedd API

Ynglŷn â Qwen Image 3 Text to Image

Mae Qwen Image 3 yn arbennig o dda am roi testun Saesneg a Tsieinëeg darllenadwy mewn lluniau: arwyddion, labeli, sleidiau a memes. Mae’n derbyn ysgogiad negyddol, ehangiad awtomatig dewisol i’r ysgogiad a hedyn, ac yn rendro o 512x512 hyd at 2048x2048 picsel. Hyd at chwe delwedd fesul cais yn PNG, JPEG neu WebP.

Paramedrau

Anfonwch naill ai'r enw canonaidd neu'r enw brodorol, nid y ddau. Enwau canonaidd

EnwMath RhagosodedigCaniateir Disgrifiad
promptgofynnol
Mathstring
≤ 5,000 nod
Testun sy'n disgrifio'r ddelwedd i'w chreu, yn Tsieinëeg neu'n Saesneg, wedi'i gyfyngu i 5000 nod.
negative_promptdewisol
Mathstring | null
Rhagosodedig
≤ 500 nod
Cynnwys i'w eithrio o'r ddelwedd sy'n deillio, wedi'i gyfyngu i 500 nod.
image_sizedewisol
Mathobject
Rhagosodedigsquare_hd
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
Gosodwch ddimensiynau'r allbwn fel bod cyfanswm cyfrif picseli'r ddelwedd rhwng 512 × 512 a 2048 × 2048.
enable_prompt_expansiondewisol
Mathboolean
Rhagosodedigtrue
Yn rheoli ailysgrifennu awtomatig yr anogiad gan LLM i wella canlyniadau.
seeddewisol
Mathinteger | null
Hadau ar hap sy'n galluogi canlyniadau atgynhyrchadwy, yn amrywio o 0 i 2147483647.
num_imagesdewisol num_outputs
Mathinteger
Rhagosodedig1
1 – 6
Cyfrif delweddau y gofynnir amdano ar gyfer cynhyrchu.
output_formatdewisol
Mathenum
Rhagosodedigpng
jpegpngwebp
Fformat ffeil y ddelwedd sy'n deillio.
gofynnol Enw canonaidd, derbyniol hefyd

Allbwn

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "alibaba/qwen-image-3/text-to-image",
  "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": 40,
    "usd": "0.04",
    "charged": 40,
    "refunded": 0
  },
  "input": {
    "prompt": "A cute baby koala on a water slide holding a card that says \"Summer starts now\", bright afternoon light",
    "negative_prompt": "low resolution, blurry, deformed",
    "image_size": "square_hd"
  },
  "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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Eich ffeiliau, eich dewisMae pob outputs[].url yn gopi ar ein storio: wedi'i gadw am byth (telir fesul GB-mis) neu am 7 diwrnod am ddim, yn ôl gosodiad eich cyfrif neu ?storage=.
Yr un siâp ar bob modeltype, url, content_type, width, height a duration, ar gyfer delweddau, fideo a sain fel ei gilydd. Gwrthrych canlyniad y model ei hun yw output.
Meysydd yr allbwn
images
array of object {url, content_type, file_name, file_size}Delweddau a gynhyrchir.
seed
integerGwerth hedyn a gymhwysir wrth gynhyrchu.

Mwy o fodelau: Testun i Ddelwedd

Ar gyfer asiantau AI: mae'r dudalen hon fel Markdown ar gael yn https://doitong.com/cy/developers/models/alibaba/qwen-image-3/text-to-image.md. Pob model a chanllaw: https://doitong.com/developers/llms.txt