تخطّي إلى المحتوى

Qwen Image 3 Text to Image

التكامل

معرّف النموذج 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"

هذا الطلب: ⁨‏0.04 $⁩ 40 رصيد API · ≈ ⁨‏4.29 ₽⁩ تشغيله في هذه الصفحة

الحصول على مفتاح API
Alibaba من نص إلى صورة #typography#bilingual#budget

نموذج Alibaba للصور، بقدرة ممتازة على الكتابة ثنائية اللغة، بدقة 1K أو 2K.

أمثلة

المخرجات · ~125 ث
A cozy bookstore window at dusk with a hand-painted wooden sign that reads "Moonlight Books · 月光书店", stacks of books,...

المطالبة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.

⁨‏0.04 $⁩ · 40 رصيد API

إنشاء طلب

تُنشأ عناصر التحكم من مخطط النموذج. يتحدّث الرمز والسعر عند تغييرها.

•مطلوب 178 / 5000

نص يصف الصورة المراد إنشاؤها، بالصينية أو الإنجليزية، بحد أقصى 5000 حرف.

0 / 500

المحتوى المراد استبعاده من الصورة الناتجة، بحد أقصى 500 حرف.

image_size الافتراضي square_hd

اضبط أبعاد المخرج بحيث يقع إجمالي عدد وحدات البكسل للصورة بين 512 × 512 و2048 × 2048.

num_images الافتراضي 1

عدد الصور المطلوب توليده.

متقدم output_format · seed · enable_prompt_expansion
output_format الافتراضي png

تنسيق ملف الصورة الناتجة.

بذرة عشوائية تتيح نتائج قابلة لإعادة الإنتاج، من 0 إلى 2147483647.

POST /run/alibaba/qwen-image-3/text-to-image?wait=20 عرض السعر → ⁨‏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"

تشغيل هذا الطلب

يبقى مفتاحك في هذا المتصفح: لا يُرسل إلا إلى Doitong API ويُحفظ في localStorage فقط إذا فعّلت خيار التذكّر. الحصول على مفتاح API

حول Qwen Image 3 Text to Image

يتميز Qwen Image 3 خصوصًا بإضافة نص إنجليزي وصيني مقروء إلى الصور: لافتات وتسميات وشرائح وميمات. يقبل مطالبة سلبية، وتوسيعًا تلقائيًا اختياريًا للمطالبة، وseed، وينشئ صورًا من 512x512 إلى 2048x2048 بكسل. حتى ست صور لكل طلب بصيغ PNG أو JPEG أو WebP.

المعاملات

أرسل الاسم الأساسي أو الاسم الأصلي، وليس كليهما. الأسماء الأساسية

الاسمالنوع الافتراضيمسموح الوصف
promptمطلوب
النوعstring
≤ 5,000 حرف
نص يصف الصورة المراد إنشاؤها، بالصينية أو الإنجليزية، بحد أقصى 5000 حرف.
negative_promptاختياري
النوعstring | null
الافتراضي
≤ 500 حرف
المحتوى المراد استبعاده من الصورة الناتجة، بحد أقصى 500 حرف.
image_sizeاختياري
النوعobject
الافتراضيsquare_hd
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
اضبط أبعاد المخرج بحيث يقع إجمالي عدد وحدات البكسل للصورة بين 512 × 512 و2048 × 2048.
enable_prompt_expansionاختياري
النوعboolean
الافتراضيtrue
يتحكم في إعادة كتابة الموجّه تلقائيًا بواسطة LLM لتحسين النتائج.
seedاختياري
النوعinteger | null
بذرة عشوائية تتيح نتائج قابلة لإعادة الإنتاج، من 0 إلى 2147483647.
num_imagesاختياري num_outputs
النوعinteger
الافتراضي1
1 – 6
عدد الصور المطلوب توليده.
output_formatاختياري
النوعenum
الافتراضيpng
jpegpngwebp
تنسيق ملف الصورة الناتجة.
مطلوب الاسم الأساسي، مقبول أيضًا

المخرجات

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"
  }
}
ملفاتك، خيارككل outputs[].url هو نسخة على تخزيننا: تُحفظ إلى الأبد (مع الدفع لكل غيغابايت-شهر) أو لمدة 7 أيام مجانًا، وفق إعداد حسابك أو ?storage=.
البنية نفسها في كل نموذجtype وurl وcontent_type وwidth وheight وduration للصور والفيديو والصوت على حد سواء. output هو كائن النتائج الخاص بالنموذج.
حقول المخرجات
images
array of object {url, content_type, file_name, file_size}الصور الناتجة عن التوليد.
seed
integerقيمة البذرة المطبّقة أثناء التوليد.

مزيد من النماذج: من نص إلى صورة

لوكلاء الذكاء الاصطناعي: تتوفر هذه الصفحة بصيغة Markdown على https://doitong.com/ar/developers/models/alibaba/qwen-image-3/text-to-image.md. جميع النماذج والأدلة: https://doitong.com/developers/llms.txt