Naar inhoud springen

Kling Image · v3 · Text to Image

Integreren

Model-ID kling-image/v3/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/v3/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 Referentie-inputstot 2K #text-to-image

v3 tekst-naar-afbeelding met een negatieve prompt en gezichtscontrole voor elementen op 1K of 2K

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

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

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

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

Моя первая глобальная цель — 10.000 подписчиков. Я хочу расти вместе с вами, делать сериалы ещё к... Video

Моя первая глобальная цель — 10.000 подписчиков. Я хочу расти вместе с вами, делать сериалы ещё круче, масштабнее и в итоге превратить это в полноценный проект, чтобы в дальнейшем монетизировать свой блог. Путь к первой десятке объявляю открытым. Идём со мной? Мне нужно такое видео в трёх кадрах...

Оживи старую чёрно-белую свадебную фотографию. Молодожёны стоят рядом друг с другом. Жених нежно ... Video

Оживи старую чёрно-белую свадебную фотографию. Молодожёны стоят рядом друг с другом. Жених нежно и с любовью смотрит на невесту, слегка улыбается и бережно касается её руки. Невеста мягко улыбается, немного поворачивает голову к жениху и смотрит на него с теплотой. Их движения естественные,...

The woman in the reference photo smiles naturally at the camera. Golden magical sparks begin swir... Video

The woman in the reference photo smiles naturally at the camera. Golden magical sparks begin swirling around her body. Her eyes briefly glow with warm golden light. A beautiful black witch hat appears on her head, and her clothes magically transform into an elegant black-and-gold witch costume...

Кролик открывает дверь девушке, девушка дает чаевые кролику и говорит « спасибо, мой ушастый друг... Video

Кролик открывает дверь девушке, девушка дает чаевые кролику и говорит « спасибо, мой ушастый друг», он закрывает за ней дверь и говорит «Пожалуйста, красотка» после того как она села в машину за руль, кролик немного отходит, девушка в дрифте уезжает, все в одной сцене. Съемка кинематографичная....

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 standaardresolutie of 2K voor hoge resolutie.

aspect_ratio standaard 16:9

Breedte-hoogteverhouding voor gegenereerde afbeeldingen.

num_images standaard 1

Aantal uitvoerafbeeldingen, van 1 tot 9.

Geavanceerd negative_prompt · output_format · enable_safety_checker · elements
0 / 2500

Geef ongewenste inhoud op met deze negatieve prompt; de aanbevolen aanvulling is om uitsluitingen als negatieve zinnen in de positieve prompts te vermelden.

output_format standaard png

Bestandsindeling van de resulterende afbeelding.

Optionele verzameling voor gezichtscontrole, met per item een frontale afbeelding en optionele referentieafbeeldingen. Items beschrijven personages of objecten die in de afbeelding moeten verschijnen.

POST /run/kling-image/v3/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/v3/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 · v3 · Text to Image

Genereert 1-9 afbeeldingen op basis van een prompt van maximaal 2500 tekens, optioneel weg van ongewenste inhoud gestuurd met `negative_prompt`. `resolution` is 1K of 2K en `aspect_ratio` biedt acht verhoudingen, waaronder 21:9. `elements` bevatten een frontale afbeelding en optionele referenties voor consistente gezichten. De uitvoer is jpeg, png of webp.

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.
negative_promptoptioneel
Typestring | null
≤ 2.500 tekens
Geef ongewenste inhoud op met deze negatieve prompt; de aanbevolen aanvulling is om uitsluitingen als negatieve zinnen in de positieve prompts te vermelden.
elementsoptioneel
Typeobject[]
Optionele verzameling voor gezichtscontrole, met per item een frontale afbeelding en optionele referentieafbeeldingen. Items beschrijven personages of objecten die in de afbeelding moeten verschijnen.
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
1K2K
Resolutie van de uitvoerafbeelding: 1K voor standaardresolutie of 2K voor hoge resolutie.
num_imagesoptioneel num_outputs
Typeinteger
Standaard1
1 – 9
Aantal uitvoerafbeeldingen, van 1 tot 9.
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/v3/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/v3/text-to-image.md. Alle modellen en handleidingen: https://doitong.com/developers/llms.txt