Preskoči na vsebino

Kling Image · O3 · Text to Image

Integracija

ID modela 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"

Ta zahteva: 0,028 $ 28 API kreditov Zaženi na tej strani

Pridobi ključ API
Kling Besedilo v sliko Izhod 4KReferenčni vnosido 4K #text-to-image

O3 za pretvorbo besedila v sliko pri 1K, 2K ali 4K z nadzorom obraza na podlagi elementov in serijskim izhodom

Ustvarjeno v Doitong

Javna dela, ki jih je skupnost Doitong ustvarila z Kling Image. Poziv znova uporabite z enim klikom.

Prikazana javna dela: 16
Ultra-realistic cinematic video of a young adult woman walking naturally toward the camera while ... Videoposnetek

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

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

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

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

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

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

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

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

Ustvari zahtevo

Kontrolniki se ustvarijo iz sheme modela. Koda in cena se posodobita, ko ju spreminjate.

•obvezno 88 / 2500

Poziv za generiranje slike z omejitvijo 2500 znakov.

resolution privzeto 1K

Ločljivost izhodne slike: 1K za standardno, 2K za visoko ali 4K za ultra visoko ločljivost.

aspect_ratio privzeto 16:9

Razmerje med širino in višino ustvarjenih slik.

num_images privzeto 1

Število izhodnih slik od 1 do 9; velja samo, če je `result_type` nastavljen na `single`.

Napredno result_type · output_format · series_amount · enable_safety_checker · elements
result_type privzeto single

Vrsta izhoda: `single` ustvari eno sliko, `series` pa več povezanih slik.

output_format privzeto png

Oblika datoteke končne slike.

Število slik v seriji od 2 do 9; velja samo, če je `result_type` nastavljen na `series`.

Izbirni elementi za nadzor obraza, ki predstavljajo znake ali predmete in so v pozivu naslovljeni z @Element1, @Element2 itd.

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

Zaženi to zahtevo

Vaš ključ ostane v tem brskalniku: pošlje se samo v Doitong API in shrani v localStorage samo, če označite možnost Zapomni si. Pridobi ključ API

O modelu Kling Image · O3 · Text to Image

Ustvari slike iz poziva, dolgega do 2500 znakov. `resolution` je 1K, 2K ali 4K, `aspect_ratio` pa podpira 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3 in 21:9. Ustvarite 1-9 slik ali z `result_type` serijo 2-9 povezanih slik. `elements` omogočajo nadzor obrazov likov in predmetov.

Parametri

Pošlji kanonično ali izvorno ime, ne obeh. Kanonična imena

ImeVrsta PrivzetoDovoljeno Opis
promptobvezno
Vrstastring
≤ 2500 znakov
Poziv za generiranje slike z omejitvijo 2500 znakov.
elementsneobvezno
Vrstaobject[]
Izbirni elementi za nadzor obraza, ki predstavljajo znake ali predmete in so v pozivu naslovljeni z @Element1, @Element2 itd.
elements[].frontal_image_urlneobvezno
Vrstaurl · image
Izbirna čelna slika, ki prikazuje glavni pogled elementa. Velikost datoteke ne sme presegati 10.0 MB; širina in višina morata biti najmanj 300px, razmerje stranic pa med 0.40 in 2.50.
elements[].reference_image_urlsneobvezno
Vrstaurl[] · image
Izbirni nabor 0–3 dodatnih slik, ki prikazujejo druge kote. Posamezna datoteka ne sme biti večja od 10.0 MB, širina in višina pa morata biti najmanj 300px, razmerje stranic pa med 0.40 in 2.50.
resolutionneobvezno
Vrstaenum
Privzeto1K
1K2K4K
Ločljivost izhodne slike: 1K za standardno, 2K za visoko ali 4K za ultra visoko ločljivost.
result_typeneobvezno
Vrstaenum
Privzetosingle
singleseries
Vrsta izhoda: `single` ustvari eno sliko, `series` pa več povezanih slik.
num_imagesneobvezno num_outputs
Vrstainteger
Privzeto1
1 – 9
Število izhodnih slik od 1 do 9; velja samo, če je `result_type` nastavljen na `single`.
series_amountneobvezno
Vrstainteger | null
2 – 9
Število slik v seriji od 2 do 9; velja samo, če je `result_type` nastavljen na `series`.
aspect_rationeobvezno
Vrstaenum
Privzeto16:9
16:99:161:14:33:43:22:321:9
Razmerje med širino in višino ustvarjenih slik.
output_formatneobvezno
Vrstaenum
Privzetopng
jpegpngwebp
Oblika datoteke končne slike.
enable_safety_checkerneobvezno
Vrstaboolean
Privzetotrue
Preverjanje je mogoče omiliti z nastavitvijo false, če je klicatelj pooblaščen.
obvezno Kanonično ime, prav tako sprejeto

Izhod

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"
  }
}
Vaše datoteke, vaša izbiraVsak outputs[].url je kopija v naši shrambi: hrani se za vedno (plačilo na GB-mesec) ali 7 dni brezplačno, glede na nastavitev računa ali ?storage=.
Enaka struktura pri vsakem modelutype, url, content_type, width, height in duration za slike, videoposnetke in zvok. output je lasten objekt rezultata modela.
Polja izhoda
images
array of object {url, content_type, file_name, file_size, width, height}Slike, ki jih ustvari model.

Več modelov: Besedilo v sliko

Za agente AI: ta stran je v obliki Markdown na voljo na https://doitong.com/sl/developers/models/kling-image/o3/text-to-image.md. Vsi modeli in vodniki: https://doitong.com/developers/llms.txt