Léim chuig an ábhar

Kling O1 Image

Comhtháthú

Aitheantas na samhla kling-image/o1
# 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/o1?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",
    "images": [
      "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"

An t-iarratas seo: $0.028 28 gcreidmheas API Rith ar an leathanach seo

Faigh eochair API
Kling Eagarthóireacht Íomhá Ionchuir tagarthasuas le 2K #edit#realism#typography

Eagarthóireacht íomhá faoi threoir thagartha le suas le 10 n-íomhá, clibeanna @Image agus eilimintí, 1K nó 2K, agus suas le 9 n-aschur

Déanta ar Doitong

Saothair phoiblí déanta leis an Kling O1 Image ag pobal Doitong. Athúsáid leid le clic amháin.

Saothair phoiblí ar taispeáint: 16
**Duration: 5 seconds | Aspect ratio: 16:9 | Children's YouTube Intro | Video with Audio** Animat... Físeán

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

**Duration: 5 seconds | Aspect ratio: 16:9 | Children's YouTube Intro | Video with Audio** Animat... Físeán

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

**Duration: 5 seconds | Aspect ratio: 16:9 | Children's YouTube Intro | Video with Audio** Animat... Físeán

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

Уютная база отдыха с деревянными домиками-шале среди сосен. Майя и Клиентка заходят в теплое кафе... Físeán

Уютная база отдыха с деревянными домиками-шале среди сосен. Майя и Клиентка заходят в теплое кафе с панорамными окнами. Внутри деревянный интерьер, мягкие диваны и живые цветы. Они садятся за столик, перед ними стоят дымящиеся чашки чая. Мягкий свет ламп создает уют. Средний план, уровень глаз. (...

**Duration: 4 seconds | Aspect ratio: 16:9 | Children's YouTube Intro | Video with Audio** Animat... Físeán

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

Реалистично оживи старую семейную фотографию. Все люди сохраняют свои оригинальные лица, черты вн... Físeán

Реалистично оживи старую семейную фотографию. Все люди сохраняют свои оригинальные лица, черты внешности, возраст, причёски и одежду. Мужчины слегка поворачивают головы, естественно моргают и едва заметно улыбаются. Женщина слева спокойно смотрит в камеру и мягко моргает. Маленький ребёнок слегка...

Create a realistic 30-second vertical 9:16 video showing two construction workers installing larg... Físeán

Create a realistic 30-second vertical 9:16 video showing two construction workers installing large white patio tiles in a modern backyard. Show the entire construction process in a smooth timelapse. Gradually transform the unfinished backyard into a luxurious outdoor living space with an L-shaped...

Create a warm, emotional 8–10 second cinematic video showing the difference between a young child... Físeán

Create a warm, emotional 8–10 second cinematic video showing the difference between a young child playing alone and playing with their mother. Scene 1: A toddler sits on the floor playing with toys independently. The child is calm and focused, exploring and learning through independent play. The...

Tóg iarratas

Gintear na rialtáin ó scéim na samhla. Nuashonraítear an cód agus an praghas de réir mar a athraíonn tú iad.

•riachtanach 88 / 2500

Leid giniúna íomhá teoranta do 2500 carachtar. Déan tagairt d’íomhánna le @Image1, @Image2, agus mar sin de, nó @Image d’íomhá aonair.

•riachtanach image_urls
Scaoil comhad, nó

Liosta íomhánna tagartha, teoranta do 10 n-íomhá; luaigh iad sa leid mar @Image1, @Image2, agus mar sin de, agus an t-uimhriú ag tosú ag 1. Ní fhéadfaidh aon chomhad a bheith níos mó ná 10.0 MB, agus caithfidh an leithead agus an airde a bheith 300px ar a laghad, le cóimheas gné ó 0.40 go 2.50.

resolution réamhshocrú 1K

Taifeach íomhá aschuir: 1K don taifeach caighdeánach nó 2K don taifeach ard.

aspect_ratio réamhshocrú auto

Cóimheas gné na híomhá ginte, roghnaithe go huathoibríoch ón ábhar ionchuir nuair atá sé socraithe mar 'auto'.

num_images réamhshocrú 1

Líon íomhánna aschuir, ó 1 go 9.

Ardleibhéal output_format · enable_safety_checker · elements
output_format réamhshocrú png

Formáid comhaid na híomhá deiridh.

Carachtair nó réada a áirítear mar eilimintí, agus liúntas comhcheangailte 10 acu le híomhánna tagartha. Úsáideann tagairtí sa leid @Element1, @Element2, etc.

POST /run/kling-image/o1?wait=20 luachan → $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/o1?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",
    "images": [
      "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"

Rith an t-iarratas seo

Fanann d'eochair sa bhrabhsálaí seo: seoltar chuig Doitong API amháin í agus sábháiltear (localStorage) í ach amháin má chuireann tú tic le Meabhraigh. Faigh eochair API

Maidir le Kling O1 Image

Cuireann sé íomhánna in eagar nó athchumascann sé iad ó `prompt` suas le 2500 carachtar. Déan tagairt d'ionchuir le @Image1, @Image2 agus mar sin de, ag úsáid suas le 10 in `image_urls`; cuireann `elements` carachtair nó réada leis, le huasmhéid comhcheangailte 10. Is é `resolution` 1K nó 2K, is é `num_images` 1 go 9, agus áirítear auto, 21:9 agus 3:2 in `aspect_ratio`. Is png, jpeg nó webp an t-aschur.

Paraiméadair

Seol an t-ainm canónach nó an t-ainm dúchasach, ní an dá cheann. Ainmneacha canónacha

AinmCineál RéamhshocrúCeadaithe Cur síos
promptriachtanach
Cineálstring
≤ 2,500 gcarachtar
Leid giniúna íomhá teoranta do 2500 carachtar. Déan tagairt d’íomhánna le @Image1, @Image2, agus mar sin de, nó @Image d’íomhá aonair.
image_urlsriachtanach images
Cineálurl[] · image
Liosta íomhánna tagartha, teoranta do 10 n-íomhá; luaigh iad sa leid mar @Image1, @Image2, agus mar sin de, agus an t-uimhriú ag tosú ag 1. Ní fhéadfaidh aon chomhad a bheith níos mó ná 10.0 MB, agus caithfidh an leithead agus an airde a bheith 300px ar a laghad, le cóimheas gné ó 0.40 go 2.50.
elementsroghnach
Cineálobject[]
Carachtair nó réada a áirítear mar eilimintí, agus liúntas comhcheangailte 10 acu le híomhánna tagartha. Úsáideann tagairtí sa leid @Element1, @Element2, etc.
elements[].frontal_image_urlroghnach
Cineálurl · image
Íomhá roghnach chun tosaigh a sholáthraíonn príomhamharc na heiliminte. Ní fhéadfaidh méid an chomhaid dul thar 10.0 MB; caithfidh an leithead agus an airde a bheith 300px ar a laghad, le cóimheas gné ó 0.40 go 2.50.
elements[].reference_image_urlsroghnach
Cineálurl[] · image
Sraith roghnach de 0–3 íomhá bhreise a thaispeánann uillinneacha eile. Ní fhéadfaidh aon chomhad a bheith níos mó ná 10.0 MB, agus caithfidh an leithead agus an airde a bheith 300px ar a laghad, le cóimheas gné ó 0.40 go 2.50.
resolutionroghnach
Cineálenum
Réamhshocrú1K
1K2K
Taifeach íomhá aschuir: 1K don taifeach caighdeánach nó 2K don taifeach ard.
num_imagesroghnach num_outputs
Cineálinteger
Réamhshocrú1
1 – 9
Líon íomhánna aschuir, ó 1 go 9.
aspect_ratioroghnach
Cineálenum
Réamhshocrúauto
auto16:99:161:14:33:43:22:321:9
Cóimheas gné na híomhá ginte, roghnaithe go huathoibríoch ón ábhar ionchuir nuair atá sé socraithe mar 'auto'.
output_formatroghnach
Cineálenum
Réamhshocrúpng
jpegpngwebp
Formáid comhaid na híomhá deiridh.
enable_safety_checkerroghnach
Cineálboolean
Réamhshocrútrue
Is féidir an scagadh a mhaolú trí false a shocrú, ar choinníoll go bhfuil údarú ag an nglaoiteoir.
riachtanach Ainm canónach, glactar leis freisin

Glacann paraiméadair chomhaid le URL poiblí https://, URI data: suas le 10 MB, nó file_url uaslódála. Comhaid

Aschur

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "kling-image/o1",
  "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_urls": [
      "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"
  }
}
Do chuid comhad, do roghaIs cóip ar ár stóráil é gach outputs[].url: coinnithe go deo (íoctha in aghaidh GB-mhí) nó ar feadh 7 lá saor in aisce, de réir shocrú do chuntais nó ?storage=.
An cruth céanna ar gach samhailtype, url, content_type, width, height agus duration, d'íomhánna, d'fhíseáin agus d'fhuaim araon. Is é output réad toraidh na samhla féin.
Réimsí aschuir
images
array of object {url, content_type, file_name, file_size, width, height}Íomhánna a tháirgeann an tsamhail.

Do ghníomhairí AI: tá an leathanach seo mar Markdown ag https://doitong.com/ga/developers/models/kling-image/o1.md. Gach samhail agus treoir: https://doitong.com/developers/llms.txt