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

Wan · v2.2 A14b · Text to Image

التكامل

معرّف النموذج wan/v2.2-a14b/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.com/v1/run/wan/v2.2-a14b/text-to-image?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

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

هذا الطلب: ⁨‏0.025 $⁩ 25 رصيد API تشغيله في هذه الصفحة

الحصول على مفتاح API

تحويل النص إلى صورة باستخدام A14B، مع توجيه من مرحلتين وستة أحجام صور مسبقة

أُنشئت على Doitong

أعمال عامة أُنشئت باستخدام Wan v22 Large من مجتمع Doitong. أعد استخدام موجّه بنقرة واحدة.

الأعمال العامة المعروضة: 5
Create a highly realistic UGC-style smartphone video inside a modern commercial airplane during a... فيديو

Create a highly realistic UGC-style smartphone video inside a modern commercial airplane during a daytime flight. Natural cabin lighting, subtle handheld camera movement, authentic airplane ambience, realistic passengers and natural acting. The video must feel like a real spontaneous phone...

**SORA 2 PROMPT — 20 seconds, vertical 9:16** Create a highly realistic UGC-style smartphone vide... فيديو

**SORA 2 PROMPT — 20 seconds, vertical 9:16** Create a highly realistic UGC-style smartphone video inside a modern commercial airplane during a daytime flight. Natural cabin lighting, subtle handheld camera movement, authentic airplane ambience, realistic passengers and natural acting. The video...

Create a realistic cinematic 20-second video, filmed like a high-budget modern commercial with na... فيديو

Create a realistic cinematic 20-second video, filmed like a high-budget modern commercial with natural acting, realistic lighting and believable facial expressions. All dialogue is spoken naturally in French. **SCENE 1 — EXPENSIVE RESTAURANT, EVENING — 0–5 sec** A young man in his late 20s is...

Create a realistic cinematic UGC-style commercial video, exactly 30 seconds long. The entire scen... فيديو

Create a realistic cinematic UGC-style commercial video, exactly 30 seconds long. The entire scene takes place inside a modern passenger airplane during a daytime flight. Natural smartphone-like cinematography, realistic airplane cabin, authentic passengers, natural lighting, realistic skin...

TITLE: Santa's Secret Christmas Selfie with Dasha 🎄 VIDEO FORMAT: 15–20 seconds, vertical 9:16, c... فيديو

TITLE: Santa's Secret Christmas Selfie with Dasha 🎄 VIDEO FORMAT: 15–20 seconds, vertical 9:16, cinematic Christmas short film, high-quality realistic 3D animation. REFERENCE IMAGE — DASHA_001 Use the uploaded image as the exact character reference for Dasha. Preserve her recognizable face,...

إنشاء طلب

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

•مطلوب

تعليمات نصية توجه الصورة المُولَّدة.

image_size الافتراضي square_hd

أبعاد الصورة المُولّدة.

متقدم negative_prompt · acceleration · num_inference_steps · guidance_scale · guidance_scale_2 · shift · seed · enable_safety_checker · enable_output_safety_checker · enable_prompt_expansion
الافتراضي

الموجّه السلبي المطبق عند توليد فيديو.

acceleration الافتراضي regular

إعداد التسريع، ويُوصى باختيار 'regular'. تؤدي زيادة التسريع إلى التضحية بالجودة لتقصير وقت التوليد.

الافتراضي 27

عدد خطوات أخذ العينات، حيث تُبادَل مدة المعالجة الأطول بجودة أفضل مع زيادة العدد.

الافتراضي 3.5

قوة الإرشاد الخالية من المصنّف، حيث تُبادَل خسارة الجودة المحتملة بمطابقة أقرب للموجّه مع زيادة المقياس.

الافتراضي 4

مقياس التوجيه الذي يتحكم في مدى التزام النموذج بالموجّه خلال مرحلته الثانية.

الافتراضي 2

إعداد إزاحة الصورة، ويتراوح النطاق المسموح به بين 1.0 و10.0.

بذرة تجعل التوليد قابلًا لإعادة الإنتاج. يؤدي ضبطها على None إلى اختيار بذرة عشوائيًا.

