Перейти к содержимому

Kling Image · v3 · Image to Image

Интеграция

ID модели kling-image/v3/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/v3/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",
    "image": "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"

Этот запрос: 0,028 $ 28 API-кредитов · ≈ 2,99 ₽ Запустить на этой странице

Получить API-ключ
Kling Редактирование изображений Референсные входные данныедо 2K #image-to-image

Стилизация v3 из одного эталонного изображения в разрешении 1K или 2K с выводом до 9 результатов

Создано на Doitong

Публичные работы сообщества Doitong, созданные с помощью Kling Image. Повторно используйте промпт одним нажатием.

Показано публичных работ: 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 символов.

•обязательно image_url
Перетащите файл или

Эталонное изображение, используемое как входные данные для генерации image-to-image; максимальный размер файла — 10.0MB. Оба измерения должны быть не менее 300px, а соотношение сторон — от 0.40 до 2.50. Тайм-аут — 20.0s.

resolution по умолчанию 1K

Разрешение выходного изображения: 1K для стандартного или 2K для высокого разрешения.

aspect_ratio по умолчанию 16:9

Соотношение ширины и высоты создаваемых изображений.

num_images по умолчанию 1

Число выходных изображений от 1 до 9.

Расширенные output_format · enable_safety_checker · elements
output_format по умолчанию png

Формат файла итогового изображения.

Необязательное управление лицами с помощью переданных элементов, указывающих, какие персонажи или объекты должны появиться на изображении.

POST /run/kling-image/v3/image-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/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",
    "image": "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 · v3 · Image to Image

Редактирует или переосмысливает одно эталонное изображение (`image_url`) по текстовому промпту. Изображение должно иметь не менее 300px по каждой стороне и соотношение сторон от 0.40 до 2.50; размер ограничен 10MB. `resolution` — 1K или 2K, `num_images` — от 1 до 9, а `elements` обеспечивают управление лицами. Форматы вывода: jpeg, png или webp.

Параметры

Передавайте либо каноническое имя, либо исходное имя, но не оба. Канонические имена

ИмяТип По умолчаниюДопустимые значения Описание
promptобязательно
Типstring
≤ 2 500 символов
Промпт для генерации изображения длиной до 2500 символов.
image_urlобязательно image
Типurl · image
Эталонное изображение, используемое как входные данные для генерации image-to-image; максимальный размер файла — 10.0MB. Оба измерения должны быть не менее 300px, а соотношение сторон — от 0.40 до 2.50. Тайм-аут — 20.0s.
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, если вызывающая сторона авторизована.
обязательно Каноническое имя, также принимается

Параметры файлов принимают общедоступный https:// URL, data: URI размером до 10 MB или file_url загруженного файла. Файлы

Результат

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "kling-image/v3/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_url": "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"
  }
}
Ваши файлы — ваш выборКаждый URL из 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}Изображения, созданные моделью.

Другие модели: Редактирование изображений

Для AI-агентов: эта страница в формате Markdown доступна по адресу https://doitong.com/ru/developers/models/kling-image/v3/image-to-image.md. Все модели и руководства: https://doitong.com/developers/llms.txt