Opennan

Copy a video

Ao vivo

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

$1.223 per minuteFailed runs are not charged.

Copy a video

Entrada

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

Saída

Exemplo
Resultado de exemploMade with these inputs

4 shots

Length 0:08.00 · No watermark

  1. Shot 11

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

  2. Shot 22

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

  3. Shot 33

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

  4. Shot 44

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

Como funciona

  1. 01Send the videoAn https link, trimmed to the part you need.
  2. 02We break it downEvery cut found, every shot described and checked.
  3. 03Get the breakdownShots, frames and characters, ready to recreate.

Chame Copy a video pelo seu código

One endpoint and one key, on the same balance as the playground. The request below is the example's own.

POSThttps://api.opennan.com/v1/copy-video/detections
  1. Pegue uma chave de API

    Crie uma chave no console. Ela usa o mesmo saldo do playground.

    Criar uma chave
  2. Envie sua primeira requisição

    A mesma requisição que o playground envia. Defina OPENNAN_KEY com sua chave.

    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"
  3. Consulte a tarefa

    A chamada responde na hora com um id de tarefa. Consulte a tarefa até ela terminar:

    GEThttps://api.opennan.com/v1/tasks/{id}
    queued
    Esperando um worker
    running
    Em produção
    succeeded
    Pronto: outputs[].url traz os arquivos
    failed
    Falhou: nada é cobrado

Erros e como resolver

  • 401Chave ausente ou errada

    Envie o cabeçalho Authorization: Bearer com uma chave do console.

  • 402Saldo insuficiente

    Adicione crédito em Faturamento e envie a mesma chamada de novo.

  • 400Um valor não é aceito

    Leia error.message: ele indica o campo. Use um valor da tabela de parâmetros.

  • 429Requisições demais

    Aguarde alguns segundos e tente de novo, esperando mais após cada 429.

Adicione a Opennan ao seu app de IA

Uma instalação dá à sua IA todas as ferramentas da Opennan: vídeo, imagens, chat, voz, música, efeitos sonoros, 3D, legendas e dublagem. Escolha seu app e siga os passos.

Servidor MCPhttps://api.opennan.com/v1/mcp

Funciona no Codex CLI, no app do Codex e na extensão do Codex para IDE: todos usam ~/.codex/config.toml. Se o app ou a IDE não enxergar OPENNAN_KEY, use a opção config.toml com sua chave. O Codex pede aprovação antes de cada ferramenta: aprove para seguir.

  1. Pegue uma chave de API

    Crie uma chave no console. Ela começa com sk- e usa o mesmo saldo do site.

    Criar uma chave
  2. Salve sua chave 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-..."
  3. Instale o plugin da Opennan: o servidor e uma skill que ensina sua IA a escolher modelos, confirmar preços e esperar os resultados

    codex plugin marketplace add Opennan/opennan-ai-plugin
    codex plugin add opennan@opennan
  4. Ou adicione só o servidor

    codex mcp add opennan --url https://api.opennan.com/v1/mcp --bearer-token-env-var OPENNAN_KEY
  5. Ou adicione isto a ~/.codex/config.toml

    [mcp_servers.opennan]
    url = "https://api.opennan.com/v1/mcp"
    http_headers = { Authorization = "Bearer sk-..." }
  6. Confira se opennan aparece na lista

    codex mcp list
  7. Reinicie o Codex e peça o que quiser

    “Faça um vídeo de 5 segundos de chuva numa rua de neon, uma música para acompanhar e uma imagem de pôster.”

Troque sk-... pela sua chave e mantenha-a em segredo: quem tiver a chave pode gastar seu saldo. Seu app lista as ferramentas sem chave; para criar algo, você precisa de uma.

Use a partir de um agente de IA

Adicione o servidor MCP da Opennan ao seu agente e chame esta ferramenta.

Ferramenta
detect_copy_video_shots
Argumentos de exemplo
{
  "video_url": "https://cdn.opennan.com/examples/copy-video-detect/night-race-input-c33d9d94.mp4"
}

Copy a video: perguntas

Quanto custa Copy a video?

$1.223 per minute. The Run button shows the exact price for your input before you start.

Como chamo pelo meu código?

Envie POST https://api.opennan.com/v1/copy-video/detections com sua chave de API. A resposta é um id de tarefa: consulte https://api.opennan.com/v1/tasks/{id} até a tarefa concluir ou falhar.

Meu agente de IA pode usar?

Sim. Adicione o servidor MCP https://api.opennan.com/v1/mcp e chame a ferramenta detect_copy_video_shots, ou aponte seu agente para https://api.opennan.com/llms.txt.

O que acontece se uma execução falhar?

Uma execução com falha não é cobrada. Você paga só pelos 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.

Usamos apenas os cookies de que o site precisa, como seu idioma e um código de indicação. Sem anúncios. Contamos as visitas com uma análise sem cookies. Veja nossa Política de Cookies para mais detalhes.