Copy a video
DisponibleSend a video link. Get its shots with start and end times, the action, the camera move, the dialogue and an opening frame for each, plus the characters in it. Paid per started minute of video.
Copy a video
Entrada
video_urlA public https link to the video.- night-race-input-c33d9d94.mp4Reading the length…
$1.223 per started minute.
These tools need an API key with the api:opennan scope: paste one under Use API key to run them.
4 shots
Length 0:08.00 · No watermark
10:00.00 – 0:01.96
A black classic muscle car and a grey modern sports car sit side-by-side at a red traffic light on a wet, neon-lit city street at night, both stationary with brake lights glowing.
Camera: static low-angle rear shot
20:01.96 – 0:06.42
A dark-haired male driver stares forward with intense, focused eyes reflected in the rain-streaked rearview mirror, his sweaty face framed by blurred neon bokeh behind the wet windshield.
Camera: static extreme close-up, rearview mirror
30:06.42 – 0:07.62
A leather-gloved hand grips a spherical gear shifter and pushes it forward through a gear change, the wrist rotating slightly as the shift completes inside the dark cabin.
Camera: static close-up, gear shifter
40:07.62 – 0:08.00
A leather-gloved hand holds the gear shifter steady in its shifted position inside the dark car interior, the red-trimmed jacket sleeve visible and the cabin otherwise still.
Camera: static close-up, gear shifter
1 character
- Character 1 · A man with dark hair, thick eyebrows, and a sweaty, intense face, seen driving a car at night.
Cómo funciona
- 01Send the videoAn https link, trimmed to the part you need.
- 02We break it downEvery cut found, every shot described and checked.
- 03Get the breakdownShots, frames and characters, ready to recreate.
Llama a Copy a video desde tu código
One endpoint and one key, on the same balance as the playground. The request below is the example's own.
https:/ / api.opennan.com/ v1/ copy-video/ detectionsConsigue una clave de API
Crea una clave en la consola. Usa el mismo saldo que el playground.
Crear una claveEnvía tu primera solicitud
La misma solicitud que envía el playground. Pon tu clave en OPENNAN_KEY.
curl https://api.opennan.com/v1/copy-video/detections \ -H "Authorization: Bearer $OPENNAN_KEY" \ -H "Content-Type: application/json" \ -d '{"video_url":"https://cdn.opennan.com/examples/copy-video-detect/night-race-input-c33d9d94.mp4"}' # Then poll until "status" is "succeeded" or "failed": curl https://api.opennan.com/v1/tasks/<task id> -H "Authorization: Bearer $OPENNAN_KEY"Consulta la tarea
La llamada responde al instante con un id de tarea. Consulta la tarea hasta que termine:
GEThttps:// api.opennan.com/ v1/ tasks/ {id} - queued
- Esperando un worker
- running
- En proceso
- succeeded
- Listo: outputs[].url contiene los archivos
- failed
- Falló: no se cobra
Errores y cómo resolverlos
401Falta la clave o es incorrecta
Envía la cabecera Authorization: Bearer con una clave de la consola.
402Saldo insuficiente
Añade saldo en Facturación y vuelve a enviar la misma llamada.
400Un valor no se acepta
Lee error.message: indica el campo. Usa un valor de la tabla de parámetros.
429Demasiadas solicitudes
Espera unos segundos y vuelve a intentarlo, esperando más tras cada 429.
Añade Opennan a tu app de IA
Una sola instalación le da a tu IA todas las herramientas de Opennan: vídeo, imágenes, chat, voz, música, efectos de sonido, 3D, subtítulos y doblaje. Elige tu app y sigue los pasos.
https:/ / api.opennan.com/ v1/ mcpFunciona en Codex CLI, la app de Codex y la extensión de Codex para el IDE: comparten ~/.codex/config.toml. Si la app o el IDE no ven OPENNAN_KEY, usa la opción de config.toml con tu clave. Codex pide permiso antes de cada herramienta: apruébalo para seguir.
Consigue una clave de API
Crea una clave en la consola. Empieza por sk- y usa el mismo saldo que la web.
Crear una claveGuarda tu clave como OPENNAN_KEY
# macOS / Linux (zsh shown; bash: ~/.bashrc) echo 'export OPENNAN_KEY="sk-..."' >> ~/.zshrc source ~/.zshrc # Windows (PowerShell), then open a new terminal setx OPENNAN_KEY "sk-..."Instala el plugin de Opennan: el servidor y una skill que enseña a tu IA a elegir modelos, confirmar precios y esperar los resultados
codex plugin marketplace add Opennan/opennan-ai-plugin codex plugin add opennan@opennanO añade solo el servidor
codex mcp add opennan --url https://api.opennan.com/v1/mcp --bearer-token-env-var OPENNAN_KEYO añade esto a ~/.codex/config.toml
[mcp_servers.opennan] url = "https://api.opennan.com/v1/mcp" http_headers = { Authorization = "Bearer sk-..." }Comprueba que opennan aparece en la lista
codex mcp listReinicia Codex y pide lo que quieras
“Haz un vídeo de 5 segundos de lluvia en una calle de neón, una canción que lo acompañe y una imagen de póster.”
Cambia sk-... por tu propia clave y mantenla en privado: quien la tenga puede gastar tu saldo. Tu app puede listar las herramientas sin clave; para crear algo necesitas una.
Úsalo desde un agente de IA
Añade el servidor MCP de Opennan a tu agente y llama a esta herramienta.
- Herramienta
- detect_copy_video_shots
- Argumentos de ejemplo
{ "video_url": "https://cdn.opennan.com/examples/copy-video-detect/night-race-input-c33d9d94.mp4" }
Copy a video: preguntas
¿Cuánto cuesta Copy a video?
$1.223 per minute. The Run button shows the exact price for your input before you start.
¿Cómo lo llamo desde mi código?
Envía POST https://api.opennan.com/v1/copy-video/detections con tu clave de API. Responde con un id de tarea: consulta https://api.opennan.com/v1/tasks/{id} hasta que la tarea termine bien o falle.
¿Puede usarlo mi agente de IA?
Sí. Añade el servidor MCP https://api.opennan.com/v1/mcp y llama a la herramienta detect_copy_video_shots, o indícale a tu agente https://api.opennan.com/llms.txt.
¿Qué pasa si una ejecución falla?
Una ejecución fallida no se cobra. Solo pagas por resultados.
Which API key do I need?
A key with the api:opennan scope. A full api key does not include it: create one with that scope in the console, then use it here under Use API key or in your code.