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

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

A five-second orbital camera move circling completely around a red-haired woman in a yellow rainc... Video

A five-second orbital camera move circling completely around a red-haired woman in a yellow raincoat standing in an autumn forest holding a vintage lantern, she remains stationary facing forward while the camera circles 180 degrees from her left side to her right side at eye level, golden fallen...

A five-second whip pan transition starting on a chef in white uniform chopping fresh herbs on a w... Video

A five-second whip pan transition starting on a chef in white uniform chopping fresh herbs on a wooden cutting board in a bright kitchen, camera suddenly swings in a rapid blur motion panning right at high speed creating motion blur, ending sharply focused on a barista pouring latte art in a...

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