Peke ki ngā ihirangi

Kling Image · v3 · Image to Image

Whakauru

id tauira 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"

Tēnei tono: $ 0.028 28 whiwhinga API Whakahaerehia ki tēnei whārangi

Tikina he kī API
Kling Whakatika Atahanga Ngā tāuru tohutorotae atu ki 2K #image-to-image

Te restyle image-to-image v3 mai i tētahi atahanga tohutoro kotahi, i 1K, 2K rānei, tae atu ki te 9 putanga

Kling · Atahanga

Kei konei tō hua tuatahi

Hangaia he tono ki raro nei, ka whakahaere mā tō kī API. Ka tāruatia ngā putanga ki tō mātou rokiroki, ka puritia mō ake tonu atu, mō rānei 7 rā mō te kore utu.

Hangaia he tono

Ka hangaia ngā mana whakahaere mai i te aronuinga o te tauira. Ka whakahoungia te waehere me te utu ina whakarerekē koe.

•e hiahiatia ana 88 / 2500

Tohutohu whakaputa atahanga, me te tepenga o te 2500 pūāhua.

•e hiahiatia ana image_url
Whakataka he kōnae,

Atahanga tohutoro hei tāuru mō te whakaputanga atahanga-ki-atahanga, me te tepenga rahi kōnae o te 10.0MB. Kia 300px neke atu ngā ahu e rua, ā, me noho te ōwehenga āhua i waenga i te 0.40 me te 2.50. Ko te wā paunga he 20.0s.

resolution taunoa 1K

Taumira atahanga putanga: 1K mō te taumira paerewa, 2K mō te taumira teitei.

aspect_ratio taunoa 16:9

Te ōwehenga whānui ki te teitei mō ngā atahanga ka whakaputaina.

num_images taunoa 1

Tatau atahanga putanga, mai i te 1 ki te 9.

Arā atu output_format · enable_safety_checker · elements
output_format taunoa png

Te hōputu kōnae mō te atahanga ka puta.

Mana whakahaere kanohi kōwhiringa mā ngā huānga ka tukuna hei tautuhi i ngā kiripuaki, i ngā mea rānei me puta ki te atahanga.

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

Whakahaerehia tēnei tono

Ka noho tō kī ki tēnei pūtirotiro: ka tukuna ki te Doitong API anake, ā, ka tiakina ki te localStorage anake ina tohua e koe te Mahara. Tikina he kī API

Mō Kling Image · v3 · Image to Image

Ka whakatika, ka pohewa anō rānei i tētahi atahanga tohutoro (`image_url`) mā te whai i tētahi tohutohu kuputuhi. Me 300px neke atu i ia taha o te atahanga, ā, me noho te ōwehenga āhuatanga i waenga i te 0.40 me te 2.50, me te tepe 10MB. Ko `resolution` he 1K, 2K rānei, ko `num_images` he 1-9, ā, mā `elements` e whakarato te whakahaere kanohi. Ko ngā hōputu putanga he jpeg, png, webp rānei.

Ngā tawhā

Tukuna te ingoa tōmua, te ingoa taketake rānei, kaua e rua. Ngā ingoa tōmua

IngoaMomo TaunoaE whakaaetia ana Whakamārama
prompte hiahiatia ana
Momostring
≤ 2,500 pūāhua
Tohutohu whakaputa atahanga, me te tepenga o te 2500 pūāhua.
image_urle hiahiatia ana image
Momourl · image
Atahanga tohutoro hei tāuru mō te whakaputanga atahanga-ki-atahanga, me te tepenga rahi kōnae o te 10.0MB. Kia 300px neke atu ngā ahu e rua, ā, me noho te ōwehenga āhua i waenga i te 0.40 me te 2.50. Ko te wā paunga he 20.0s.
elementskōwhiringa
Momoobject[]
Mana whakahaere kanohi kōwhiringa mā ngā huānga ka tukuna hei tautuhi i ngā kiripuaki, i ngā mea rānei me puta ki te atahanga.
elements[].frontal_image_urlkōwhiringa
Momourl · image
Atahanga anga-mua, he kōwhiringa, hei whakaatu i te tirohanga matua o te huānga. Kaua e nui ake te kōnae i te 10.0 MB; me 300px te iti rawa o te whānui me te teitei, me te ōwehenga āhuatanga mai i te 0.40 ki te 2.50.
elements[].reference_image_urlskōwhiringa
Momourl[] · image
Huinga kōwhiringa o ngā atahanga tāpiri 0–3 e whakaatu ana i ētahi atu koki. Kaua e nui ake ia kōnae i te 10.0 MB, ā, me 300px te iti rawa o te whānui me te teitei, me te ōwehenga āhuatanga mai i te 0.40 ki te 2.50.
resolutionkōwhiringa
Momoenum
Taunoa1K
1K2K
Taumira atahanga putanga: 1K mō te taumira paerewa, 2K mō te taumira teitei.
num_imageskōwhiringa num_outputs
Momointeger
Taunoa1
1 – 9
Tatau atahanga putanga, mai i te 1 ki te 9.
aspect_ratiokōwhiringa
Momoenum
Taunoa16:9
16:99:161:14:33:43:22:321:9
Te ōwehenga whānui ki te teitei mō ngā atahanga ka whakaputaina.
output_formatkōwhiringa
Momoenum
Taunoapng
jpegpngwebp
Te hōputu kōnae mō te atahanga ka puta.
enable_safety_checkerkōwhiringa
Momoboolean
Taunoatrue
Ka taea te whakangāwari i te tātari mā te tautuhi false, mēnā he mana tō te kaiwhakatuwhera.
e hiahiatia ana Ingoa tōmua, e whakaaetia ana hoki

Mō ngā tawhā kōnae, whakamahia he URL tūmatanui https://, he URI data: tae atu ki te 10 MB, he file_url rānei o tētahi tukuake. Ngā kōnae

Putanga

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"
  }
}
Ō kōnae, māu e whiriwhiriKo ia url o outputs[] he tārua kei tō mātou rokiroki: ka puritia mō ake tonu atu (ka utua ia GB-marama) mō rānei 7 rā mō te kore utu, e ai ki ngā tautuhinga o tō pūkete, ki te ?storage= rānei.
He ōrite te hanga ki ia tauiratype, url, content_type, width, height me duration, mō ngā pikitia, ataata me te oro. Ko output te ahanoa hua ake o te tauira.
Ngā āpure o te putanga
images
array of object {url, content_type, file_name, file_size, width, height}Ngā atahanga i whakaputaina e te tauira.

Ētahi atu tauira: Whakatika Atahanga

Mō ngā āpiha AI: kei te wātea tēnei whārangi hei Markdown ki https://doitong.com/mi/developers/models/kling-image/v3/image-to-image.md. Ngā tauira me ngā aratohu katoa: https://doitong.com/developers/llms.txt