POST /run/wan/v2.2-a14b/text-to-image?wait=20 عرض السعر → ⁨‏0.025 $⁩
# 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/wan/v2.2-a14b/text-to-image?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

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

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

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

حول Wan · v2.2 A14b · Text to Image

ينتج صورة ثابتة من `prompt` نصي باستخدام نموذج A14B الأكبر. يوفر `image_size` إعدادات مسبقة مربعة وعمودية وأفقية. بالإضافة إلى `guidance_scale`، يتوفر `guidance_scale_2` للمرحلة الثانية، إلى جانب `num_inference_steps` (من 2 إلى 40) و`shift` و`negative_prompt` وخيار `acceleration` بقيمة none أو regular.

المعاملات

الاسمالنوع الافتراضيمسموح الوصف
promptمطلوب
النوعstring
تعليمات نصية توجه الصورة المُولَّدة.
negative_promptاختياري
النوعstring
الافتراضي
الموجّه السلبي المطبق عند توليد فيديو.
seedاختياري
النوعinteger | null
بذرة تجعل التوليد قابلًا لإعادة الإنتاج. يؤدي ضبطها على None إلى اختيار بذرة عشوائيًا.
num_inference_stepsاختياري
النوعinteger
الافتراضي27
2 – 40
عدد خطوات أخذ العينات، حيث تُبادَل مدة المعالجة الأطول بجودة أفضل مع زيادة العدد.
enable_safety_checkerاختياري
النوعboolean
الافتراضيfalse
فحص أمان المدخل قبل المعالجة، ولا يمكن إيقافه إلا للحسابات المصرح لها. تُفحص الطلبات التي تفتقر إلى التفويض دائمًا؛ وبخلاف ذلك، تفعّل القيمة true الفحص.
enable_output_safety_checkerاختياري
النوعboolean
الافتراضيfalse
يتحكم في فحص أمان الفيديو المُولَّد؛ يؤدي ضبط القيمة true إلى تفعيل الفحص بعد التوليد.
enable_prompt_expansionاختياري
النوعboolean
الافتراضيfalse
السماح لنموذج لغوي كبير بإثراء الموجّه بالتفاصيل. لا يغيّر تفعيل هذا التوسيع معنى الموجّه.
accelerationاختياري
النوعenum
الافتراضيregular
noneregular
إعداد التسريع، ويُوصى باختيار 'regular'. تؤدي زيادة التسريع إلى التضحية بالجودة لتقصير وقت التوليد.
guidance_scaleاختياري
النوعnumber
الافتراضي3.5
1 – 10
قوة الإرشاد الخالية من المصنّف، حيث تُبادَل خسارة الجودة المحتملة بمطابقة أقرب للموجّه مع زيادة المقياس.
guidance_scale_2اختياري
النوعnumber
الافتراضي4
1 – 10
مقياس التوجيه الذي يتحكم في مدى التزام النموذج بالموجّه خلال مرحلته الثانية.
shiftاختياري
النوعnumber
الافتراضي2
1 – 10
إعداد إزاحة الصورة، ويتراوح النطاق المسموح به بين 1.0 و10.0.
image_sizeاختياري
النوعobject
الافتراضيsquare_hd
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
أبعاد الصورة المُولّدة.
مطلوب

المخرجات

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "wan/v2.2-a14b/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": 25,
    "usd": "0.025",
    "charged": 25,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "image": {
      "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"
  }
}
ملفاتك، خيارككل outputs[].url هو نسخة على تخزيننا: تُحفظ إلى الأبد (مع الدفع لكل غيغابايت-شهر) أو لمدة 7 أيام مجانًا، وفق إعداد حسابك أو ?storage=.
البنية نفسها في كل نموذجtype وurl وcontent_type وwidth وheight وduration للصور والفيديو والصوت على حد سواء. output هو كائن النتائج الخاص بالنموذج.
حقول المخرجات
image
object {url, content_type, file_name, file_size}ملف صورة ناتج عن التوليد.
seed
integerقيمة البذرة المطبّقة أثناء التوليد.

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

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