رفتن به محتوا

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"

این درخواست: ⁨‎$۰٫۰۴⁩ ۴۰ اعتبار API · ≈ ⁨‎₽۴٫۳۰⁩ اجرای آن در این صفحه

دریافت کلید 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.

⁨‎$۰٫۰۴⁩ · ۴۰ اعتبار 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

قالب فایل تصویر نهایی.

Seed تصادفی برای نتایج تکرارپذیر، از 0 تا 2147483647.

POST /run/alibaba/qwen-image-3/text-to-image?wait=20 قیمت → ⁨‎$۰٫۰۴⁩
# 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 به‌ویژه در افزودن متن خوانای انگلیسی و چینی به تصاویر عالی است: تابلوها، برچسب‌ها، اسلایدها و میم‌ها. پرامپت منفی، گسترش خودکار اختیاری پرامپت و سید را می‌پذیرد و از 512x512 تا 2048x2048 پیکسل رندر می‌کند. حداکثر شش تصویر در هر درخواست با فرمت PNG، JPEG یا WebP.

پارامترها

نام استاندارد یا نام بومی را ارسال کنید، نه هر دو. نام‌های استاندارد

نامنوع پیش‌فرضمجاز توضیحات
promptالزامی
نوعstring
≤ ۵٬۰۰۰ نویسه
متن توصیف‌کننده تصویر موردنظر، به چینی یا انگلیسی و محدود به 5000 نویسه.
negative_promptاختیاری
نوعstring | null
پیش‌فرض
≤ ۵۰۰ نویسه
محتوایی که باید از تصویر نهایی حذف شود، محدود به 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
Seed تصادفی برای نتایج تکرارپذیر، از 0 تا 2147483647.
num_imagesاختیاری num_outputs
نوعinteger
پیش‌فرض1
۱ – ۶
تعداد تصاویر درخواستی برای تولید.
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 کپی‌ای در فضای ذخیره‌سازی ماست: برای همیشه (با هزینه به‌ازای هر GB-ماه) یا به‌مدت ۷ روز رایگان، بر اساس تنظیم حساب شما یا ?storage=.
ساختار یکسان در همه مدل‌هاtype، url، content_type، width، height و duration برای تصاویر، ویدیو و صدا یکسان هستند. output شیء نتیجه اختصاصی مدل است.
فیلدهای خروجی
images
array of object {url, content_type, file_name, file_size}تصاویر تولیدشده.
seed
integerمقدار Seed اعمال‌شده هنگام تولید.

مدل‌های بیشتر: متن به تصویر

برای عامل‌های هوش مصنوعی: این صفحه به‌صورت Markdown در دسترس است https://doitong.com/fa/developers/models/alibaba/qwen-image-3/text-to-image.md. همه مدل‌ها و راهنماها: https://doitong.com/developers/llms.txt