Copy a video
Hoạt độngSend 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
Đầu vào
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 characters
- Character 1 · A man with dark hair, thick eyebrows, and a sweaty, intense face, seen driving a car at night.
Cách hoạt động
- 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.
Gọi Copy a video từ mã của bạn
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/ detectionsLấy khóa API
Tạo khóa trong bảng điều khiển. Khóa dùng chung số dư với phần dùng thử.
Tạo khóaGửi yêu cầu đầu tiên
Chính yêu cầu mà phần dùng thử gửi. Đặt OPENNAN_KEY là khóa của bạn.
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"Kiểm tra tác vụ
Lệnh gọi trả về ngay một id tác vụ. Hỏi tác vụ đó cho đến khi xong:
GEThttps:// api.opennan.com/ v1/ tasks/ {id} - queued
- Đang chờ máy xử lý
- running
- Đang tạo
- succeeded
- Xong: outputs[].url chứa các tệp
- failed
- Thất bại: không tính phí
Lỗi và cách khắc phục
401Thiếu khóa hoặc sai khóa
Gửi header Authorization: Bearer với một khóa từ bảng điều khiển.
402Số dư không đủ
Nạp tiền trong mục Thanh toán, rồi gửi lại đúng lệnh gọi đó.
400Có giá trị không được chấp nhận
Đọc error.message: nó nêu tên trường. Dùng một giá trị trong bảng tham số.
429Quá nhiều yêu cầu
Chờ vài giây rồi thử lại, chờ lâu hơn sau mỗi lần gặp 429.
Thêm Opennan vào ứng dụng AI của bạn
Cài một lần, AI của bạn dùng được mọi công cụ của Opennan: video, hình ảnh, chat, giọng nói, âm nhạc, hiệu ứng âm thanh, 3D, phụ đề và lồng tiếng. Chọn ứng dụng và làm theo các bước.
https:/ / api.opennan.com/ v1/ mcpDùng được trong Codex CLI, ứng dụng Codex và tiện ích Codex cho IDE: chúng dùng chung ~/.codex/config.toml. Nếu ứng dụng hoặc IDE không thấy OPENNAN_KEY, hãy dùng cách config.toml có sẵn khóa. Codex hỏi trước mỗi lần gọi công cụ: chấp thuận để tiếp tục.
Lấy khóa API
Tạo khóa trong bảng điều khiển. Khóa bắt đầu bằng sk- và dùng chung số dư với trang web.
Tạo khóaLưu khóa thành 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-..."Cài plugin Opennan: gồm máy chủ và một skill dạy AI chọn mô hình, xác nhận giá và chờ kết quả
codex plugin marketplace add Opennan/opennan-ai-plugin codex plugin add opennan@opennanHoặc chỉ thêm máy chủ
codex mcp add opennan --url https://api.opennan.com/v1/mcp --bearer-token-env-var OPENNAN_KEYHoặc thêm phần này vào ~/.codex/config.toml
[mcp_servers.opennan] url = "https://api.opennan.com/v1/mcp" http_headers = { Authorization = "Bearer sk-..." }Kiểm tra opennan có trong danh sách
codex mcp listKhởi động lại Codex, rồi yêu cầu bất cứ thứ gì
“Làm video 5 giây cảnh mưa trên con phố đèn neon, một bài hát đi kèm và một ảnh poster.”
Thay sk-... bằng khóa của bạn và giữ bí mật: ai có khóa đều tiêu được số dư của bạn. Ứng dụng có thể liệt kê công cụ khi chưa có khóa; muốn tạo gì thì cần khóa.
Dùng từ tác tử AI
Thêm máy chủ MCP của Opennan vào tác tử và gọi công cụ này.
- Công cụ
- detect_copy_video_shots
- Tham số mẫu
{ "video_url": "https://cdn.opennan.com/examples/copy-video-detect/night-race-input-c33d9d94.mp4" }
Copy a video: câu hỏi
Copy a video giá bao nhiêu?
$1.223 per minute. The Run button shows the exact price for your input before you start.
Gọi từ mã của tôi như thế nào?
Gửi POST https://api.opennan.com/v1/copy-video/detections kèm khóa API của bạn. Phản hồi là một id tác vụ: hỏi https://api.opennan.com/v1/tasks/{id} cho đến khi tác vụ thành công hoặc thất bại.
Tác tử AI của tôi có dùng được không?
Có. Thêm máy chủ MCP https://api.opennan.com/v1/mcp và gọi công cụ detect_copy_video_shots, hoặc chỉ tác tử đến https://api.opennan.com/llms.txt.
Nếu một lần chạy thất bại thì sao?
Lần chạy thất bại không bị tính phí. Bạn chỉ trả cho kết quả.
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.