Peke ki ngā ihirangi

Kling Image · O3 · Text to Image

Whakauru

id tauira 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"

Tēnei tono: $ 0.028 28 whiwhinga API Whakahaerehia ki tēnei whārangi

Tikina he kī API
Kling Kuputuhi ki te Atahanga Putanga 4KNgā tāuru tohutorotae atu ki 4K #text-to-image

O3 text-to-image i 1K, 2K, 4K rānei, me te whakahaere kanohi mā ngā elements me te putanga series

I hangaia ki Doitong

Ngā mahi tūmatanui i hangaia ki Kling Image e te hapori Doitong. Whakamahia anō he tono mā te pāwhiri kotahi.

Ngā mahi tūmatanui kua whakaaturia: 16
**Duration: 5 seconds | Aspect ratio: 16:9 | Children's YouTube Intro | Video with Audio** Animat... Ataata

**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...

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

**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...

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

**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...

Уютная база отдыха с деревянными домиками-шале среди сосен. Майя и Клиентка заходят в теплое кафе... Ataata

Уютная база отдыха с деревянными домиками-шале среди сосен. Майя и Клиентка заходят в теплое кафе с панорамными окнами. Внутри деревянный интерьер, мягкие диваны и живые цветы. Они садятся за столик, перед ними стоят дымящиеся чашки чая. Мягкий свет ламп создает уют. Средний план, уровень глаз. (...

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

**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...

Реалистично оживи старую семейную фотографию. Все люди сохраняют свои оригинальные лица, черты вн... Ataata

Реалистично оживи старую семейную фотографию. Все люди сохраняют свои оригинальные лица, черты внешности, возраст, причёски и одежду. Мужчины слегка поворачивают головы, естественно моргают и едва заметно улыбаются. Женщина слева спокойно смотрит в камеру и мягко моргает. Маленький ребёнок слегка...

A five-second orbital camera move circling completely around a red-haired woman in a yellow rainc... Ataata

A five-second orbital camera move circling completely around a red-haired woman in a yellow raincoat standing in an autumn forest holding a vintage lantern, she remains stationary facing forward while the camera circles 180 degrees from her left side to her right side at eye level, golden fallen...

A five-second whip pan transition starting on a chef in white uniform chopping fresh herbs on a w... Ataata

A five-second whip pan transition starting on a chef in white uniform chopping fresh herbs on a wooden cutting board in a bright kitchen, camera suddenly swings in a rapid blur motion panning right at high speed creating motion blur, ending sharply focused on a barista pouring latte art in a...

Hangaia he tono

Ka hangaia ngā mana whakahaere mai i te aronuinga o te tauira. Ka whakahoungia te waehere me te utu ina whakarerekē koe.

•e hiahiatia ana 88 / 2500

Tohutohu whakaputa atahanga, me te tepenga o te 2500 pūāhua.

resolution taunoa 1K

Taumira atahanga putanga: 1K mō te paerewa, 2K mō te teitei, 4K rānei mō te taumira tino teitei.

aspect_ratio taunoa 16:9

Te ōwehenga whānui ki te teitei mō ngā atahanga ka whakaputaina.

num_images taunoa 1

Te maha o ngā atahanga putanga, mai i te 1 ki te 9; ka pā anake ina ko `single` te `result_type`.

Arā atu result_type · output_format · series_amount · enable_safety_checker · elements
result_type taunoa single

Momo putanga: ka whakaputa a `single` i te atahanga kotahi, ā, ka whakaputa a `series` i ngā atahanga maha e pā ana tētahi ki tētahi.

output_format taunoa png

Te hōputu kōnae mō te atahanga ka puta.

Te maha o ngā atahanga raupapa, mai i te 2 ki te 9; ka pā anake ina ko `series` te `result_type`.

Ngā huānga whakahaere kanohi hei kōwhiringa, e tohu ana i ngā pūāhua, taonga rānei, ka whakamahia i roto i te tohutohu mā @Element1, @Element2, me ērā atu.

POST /run/kling-image/o3/text-to-image?wait=20 utu → $ 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"

Whakahaerehia tēnei tono

Ka noho tō kī ki tēnei pūtirotiro: ka tukuna ki te Doitong API anake, ā, ka tiakina ki te localStorage anake ina tohua e koe te Mahara. Tikina he kī API

Mō Kling Image · O3 · Text to Image

Ka hanga atahanga mai i tētahi tohutohu tae atu ki te 2500 pūāhua. Ko `resolution` he 1K, 2K, 4K rānei, ā, e tautoko ana `aspect_ratio` i te 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3 me 21:9. Hangaia he atahanga 1-9, he raupapa atahanga pānga 2-9 rānei mā `result_type`. Mā `elements` e whakahaere te kanohi o ngā kiripuaki me ngā mea.

Ngā tawhā

Tukuna te ingoa tōmua, te ingoa taketake rānei, kaua e rua. Ngā ingoa tōmua

IngoaMomo TaunoaE whakaaetia ana Whakamārama
prompte hiahiatia ana
Momostring
≤ 2,500 pūāhua
Tohutohu whakaputa atahanga, me te tepenga o te 2500 pūāhua.
elementskōwhiringa
Momoobject[]
Ngā huānga whakahaere kanohi hei kōwhiringa, e tohu ana i ngā pūāhua, taonga rānei, ka whakamahia i roto i te tohutohu mā @Element1, @Element2, me ērā atu.
elements[].frontal_image_urlkōwhiringa
Momourl · image
Atahanga anga-mua, he kōwhiringa, hei whakaatu i te tirohanga matua o te huānga. Kaua e nui ake te kōnae i te 10.0 MB; me 300px te iti rawa o te whānui me te teitei, me te ōwehenga āhuatanga mai i te 0.40 ki te 2.50.
elements[].reference_image_urlskōwhiringa
Momourl[] · image
Huinga kōwhiringa o ngā atahanga tāpiri 0–3 e whakaatu ana i ētahi atu koki. Kaua e nui ake ia kōnae i te 10.0 MB, ā, me 300px te iti rawa o te whānui me te teitei, me te ōwehenga āhuatanga mai i te 0.40 ki te 2.50.
resolutionkōwhiringa
Momoenum
Taunoa1K
1K2K4K
Taumira atahanga putanga: 1K mō te paerewa, 2K mō te teitei, 4K rānei mō te taumira tino teitei.
result_typekōwhiringa
Momoenum
Taunoasingle
singleseries
Momo putanga: ka whakaputa a `single` i te atahanga kotahi, ā, ka whakaputa a `series` i ngā atahanga maha e pā ana tētahi ki tētahi.
num_imageskōwhiringa num_outputs
Momointeger
Taunoa1
1 – 9
Te maha o ngā atahanga putanga, mai i te 1 ki te 9; ka pā anake ina ko `single` te `result_type`.
series_amountkōwhiringa
Momointeger | null
2 – 9
Te maha o ngā atahanga raupapa, mai i te 2 ki te 9; ka pā anake ina ko `series` te `result_type`.
aspect_ratiokōwhiringa
Momoenum
Taunoa16:9
16:99:161:14:33:43:22:321:9
Te ōwehenga whānui ki te teitei mō ngā atahanga ka whakaputaina.
output_formatkōwhiringa
Momoenum
Taunoapng
jpegpngwebp
Te hōputu kōnae mō te atahanga ka puta.
enable_safety_checkerkōwhiringa
Momoboolean
Taunoatrue
Ka taea te whakangāwari i te tātari mā te tautuhi false, mēnā he mana tō te kaiwhakatuwhera.
e hiahiatia ana Ingoa tōmua, e whakaaetia ana hoki

Putanga

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"
  }
}
Ō kōnae, māu e whiriwhiriKo ia url o outputs[] he tārua kei tō mātou rokiroki: ka puritia mō ake tonu atu (ka utua ia GB-marama) mō rānei 7 rā mō te kore utu, e ai ki ngā tautuhinga o tō pūkete, ki te ?storage= rānei.
He ōrite te hanga ki ia tauiratype, url, content_type, width, height me duration, mō ngā pikitia, ataata me te oro. Ko output te ahanoa hua ake o te tauira.
Ngā āpure o te putanga
images
array of object {url, content_type, file_name, file_size, width, height}Ngā atahanga i whakaputaina e te tauira.

Ētahi atu tauira: Kuputuhi ki te Atahanga

Mō ngā āpiha AI: kei te wātea tēnei whārangi hei Markdown ki https://doitong.com/mi/developers/models/kling-image/o3/text-to-image.md. Ngā tauira me ngā aratohu katoa: https://doitong.com/developers/llms.txt