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

Kling Image · v3 · Text to Image

التكامل

معرّف النموذج kling-image/v3/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/kling-image/v3/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.028 $⁩ 28 رصيد API تشغيله في هذه الصفحة

الحصول على مفتاح API
Kling من نص إلى صورة مدخلات مرجعيةحتى 2K #text-to-image

تحويل v3 من النص إلى صورة مع مطالبة سلبية وتحكم في وجوه العناصر بدقة 1K أو 2K

أُنشئت على Doitong

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

الأعمال العامة المعروضة: 16
Ultra-realistic cinematic video of a young adult woman walking naturally toward the camera while ... فيديو

Ultra-realistic cinematic video of a young adult woman walking naturally toward the camera while speaking, with realistic facial expressions and synchronized lip movements, as if she is promoting something to the viewer. She maintains eye contact with the camera, smiles slightly, and uses subtle...

Slow, subtle push-in on the woman's face. The light from the laptop flickers softly across her ey... فيديو

Slow, subtle push-in on the woman's face. The light from the laptop flickers softly across her eyes and cheeks, as if the blurry image on the screen is changing. Her eyes move slightly as she studies the screen, and she takes one slow, tense breath. Behind her, shadows of the snowstorm move...

The enormous ancient dragon descends slowly toward the snowy cliff and lands at the cave mouth. I... فيديو

The enormous ancient dragon descends slowly toward the snowy cliff and lands at the cave mouth. Its huge dark leathery wings beat twice with slow, heavy strokes, sending snow swirling off the cliff in big clouds. Then it folds its wings and settles on the rock, the giant elk still held in its...

**Duration: 5 seconds | Aspect ratio: 16:9 | Children's YouTube Intro | Video with Audio** Animat... فيديو

**Duration: 5 seconds | Aspect ratio: 16:9 | Children's YouTube Intro | Video with Audio** Animate the provided image into a bright, magical, energetic, professional YouTube intro for a children's entertainment channel, with perfectly synchronized sound effects, cheerful music, and a cute child's...

Authentic 1990s wide-angle film footage. The left man slowly pulls one wooden block from the Jeng... فيديو

Authentic 1990s wide-angle film footage. The left man slowly pulls one wooden block from the Jenga tower. As the block comes out, the tower naturally loses balance and realistically collapses onto the table. Frustrated, he angrily sweeps all the fallen wooden blocks off the table with both hands....

Thermal-camera view of a snowy mountain cliff at night in false-color, deep blue and violet cold ... فيديو

Thermal-camera view of a snowy mountain cliff at night in false-color, deep blue and violet cold rock, a huge orange-white heat shape hidden inside a rock crevice, two small bright amber spots glowing like eyes, faint noise grain. Cinematic videorealistic, ultra detailed, 16:9, volumetric light,...

**Duration: 4 seconds | Aspect ratio: 16:9 | Children's YouTube Intro | Video with Audio** Animat... فيديو

**Duration: 4 seconds | Aspect ratio: 16:9 | Children's YouTube Intro | Video with Audio** Animate the provided image into a bright, magical, energetic, professional YouTube intro for a children's entertainment channel, with perfectly synchronized sound effects, cheerful music, and a cute child's...

**Duration: 4 seconds | Aspect ratio: 16:9 | Children's YouTube Intro | Video with Audio** Animat... فيديو

**Duration: 4 seconds | Aspect ratio: 16:9 | Children's YouTube Intro | Video with Audio** Animate the provided image into a bright, magical, energetic, professional YouTube intro for a children's entertainment channel, with perfectly synchronized sound effects, cheerful music, and a cute child's...

إنشاء طلب

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

•مطلوب 88 / 2500

موجّه توليد الصور بحد أقصى 2500 حرف.

resolution الافتراضي 1K

دقة صورة المخرج: 1K للدقة القياسية أو 2K للدقة العالية.

aspect_ratio الافتراضي 16:9

نسبة العرض إلى الارتفاع للصور المولّدة.

num_images الافتراضي 1

عدد صور المخرج، من 1 إلى 9.

