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

Kling Image · O3 · Text to Image

Интеграция

ID модели kling-image/o3/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/o3/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-кредитов · ≈ 2,99 ₽ Запустить на этой странице

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

Генерация изображений O3 из текста в разрешении 1K, 2K или 4K с управлением лицами через элементы и выводом серий

Создано на 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 символов.

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

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

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

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

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/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/o3/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 · O3 · Text to Image

Создаёт изображения из промпта длиной до 2500 символов. `resolution` — 1K, 2K или 4K, а `aspect_ratio` поддерживает 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3 и 21:9. Генерируйте от 1 до 9 изображений или серию из 2–9 связанных изображений через `result_type`. `elements` обеспечивают управление лицами персонажей и объектов.

Параметры

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

ИмяТип По умолчаниюДопустимые значения Описание
promptобязательно
Типstring
≤ 2 500 символов
Промпт для генерации изображения длиной до 2500 символов.
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
Количество выходных изображений от 1 до 9; применяется только если `result_type` имеет значение `single`.
series_amountнеобязательно
Типinteger | null
2 – 9
Количество изображений в серии от 2 до 9; применяется только если `result_type` имеет значение `series`.
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/o3/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"
  }
}
Ваши файлы — ваш выборКаждый 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/o3/text-to-image.md. Все модели и руководства: https://doitong.com/developers/llms.txt