Kuaishoukling-4.0-flash
Kuaishou Kling 4.0 Flash: the quicker Kling 4.0, 3 to 20 second clips at 720p from a prompt, a first frame, or hasta 10 reference images and 5 reference videos, with a soundtrack of its own
$0.07536/ segundo-20%$0.0942precio oficialSin cargo por generaciones fallidas
- 3–20 second clips
- 720p
- Hasta 10 images, 5 videos
- Soundtrack on by default
- Modalidad
- Vídeo
- Endpoint
- /v1/videos/generations
- ID del modelo
- kling-4.0-flash
- Proveedor
- Kuaishou
Kling 4.0 Flash resumen de la API
Endpoint documentado
Las solicitudes de vídeo van a /v1/videos/generations. La tabla de parámetros de abajo recoge los campos que documenta esta interfaz.
Proveedor del modelo
Kling 4.0 Flash lo publica Kuaishou y se invoca en la API con el ID de modelo kling-4.0-flash.
Salida y límites
3–20 seconds; 720p only; one output per request; text: 21:9, 16:9, 1:1 or 9:16, and references may also use adaptive; a first frame sets the shape (adaptive), and no last frame is taken; an edit (omni_reference_task_type edit) changes reference_videos[0] and keeps its length, the other references steering it; hasta 10 images and 5 videos, 15 en total, and no reference audio; reference videos 3–20 segundos cada uno and 20 en total, 700–4553 pixels a side at 24–60 fps; reference images at least 300 pixels a side with a width to height ratio from 0.4 to 2.5; with a reference video, the billed seconds are twice the output, or the reference videos and the output together when the reference videos run longer; prompt obligatorio, hasta 26,000 English or 11,000 other characters; name references as @image1 or @video1; a soundtrack is generated unless generate_audio is false
Kling 4.0 Flash precios de la API
Kling 4.0 Flash se factura un 20% por debajo del precio de lista oficial en cada concepto siguiente.
| Concepto | Tarifa de ArgoLink | Precio oficial | Ahorras |
|---|---|---|---|
| 720p | $0.07536 / segundo | -20% | |
| 720p con entrada de vídeo | $0.0502 / segundo | -20% |
3–20 seconds; 720p only; one output per request; text: 21:9, 16:9, 1:1 or 9:16, and references may also use adaptive; a first frame sets the shape (adaptive), and no last frame is taken; an edit (omni_reference_task_type edit) changes reference_videos[0] and keeps its length, the other references steering it; hasta 10 images and 5 videos, 15 en total, and no reference audio; reference videos 3–20 segundos cada uno and 20 en total, 700–4553 pixels a side at 24–60 fps; reference images at least 300 pixels a side with a width to height ratio from 0.4 to 2.5; with a reference video, the billed seconds are twice the output, or the reference videos and the output together when the reference videos run longer; prompt obligatorio, hasta 26,000 English or 11,000 other characters; name references as @image1 or @video1; a soundtrack is generated unless generate_audio is false
Kling 4.0 Flash Referencia de la API
Inicio rápido
Crea una clave de API en la consola y usa la URL base, el endpoint y el cuerpo de la solicitud que se muestran en esta página.
curl https://argolink.io/v1/videos/generations \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling-4.0-flash",
"prompt": "A slow aerial shot over a foggy pine forest at sunrise"
}'
curl https://argolink.io/v1/videos/$REQUEST_ID \
-H "Authorization: Bearer $ARGOLINK_API_KEY"
curl -L https://argolink.io/v1/videos/$REQUEST_ID/content \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-o output.mp4
import os
import time
import requests
headers = {"Authorization": f"Bearer {os.environ['ARGOLINK_API_KEY']}"}
job = requests.post(
"https://argolink.io/v1/videos/generations",
headers=headers,
json={"model": "kling-4.0-flash", "prompt": "A slow aerial shot over a foggy pine forest at sunrise"},
timeout=600,
)
job.raise_for_status()
request_id = job.json()["request_id"]
while True:
status = requests.get(f"https://argolink.io/v1/videos/{request_id}", headers=headers, timeout=60).json()
if status["status"] in ("done", "failed", "expired"):
break
time.sleep(5)
if status["status"] == "done":
video = requests.get(f"https://argolink.io/v1/videos/{request_id}/content", headers=headers, timeout=600)
open("output.mp4", "wb").write(video.content)
Modos
Texto a vídeo
Solo un prompt
La llamada más corta posible: solo el campo prompt es obligatorio, y con los campos que omitas se generan y facturan 5 segundos en 720p 16:9.
curl https://argolink.io/v1/videos/generations \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling-4.0-flash",
"prompt": "Un plano aéreo lento sobre un pinar envuelto en niebla al amanecer",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9"
}'
| Campo | Valor |
|---|---|
prompt | obligatorio, hasta 26,000 characters; describe the camera move, the subject and the mood |
duration | 3–20 segundos enteros, por defecto 5 |
resolution | 720p |
aspect_ratio | 21:9 · 16:9 · 1:1 · 9:16, por defecto 16:9 |
size | píxeles en lugar de resolution más aspect_ratio, así que 1280x720 es 720p 16:9 |
Cada solicitud genera un vídeo; seed y watermark no se admiten, y el resultado lleva una pista de audio generada salvo que generate_audio sea false.
Referencia
Sigue las imágenes, el vídeo o el audio que aportes
El resultado sigue al sujeto, el movimiento o el ritmo de los recursos que envías. Cita uno desde el prompt con @Image 1, @Video 1 o @Audio 1; los recursos que no cites también se usan.
curl https://argolink.io/v1/videos/generations \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling-4.0-flash",
"prompt": "Haz que @Image 1 entre caminando en una calle lluviosa de noche",
"duration": 5,
"resolution": "720p",
"reference_images": [{"url": "https://example.com/subject.png"}]
}'
curl https://argolink.io/v1/videos/generations \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling-4.0-flash",
"prompt": "La chica de @Image 1 baila al ritmo de @Audio 1 y se mueve como la bailarina de @Video 1",
"duration": 10,
"resolution": "720p",
"reference_images": [{"url": "https://example.com/girl.png"}],
"reference_videos": [{"url": "https://example.com/dance.mp4"}],
"reference_audios": [{"url": "https://example.com/beat.mp3"}]
}'
| Campo | Valor |
|---|---|
prompt | obligatorio; cita un recurso como @Image 1, @Video 1 o @Audio 1 |
reference_images | hasta 10 imágenes HTTPS, JPEG o PNG |
reference_videos | hasta 5 clips, cada uno de 3–20 seconds and 20 segundos en total |
reference_audios | no se admite en esta ruta |
duration | 3–20 segundos enteros, por defecto 5 |
resolution | 720p |
aspect_ratio | 21:9 · 16:9 · 1:1 · 9:16 · adaptive, por defecto 16:9 |
Las imágenes y el vídeo se combinan libremente, hasta 15 assets in total. Reference videos are billed at the output rate; las imágenes de referencia son gratis.
Primer y último fotograma
Fija el inicio y, si quieres, el final
start_image por sí solo es un primer fotograma; añade end_image y el modelo rellena el tramo intermedio entre ambos.
curl https://argolink.io/v1/videos/generations \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling-4.0-flash",
"prompt": "La cámara avanza despacio mientras las hojas cruzan el encuadre",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "adaptive",
"start_image": {"url": "https://example.com/first-frame.png"}
}'
curl https://argolink.io/v1/videos/generations \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling-4.0-flash",
"prompt": "El día se convierte en noche sobre la misma silueta urbana mientras se encienden las luces",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "adaptive",
"start_image": {"url": "https://example.com/day.png"},
"end_image": {"url": "https://example.com/night.png"}
}'
| Campo | Valor |
|---|---|
prompt | obligatorio; describe cómo se mueve el plano |
start_image | una imagen HTTPS, que fija el encuadre del resultado |
end_image | opcional; una imagen HTTPS con la que termina el vídeo |
duration | 3–20 segundos enteros, por defecto 5 |
resolution | 720p |
aspect_ratio | solo adaptive; sigue al primer fotograma |
Ninguno de los dos campos se puede combinar con recursos de referencia. El resultado adopta la proporción más cercana a la del primer fotograma.
Editar un vídeo
Reescribe metraje que ya tienes
El único modo que parte de un vídeo: el resultado conserva la duración y la proporción de ese vídeo, y eliges el nivel con resolution.
curl https://argolink.io/v1/videos/generations \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling-4.0-flash",
"omni_reference_task_type": "edit",
"prompt": "Haz los colores más cálidos y deja todo lo demás igual",
"resolution": "720p",
"reference_videos": [{"url": "https://example.com/street.mp4"}]
}'
| Campo | Valor |
|---|---|
omni_reference_task_type | edit |
reference_videos | el primer clip es el vídeo que se edita, 3–20 segundos de duración |
reference_images | hasta 10 images and 4 more videos steer the edit |
prompt | obligatorio, hasta 26,000 characters; say what to change |
resolution | 720p |
duration · aspect_ratio | se toman del vídeo editado, así que omite ambos |
El vídeo editado se factura como salida y como vídeo de referencia: editar un vídeo de 5 segundos factura 10 segundos. start_image y end_image no se pueden enviar aquí.
Cómo subir y usar recursos de referencia
Tu propio enlace, o un archivo local subido antes
The url of start_image, end_image and every entry of reference_images and reference_videos is an HTTPS address. Un enlace que ya tengas alojado se usa tal cual, siempre que se pueda descargar sin iniciar sesión y todas las redirecciones se mantengan en HTTPS. Un archivo local se sube primero, y el media_url que recibes va en la solicitud.
FILE=dance.mp4
TICKET=$(curl -fsS https://argolink.io/v1/media/uploads \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d "{\"model\":\"kling-4.0-flash\",\"type\":\"video\",\"content_type\":\"video/mp4\",\"size_bytes\":$(wc -c < "$FILE" | tr -d ' ')}")
curl -fsS -X PUT "$(jq -r .upload_url <<<"$TICKET")" \
-H "Content-Type: video/mp4" --data-binary @"$FILE"
# Put this media_url in reference_videos[].url
jq -r .media_url <<<"$TICKET"
Pedir un ticket es gratis y no crea ninguna tarea: upload_url es válido durante 15 minutos y el PUT debe llevar el Content-Type que declaraste; el media_url que obtienes a cambio se puede leer durante siete días.
| Campo | Formato | Tamaño | Duración |
|---|---|---|---|
reference_images · start_image · end_image | JPEG o PNG | ≤ 20 MiB | — |
reference_videos | MP4 o MOV | ≤ 100 MiB | 3–20 segundos cada uno |
reference_videos[0] (el vídeo que se edita) | MP4 o MOV | ≤ 100 MiB | 3–20 seconds |
Un recurso fuera de estos rangos hace fallar la tarea con invalid_input antes de que empiece la generación, y no se cobra nada.
Cómo citar tus recursos en el prompt
Cita un recurso desde el prompt
Nombra cada referencia con @, su tipo y su número. El número es su posición en reference_images, reference_videos o reference_audios, y cada lista empieza en 1.
| En el prompt | Se refiere a |
|---|---|
@Imagen 1 | 1.er elemento de reference_images |
@Video 1 | 1.er elemento de reference_videos |
{
"model": "kling-4.0-flash",
"prompt": "La chica de @Imagen 1 baila al ritmo de @Audio 1 y se mueve como la bailarina de @Video 1",
"reference_images": [
{
"url": "https://example.com/girl.png"
}
],
"reference_videos": [
{
"url": "https://example.com/dance.mp4"
}
],
"reference_audios": [
{
"url": "https://example.com/beat.mp3"
}
]
}
Es la forma que escribe el área de trabajo de la consola cuando eliges una referencia tras @. También se reconocen imagen 1 sin @, <imagen 1>, @Image 1 y las mismas palabras en otros idiomas, como @图片1. Nombrarlas es opcional: todas las referencias se usan igualmente. Con @ o < >, un número mayor que la cantidad de elementos de la lista se rechaza. Al editar un video (omni_reference_task_type edit), @Video 1 es el video que se edita y no hace falta nombrarlo; las demás referencias conservan su número.
Kling 4.0 Flash parámetros completos de la solicitud
| Parámetro | Tipo | Requisito | Qué hace |
|---|---|---|---|
model | string | obligatorio | The catalog identifier for this page: kling-4.0-flash. |
prompt | string | obligatorio | Describes the video: camera motion, subject action and mood. This model needs one in every mode, assets or not. Name a reference in the prompt as @Image 1 or @Video 2. It holds como máximo 26,000 characters. |
duration | integer | opcional | Output length in whole seconds, 3 to 20; por defecto 5. An edit keeps the length of the video it edits, so leave it out there. |
resolution | string | opcional | Output resolution. This model accepts 720p only, which is also the default. |
aspect_ratio | string | opcional | Output aspect ratio: 21:9, 16:9, 1:1 or 9:16; por defecto 16:9. A reference request may also send adaptive, which follows the references. In first-frame and first-and-last-frame modes, send adaptive only; the result follows the first frame and uses the ratio closest to its first frame. An edit keeps its video's ratio, so leave it out there too. |
size | string | opcional | Pixels instead of resolution plus aspect_ratio, written WIDTHxHEIGHT: the short side picks the tier (720 for 720p) and the shape picks the ratio, so 1280x720 es 720p 16:9. It picks a tier and a ratio, not exact pixels; a resolution or aspect_ratio sent with it must match, or the request is rejected with 400. An edit takes a resolution name only. |
start_image | object | modos de primer fotograma | HTTPS URL del primer fotograma. Por sí sola genera un vídeo de primer fotograma y, con end_image, uno de primer y último fotograma; no se puede combinar con recursos de referencia. |
end_image | object | solo primer y último fotograma | HTTPS URL del último fotograma; envíala junto con start_image. La proporción de la imagen original puede ser distinta, porque el resultado la adapta al primer fotograma. |
reference_images | array | referencia y edición | HTTPS URLs of reference images, hasta 10. Images, videos and audio together are limited to 15 per request. |
reference_videos | array | referencia y edición | HTTPS URLs of reference videos, hasta 5 clips, cada uno de 3–20 seconds and 20 segundos en total. Their seconds are billed like the output's. In an edit the first video is the one edited, 3–20 segundos de duración. |
reference_audios | array | no admitido | This model takes no reference audio: sending reference_audios is rejected with 400. |
omni_reference_task_type | string | solo edición | Set it to edit to edit the first entry of reference_videos, 3–20 segundos de duración. Left out, auto and reference all make an ordinary request. |
seconds · ratio | — | nombres compatibles | Alias de duration y aspect_ratio; envía un solo nombre por valor, nunca ambos. |
image_url · image_urls · video_urls · audio_urls · frame_images · input_references | — | nombres compatibles | Los nombres de campo de las solicitudes de fal y OpenRouter también funcionan: image_url equivale a start_image; image_urls, video_urls y audio_urls son las tres listas de referencias; los elementos de frame_images cuyo frame_type es first_frame o last_frame son start_image y end_image; los elementos de input_references de tipo image_url, video_url o audio_url son referencias. Da a cada entrada un solo nombre. |
n | integer | opcional | Debe ser 1 u omitirse; cada solicitud produce exactamente un vídeo. |
generate_audio | boolean | opcional | Defaults to true: Kling 4.0 Flash scores the video itself. Send false for a silent result. |
seed · watermark | — | no admitido | No disponible en este modelo: cualquier seed, o watermark: true, se rechaza con 400. |
request_id | string | campo de respuesta | Lo devuelve la llamada de envío y es el único identificador que aceptan los endpoints de estado y de contenido. |
progress · estimated_seconds_remaining | integer | campo de respuesta | Lo devuelve el endpoint de estado mientras status es pending: progress estima cuánto ha avanzado la tarea, de 0 a 99, y estimated_seconds_remaining cuántos segundos faltan; este último se omite hasta que haya una estimación. progress es 100 cuando status es done. |
video.url | string | campo de respuesta | Enlace de descarga del MP4 terminado cuando status es done: un enlace de ArgoLink que cualquiera puede abrir sin la clave de API, durante 30 días. |
usage | object | campo de respuesta | Se devuelve cuando status es done: output_seconds, reference_video_seconds y billed_seconds, su suma, que es lo que se factura por la tarea. |
Kling 4.0 Flash API frente a modelos similares
| Modelo | ID del modelo | Proveedor | Tarifa | Ideal para |
|---|---|---|---|---|
| Kling 4.0 Flash | kling-4.0-flash | Kuaishou | $0.07536 / segundo | Kuaishou Kling 4.0 Flash: the quicker Kling 4.0, 3 to 20 second clips at 720p from a prompt, a first frame, or hasta 10 reference images and 5 reference videos, with a soundtrack of its own |
| Seedance 2.5 | seedance-2.5 | ByteDance Seed | $0.0874 / segundo | El modelo de vídeo Seedance más capaz hasta ahora: clips de 30 segundos, hasta 50 recursos de referencia y compatibilidad nativa con referencias de personas reales, sin aprobación manual ni verificación adicional |
| Grok Imagine Video 1.5 | grok-imagine-video-1.5 | xAI | $0.032 / segundo | Generación de vídeo en 480p, 720p y 1080p facturada por segundo de salida |
| Gemini Omni 1.2 Flash | gemini-omni-1.2-flash | $0.0215 / segundo | Google Gemini Omni 1.2 Flash: 3 to 15 second clips with native sound at 720p, 1080p or 4K, from a prompt, a first and last frame, hasta 10 reference images and 3 reference videos, or as an edit of a video |
Más modelos de este proveedor
- Kling 3.0Kuaishou Kling 3.0: 3 to 15 second clips at 720p, 1080p or 4K from a prompt, a first frame, or a first and a last frame, with or without a soundtrack$0.1134 / segundo
- Kling 4.0Kuaishou Kling 4.0: 3 to 30 second clips at 720p or 1080p from a prompt, or from hasta 10 reference images and 5 reference videos, with a soundtrack of its own$0.1256 / segundo
Otros modelos de la misma modalidad
- Seedance 2.5El modelo de vídeo Seedance más capaz hasta ahora: clips de 30 segundos, hasta 50 recursos de referencia y compatibilidad nativa con referencias de personas reales, sin aprobación manual ni verificación adicional$0.0874 / segundo
- Grok Imagine Video 1.5Generación de vídeo en 480p, 720p y 1080p facturada por segundo de salida$0.032 / segundo
- Gemini Omni 1.2 FlashGoogle Gemini Omni 1.2 Flash: 3 to 15 second clips with native sound at 720p, 1080p or 4K, from a prompt, a first and last frame, hasta 10 reference images and 3 reference videos, or as an edit of a video$0.0215 / segundo
- MAGI-2Sand AI's MAGI-2: 4 to 30 second 1080p clips with native sound, from a prompt or from hasta 10 reference images, 5 reference videos and 5 audio clips$0.072 / segundo
Kling 4.0 Flash preguntas frecuentes sobre la API
¿Cómo llamo a Kling 4.0 Flash?
Create an API key in the console and POST https://argolink.io/v1/videos/generations con model establecido en kling-4.0-flash. The response carries request_id, the only job identifier: poll GET https://argolink.io/v1/videos/{request_id}, which reports progress and estimated_seconds_remaining while the job is pending, until status is done, then download the MP4 from GET https://argolink.io/v1/videos/{request_id}/content, la dirección que el estado devuelve como video.url.
¿Cuánto cuesta Kling 4.0 Flash?
Por segundo de salida, desde $0.07536 por segundo en el nivel más bajo; cada nivel de la tabla de precios tiene su propia tarifa por segundo, que se multiplica por la duración del vídeo. Todos los niveles están un 20% por debajo del precio de lista oficial por segundo ($0.0942 por segundo en el nivel más bajo). Los vídeos de referencia, y el vídeo del que parte una edición, se facturan como los cuenta el precio oficial de Kling: el doble de los segundos de salida cuando no duran más que la salida y, si duran más, su duración exacta más la salida. Así, un vídeo de 5 segundos con un vídeo de referencia de 3 segundos factura 10 segundos, y uno con un vídeo de referencia de 7.3 segundos factura 12.3 segundos. Las imágenes de referencia son gratis. Solo se factura un vídeo completado; una tarea fallida o rechazada no cuesta nada. Con entrada de vídeo (un vídeo de referencia o el vídeo del que parte una edición), cada segundo facturado se cobra a la tarifa con entrada de vídeo de la tabla de precios.
¿Qué modos de entrada admite Kling 4.0 Flash?
Todo en el mismo endpoint: reference (a prompt alone, or with images, videos and audio as references: hasta 10 reference_images, 5 reference_videos y 0 reference_audios, 15 en total, en cualquier combinación that includes an image or a video); first frame (start_image); first and last frames (start_image plus end_image on one aspect ratio); video editing (omni_reference_task_type edit, which edits the first entry of reference_videos). First-frame and first-and-last-frame videos take their aspect ratio from the first frame. Every asset is an HTTPS URL.
¿Qué no admite Kling 4.0 Flash?
Más de un vídeo por solicitud (n debe ser 1 u omitirse), cualquier seed o watermark: true; todos devuelven 400. La salida es un vídeo H.264 en MP4 con una pista de audio generada salvo que generate_audio sea false.
¿Cómo se elige la relación de aspecto de un vídeo de primer fotograma en Kling 4.0 Flash?
Leave aspect_ratio out, or send adaptive, and the first frame decides: the video takes the closest of 21:9, 16:9, 1:1, 9:16, so the frame is cropped as little as possible. The two frame modes take no fixed ratio; naming one is rejected. With first and last frames, the source images may have different ratios; the result adapts the last frame to the first.
¿Los vídeos de Kling 4.0 Flash tienen sonido?
Por defecto, sí: Kling 4.0 Flash scores the video itself. Send generate_audio: false for a silent result.