متقدم negative_prompt · output_format · enable_safety_checker · elements
0 / 2500

حدّد المحتوى غير المرغوب فيه باستخدام هذا الموجّه السلبي؛ والإضافة الموصى بها هي ذكر الاستبعادات كجمل سلبية داخل الموجّهات الإيجابية.

output_format الافتراضي png

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

مجموعة اختيارية للتحكم بالوجوه، تتضمن صورة أمامية وصورًا مرجعية اختيارية متاحة لكل إدخال. تصف الإدخالات الشخصيات أو الكائنات التي ينبغي أن تظهر في الصورة.

POST /run/kling-image/v3/text-to-image?wait=20 عرض السعر → ⁨‏0.028 $⁩
# 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/kling-image/v3/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

حول Kling Image · v3 · Text to Image

ينشئ من 1 إلى 9 صور من مطالبة يصل طولها إلى 2500 حرف، مع إمكانية توجيه التوليد بعيدًا عن المحتوى غير المرغوب باستخدام `negative_prompt`. تكون `resolution` هي 1K أو 2K، وتوفر `aspect_ratio` ثماني نسب، من بينها 21:9. تحمل `elements` صورة أمامية ومراجع اختيارية للحفاظ على اتساق الوجوه. يكون الخرج بصيغة jpeg أو png أو webp.

المعاملات

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

الاسمالنوع الافتراضيمسموح الوصف
promptمطلوب
النوعstring
≤ 2,500 حرف
موجّه توليد الصور بحد أقصى 2500 حرف.
negative_promptاختياري
النوعstring | null
≤ 2,500 حرف
حدّد المحتوى غير المرغوب فيه باستخدام هذا الموجّه السلبي؛ والإضافة الموصى بها هي ذكر الاستبعادات كجمل سلبية داخل الموجّهات الإيجابية.
elementsاختياري
النوعobject[]
مجموعة اختيارية للتحكم بالوجوه، تتضمن صورة أمامية وصورًا مرجعية اختيارية متاحة لكل إدخال. تصف الإدخالات الشخصيات أو الكائنات التي ينبغي أن تظهر في الصورة.
elements[].frontal_image_urlاختياري
النوعurl · image
صورة اختيارية أمامية توفر المنظر الرئيسي للعنصر. يجب ألا يتجاوز حجم الملف 10.0 MB، وأن يكون العرض والارتفاع 300px على الأقل، ونسبة العرض إلى الارتفاع بين 0.40 و2.50.
elements[].reference_image_urlsاختياري
النوعurl[] · image
مجموعة اختيارية من 0–3 صور إضافية تعرض زوايا أخرى. يجب ألا يتجاوز حجم كل ملف 10.0 MB، وأن يكون العرض والارتفاع 300px على الأقل، ونسبة العرض إلى الارتفاع بين 0.40 و2.50.
resolutionاختياري
النوعenum
الافتراضي1K
1K2K
دقة صورة المخرج: 1K للدقة القياسية أو 2K للدقة العالية.
num_imagesاختياري num_outputs
النوعinteger
الافتراضي1
1 – 9
عدد صور المخرج، من 1 إلى 9.
aspect_ratioاختياري
النوعenum
الافتراضي16:9
16:99:161:14:33:43:22:321:9
نسبة العرض إلى الارتفاع للصور المولّدة.
output_formatاختياري
النوعenum
الافتراضيpng
jpegpngwebp
تنسيق ملف الصورة الناتجة.
enable_safety_checkerاختياري
النوعboolean
الافتراضيtrue
يمكن تخفيف الفحص بضبط القيمة على false، شريطة أن يكون المستدعي مخولًا بذلك.
مطلوب الاسم الأساسي، مقبول أيضًا

المخرجات

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "kling-image/v3/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": 28,
    "usd": "0.028",
    "charged": 28,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "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,
        "width": 1024,
        "height": 768
      }
    ]
  },
  "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 هو كائن النتائج الخاص بالنموذج.
حقول المخرجات
images
array of object {url, content_type, file_name, file_size, width, height}الصور التي أنتجها النموذج.

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

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