Dža ko lil

Kling Image · v3 · Image to Image

Integriruj

Modelosko id 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://vit.doitong.com/api/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://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Kava mangipen: $0.028 28 API krediti Phir les kate

Lel API klidin
Kling Editime e kipesko Referencaki inputuradži 2K #image-to-image

v3 image-to-image restyling jekhe reference-patrinestar, 1K vaj 2K-eha, dži 9 output-enca

Kling · Kip

Tiro prvo rezultato si kate

Ker tele jekh mangipen thaj phir les tire API klidinosa. E rezultatur si kopirime amare arakhipneste, vično vaj 7 dives bilačhes.

Ker jekh mangipen

O kontrolura kerde si katar e schemaske. O kodo thaj e cena menjinen sar tu len menjines.

•trubul 88 / 2500

Kipenge-keripasko prompto, limitosar 2500 karakterura.

•trubul image_url
Čhiv jekh fajl, vaj

Referencakro kipo sar inputo e kipo-tar-kipo keripasko, fajlongo baripen limitosar 10.0MB. Duj dimensiona musaj te aven najman 300px, thaj e aspektosko ratio te avel maškar 0.40 thaj 2.50. E timeout si 20.0s.

resolution standardno 1K

Rezolucija e rezultatoske kipeski: 1K vaś standardno vaj 2K vaś učo rezolucija.

aspect_ratio standardno 16:9

Kerade kipenge phiravipen e largura thaj e učiestar.

num_images standardno 1

Rezultatoske kipesko ginadi, 1 tar 9 dži.

Lučhe output_format · enable_safety_checker · elements
output_format standardno png

Fajlo-formato e rezultato kipoqo.

Opcionalno muj-controla bi elementonge saven sikaven so karakterura vaj objektoja te dikhen andre kipo.

POST /run/kling-image/v3/image-to-image?wait=20 hesab → $0.028
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/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://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Phandel kava mangipen

Tiro kluč ačhel kadale browsereste: bičhalel pes numa ko Doitong API thaj šuvav pes (localStorage) numa te tiknes Remember. Le jekh API ključ

Palal Kling Image · v3 · Image to Image

Editirinel vaj neve kerel jekh referencako kipo (`image_url`) tekstoska promptosa. O kipo trubul te avel najman 300px pe sako rig thaj ratioça maškar 0.40 thaj 2.50, 10MB limitosa. `resolution` si 1K vaj 2K, `num_images` si 1-9, thaj `elements` den muj-control. Rezultatoske formatura si jpeg, png vaj webp.

Parametra

Bičhalav vaj e kanonikano nav vaj e native nav, na duj. Kanonikane nava

NavTip standardnoMuklo Vakeripe
prompttrubul
Tipstring
≤ 2,500 simbolura
Kipenge-keripasko prompto, limitosar 2500 karakterura.
image_urltrubul image
Tipurl · image
Referencakro kipo sar inputo e kipo-tar-kipo keripasko, fajlongo baripen limitosar 10.0MB. Duj dimensiona musaj te aven najman 300px, thaj e aspektosko ratio te avel maškar 0.40 thaj 2.50. E timeout si 20.0s.
elementsopcionalno
Tipobject[]
Opcionalno muj-controla bi elementonge saven sikaven so karakterura vaj objektoja te dikhen andre kipo.
elements[].frontal_image_urlopcionalno
Tipurl · image
Optionalno front-facing kipo savo del e elementoski main view. Fajloski size na tromal te nakhel 10.0 MB; width thaj height sako jekh najman 300px, aspect ratio tar 0.40 dži 2.50.
elements[].reference_image_urlsopcionalno
Tipurl[] · image
Optionalno set 0–3 additional kipesko save sikaven aver angles. Sako fajlo na tromal te avel bareder 10.0 MB, width thaj height najman 300px, aspect ratio tar 0.40 dži 2.50.
resolutionopcionalno
Tipenum
standardno1K
1K2K
Rezolucija e rezultatoske kipeski: 1K vaś standardno vaj 2K vaś učo rezolucija.
num_imagesopcionalno num_outputs
Tipinteger
standardno1
1 – 9
Rezultatoske kipesko ginadi, 1 tar 9 dži.
aspect_ratioopcionalno
Tipenum
standardno16:9
16:99:161:14:33:43:22:321:9
Kerade kipenge phiravipen e largura thaj e učiestar.
output_formatopcionalno
Tipenum
standardnopng
jpegpngwebp
Fajlo-formato e rezultato kipoqo.
enable_safety_checkeropcionalno
Tipboolean
standardnotrue
Screening šaj te avel relaksirime te postavil pes false, numa kana o manglo si autorizuime.
trubul Kanonikano nav, vi akceptime

Fajloske parametra lel jekh publikano https:// URL, jekh data: URI dži 10 MB, vaj e file_url uploadoski. Fajlura

Rezultato

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://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Tire fajlura, tiro alosaripenSako outputs[].url si kopija amare arakhipneste: vično (čargeime per GB-mase) vaj 7 dives bilačhes, tiro kontoskere regulaciatar vaj ?storage=.
Sa jekh forma sako modeloθartype, url, content_type, width, height thaj duration, varesave imajinake, video thaj audio-ke. output si o modelosko korkoro resultosko objekto.
Outputoske fieldura
images
array of object {url, content_type, file_name, file_size, width, height}Kipora kerde modelostar.

Bute modeli: Editime e kipesko

AI agentenge: kadija rig sar Markdown si kate https://doitong.com/rom/developers/models/kling-image/v3/image-to-image.md. Sa e modelura thaj e gidura: https://doitong.com/developers/llms.txt