Ruka hadi kwenye maudhui

Kling Image · v3 · Text to Image

Unganisha

Kitambulisho cha modeli kling-image/v3/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/v3/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"

Ombi hili: $ 0.028 salio za API 28 Iendeshe kwenye ukurasa huu

Pata ufunguo wa API
Kling Maandishi hadi Picha Ingizo za marejeleohadi 2K #text-to-image

Uzalishaji wa picha kutoka maandishi wa v3 wenye kidokezo hasi na udhibiti wa nyuso za vipengele katika 1K au 2K

Imetengenezwa kwenye Doitong

Kazi za umma zilizotengenezwa kwa Kling Image na jumuiya ya Doitong. Tumia tena kidokezo kwa kubofya mara moja.

Kazi za umma zilizoonyeshwa: 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...

Unda ombi

Vidhibiti vinazalishwa kutoka kwenye schema ya modeli. Msimbo na bei husasishwa unapovibadilisha.

•inahitajika 88 / 2500

Kidokezo cha uzalishaji wa picha chenye kikomo cha herufi 2500.

resolution chaguomsingi 1K

Mwonekano wa picha ya tokeo: 1K kwa mwonekano wa kawaida au 2K kwa mwonekano wa juu.

aspect_ratio chaguomsingi 16:9

Uwiano wa upana kwa urefu wa picha zinazozalishwa.

num_images chaguomsingi 1

Idadi ya picha za tokeo, kutoka 1 hadi 9.

Ya kina negative_prompt · output_format · enable_safety_checker · elements
0 / 2500

Bainisha maudhui yasiyotakikana kwa kutumia kidokezo hiki hasi; nyongeza inayopendekezwa ni kutaja vizuizi kama sentensi hasi ndani ya vidokezo chanya.

output_format chaguomsingi png

Muundo wa faili wa picha inayotokana.

Mkusanyiko wa hiari wa udhibiti wa nyuso, wenye picha ya mbele na picha za marejeleo za hiari kwa kila ingizo. Maingizo yanaeleza wahusika au vitu vinavyopaswa kuonekana kwenye picha.

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

Endesha ombi hili

Key yako inabaki kwenye kivinjari hiki: inatumwa kwa Doitong API pekee na kuhifadhiwa (localStorage) tu ukiweka tiki kwenye Kumbuka. Pata ufunguo wa API

Kuhusu Kling Image · v3 · Text to Image

Huzalisha picha 1-9 kutoka kwa kidokezo cha hadi vibambo 2500, huku ikiwa hiari ikielekezwa mbali na maudhui yasiyotakikana kwa `negative_prompt`. `resolution` ni 1K au 2K na `aspect_ratio` inatoa uwiano nane ikiwemo 21:9. `elements` hubeba picha ya mbele na marejeleo ya hiari kwa nyuso thabiti. Tokeo ni jpeg, png au webp.

Vigezo

Tuma jina rasmi au jina asilia, si yote mawili. Majina rasmi

JinaAina ChaguomsingiInaruhusiwa Maelezo
promptinahitajika
Ainastring
≤ herufi 2,500
Kidokezo cha uzalishaji wa picha chenye kikomo cha herufi 2500.
negative_promptsi lazima
Ainastring | null
≤ herufi 2,500
Bainisha maudhui yasiyotakikana kwa kutumia kidokezo hiki hasi; nyongeza inayopendekezwa ni kutaja vizuizi kama sentensi hasi ndani ya vidokezo chanya.
elementssi lazima
Ainaobject[]
Mkusanyiko wa hiari wa udhibiti wa nyuso, wenye picha ya mbele na picha za marejeleo za hiari kwa kila ingizo. Maingizo yanaeleza wahusika au vitu vinavyopaswa kuonekana kwenye picha.
elements[].frontal_image_urlsi lazima
Ainaurl · image
Picha ya hiari inayoangalia mbele na kutoa mwonekano mkuu wa kipengele. Ukubwa wa faili hauwezi kuzidi 10.0 MB; upana na urefu lazima kila moja iwe angalau 300px, na uwiano wa picha uwe kutoka 0.40 hadi 2.50.
elements[].reference_image_urlssi lazima
Ainaurl[] · image
Seti ya hiari ya picha 0–3 za ziada zinazoonyesha pembe nyingine. Kila faili lazima isiwe kubwa kuliko 10.0 MB, upana na urefu kila moja uwe angalau 300px, na uwiano wa picha uwe kutoka 0.40 hadi 2.50.
resolutionsi lazima
Ainaenum
Chaguomsingi1K
1K2K
Mwonekano wa picha ya tokeo: 1K kwa mwonekano wa kawaida au 2K kwa mwonekano wa juu.
num_imagessi lazima num_outputs
Ainainteger
Chaguomsingi1
1 – 9
Idadi ya picha za tokeo, kutoka 1 hadi 9.
aspect_ratiosi lazima
Ainaenum
Chaguomsingi16:9
16:99:161:14:33:43:22:321:9
Uwiano wa upana kwa urefu wa picha zinazozalishwa.
output_formatsi lazima
Ainaenum
Chaguomsingipng
jpegpngwebp
Muundo wa faili wa picha inayotokana.
enable_safety_checkersi lazima
Ainaboolean
Chaguomsingitrue
Ukaguzi unaweza kulegezwa kwa kuweka false, ikiwa mpigaji simu ameidhinishwa.
inahitajika Jina rasmi, pia linakubalika

Tokeo

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "kling-image/v3/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"
  }
}
Faili zako, chaguo lakoKila outputs[].url ni nakala kwenye hifadhi yetu: huhifadhiwa milele (hutozwa kwa GB kwa mwezi) au 7 siku bila malipo, kulingana na mpangilio wa akaunti yako au ?storage=.
Muundo uleule kwenye kila modelitype, url, content_type, width, height na duration, kwa picha, video na sauti. output ni kitu cha matokeo cha modeli yenyewe.
Sehemu za tokeo
images
array of object {url, content_type, file_name, file_size, width, height}Picha zilizozalishwa na modeli.

Miundo zaidi: Maandishi hadi Picha

Kwa mawakala wa AI: ukurasa huu katika Markdown unapatikana kwenye https://doitong.com/sw/developers/models/kling-image/v3/text-to-image.md. Modeli na miongozo yote: https://doitong.com/developers/llms.txt