Lumaktaw sa nilalaman

Kling Image · O3 · Text to Image

I-integrate

ID ng modelo 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"

Kahilingang ito: $0.028 28 kredito ng API Patakbuhin ito sa page na ito

Kumuha ng API key
Kling Text patungong Larawan 4K na outputMga reference inputhanggang 4K #text-to-image

O3 text-to-image sa 1K, 2K o 4K, na may element-based face control at series output

Ginawa sa Doitong

Mga pampublikong gawang ginawa gamit ang Kling Image ng komunidad ng Doitong. Gamitin muli ang prompt sa isang click.

Mga ipinapakitang pampublikong gawa: 16
Ultra-realistic cinematic video of a young adult woman walking naturally toward the camera while ... video

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

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

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

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

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

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

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

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

Bumuo ng kahilingan

Ang mga control ay binubuo mula sa schema ng modelo. Nagbabago ang code at presyo habang ina-adjust mo ang mga ito.

•kinakailangan 88 / 2500

Prompt para sa pagbuo ng larawan na may limitasyong 2500 character.

resolution default na 1K

Resolution ng output na larawan: 1K para sa standard, 2K para sa high, o 4K para sa ultra-high resolution.

aspect_ratio default na 16:9

Ratio ng lapad sa taas para sa mga nabuong larawan.

num_images default na 1

Bilang ng output na larawan, mula 1 hanggang 9; nalalapat lamang kung `result_type` ay `single`.

advanced result_type · output_format · series_amount · enable_safety_checker · elements
result_type default na single

Uri ng output: ang `single` ay gumagawa ng isang larawan, habang ang `series` ay gumagawa ng maraming magkakaugnay na larawan.

output_format default na png

File format ng resultang larawan.

Bilang ng mga larawan sa series, mula 2 hanggang 9; nalalapat lamang kung `result_type` ay `series`.

Opsyonal na face-control element na kumakatawan sa mga character o object, na tinutukoy sa prompt gamit ang @Element1, @Element2, at iba pa.

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

Patakbuhin ang kahilingang ito

Nananatili ang iyong key sa browser na ito: ipinapadala lamang ito sa Doitong API at sine-save (localStorage) lamang kung pipiliin mo ang Tandaan. Kumuha ng API key

Tungkol sa Kling Image · O3 · Text to Image

Gumagawa ng mga larawan mula sa prompt na hanggang 2500 character. Ang `resolution` ay 1K, 2K o 4K, at sinusuportahan ng `aspect_ratio` ang 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3 at 21:9. Gumawa ng 1-9 larawan, o series ng 2-9 magkakaugnay na larawan gamit ang `result_type`. Nagbibigay ang `elements` ng face control para sa mga character at object.

Mga parameter

Ipadala ang canonical na pangalan o ang native na pangalan, hindi pareho. Mga canonical na pangalan

PangalanUri defaultPinapayagan Paglalarawan
promptkinakailangan
Uristring
≤ 2,500 character
Prompt para sa pagbuo ng larawan na may limitasyong 2500 character.
elementsopsyonal
Uriobject[]
Opsyonal na face-control element na kumakatawan sa mga character o object, na tinutukoy sa prompt gamit ang @Element1, @Element2, at iba pa.
elements[].frontal_image_urlopsyonal
Uriurl · image
Opsyonal na larawan na nakaharap sa harap na nagbibigay ng pangunahing view ng element. Hindi maaaring lumampas sa 10.0 MB ang file; dapat hindi bababa sa 300px ang lapad at taas nito, na may aspect ratio mula 0.40 hanggang 2.50.
elements[].reference_image_urlsopsyonal
Uriurl[] · image
Opsyonal na set ng 0–3 karagdagang larawan na nagpapakita ng ibang anggulo. Hindi dapat lumampas sa 10.0 MB ang bawat file, at dapat hindi bababa sa 300px ang lapad at taas nito, na may aspect ratio mula 0.40 hanggang 2.50.
resolutionopsyonal
Urienum
default1K
1K2K4K
Resolution ng output na larawan: 1K para sa standard, 2K para sa high, o 4K para sa ultra-high resolution.
result_typeopsyonal
Urienum
defaultsingle
singleseries
Uri ng output: ang `single` ay gumagawa ng isang larawan, habang ang `series` ay gumagawa ng maraming magkakaugnay na larawan.
num_imagesopsyonal num_outputs
Uriinteger
default1
1 – 9
Bilang ng output na larawan, mula 1 hanggang 9; nalalapat lamang kung `result_type` ay `single`.
series_amountopsyonal
Uriinteger | null
2 – 9
Bilang ng mga larawan sa series, mula 2 hanggang 9; nalalapat lamang kung `result_type` ay `series`.
aspect_ratioopsyonal
Urienum
default16:9
16:99:161:14:33:43:22:321:9
Ratio ng lapad sa taas para sa mga nabuong larawan.
output_formatopsyonal
Urienum
defaultpng
jpegpngwebp
File format ng resultang larawan.
enable_safety_checkeropsyonal
Uriboolean
defaulttrue
Maaaring luwagan ang screening sa pamamagitan ng pagtatakda ng false, kung awtorisado ang tumatawag.
kinakailangan Canonical na pangalan, tinatanggap din

Output

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"
  }
}
Ikaw ang pumipili para sa iyong mga fileAng bawat outputs[].url ay kopya sa aming storage: pinananatili nang walang hanggan (sinisingil bawat GB-month) o 7 araw nang libre, ayon sa setting ng iyong account o ?storage=.
Parehong shape sa bawat modelotype, url, content_type, width, height at duration, para sa mga larawan, video at audio. Ang output ay sariling result object ng modelo.
Mga field ng output
images
array of object {url, content_type, file_name, file_size, width, height}Mga larawang ginawa ng modelo.

Higit pang modelo: Text patungong Larawan

Para sa mga AI agent: nasa Markdown ang pahinang ito sa https://doitong.com/fil/developers/models/kling-image/o3/text-to-image.md. Lahat ng modelo at gabay: https://doitong.com/developers/llms.txt