openrouter-video
Installation
SKILL.md
OpenRouter Video
Generate videos via OpenRouter's async POST /api/v1/videos using curl + jq. Requires OPENROUTER_API_KEY (get one at https://openrouter.ai/keys). If unset, stop and ask.
The three steps
Video generation is async: submit → poll → download. A single request can't return the video because generation takes 30s–a few minutes. Tell the user the job was submitted so they know the delay is expected.
POST /api/v1/videos→{ id, polling_url, status: "pending" }GET <polling_url>every ~30s untilstatusiscompleted(terminal failures:failed,cancelled,expired— surface theerrorfield verbatim)GET /api/v1/videos/{id}/content?index=0with the auth header → MP4 bytes
Pick parameters from the models endpoint, don't guess
resolution, aspect_ratio, duration, and frame_images[].frame_type are per-model. Before the first submit for a new model (or whenever the user asks for something specific), fetch the model's capabilities and only send values from the returned sets: