Ir al contenido

Kling Image · v3 · Text to Image

Integrar

Id del modelo 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"

Esta solicitud: 0,028 $ 28 créditos de API Ejecutar en esta página

Obtener clave de API
Kling Texto a imagen Entradas de referenciahasta 2K #text-to-image

Texto a imagen v3 con prompt negativo y control facial mediante elementos en 1K o 2K

Creado en Doitong

Trabajos públicos creados con Kling Image por la comunidad de Doitong. Reutiliza un prompt con un clic.

Trabajos públicos mostrados: 16
Ultra-realistic cinematic video of a young adult woman walking naturally toward the camera while ... Vídeo

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... Vídeo

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... Vídeo

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... Vídeo

**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... Vídeo

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 ... Vídeo

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... Vídeo

**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... Vídeo

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

Crear una solicitud

Los controles se generan a partir del esquema del modelo. El código y el precio se actualizan al modificarlos.

•obligatorio 88 / 2500

Prompt de generación de imágenes con un límite de 2500 caracteres.

resolution predeterminado 1K

Resolución de la imagen de salida: 1K para resolución estándar o 2K para alta resolución.

aspect_ratio predeterminado 16:9

Proporción entre el ancho y la altura de las imágenes generadas.

num_images predeterminado 1

Número de imágenes de salida, de 1 a 9.

Avanzado negative_prompt · output_format · enable_safety_checker · elements
0 / 2500

Especifica el contenido no deseado con este prompt negativo; se recomienda indicar las exclusiones como frases negativas dentro de los prompts positivos.

output_format predeterminado png

Formato de archivo de la imagen resultante.

Colección opcional para el control facial, con una imagen frontal e imágenes de referencia opcionales disponibles para cada entrada. Las entradas describen los personajes u objetos que deben aparecer en la imagen.

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

Ejecutar esta solicitud

Tu clave permanece en este navegador: solo se envía a la Doitong API y se guarda (localStorage) únicamente si marcas Recordar. Obtener una clave de API

Acerca de Kling Image · v3 · Text to Image

Genera de 1 a 9 imágenes a partir de un prompt de hasta 2500 caracteres, opcionalmente evitando contenido no deseado mediante `negative_prompt`. `resolution` puede ser 1K o 2K y `aspect_ratio` ofrece ocho relaciones, incluida 21:9. `elements` contiene una imagen frontal y referencias opcionales para mantener rostros coherentes. La salida es jpeg, png o webp.

Parámetros

Envía el nombre canónico o el nombre nativo, no ambos. Nombres canónicos

NombreTipo PredeterminadoPermitido Descripción
promptobligatorio
Tipostring
≤ 2500 caracteres
Prompt de generación de imágenes con un límite de 2500 caracteres.
negative_promptopcional
Tipostring | null
≤ 2500 caracteres
Especifica el contenido no deseado con este prompt negativo; se recomienda indicar las exclusiones como frases negativas dentro de los prompts positivos.
elementsopcional
Tipoobject[]
Colección opcional para el control facial, con una imagen frontal e imágenes de referencia opcionales disponibles para cada entrada. Las entradas describen los personajes u objetos que deben aparecer en la imagen.
elements[].frontal_image_urlopcional
Tipourl · image
Imagen opcional de vista frontal que proporciona la vista principal del elemento. El archivo no puede superar 10.0 MB; el ancho y el alto deben ser de al menos 300px, con una relación de aspecto de 0.40 a 2.50.
elements[].reference_image_urlsopcional
Tipourl[] · image
Conjunto opcional de 0–3 imágenes adicionales que muestran otros ángulos. Cada archivo debe pesar como máximo 10.0 MB, con un ancho y un alto de al menos 300px y una relación de aspecto de 0.40 a 2.50.
resolutionopcional
Tipoenum
Predeterminado1K
1K2K
Resolución de la imagen de salida: 1K para resolución estándar o 2K para alta resolución.
num_imagesopcional num_outputs
Tipointeger
Predeterminado1
1 – 9
Número de imágenes de salida, de 1 a 9.
aspect_ratioopcional
Tipoenum
Predeterminado16:9
16:99:161:14:33:43:22:321:9
Proporción entre el ancho y la altura de las imágenes generadas.
output_formatopcional
Tipoenum
Predeterminadopng
jpegpngwebp
Formato de archivo de la imagen resultante.
enable_safety_checkeropcional
Tipoboolean
Predeterminadotrue
La moderación puede relajarse estableciendo false, siempre que el autor de la llamada esté autorizado.
obligatorio Nombre canónico, también aceptado

Salida

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"
  }
}
Tus archivos, tú eligesCada outputs[].url es una copia en nuestro almacenamiento: conservada para siempre (se cobra por GB-mes) o 7 días gratis, según la configuración de tu cuenta o ?storage=.
La misma estructura en todos los modelostype, url, content_type, width, height y duration, tanto para imágenes como para vídeo y audio. output es el objeto de resultado propio del modelo.
Campos de salida
images
array of object {url, content_type, file_name, file_size, width, height}Imágenes producidas por el modelo.

Más modelos: Texto a imagen

Para agentes de IA: esta página en Markdown está en https://doitong.com/es/developers/models/kling-image/v3/text-to-image.md. Todos los modelos y guías: https://doitong.com/developers/llms.txt