Vai al contenuto

Kling Image · v3 · Text to Image

Integra

ID del modello 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"

Questa richiesta: 0,028 $ 28 crediti API Esegui in questa pagina

Ottieni la chiave API
Kling Da testo a immagine Input di riferimentofino a 2K #text-to-image

Text-to-image v3 con prompt negativo e controllo del volto tramite elementi a 1K o 2K

Creato su Doitong

Lavori pubblici creati con Kling Image dalla community di Doitong. Riutilizza un prompt con un clic.

Lavori pubblici mostrati: 16
Ultra-realistic cinematic video of a young adult woman walking naturally toward the camera while ... Video

Ultra-realistic cinematic video of a young adult woman walking naturally toward the camera while speaking, with realistic facial expressions and synchronized lip movements, as if she is promoting something to the viewer. She maintains eye contact with the camera, smiles slightly, and uses subtle...

Slow, subtle push-in on the woman's face. The light from the laptop flickers softly across her ey... Video

Slow, subtle push-in on the woman's face. The light from the laptop flickers softly across her eyes and cheeks, as if the blurry image on the screen is changing. Her eyes move slightly as she studies the screen, and she takes one slow, tense breath. Behind her, shadows of the snowstorm move...

The enormous ancient dragon descends slowly toward the snowy cliff and lands at the cave mouth. I... Video

The enormous ancient dragon descends slowly toward the snowy cliff and lands at the cave mouth. Its huge dark leathery wings beat twice with slow, heavy strokes, sending snow swirling off the cliff in big clouds. Then it folds its wings and settles on the rock, the giant elk still held in its...

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

Authentic 1990s wide-angle film footage. The left man slowly pulls one wooden block from the Jeng... Video

Authentic 1990s wide-angle film footage. The left man slowly pulls one wooden block from the Jenga tower. As the block comes out, the tower naturally loses balance and realistically collapses onto the table. Frustrated, he angrily sweeps all the fallen wooden blocks off the table with both hands....

Thermal-camera view of a snowy mountain cliff at night in false-color, deep blue and violet cold ... Video

Thermal-camera view of a snowy mountain cliff at night in false-color, deep blue and violet cold rock, a huge orange-white heat shape hidden inside a rock crevice, two small bright amber spots glowing like eyes, faint noise grain. Cinematic videorealistic, ultra detailed, 16:9, volumetric light,...

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

Crea una richiesta

I controlli vengono generati dallo schema del modello. Il codice e il prezzo si aggiornano mentre li modifichi.

•obbligatorio 88 / 2500

Prompt di generazione dell'immagine con un limite di 2500 caratteri.

resolution predefinito 1K

Risoluzione dell'immagine di output: 1K per la risoluzione standard o 2K per l'alta risoluzione.

aspect_ratio predefinito 16:9

Rapporto tra larghezza e altezza delle immagini generate.

num_images predefinito 1

Numero di immagini di output, da 1 a 9.

Avanzate negative_prompt · output_format · enable_safety_checker · elements
0 / 2500

Specifica i contenuti indesiderati con questo negative prompt; si consiglia di indicare le esclusioni come frasi negative nei prompt positivi.

output_format predefinito png

Formato del file dell'immagine risultante.

Raccolta facoltativa per il controllo facciale, con un'immagine frontale e immagini di riferimento facoltative disponibili per ogni elemento. Gli elementi descrivono personaggi o oggetti da inserire nell'immagine.

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

Esegui questa richiesta

La tua chiave rimane in questo browser: viene inviata solo al Doitong API e salvata in localStorage solo se selezioni Ricorda. Ottieni una chiave API

Informazioni su Kling Image · v3 · Text to Image

Genera da 1 a 9 immagini da un prompt di massimo 2500 caratteri, facoltativamente allontanandosi dai contenuti indesiderati tramite `negative_prompt`. `resolution` è 1K o 2K e `aspect_ratio` offre otto proporzioni, inclusa 21:9. `elements` contiene un'immagine frontale e riferimenti opzionali per mantenere volti coerenti. L'output è jpeg, png o webp.

Parametri

Invia il nome canonico oppure il nome nativo, non entrambi. Nomi canonici

NomeTipo PredefinitoConsentiti Descrizione
promptobbligatorio
Tipostring
≤ 2500 caratteri
Prompt di generazione dell'immagine con un limite di 2500 caratteri.
negative_promptfacoltativo
Tipostring | null
≤ 2500 caratteri
Specifica i contenuti indesiderati con questo negative prompt; si consiglia di indicare le esclusioni come frasi negative nei prompt positivi.
elementsfacoltativo
Tipoobject[]
Raccolta facoltativa per il controllo facciale, con un'immagine frontale e immagini di riferimento facoltative disponibili per ogni elemento. Gli elementi descrivono personaggi o oggetti da inserire nell'immagine.
elements[].frontal_image_urlfacoltativo
Tipourl · image
Immagine frontale facoltativa che fornisce la vista principale dell'elemento. La dimensione del file non può superare 10.0 MB; larghezza e altezza devono essere entrambe di almeno 300px, con proporzioni comprese tra 0.40 e 2.50.
elements[].reference_image_urlsfacoltativo
Tipourl[] · image
Set facoltativo di 0–3 immagini aggiuntive che mostrano altre angolazioni. Ogni file deve avere dimensioni non superiori a 10.0 MB, larghezza e altezza di almeno 300px e proporzioni comprese tra 0.40 e 2.50.
resolutionfacoltativo
Tipoenum
Predefinito1K
1K2K
Risoluzione dell'immagine di output: 1K per la risoluzione standard o 2K per l'alta risoluzione.
num_imagesfacoltativo num_outputs
Tipointeger
Predefinito1
1 – 9
Numero di immagini di output, da 1 a 9.
aspect_ratiofacoltativo
Tipoenum
Predefinito16:9
16:99:161:14:33:43:22:321:9
Rapporto tra larghezza e altezza delle immagini generate.
output_formatfacoltativo
Tipoenum
Predefinitopng
jpegpngwebp
Formato del file dell'immagine risultante.
enable_safety_checkerfacoltativo
Tipoboolean
Predefinitotrue
Il controllo può essere allentato impostando false, se il chiamante è autorizzato.
obbligatorio Nome canonico, accettato anche

Output

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"
  }
}
I tuoi file, la tua sceltaOgni outputs[].url è una copia nella nostra archiviazione: conservata per sempre (a pagamento per GB-mese) oppure 7 giorni gratuitamente, in base all'impostazione dell'account o a ?storage=.
Stessa struttura per ogni modellotype, url, content_type, width, height e duration, per immagini, video e audio. output è l'oggetto risultato del modello.
Campi dell'output
images
array of object {url, content_type, file_name, file_size, width, height}Immagini prodotte dal modello.

Altri modelli: Da testo a immagine

Per gli agenti AI: questa pagina in Markdown è disponibile all'indirizzo https://doitong.com/it/developers/models/kling-image/v3/text-to-image.md. Tutti i modelli e le guide: https://doitong.com/developers/llms.txt