Naar inhoud springen

Kling Image · O3 · Text to Image

Integreren

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

Deze request: $ 0,028 28 API-tegoed Op deze pagina uitvoeren

API-sleutel ophalen
Kling Tekst naar afbeelding 4K-uitvoerReferentie-inputstot 4K #text-to-image

O3 text-to-image in 1K, 2K of 4K, met elementgebaseerde gezichtscontrole en serie-output

Gemaakt op Doitong

Openbare werken gemaakt met Kling Image door de Doitong-community. Gebruik een prompt opnieuw met één klik.

Getoonde openbare werken: 16
**Duration: 5 seconds | Aspect ratio: 16:9 | Children's YouTube Intro | Video with Audio** Animat... Video

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

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

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

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

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

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

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

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

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

Create a realistic 30-second vertical 9:16 video showing two construction workers installing larg... Video

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

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

Een aanvraag samenstellen

Besturingselementen worden gegenereerd op basis van het modelschema. De code en de prijs worden bijgewerkt terwijl je ze wijzigt.

•verplicht 88 / 2500

Prompt voor afbeeldingsgeneratie met een limiet van 2500 tekens.

resolution standaard 1K

Resolutie van de uitvoerafbeelding: 1K voor standaard-, 2K voor hoge of 4K voor ultrahoge resolutie.

aspect_ratio standaard 16:9

Breedte-hoogteverhouding voor gegenereerde afbeeldingen.

num_images standaard 1

Aantal uitvoerafbeeldingen, van 1 tot 9; alleen van toepassing als `result_type` `single` is.

Geavanceerd result_type · output_format · series_amount · enable_safety_checker · elements
result_type standaard single

Uitvoertype: `single` produceert één afbeelding, terwijl `series` meerdere gerelateerde afbeeldingen produceert.

output_format standaard png

Bestandsindeling van de resulterende afbeelding.

Aantal afbeeldingen in de serie, van 2 tot 9; alleen van toepassing als `result_type` `series` is.

Optionele elementen voor gezichtscontrole die personages of objecten voorstellen en in de prompt worden aangeduid met @Element1, @Element2 enzovoort.

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

Deze request uitvoeren

Je sleutel blijft in deze browser: hij wordt alleen naar de Doitong API verzonden en alleen in localStorage opgeslagen als je Onthouden aanvinkt. API-sleutel ophalen

Over Kling Image · O3 · Text to Image

Maakt afbeeldingen uit een prompt van maximaal 2500 tekens. `resolution` is 1K, 2K of 4K en `aspect_ratio` ondersteunt 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3 en 21:9. Genereer 1-9 afbeeldingen of een serie van 2-9 gerelateerde afbeeldingen met `result_type`. `elements` bieden gezichtscontrole voor personages en objecten.

Parameters

Stuur de canonieke naam of de oorspronkelijke naam, niet beide. Canonieke namen

NaamType StandaardToegestaan Beschrijving
promptverplicht
Typestring
≤ 2.500 tekens
Prompt voor afbeeldingsgeneratie met een limiet van 2500 tekens.
elementsoptioneel
Typeobject[]
Optionele elementen voor gezichtscontrole die personages of objecten voorstellen en in de prompt worden aangeduid met @Element1, @Element2 enzovoort.
elements[].frontal_image_urloptioneel
Typeurl · image
Optionele frontale afbeelding die het hoofdbeeld van het element levert. De bestandsgrootte mag niet groter zijn dan 10.0 MB; de breedte en hoogte moeten elk minimaal 300px zijn, met een beeldverhouding van 0.40 tot 2.50.
elements[].reference_image_urlsoptioneel
Typeurl[] · image
Optionele set van 0–3 aanvullende afbeeldingen met andere hoeken. Elk bestand mag niet groter zijn dan 10.0 MB, met een breedte en hoogte van elk minimaal 300px en een beeldverhouding van 0.40 tot 2.50.
resolutionoptioneel
Typeenum
Standaard1K
1K2K4K
Resolutie van de uitvoerafbeelding: 1K voor standaard-, 2K voor hoge of 4K voor ultrahoge resolutie.
result_typeoptioneel
Typeenum
Standaardsingle
singleseries
Uitvoertype: `single` produceert één afbeelding, terwijl `series` meerdere gerelateerde afbeeldingen produceert.
num_imagesoptioneel num_outputs
Typeinteger
Standaard1
1 – 9
Aantal uitvoerafbeeldingen, van 1 tot 9; alleen van toepassing als `result_type` `single` is.
series_amountoptioneel
Typeinteger | null
2 – 9
Aantal afbeeldingen in de serie, van 2 tot 9; alleen van toepassing als `result_type` `series` is.
aspect_ratiooptioneel
Typeenum
Standaard16:9
16:99:161:14:33:43:22:321:9
Breedte-hoogteverhouding voor gegenereerde afbeeldingen.
output_formatoptioneel
Typeenum
Standaardpng
jpegpngwebp
Bestandsindeling van de resulterende afbeelding.
enable_safety_checkeroptioneel
Typeboolean
Standaardtrue
Screening kan worden versoepeld door false in te stellen, mits de aanroeper is geautoriseerd.
verplicht Canonieke naam, ook geaccepteerd

Uitvoer

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"
  }
}
Jouw bestanden, jouw keuzeElke outputs[].url is een kopie in onze opslag: voor altijd bewaard (betaald per GB-maand) of 7 dagen gratis, volgens je accountinstelling of ?storage=.
Dezelfde structuur voor elk modeltype, url, content_type, width, height en duration, voor afbeeldingen, video en audio. output is het eigen resultaatobject van het model.
Velden van de uitvoer
images
array of object {url, content_type, file_name, file_size, width, height}Afbeeldingen die door het model zijn geproduceerd.

Meer modellen: Tekst naar afbeelding

Voor AI-agents: deze pagina als Markdown staat op https://doitong.com/nl/developers/models/kling-image/o3/text-to-image.md. Alle modellen en handleidingen: https://doitong.com/developers/llms.txt