Preskoči na vsebino

Kling Image · v3 · Image to Image

Integracija

ID modela kling-image/v3/image-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/image-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",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# 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 Urejanje slik Referenčni vnosido 2K #image-to-image

V3 za preoblikovanje slike v sliko iz ene referenčne slike pri 1K ali 2K z do 9 rezultati

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.

•obvezno image_url
Spustite datoteko ali

Referenčna slika, uporabljena kot vhod pri generiranju slike iz slike, z omejitvijo velikosti datoteke 10.0MB. Obe dimenziji morata biti dolgi najmanj 300px, razmerje stranic pa mora biti med 0.40 in 2.50. Časovna omejitev je 20.0s.

resolution privzeto 1K

Ločljivost izhodne slike: 1K za standardno ali 2K za 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.

Napredno output_format · enable_safety_checker · elements
output_format privzeto png

Oblika datoteke končne slike.

Izbirni nadzor obraza prek posredovanih elementov, ki določajo, kateri liki ali predmeti naj se pojavijo na sliki.

POST /run/kling-image/v3/image-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/v3/image-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",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# 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 · v3 · Image to Image

Uredi ali na novo zamisli eno referenčno sliko (`image_url`) v skladu z besedilnim pozivom. Slika mora imeti najmanj 300px na stran in razmerje med 0.40 in 2.50, omejitev pa je 10MB. `resolution` je 1K ali 2K, `num_images` od 1-9, `elements` pa omogočajo nadzor obraza. Izhodni formati so jpeg, png ali webp.

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.
image_urlobvezno image
Vrstaurl · image
Referenčna slika, uporabljena kot vhod pri generiranju slike iz slike, z omejitvijo velikosti datoteke 10.0MB. Obe dimenziji morata biti dolgi najmanj 300px, razmerje stranic pa mora biti med 0.40 in 2.50. Časovna omejitev je 20.0s.
elementsneobvezno
Vrstaobject[]
Izbirni nadzor obraza prek posredovanih elementov, ki določajo, kateri liki ali predmeti naj se pojavijo na sliki.
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
1K2K
Ločljivost izhodne slike: 1K za standardno ali 2K za visoko ločljivost.
num_imagesneobvezno num_outputs
Vrstainteger
Privzeto1
1 – 9
Število izhodnih slik, od 1 do 9.
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

Parametri datotek sprejmejo javni https:// URL, podatkovni URI data: do 10 MB ali file_url naložene datoteke. Datoteke

Izhod

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "kling-image/v3/image-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",
    "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "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: Urejanje slik

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