رفتن به محتوا

Kling Image · O3 · Image to Image

یکپارچه‌سازی

شناسه مدل kling-image/o3/image-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/o3/image-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",
    "images": [
      "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
    ]
  }'

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

این درخواست: ⁨‎$۰٫۰۲۸⁩ ۲۸ اعتبار API اجرای آن در این صفحه

دریافت کلید API
Kling ویرایش تصویر خروجی 4Kورودی‌های مرجعحداکثر 4K #image-to-image

ویرایش تصویر O3 از حداکثر 10 تصویر مرجع، با خروجی 1K-4K و حالت سری

ساخته‌شده در 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 نویسه. برای ارجاع به تصاویر از @Image1، @Image2 و غیره، یا برای یک تصویر از @Image استفاده کنید.

•الزامی image_urls
یک فایل بیندازید، یا

فهرست تصاویر مرجع، محدود به 10 تصویر؛ در پرامپت با @Image1، @Image2 و غیره و با شماره‌گذاری از 1 به آن‌ها ارجاع دهید. اندازه هر فایل نباید بیشتر از 10.0 MB باشد، عرض و ارتفاع هرکدام باید حداقل 300px و نسبت تصویر باید بین 0.40 تا 2.50 باشد.

resolution پیش‌فرض 1K

وضوح تصویر خروجی: 1K برای استاندارد، 2K برای بالا یا 4K برای وضوح فوق‌العاده بالا.

aspect_ratio پیش‌فرض auto

نسبت تصویر تولیدشده که هنگام تنظیم روی 'auto' به‌طور خودکار از محتوای ورودی انتخاب می‌شود.

num_images پیش‌فرض 1

تعداد تصاویر خروجی، از 1 تا 9؛ فقط در صورت `result_type` برابر با `single` اعمال می‌شود.

پیشرفته result_type · output_format · series_amount · enable_safety_checker · elements
result_type پیش‌فرض single

نوع خروجی: `single` یک تصویر و `series` چند تصویر مرتبط تولید می‌کند.

output_format پیش‌فرض png

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

تعداد تصاویر مجموعه، از 2 تا 9؛ فقط در صورت `result_type` برابر با `series` اعمال می‌شود.

عناصر اختیاری کنترل چهره که نماینده شخصیت‌ها یا اشیا هستند و در پرامپت با @Element1، @Element2 و غیره به آن‌ها ارجاع داده می‌شود.

POST /run/kling-image/o3/image-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.com/v1/run/kling-image/o3/image-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",
    "images": [
      "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
    ]
  }'

# 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 · O3 · Image to Image

تصاویر مرجع (`image_urls`، حداکثر 10 مورد) را طبق promptی که با @Image1، @Image2 و مانند آن به آن‌ها اشاره می‌کند، تبدیل یا ترکیب می‌کند. `resolution` برابر 1K، 2K یا 4K و `aspect_ratio` شامل auto و هشت نسبت ثابت تا 21:9 است. با `num_images` تعداد 1-9 تصویر منفرد، یا با `result_type` برابر series و `series_amount` مجموعه مرتبطی از 2-9 تصویر تولید کنید. خروجی jpeg، png یا webp است.

پارامترها

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

نامنوع پیش‌فرضمجاز توضیحات
promptالزامی
نوعstring
≤ ۲٬۵۰۰ نویسه
پرامپت تولید تصویر، محدود به 2500 نویسه. برای ارجاع به تصاویر از @Image1، @Image2 و غیره، یا برای یک تصویر از @Image استفاده کنید.
image_urlsالزامی images
نوعurl[] · image
فهرست تصاویر مرجع، محدود به 10 تصویر؛ در پرامپت با @Image1، @Image2 و غیره و با شماره‌گذاری از 1 به آن‌ها ارجاع دهید. اندازه هر فایل نباید بیشتر از 10.0 MB باشد، عرض و ارتفاع هرکدام باید حداقل 300px و نسبت تصویر باید بین 0.40 تا 2.50 باشد.
elementsاختیاری
نوعobject[]
عناصر اختیاری کنترل چهره که نماینده شخصیت‌ها یا اشیا هستند و در پرامپت با @Element1، @Element2 و غیره به آن‌ها ارجاع داده می‌شود.
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
1K2K4K
وضوح تصویر خروجی: 1K برای استاندارد، 2K برای بالا یا 4K برای وضوح فوق‌العاده بالا.
result_typeاختیاری
نوعenum
پیش‌فرضsingle
singleseries
نوع خروجی: `single` یک تصویر و `series` چند تصویر مرتبط تولید می‌کند.
num_imagesاختیاری num_outputs
نوعinteger
پیش‌فرض1
۱ – ۹
تعداد تصاویر خروجی، از 1 تا 9؛ فقط در صورت `result_type` برابر با `single` اعمال می‌شود.
series_amountاختیاری
نوعinteger | null
۲ – ۹
تعداد تصاویر مجموعه، از 2 تا 9؛ فقط در صورت `result_type` برابر با `series` اعمال می‌شود.
aspect_ratioاختیاری
نوعenum
پیش‌فرضauto
16:99:161:14:33:43:22:321:9auto
نسبت تصویر تولیدشده که هنگام تنظیم روی 'auto' به‌طور خودکار از محتوای ورودی انتخاب می‌شود.
output_formatاختیاری
نوعenum
پیش‌فرضpng
jpegpngwebp
قالب فایل تصویر نهایی.
enable_safety_checkerاختیاری
نوعboolean
پیش‌فرضtrue
با تنظیم false، در صورت مجاز بودن فراخواننده، می‌توان بررسی را آسان‌گیرانه‌تر کرد.
الزامی نام استاندارد، همچنین پذیرفته می‌شود

پارامترهای فایل یک URL عمومی https://، یک URI از نوع data: تا سقف 10 MB، یا file_url یک فایل بارگذاری‌شده را می‌پذیرند. فایل‌ها

خروجی

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "kling-image/o3/image-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",
    "image_urls": [
      "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
    ]
  },
  "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 کپی‌ای در فضای ذخیره‌سازی ماست: برای همیشه (با هزینه به‌ازای هر GB-ماه) یا به‌مدت ۷ روز رایگان، بر اساس تنظیم حساب شما یا ?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/fa/developers/models/kling-image/o3/image-to-image.md. همه مدل‌ها و راهنماها: https://doitong.com/developers/llms.txt