[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-openrouter-openrouter-video":3,"mdc--n6yitp-key":31,"related-org-openrouter-openrouter-video":2195,"related-repo-openrouter-openrouter-video":2341},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":12,"stars":21,"repoUrl":22,"updatedAt":23,"license":24,"forks":25,"topics":26,"repo":27,"sourceUrl":29,"mdContent":30},"openrouter-video","generate videos from text with OpenRouter","Generate videos from text prompts (and optional reference or frame images) using OpenRouter's asynchronous video generation API. Use when the user asks to create, generate, or make a video or animation from a description, animate an existing image, or turn a prompt into a short video clip.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},"openrouter","OpenRouter","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fopenrouter.png","OpenRouterTeam",[13,15,18],{"name":9,"slug":8,"type":14},"tag",{"name":16,"slug":17,"type":14},"Animation","animation",{"name":19,"slug":20,"type":14},"Video","video",187,"https:\u002F\u002Fgithub.com\u002FOpenRouterTeam\u002Fskills","2026-07-14T05:38:17.566676",null,26,[],{"repoUrl":22,"stars":21,"forks":25,"topics":28,"description":24},[],"https:\u002F\u002Fgithub.com\u002FOpenRouterTeam\u002Fskills\u002Ftree\u002FHEAD\u002Fskills\u002Fopenrouter-video","---\nname: openrouter-video\ndescription: Generate videos from text prompts (and optional reference or frame images) using OpenRouter's asynchronous video generation API. Use when the user asks to create, generate, or make a video or animation from a description, animate an existing image, or turn a prompt into a short video clip.\n---\n\n# OpenRouter Video\n\nGenerate videos via OpenRouter's async `POST \u002Fapi\u002Fv1\u002Fvideos` using `curl` + `jq`. Requires `OPENROUTER_API_KEY` (get one at https:\u002F\u002Fopenrouter.ai\u002Fkeys). If unset, stop and ask.\n\n## The three steps\n\nVideo 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.\n\n1. `POST \u002Fapi\u002Fv1\u002Fvideos` → `{ id, polling_url, status: \"pending\" }`\n2. `GET \u003Cpolling_url>` every ~30s until `status` is `completed` (terminal failures: `failed`, `cancelled`, `expired` — surface the `error` field verbatim)\n3. `GET \u002Fapi\u002Fv1\u002Fvideos\u002F{id}\u002Fcontent?index=0` **with the auth header** → MP4 bytes\n\n## Pick parameters from the models endpoint, don't guess\n\n`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:\n\n```bash\ncurl -sS https:\u002F\u002Fopenrouter.ai\u002Fapi\u002Fv1\u002Fvideos\u002Fmodels \\\n  | jq '.data[] | select(.id == \"MODEL_ID\")'\n```\n\nFields on each model worth knowing: `supported_resolutions`, `supported_aspect_ratios`, `supported_sizes`, `supported_durations` (often discrete like `[4,6,8]`, not a range), `supported_frame_images` (which `frame_type` values are accepted), `generate_audio` and `seed` (capability bools), `pricing_skus`, and `allowed_passthrough_parameters`. An out-of-set value returns a 400, so validate client-side.\n\n## Full workflow (drop-in)\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\nset -euo pipefail\n\nPROMPT=\"a golden retriever playing fetch on a sunny beach\"\nMODEL=\"google\u002Fveo-3.1\"\nOUTPUT=\"video-$(date +%Y%m%d-%H%M%S).mp4\"\n\n# Build payload — extend with resolution\u002Faspect_ratio\u002Fduration\u002Fetc. as needed.\npayload=$(jq -n --arg model \"$MODEL\" --arg prompt \"$PROMPT\" \\\n  '{model: $model, prompt: $prompt}')\n\nsubmit=$(curl -sS -X POST https:\u002F\u002Fopenrouter.ai\u002Fapi\u002Fv1\u002Fvideos \\\n  -H \"Authorization: Bearer $OPENROUTER_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d \"$payload\")\n\npoll_url=$(echo \"$submit\" | jq -r '.polling_url')\necho \"Submitted $(echo \"$submit\" | jq -r '.id')\" >&2\n\nwhile :; do\n  sleep 30\n  resp=$(curl -sS \"$poll_url\" -H \"Authorization: Bearer $OPENROUTER_API_KEY\")\n  # Avoid the name `status` — zsh treats it as read-only.\n  st=$(echo \"$resp\" | jq -r '.status')\n  echo \"Status: $st\" >&2\n  case \"$st\" in\n    completed) break ;;\n    failed|cancelled|expired)\n      echo \"Generation $st: $(echo \"$resp\" | jq -r '.error \u002F\u002F \"unknown\"')\" >&2\n      exit 1 ;;\n  esac\ndone\n\ncurl -sS -L \"$(echo \"$resp\" | jq -r '.unsigned_urls[0]')\" \\\n  -H \"Authorization: Bearer $OPENROUTER_API_KEY\" \\\n  --output \"$OUTPUT\"\n\necho \"$resp\" | jq --arg out \"$(realpath \"$OUTPUT\")\" \\\n  '{job_id: .id, generation_id, video_saved: $out, usage}'\n```\n\n## Parameters\n\nRequired: `model`, `prompt`. Common optional fields:\n\n- `duration` (int) — must be one of the model's `supported_durations`.\n- `resolution` (string) \u002F `aspect_ratio` (string) \u002F `size` (string, `\"WxH\"`) — `size` is interchangeable with resolution + aspect_ratio.\n- `generate_audio` (bool) — only meaningful if the model's `generate_audio` capability is true.\n- `seed` (int) — honored only if the model's `seed` capability is true.\n- `callback_url` (HTTPS) — webhook instead of polling.\n- `frame_images[]` — image-to-video; each entry is `{ type: \"image_url\", image_url: { url }, frame_type: \"first_frame\" | \"last_frame\" }`.\n- `input_references[]` — reference-to-video (style guidance); same entry shape, no `frame_type`. If both arrays are present, `frame_images` wins.\n- `provider.options.\u003Cslug>.parameters.\u003Ckey>` — provider passthrough, see below.\n\nImage `url` can be a public `https:\u002F\u002F` URL or a local-file data URL: `MIME=image\u002Fpng; B64=$(base64 \u003C file.png | tr -d '\\n'); url=\"data:${MIME};base64,${B64}\"`.\n\n## Provider passthrough\n\nProvider-specific params go under `provider.options.\u003Cslug>.parameters`. The allowed keys for a given model are listed (flat) in `allowed_passthrough_parameters` on the models endpoint — but the meaning, value range, and required combinations come from the *upstream provider's* API docs (Google Vertex, Alibaba Dashscope, Kwai, ByteDance Volc Engine, MiniMax, OpenAI, etc.). Read the upstream docs before using an unfamiliar key; casing conventions differ between providers (Google\u002FOpenAI use camelCase, most others use snake_case).\n\nExample:\n\n```json\n{\n  \"model\": \"google\u002Fveo-3.1\",\n  \"prompt\": \"a time-lapse of a flower blooming\",\n  \"provider\": {\n    \"options\": {\n      \"google-vertex\": {\n        \"parameters\": {\n          \"personGeneration\": \"allow\",\n          \"negativePrompt\": \"blurry, low quality\"\n        }\n      }\n    }\n  }\n}\n```\n\n## Webhooks (optional)\n\nPass `callback_url` (HTTPS) in the submit body. On terminal state, OpenRouter POSTs a `video.generation.{completed,failed,cancelled,expired}` event. Each delivery carries `X-OpenRouter-Idempotency-Key: \u003Cjob_id>-\u003Cstatus>`. If a signing secret is configured on the workspace, verify `X-OpenRouter-Signature: t=\u003Cts>,v1=\u003Chmac>` — HMAC-SHA256 of `\u003Cts>,\u003Craw_body>` with the secret, reject timestamps older than ~5 minutes.\n\n## References\n\n- [Video generation guide](https:\u002F\u002Fopenrouter.ai\u002Fdocs\u002Fguides\u002Foverview\u002Fmultimodal\u002Fvideo-generation)\n- [Models page (filter by video output)](https:\u002F\u002Fopenrouter.ai\u002Fmodels?output_modalities=video)\n\nVideo generation is not ZDR-eligible because the provider must temporarily retain the output for the async download step.\n",{"data":32,"body":33},{"name":4,"description":6},{"type":34,"children":35},"root",[36,44,93,100,105,203,209,242,311,400,406,1549,1555,1575,1734,1762,1768,1796,1801,2105,2111,2155,2161,2184,2189],{"type":37,"tag":38,"props":39,"children":40},"element","h1",{"id":4},[41],{"type":42,"value":43},"text","OpenRouter Video",{"type":37,"tag":45,"props":46,"children":47},"p",{},[48,50,57,59,65,67,73,75,81,83,91],{"type":42,"value":49},"Generate videos via OpenRouter's async ",{"type":37,"tag":51,"props":52,"children":54},"code",{"className":53},[],[55],{"type":42,"value":56},"POST \u002Fapi\u002Fv1\u002Fvideos",{"type":42,"value":58}," using ",{"type":37,"tag":51,"props":60,"children":62},{"className":61},[],[63],{"type":42,"value":64},"curl",{"type":42,"value":66}," + ",{"type":37,"tag":51,"props":68,"children":70},{"className":69},[],[71],{"type":42,"value":72},"jq",{"type":42,"value":74},". Requires ",{"type":37,"tag":51,"props":76,"children":78},{"className":77},[],[79],{"type":42,"value":80},"OPENROUTER_API_KEY",{"type":42,"value":82}," (get one at ",{"type":37,"tag":84,"props":85,"children":89},"a",{"href":86,"rel":87},"https:\u002F\u002Fopenrouter.ai\u002Fkeys",[88],"nofollow",[90],{"type":42,"value":86},{"type":42,"value":92},"). If unset, stop and ask.",{"type":37,"tag":94,"props":95,"children":97},"h2",{"id":96},"the-three-steps",[98],{"type":42,"value":99},"The three steps",{"type":37,"tag":45,"props":101,"children":102},{},[103],{"type":42,"value":104},"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.",{"type":37,"tag":106,"props":107,"children":108},"ol",{},[109,126,184],{"type":37,"tag":110,"props":111,"children":112},"li",{},[113,118,120],{"type":37,"tag":51,"props":114,"children":116},{"className":115},[],[117],{"type":42,"value":56},{"type":42,"value":119}," → ",{"type":37,"tag":51,"props":121,"children":123},{"className":122},[],[124],{"type":42,"value":125},"{ id, polling_url, status: \"pending\" }",{"type":37,"tag":110,"props":127,"children":128},{},[129,135,137,143,145,151,153,159,161,167,168,174,176,182],{"type":37,"tag":51,"props":130,"children":132},{"className":131},[],[133],{"type":42,"value":134},"GET \u003Cpolling_url>",{"type":42,"value":136}," every ~30s until ",{"type":37,"tag":51,"props":138,"children":140},{"className":139},[],[141],{"type":42,"value":142},"status",{"type":42,"value":144}," is ",{"type":37,"tag":51,"props":146,"children":148},{"className":147},[],[149],{"type":42,"value":150},"completed",{"type":42,"value":152}," (terminal failures: ",{"type":37,"tag":51,"props":154,"children":156},{"className":155},[],[157],{"type":42,"value":158},"failed",{"type":42,"value":160},", ",{"type":37,"tag":51,"props":162,"children":164},{"className":163},[],[165],{"type":42,"value":166},"cancelled",{"type":42,"value":160},{"type":37,"tag":51,"props":169,"children":171},{"className":170},[],[172],{"type":42,"value":173},"expired",{"type":42,"value":175}," — surface the ",{"type":37,"tag":51,"props":177,"children":179},{"className":178},[],[180],{"type":42,"value":181},"error",{"type":42,"value":183}," field verbatim)",{"type":37,"tag":110,"props":185,"children":186},{},[187,193,195,201],{"type":37,"tag":51,"props":188,"children":190},{"className":189},[],[191],{"type":42,"value":192},"GET \u002Fapi\u002Fv1\u002Fvideos\u002F{id}\u002Fcontent?index=0",{"type":42,"value":194}," ",{"type":37,"tag":196,"props":197,"children":198},"strong",{},[199],{"type":42,"value":200},"with the auth header",{"type":42,"value":202}," → MP4 bytes",{"type":37,"tag":94,"props":204,"children":206},{"id":205},"pick-parameters-from-the-models-endpoint-dont-guess",[207],{"type":42,"value":208},"Pick parameters from the models endpoint, don't guess",{"type":37,"tag":45,"props":210,"children":211},{},[212,218,219,225,226,232,234,240],{"type":37,"tag":51,"props":213,"children":215},{"className":214},[],[216],{"type":42,"value":217},"resolution",{"type":42,"value":160},{"type":37,"tag":51,"props":220,"children":222},{"className":221},[],[223],{"type":42,"value":224},"aspect_ratio",{"type":42,"value":160},{"type":37,"tag":51,"props":227,"children":229},{"className":228},[],[230],{"type":42,"value":231},"duration",{"type":42,"value":233},", and ",{"type":37,"tag":51,"props":235,"children":237},{"className":236},[],[238],{"type":42,"value":239},"frame_images[].frame_type",{"type":42,"value":241}," 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:",{"type":37,"tag":243,"props":244,"children":249},"pre",{"className":245,"code":246,"language":247,"meta":248,"style":248},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","curl -sS https:\u002F\u002Fopenrouter.ai\u002Fapi\u002Fv1\u002Fvideos\u002Fmodels \\\n  | jq '.data[] | select(.id == \"MODEL_ID\")'\n","bash","",[250],{"type":37,"tag":51,"props":251,"children":252},{"__ignoreMap":248},[253,281],{"type":37,"tag":254,"props":255,"children":258},"span",{"class":256,"line":257},"line",1,[259,264,270,275],{"type":37,"tag":254,"props":260,"children":262},{"style":261},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[263],{"type":42,"value":64},{"type":37,"tag":254,"props":265,"children":267},{"style":266},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[268],{"type":42,"value":269}," -sS",{"type":37,"tag":254,"props":271,"children":272},{"style":266},[273],{"type":42,"value":274}," https:\u002F\u002Fopenrouter.ai\u002Fapi\u002Fv1\u002Fvideos\u002Fmodels",{"type":37,"tag":254,"props":276,"children":278},{"style":277},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[279],{"type":42,"value":280}," \\\n",{"type":37,"tag":254,"props":282,"children":284},{"class":256,"line":283},2,[285,291,296,301,306],{"type":37,"tag":254,"props":286,"children":288},{"style":287},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[289],{"type":42,"value":290},"  |",{"type":37,"tag":254,"props":292,"children":293},{"style":261},[294],{"type":42,"value":295}," jq",{"type":37,"tag":254,"props":297,"children":298},{"style":287},[299],{"type":42,"value":300}," '",{"type":37,"tag":254,"props":302,"children":303},{"style":266},[304],{"type":42,"value":305},".data[] | select(.id == \"MODEL_ID\")",{"type":37,"tag":254,"props":307,"children":308},{"style":287},[309],{"type":42,"value":310},"'\n",{"type":37,"tag":45,"props":312,"children":313},{},[314,316,322,323,329,330,336,337,343,345,351,353,359,361,367,369,375,377,383,385,391,392,398],{"type":42,"value":315},"Fields on each model worth knowing: ",{"type":37,"tag":51,"props":317,"children":319},{"className":318},[],[320],{"type":42,"value":321},"supported_resolutions",{"type":42,"value":160},{"type":37,"tag":51,"props":324,"children":326},{"className":325},[],[327],{"type":42,"value":328},"supported_aspect_ratios",{"type":42,"value":160},{"type":37,"tag":51,"props":331,"children":333},{"className":332},[],[334],{"type":42,"value":335},"supported_sizes",{"type":42,"value":160},{"type":37,"tag":51,"props":338,"children":340},{"className":339},[],[341],{"type":42,"value":342},"supported_durations",{"type":42,"value":344}," (often discrete like ",{"type":37,"tag":51,"props":346,"children":348},{"className":347},[],[349],{"type":42,"value":350},"[4,6,8]",{"type":42,"value":352},", not a range), ",{"type":37,"tag":51,"props":354,"children":356},{"className":355},[],[357],{"type":42,"value":358},"supported_frame_images",{"type":42,"value":360}," (which ",{"type":37,"tag":51,"props":362,"children":364},{"className":363},[],[365],{"type":42,"value":366},"frame_type",{"type":42,"value":368}," values are accepted), ",{"type":37,"tag":51,"props":370,"children":372},{"className":371},[],[373],{"type":42,"value":374},"generate_audio",{"type":42,"value":376}," and ",{"type":37,"tag":51,"props":378,"children":380},{"className":379},[],[381],{"type":42,"value":382},"seed",{"type":42,"value":384}," (capability bools), ",{"type":37,"tag":51,"props":386,"children":388},{"className":387},[],[389],{"type":42,"value":390},"pricing_skus",{"type":42,"value":233},{"type":37,"tag":51,"props":393,"children":395},{"className":394},[],[396],{"type":42,"value":397},"allowed_passthrough_parameters",{"type":42,"value":399},". An out-of-set value returns a 400, so validate client-side.",{"type":37,"tag":94,"props":401,"children":403},{"id":402},"full-workflow-drop-in",[404],{"type":42,"value":405},"Full workflow (drop-in)",{"type":37,"tag":243,"props":407,"children":409},{"className":245,"code":408,"language":247,"meta":248,"style":248},"#!\u002Fusr\u002Fbin\u002Fenv bash\nset -euo pipefail\n\nPROMPT=\"a golden retriever playing fetch on a sunny beach\"\nMODEL=\"google\u002Fveo-3.1\"\nOUTPUT=\"video-$(date +%Y%m%d-%H%M%S).mp4\"\n\n# Build payload — extend with resolution\u002Faspect_ratio\u002Fduration\u002Fetc. as needed.\npayload=$(jq -n --arg model \"$MODEL\" --arg prompt \"$PROMPT\" \\\n  '{model: $model, prompt: $prompt}')\n\nsubmit=$(curl -sS -X POST https:\u002F\u002Fopenrouter.ai\u002Fapi\u002Fv1\u002Fvideos \\\n  -H \"Authorization: Bearer $OPENROUTER_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d \"$payload\")\n\npoll_url=$(echo \"$submit\" | jq -r '.polling_url')\necho \"Submitted $(echo \"$submit\" | jq -r '.id')\" >&2\n\nwhile :; do\n  sleep 30\n  resp=$(curl -sS \"$poll_url\" -H \"Authorization: Bearer $OPENROUTER_API_KEY\")\n  # Avoid the name `status` — zsh treats it as read-only.\n  st=$(echo \"$resp\" | jq -r '.status')\n  echo \"Status: $st\" >&2\n  case \"$st\" in\n    completed) break ;;\n    failed|cancelled|expired)\n      echo \"Generation $st: $(echo \"$resp\" | jq -r '.error \u002F\u002F \"unknown\"')\" >&2\n      exit 1 ;;\n  esac\ndone\n\ncurl -sS -L \"$(echo \"$resp\" | jq -r '.unsigned_urls[0]')\" \\\n  -H \"Authorization: Bearer $OPENROUTER_API_KEY\" \\\n  --output \"$OUTPUT\"\n\necho \"$resp\" | jq --arg out \"$(realpath \"$OUTPUT\")\" \\\n  '{job_id: .id, generation_id, video_saved: $out, usage}'\n",[410],{"type":37,"tag":51,"props":411,"children":412},{"__ignoreMap":248},[413,422,441,451,480,506,557,565,574,647,671,679,719,750,775,801,809,871,940,948,973,988,1047,1056,1115,1146,1171,1194,1224,1300,1318,1327,1336,1344,1411,1439,1461,1469,1532],{"type":37,"tag":254,"props":414,"children":415},{"class":256,"line":257},[416],{"type":37,"tag":254,"props":417,"children":419},{"style":418},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[420],{"type":42,"value":421},"#!\u002Fusr\u002Fbin\u002Fenv bash\n",{"type":37,"tag":254,"props":423,"children":424},{"class":256,"line":283},[425,431,436],{"type":37,"tag":254,"props":426,"children":428},{"style":427},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[429],{"type":42,"value":430},"set",{"type":37,"tag":254,"props":432,"children":433},{"style":266},[434],{"type":42,"value":435}," -euo",{"type":37,"tag":254,"props":437,"children":438},{"style":266},[439],{"type":42,"value":440}," pipefail\n",{"type":37,"tag":254,"props":442,"children":444},{"class":256,"line":443},3,[445],{"type":37,"tag":254,"props":446,"children":448},{"emptyLinePlaceholder":447},true,[449],{"type":42,"value":450},"\n",{"type":37,"tag":254,"props":452,"children":454},{"class":256,"line":453},4,[455,460,465,470,475],{"type":37,"tag":254,"props":456,"children":457},{"style":277},[458],{"type":42,"value":459},"PROMPT",{"type":37,"tag":254,"props":461,"children":462},{"style":287},[463],{"type":42,"value":464},"=",{"type":37,"tag":254,"props":466,"children":467},{"style":287},[468],{"type":42,"value":469},"\"",{"type":37,"tag":254,"props":471,"children":472},{"style":266},[473],{"type":42,"value":474},"a golden retriever playing fetch on a sunny beach",{"type":37,"tag":254,"props":476,"children":477},{"style":287},[478],{"type":42,"value":479},"\"\n",{"type":37,"tag":254,"props":481,"children":483},{"class":256,"line":482},5,[484,489,493,497,502],{"type":37,"tag":254,"props":485,"children":486},{"style":277},[487],{"type":42,"value":488},"MODEL",{"type":37,"tag":254,"props":490,"children":491},{"style":287},[492],{"type":42,"value":464},{"type":37,"tag":254,"props":494,"children":495},{"style":287},[496],{"type":42,"value":469},{"type":37,"tag":254,"props":498,"children":499},{"style":266},[500],{"type":42,"value":501},"google\u002Fveo-3.1",{"type":37,"tag":254,"props":503,"children":504},{"style":287},[505],{"type":42,"value":479},{"type":37,"tag":254,"props":507,"children":509},{"class":256,"line":508},6,[510,515,519,523,528,533,538,543,548,553],{"type":37,"tag":254,"props":511,"children":512},{"style":277},[513],{"type":42,"value":514},"OUTPUT",{"type":37,"tag":254,"props":516,"children":517},{"style":287},[518],{"type":42,"value":464},{"type":37,"tag":254,"props":520,"children":521},{"style":287},[522],{"type":42,"value":469},{"type":37,"tag":254,"props":524,"children":525},{"style":266},[526],{"type":42,"value":527},"video-",{"type":37,"tag":254,"props":529,"children":530},{"style":287},[531],{"type":42,"value":532},"$(",{"type":37,"tag":254,"props":534,"children":535},{"style":261},[536],{"type":42,"value":537},"date",{"type":37,"tag":254,"props":539,"children":540},{"style":266},[541],{"type":42,"value":542}," +%Y%m%d-%H%M%S",{"type":37,"tag":254,"props":544,"children":545},{"style":287},[546],{"type":42,"value":547},")",{"type":37,"tag":254,"props":549,"children":550},{"style":266},[551],{"type":42,"value":552},".mp4",{"type":37,"tag":254,"props":554,"children":555},{"style":287},[556],{"type":42,"value":479},{"type":37,"tag":254,"props":558,"children":560},{"class":256,"line":559},7,[561],{"type":37,"tag":254,"props":562,"children":563},{"emptyLinePlaceholder":447},[564],{"type":42,"value":450},{"type":37,"tag":254,"props":566,"children":568},{"class":256,"line":567},8,[569],{"type":37,"tag":254,"props":570,"children":571},{"style":418},[572],{"type":42,"value":573},"# Build payload — extend with resolution\u002Faspect_ratio\u002Fduration\u002Fetc. as needed.\n",{"type":37,"tag":254,"props":575,"children":577},{"class":256,"line":576},9,[578,583,588,592,597,602,607,612,617,621,625,630,634,639,643],{"type":37,"tag":254,"props":579,"children":580},{"style":277},[581],{"type":42,"value":582},"payload",{"type":37,"tag":254,"props":584,"children":585},{"style":287},[586],{"type":42,"value":587},"=$(",{"type":37,"tag":254,"props":589,"children":590},{"style":261},[591],{"type":42,"value":72},{"type":37,"tag":254,"props":593,"children":594},{"style":266},[595],{"type":42,"value":596}," -n",{"type":37,"tag":254,"props":598,"children":599},{"style":266},[600],{"type":42,"value":601}," --arg",{"type":37,"tag":254,"props":603,"children":604},{"style":266},[605],{"type":42,"value":606}," model",{"type":37,"tag":254,"props":608,"children":609},{"style":287},[610],{"type":42,"value":611}," \"",{"type":37,"tag":254,"props":613,"children":614},{"style":277},[615],{"type":42,"value":616},"$MODEL",{"type":37,"tag":254,"props":618,"children":619},{"style":287},[620],{"type":42,"value":469},{"type":37,"tag":254,"props":622,"children":623},{"style":266},[624],{"type":42,"value":601},{"type":37,"tag":254,"props":626,"children":627},{"style":266},[628],{"type":42,"value":629}," prompt",{"type":37,"tag":254,"props":631,"children":632},{"style":287},[633],{"type":42,"value":611},{"type":37,"tag":254,"props":635,"children":636},{"style":277},[637],{"type":42,"value":638},"$PROMPT",{"type":37,"tag":254,"props":640,"children":641},{"style":287},[642],{"type":42,"value":469},{"type":37,"tag":254,"props":644,"children":645},{"style":277},[646],{"type":42,"value":280},{"type":37,"tag":254,"props":648,"children":650},{"class":256,"line":649},10,[651,656,661,666],{"type":37,"tag":254,"props":652,"children":653},{"style":287},[654],{"type":42,"value":655},"  '",{"type":37,"tag":254,"props":657,"children":658},{"style":266},[659],{"type":42,"value":660},"{model: $model, prompt: $prompt}",{"type":37,"tag":254,"props":662,"children":663},{"style":287},[664],{"type":42,"value":665},"'",{"type":37,"tag":254,"props":667,"children":668},{"style":287},[669],{"type":42,"value":670},")\n",{"type":37,"tag":254,"props":672,"children":674},{"class":256,"line":673},11,[675],{"type":37,"tag":254,"props":676,"children":677},{"emptyLinePlaceholder":447},[678],{"type":42,"value":450},{"type":37,"tag":254,"props":680,"children":682},{"class":256,"line":681},12,[683,688,692,696,700,705,710,715],{"type":37,"tag":254,"props":684,"children":685},{"style":277},[686],{"type":42,"value":687},"submit",{"type":37,"tag":254,"props":689,"children":690},{"style":287},[691],{"type":42,"value":587},{"type":37,"tag":254,"props":693,"children":694},{"style":261},[695],{"type":42,"value":64},{"type":37,"tag":254,"props":697,"children":698},{"style":266},[699],{"type":42,"value":269},{"type":37,"tag":254,"props":701,"children":702},{"style":266},[703],{"type":42,"value":704}," -X",{"type":37,"tag":254,"props":706,"children":707},{"style":266},[708],{"type":42,"value":709}," POST",{"type":37,"tag":254,"props":711,"children":712},{"style":266},[713],{"type":42,"value":714}," https:\u002F\u002Fopenrouter.ai\u002Fapi\u002Fv1\u002Fvideos",{"type":37,"tag":254,"props":716,"children":717},{"style":277},[718],{"type":42,"value":280},{"type":37,"tag":254,"props":720,"children":722},{"class":256,"line":721},13,[723,728,732,737,742,746],{"type":37,"tag":254,"props":724,"children":725},{"style":266},[726],{"type":42,"value":727},"  -H",{"type":37,"tag":254,"props":729,"children":730},{"style":287},[731],{"type":42,"value":611},{"type":37,"tag":254,"props":733,"children":734},{"style":266},[735],{"type":42,"value":736},"Authorization: Bearer ",{"type":37,"tag":254,"props":738,"children":739},{"style":277},[740],{"type":42,"value":741},"$OPENROUTER_API_KEY",{"type":37,"tag":254,"props":743,"children":744},{"style":287},[745],{"type":42,"value":469},{"type":37,"tag":254,"props":747,"children":748},{"style":277},[749],{"type":42,"value":280},{"type":37,"tag":254,"props":751,"children":753},{"class":256,"line":752},14,[754,758,762,767,771],{"type":37,"tag":254,"props":755,"children":756},{"style":266},[757],{"type":42,"value":727},{"type":37,"tag":254,"props":759,"children":760},{"style":287},[761],{"type":42,"value":611},{"type":37,"tag":254,"props":763,"children":764},{"style":266},[765],{"type":42,"value":766},"Content-Type: application\u002Fjson",{"type":37,"tag":254,"props":768,"children":769},{"style":287},[770],{"type":42,"value":469},{"type":37,"tag":254,"props":772,"children":773},{"style":277},[774],{"type":42,"value":280},{"type":37,"tag":254,"props":776,"children":778},{"class":256,"line":777},15,[779,784,788,793,797],{"type":37,"tag":254,"props":780,"children":781},{"style":266},[782],{"type":42,"value":783},"  -d",{"type":37,"tag":254,"props":785,"children":786},{"style":287},[787],{"type":42,"value":611},{"type":37,"tag":254,"props":789,"children":790},{"style":277},[791],{"type":42,"value":792},"$payload",{"type":37,"tag":254,"props":794,"children":795},{"style":287},[796],{"type":42,"value":469},{"type":37,"tag":254,"props":798,"children":799},{"style":287},[800],{"type":42,"value":670},{"type":37,"tag":254,"props":802,"children":804},{"class":256,"line":803},16,[805],{"type":37,"tag":254,"props":806,"children":807},{"emptyLinePlaceholder":447},[808],{"type":42,"value":450},{"type":37,"tag":254,"props":810,"children":812},{"class":256,"line":811},17,[813,818,822,827,831,836,840,845,849,854,858,863,867],{"type":37,"tag":254,"props":814,"children":815},{"style":277},[816],{"type":42,"value":817},"poll_url",{"type":37,"tag":254,"props":819,"children":820},{"style":287},[821],{"type":42,"value":587},{"type":37,"tag":254,"props":823,"children":824},{"style":427},[825],{"type":42,"value":826},"echo",{"type":37,"tag":254,"props":828,"children":829},{"style":287},[830],{"type":42,"value":611},{"type":37,"tag":254,"props":832,"children":833},{"style":277},[834],{"type":42,"value":835},"$submit",{"type":37,"tag":254,"props":837,"children":838},{"style":287},[839],{"type":42,"value":469},{"type":37,"tag":254,"props":841,"children":842},{"style":287},[843],{"type":42,"value":844}," |",{"type":37,"tag":254,"props":846,"children":847},{"style":261},[848],{"type":42,"value":295},{"type":37,"tag":254,"props":850,"children":851},{"style":266},[852],{"type":42,"value":853}," -r",{"type":37,"tag":254,"props":855,"children":856},{"style":287},[857],{"type":42,"value":300},{"type":37,"tag":254,"props":859,"children":860},{"style":266},[861],{"type":42,"value":862},".polling_url",{"type":37,"tag":254,"props":864,"children":865},{"style":287},[866],{"type":42,"value":665},{"type":37,"tag":254,"props":868,"children":869},{"style":287},[870],{"type":42,"value":670},{"type":37,"tag":254,"props":872,"children":874},{"class":256,"line":873},18,[875,879,883,888,892,896,900,904,908,912,916,921,925,930,935],{"type":37,"tag":254,"props":876,"children":877},{"style":427},[878],{"type":42,"value":826},{"type":37,"tag":254,"props":880,"children":881},{"style":287},[882],{"type":42,"value":611},{"type":37,"tag":254,"props":884,"children":885},{"style":266},[886],{"type":42,"value":887},"Submitted ",{"type":37,"tag":254,"props":889,"children":890},{"style":287},[891],{"type":42,"value":532},{"type":37,"tag":254,"props":893,"children":894},{"style":427},[895],{"type":42,"value":826},{"type":37,"tag":254,"props":897,"children":898},{"style":287},[899],{"type":42,"value":611},{"type":37,"tag":254,"props":901,"children":902},{"style":277},[903],{"type":42,"value":835},{"type":37,"tag":254,"props":905,"children":906},{"style":287},[907],{"type":42,"value":469},{"type":37,"tag":254,"props":909,"children":910},{"style":287},[911],{"type":42,"value":844},{"type":37,"tag":254,"props":913,"children":914},{"style":261},[915],{"type":42,"value":295},{"type":37,"tag":254,"props":917,"children":918},{"style":266},[919],{"type":42,"value":920}," -r ",{"type":37,"tag":254,"props":922,"children":923},{"style":287},[924],{"type":42,"value":665},{"type":37,"tag":254,"props":926,"children":927},{"style":266},[928],{"type":42,"value":929},".id",{"type":37,"tag":254,"props":931,"children":932},{"style":287},[933],{"type":42,"value":934},"')\"",{"type":37,"tag":254,"props":936,"children":937},{"style":287},[938],{"type":42,"value":939}," >&2\n",{"type":37,"tag":254,"props":941,"children":943},{"class":256,"line":942},19,[944],{"type":37,"tag":254,"props":945,"children":946},{"emptyLinePlaceholder":447},[947],{"type":42,"value":450},{"type":37,"tag":254,"props":949,"children":951},{"class":256,"line":950},20,[952,958,963,968],{"type":37,"tag":254,"props":953,"children":955},{"style":954},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[956],{"type":42,"value":957},"while",{"type":37,"tag":254,"props":959,"children":960},{"style":427},[961],{"type":42,"value":962}," :",{"type":37,"tag":254,"props":964,"children":965},{"style":287},[966],{"type":42,"value":967},";",{"type":37,"tag":254,"props":969,"children":970},{"style":954},[971],{"type":42,"value":972}," do\n",{"type":37,"tag":254,"props":974,"children":976},{"class":256,"line":975},21,[977,982],{"type":37,"tag":254,"props":978,"children":979},{"style":261},[980],{"type":42,"value":981},"  sleep",{"type":37,"tag":254,"props":983,"children":985},{"style":984},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[986],{"type":42,"value":987}," 30\n",{"type":37,"tag":254,"props":989,"children":991},{"class":256,"line":990},22,[992,997,1001,1005,1009,1013,1018,1022,1027,1031,1035,1039,1043],{"type":37,"tag":254,"props":993,"children":994},{"style":277},[995],{"type":42,"value":996},"  resp",{"type":37,"tag":254,"props":998,"children":999},{"style":287},[1000],{"type":42,"value":587},{"type":37,"tag":254,"props":1002,"children":1003},{"style":261},[1004],{"type":42,"value":64},{"type":37,"tag":254,"props":1006,"children":1007},{"style":266},[1008],{"type":42,"value":269},{"type":37,"tag":254,"props":1010,"children":1011},{"style":287},[1012],{"type":42,"value":611},{"type":37,"tag":254,"props":1014,"children":1015},{"style":277},[1016],{"type":42,"value":1017},"$poll_url",{"type":37,"tag":254,"props":1019,"children":1020},{"style":287},[1021],{"type":42,"value":469},{"type":37,"tag":254,"props":1023,"children":1024},{"style":266},[1025],{"type":42,"value":1026}," -H",{"type":37,"tag":254,"props":1028,"children":1029},{"style":287},[1030],{"type":42,"value":611},{"type":37,"tag":254,"props":1032,"children":1033},{"style":266},[1034],{"type":42,"value":736},{"type":37,"tag":254,"props":1036,"children":1037},{"style":277},[1038],{"type":42,"value":741},{"type":37,"tag":254,"props":1040,"children":1041},{"style":287},[1042],{"type":42,"value":469},{"type":37,"tag":254,"props":1044,"children":1045},{"style":287},[1046],{"type":42,"value":670},{"type":37,"tag":254,"props":1048,"children":1050},{"class":256,"line":1049},23,[1051],{"type":37,"tag":254,"props":1052,"children":1053},{"style":418},[1054],{"type":42,"value":1055},"  # Avoid the name `status` — zsh treats it as read-only.\n",{"type":37,"tag":254,"props":1057,"children":1059},{"class":256,"line":1058},24,[1060,1065,1069,1073,1077,1082,1086,1090,1094,1098,1102,1107,1111],{"type":37,"tag":254,"props":1061,"children":1062},{"style":277},[1063],{"type":42,"value":1064},"  st",{"type":37,"tag":254,"props":1066,"children":1067},{"style":287},[1068],{"type":42,"value":587},{"type":37,"tag":254,"props":1070,"children":1071},{"style":427},[1072],{"type":42,"value":826},{"type":37,"tag":254,"props":1074,"children":1075},{"style":287},[1076],{"type":42,"value":611},{"type":37,"tag":254,"props":1078,"children":1079},{"style":277},[1080],{"type":42,"value":1081},"$resp",{"type":37,"tag":254,"props":1083,"children":1084},{"style":287},[1085],{"type":42,"value":469},{"type":37,"tag":254,"props":1087,"children":1088},{"style":287},[1089],{"type":42,"value":844},{"type":37,"tag":254,"props":1091,"children":1092},{"style":261},[1093],{"type":42,"value":295},{"type":37,"tag":254,"props":1095,"children":1096},{"style":266},[1097],{"type":42,"value":853},{"type":37,"tag":254,"props":1099,"children":1100},{"style":287},[1101],{"type":42,"value":300},{"type":37,"tag":254,"props":1103,"children":1104},{"style":266},[1105],{"type":42,"value":1106},".status",{"type":37,"tag":254,"props":1108,"children":1109},{"style":287},[1110],{"type":42,"value":665},{"type":37,"tag":254,"props":1112,"children":1113},{"style":287},[1114],{"type":42,"value":670},{"type":37,"tag":254,"props":1116,"children":1118},{"class":256,"line":1117},25,[1119,1124,1128,1133,1138,1142],{"type":37,"tag":254,"props":1120,"children":1121},{"style":427},[1122],{"type":42,"value":1123},"  echo",{"type":37,"tag":254,"props":1125,"children":1126},{"style":287},[1127],{"type":42,"value":611},{"type":37,"tag":254,"props":1129,"children":1130},{"style":266},[1131],{"type":42,"value":1132},"Status: ",{"type":37,"tag":254,"props":1134,"children":1135},{"style":277},[1136],{"type":42,"value":1137},"$st",{"type":37,"tag":254,"props":1139,"children":1140},{"style":287},[1141],{"type":42,"value":469},{"type":37,"tag":254,"props":1143,"children":1144},{"style":287},[1145],{"type":42,"value":939},{"type":37,"tag":254,"props":1147,"children":1148},{"class":256,"line":25},[1149,1154,1158,1162,1166],{"type":37,"tag":254,"props":1150,"children":1151},{"style":954},[1152],{"type":42,"value":1153},"  case",{"type":37,"tag":254,"props":1155,"children":1156},{"style":287},[1157],{"type":42,"value":611},{"type":37,"tag":254,"props":1159,"children":1160},{"style":277},[1161],{"type":42,"value":1137},{"type":37,"tag":254,"props":1163,"children":1164},{"style":287},[1165],{"type":42,"value":469},{"type":37,"tag":254,"props":1167,"children":1168},{"style":954},[1169],{"type":42,"value":1170}," in\n",{"type":37,"tag":254,"props":1172,"children":1174},{"class":256,"line":1173},27,[1175,1180,1184,1189],{"type":37,"tag":254,"props":1176,"children":1177},{"style":266},[1178],{"type":42,"value":1179},"    completed",{"type":37,"tag":254,"props":1181,"children":1182},{"style":287},[1183],{"type":42,"value":547},{"type":37,"tag":254,"props":1185,"children":1186},{"style":954},[1187],{"type":42,"value":1188}," break",{"type":37,"tag":254,"props":1190,"children":1191},{"style":287},[1192],{"type":42,"value":1193}," ;;\n",{"type":37,"tag":254,"props":1195,"children":1197},{"class":256,"line":1196},28,[1198,1203,1208,1212,1216,1220],{"type":37,"tag":254,"props":1199,"children":1200},{"style":266},[1201],{"type":42,"value":1202},"    failed",{"type":37,"tag":254,"props":1204,"children":1205},{"style":287},[1206],{"type":42,"value":1207},"|",{"type":37,"tag":254,"props":1209,"children":1210},{"style":266},[1211],{"type":42,"value":166},{"type":37,"tag":254,"props":1213,"children":1214},{"style":287},[1215],{"type":42,"value":1207},{"type":37,"tag":254,"props":1217,"children":1218},{"style":266},[1219],{"type":42,"value":173},{"type":37,"tag":254,"props":1221,"children":1222},{"style":287},[1223],{"type":42,"value":670},{"type":37,"tag":254,"props":1225,"children":1227},{"class":256,"line":1226},29,[1228,1233,1237,1242,1246,1251,1255,1259,1263,1267,1271,1275,1279,1283,1287,1292,1296],{"type":37,"tag":254,"props":1229,"children":1230},{"style":427},[1231],{"type":42,"value":1232},"      echo",{"type":37,"tag":254,"props":1234,"children":1235},{"style":287},[1236],{"type":42,"value":611},{"type":37,"tag":254,"props":1238,"children":1239},{"style":266},[1240],{"type":42,"value":1241},"Generation ",{"type":37,"tag":254,"props":1243,"children":1244},{"style":277},[1245],{"type":42,"value":1137},{"type":37,"tag":254,"props":1247,"children":1248},{"style":266},[1249],{"type":42,"value":1250},": ",{"type":37,"tag":254,"props":1252,"children":1253},{"style":287},[1254],{"type":42,"value":532},{"type":37,"tag":254,"props":1256,"children":1257},{"style":427},[1258],{"type":42,"value":826},{"type":37,"tag":254,"props":1260,"children":1261},{"style":287},[1262],{"type":42,"value":611},{"type":37,"tag":254,"props":1264,"children":1265},{"style":277},[1266],{"type":42,"value":1081},{"type":37,"tag":254,"props":1268,"children":1269},{"style":287},[1270],{"type":42,"value":469},{"type":37,"tag":254,"props":1272,"children":1273},{"style":287},[1274],{"type":42,"value":844},{"type":37,"tag":254,"props":1276,"children":1277},{"style":261},[1278],{"type":42,"value":295},{"type":37,"tag":254,"props":1280,"children":1281},{"style":266},[1282],{"type":42,"value":920},{"type":37,"tag":254,"props":1284,"children":1285},{"style":287},[1286],{"type":42,"value":665},{"type":37,"tag":254,"props":1288,"children":1289},{"style":266},[1290],{"type":42,"value":1291},".error \u002F\u002F \"unknown\"",{"type":37,"tag":254,"props":1293,"children":1294},{"style":287},[1295],{"type":42,"value":934},{"type":37,"tag":254,"props":1297,"children":1298},{"style":287},[1299],{"type":42,"value":939},{"type":37,"tag":254,"props":1301,"children":1303},{"class":256,"line":1302},30,[1304,1309,1314],{"type":37,"tag":254,"props":1305,"children":1306},{"style":427},[1307],{"type":42,"value":1308},"      exit",{"type":37,"tag":254,"props":1310,"children":1311},{"style":984},[1312],{"type":42,"value":1313}," 1",{"type":37,"tag":254,"props":1315,"children":1316},{"style":287},[1317],{"type":42,"value":1193},{"type":37,"tag":254,"props":1319,"children":1321},{"class":256,"line":1320},31,[1322],{"type":37,"tag":254,"props":1323,"children":1324},{"style":954},[1325],{"type":42,"value":1326},"  esac\n",{"type":37,"tag":254,"props":1328,"children":1330},{"class":256,"line":1329},32,[1331],{"type":37,"tag":254,"props":1332,"children":1333},{"style":954},[1334],{"type":42,"value":1335},"done\n",{"type":37,"tag":254,"props":1337,"children":1339},{"class":256,"line":1338},33,[1340],{"type":37,"tag":254,"props":1341,"children":1342},{"emptyLinePlaceholder":447},[1343],{"type":42,"value":450},{"type":37,"tag":254,"props":1345,"children":1347},{"class":256,"line":1346},34,[1348,1352,1356,1361,1366,1370,1374,1378,1382,1386,1390,1394,1398,1403,1407],{"type":37,"tag":254,"props":1349,"children":1350},{"style":261},[1351],{"type":42,"value":64},{"type":37,"tag":254,"props":1353,"children":1354},{"style":266},[1355],{"type":42,"value":269},{"type":37,"tag":254,"props":1357,"children":1358},{"style":266},[1359],{"type":42,"value":1360}," -L",{"type":37,"tag":254,"props":1362,"children":1363},{"style":287},[1364],{"type":42,"value":1365}," \"$(",{"type":37,"tag":254,"props":1367,"children":1368},{"style":427},[1369],{"type":42,"value":826},{"type":37,"tag":254,"props":1371,"children":1372},{"style":287},[1373],{"type":42,"value":611},{"type":37,"tag":254,"props":1375,"children":1376},{"style":277},[1377],{"type":42,"value":1081},{"type":37,"tag":254,"props":1379,"children":1380},{"style":287},[1381],{"type":42,"value":469},{"type":37,"tag":254,"props":1383,"children":1384},{"style":287},[1385],{"type":42,"value":844},{"type":37,"tag":254,"props":1387,"children":1388},{"style":261},[1389],{"type":42,"value":295},{"type":37,"tag":254,"props":1391,"children":1392},{"style":266},[1393],{"type":42,"value":920},{"type":37,"tag":254,"props":1395,"children":1396},{"style":287},[1397],{"type":42,"value":665},{"type":37,"tag":254,"props":1399,"children":1400},{"style":266},[1401],{"type":42,"value":1402},".unsigned_urls[0]",{"type":37,"tag":254,"props":1404,"children":1405},{"style":287},[1406],{"type":42,"value":934},{"type":37,"tag":254,"props":1408,"children":1409},{"style":277},[1410],{"type":42,"value":280},{"type":37,"tag":254,"props":1412,"children":1414},{"class":256,"line":1413},35,[1415,1419,1423,1427,1431,1435],{"type":37,"tag":254,"props":1416,"children":1417},{"style":266},[1418],{"type":42,"value":727},{"type":37,"tag":254,"props":1420,"children":1421},{"style":287},[1422],{"type":42,"value":611},{"type":37,"tag":254,"props":1424,"children":1425},{"style":266},[1426],{"type":42,"value":736},{"type":37,"tag":254,"props":1428,"children":1429},{"style":277},[1430],{"type":42,"value":741},{"type":37,"tag":254,"props":1432,"children":1433},{"style":287},[1434],{"type":42,"value":469},{"type":37,"tag":254,"props":1436,"children":1437},{"style":277},[1438],{"type":42,"value":280},{"type":37,"tag":254,"props":1440,"children":1442},{"class":256,"line":1441},36,[1443,1448,1452,1457],{"type":37,"tag":254,"props":1444,"children":1445},{"style":266},[1446],{"type":42,"value":1447},"  --output",{"type":37,"tag":254,"props":1449,"children":1450},{"style":287},[1451],{"type":42,"value":611},{"type":37,"tag":254,"props":1453,"children":1454},{"style":277},[1455],{"type":42,"value":1456},"$OUTPUT",{"type":37,"tag":254,"props":1458,"children":1459},{"style":287},[1460],{"type":42,"value":479},{"type":37,"tag":254,"props":1462,"children":1464},{"class":256,"line":1463},37,[1465],{"type":37,"tag":254,"props":1466,"children":1467},{"emptyLinePlaceholder":447},[1468],{"type":42,"value":450},{"type":37,"tag":254,"props":1470,"children":1472},{"class":256,"line":1471},38,[1473,1477,1481,1485,1489,1493,1497,1501,1506,1510,1515,1519,1523,1528],{"type":37,"tag":254,"props":1474,"children":1475},{"style":427},[1476],{"type":42,"value":826},{"type":37,"tag":254,"props":1478,"children":1479},{"style":287},[1480],{"type":42,"value":611},{"type":37,"tag":254,"props":1482,"children":1483},{"style":277},[1484],{"type":42,"value":1081},{"type":37,"tag":254,"props":1486,"children":1487},{"style":287},[1488],{"type":42,"value":469},{"type":37,"tag":254,"props":1490,"children":1491},{"style":287},[1492],{"type":42,"value":844},{"type":37,"tag":254,"props":1494,"children":1495},{"style":261},[1496],{"type":42,"value":295},{"type":37,"tag":254,"props":1498,"children":1499},{"style":266},[1500],{"type":42,"value":601},{"type":37,"tag":254,"props":1502,"children":1503},{"style":266},[1504],{"type":42,"value":1505}," out",{"type":37,"tag":254,"props":1507,"children":1508},{"style":287},[1509],{"type":42,"value":1365},{"type":37,"tag":254,"props":1511,"children":1512},{"style":261},[1513],{"type":42,"value":1514},"realpath",{"type":37,"tag":254,"props":1516,"children":1517},{"style":287},[1518],{"type":42,"value":611},{"type":37,"tag":254,"props":1520,"children":1521},{"style":277},[1522],{"type":42,"value":1456},{"type":37,"tag":254,"props":1524,"children":1525},{"style":287},[1526],{"type":42,"value":1527},"\")\"",{"type":37,"tag":254,"props":1529,"children":1530},{"style":277},[1531],{"type":42,"value":280},{"type":37,"tag":254,"props":1533,"children":1535},{"class":256,"line":1534},39,[1536,1540,1545],{"type":37,"tag":254,"props":1537,"children":1538},{"style":287},[1539],{"type":42,"value":655},{"type":37,"tag":254,"props":1541,"children":1542},{"style":266},[1543],{"type":42,"value":1544},"{job_id: .id, generation_id, video_saved: $out, usage}",{"type":37,"tag":254,"props":1546,"children":1547},{"style":287},[1548],{"type":42,"value":310},{"type":37,"tag":94,"props":1550,"children":1552},{"id":1551},"parameters",[1553],{"type":42,"value":1554},"Parameters",{"type":37,"tag":45,"props":1556,"children":1557},{},[1558,1560,1566,1567,1573],{"type":42,"value":1559},"Required: ",{"type":37,"tag":51,"props":1561,"children":1563},{"className":1562},[],[1564],{"type":42,"value":1565},"model",{"type":42,"value":160},{"type":37,"tag":51,"props":1568,"children":1570},{"className":1569},[],[1571],{"type":42,"value":1572},"prompt",{"type":42,"value":1574},". Common optional fields:",{"type":37,"tag":1576,"props":1577,"children":1578},"ul",{},[1579,1596,1635,1652,1668,1679,1697,1723],{"type":37,"tag":110,"props":1580,"children":1581},{},[1582,1587,1589,1594],{"type":37,"tag":51,"props":1583,"children":1585},{"className":1584},[],[1586],{"type":42,"value":231},{"type":42,"value":1588}," (int) — must be one of the model's ",{"type":37,"tag":51,"props":1590,"children":1592},{"className":1591},[],[1593],{"type":42,"value":342},{"type":42,"value":1595},".",{"type":37,"tag":110,"props":1597,"children":1598},{},[1599,1604,1606,1611,1612,1618,1620,1626,1628,1633],{"type":37,"tag":51,"props":1600,"children":1602},{"className":1601},[],[1603],{"type":42,"value":217},{"type":42,"value":1605}," (string) \u002F ",{"type":37,"tag":51,"props":1607,"children":1609},{"className":1608},[],[1610],{"type":42,"value":224},{"type":42,"value":1605},{"type":37,"tag":51,"props":1613,"children":1615},{"className":1614},[],[1616],{"type":42,"value":1617},"size",{"type":42,"value":1619}," (string, ",{"type":37,"tag":51,"props":1621,"children":1623},{"className":1622},[],[1624],{"type":42,"value":1625},"\"WxH\"",{"type":42,"value":1627},") — ",{"type":37,"tag":51,"props":1629,"children":1631},{"className":1630},[],[1632],{"type":42,"value":1617},{"type":42,"value":1634}," is interchangeable with resolution + aspect_ratio.",{"type":37,"tag":110,"props":1636,"children":1637},{},[1638,1643,1645,1650],{"type":37,"tag":51,"props":1639,"children":1641},{"className":1640},[],[1642],{"type":42,"value":374},{"type":42,"value":1644}," (bool) — only meaningful if the model's ",{"type":37,"tag":51,"props":1646,"children":1648},{"className":1647},[],[1649],{"type":42,"value":374},{"type":42,"value":1651}," capability is true.",{"type":37,"tag":110,"props":1653,"children":1654},{},[1655,1660,1662,1667],{"type":37,"tag":51,"props":1656,"children":1658},{"className":1657},[],[1659],{"type":42,"value":382},{"type":42,"value":1661}," (int) — honored only if the model's ",{"type":37,"tag":51,"props":1663,"children":1665},{"className":1664},[],[1666],{"type":42,"value":382},{"type":42,"value":1651},{"type":37,"tag":110,"props":1669,"children":1670},{},[1671,1677],{"type":37,"tag":51,"props":1672,"children":1674},{"className":1673},[],[1675],{"type":42,"value":1676},"callback_url",{"type":42,"value":1678}," (HTTPS) — webhook instead of polling.",{"type":37,"tag":110,"props":1680,"children":1681},{},[1682,1688,1690,1696],{"type":37,"tag":51,"props":1683,"children":1685},{"className":1684},[],[1686],{"type":42,"value":1687},"frame_images[]",{"type":42,"value":1689}," — image-to-video; each entry is ",{"type":37,"tag":51,"props":1691,"children":1693},{"className":1692},[],[1694],{"type":42,"value":1695},"{ type: \"image_url\", image_url: { url }, frame_type: \"first_frame\" | \"last_frame\" }",{"type":42,"value":1595},{"type":37,"tag":110,"props":1698,"children":1699},{},[1700,1706,1708,1713,1715,1721],{"type":37,"tag":51,"props":1701,"children":1703},{"className":1702},[],[1704],{"type":42,"value":1705},"input_references[]",{"type":42,"value":1707}," — reference-to-video (style guidance); same entry shape, no ",{"type":37,"tag":51,"props":1709,"children":1711},{"className":1710},[],[1712],{"type":42,"value":366},{"type":42,"value":1714},". If both arrays are present, ",{"type":37,"tag":51,"props":1716,"children":1718},{"className":1717},[],[1719],{"type":42,"value":1720},"frame_images",{"type":42,"value":1722}," wins.",{"type":37,"tag":110,"props":1724,"children":1725},{},[1726,1732],{"type":37,"tag":51,"props":1727,"children":1729},{"className":1728},[],[1730],{"type":42,"value":1731},"provider.options.\u003Cslug>.parameters.\u003Ckey>",{"type":42,"value":1733}," — provider passthrough, see below.",{"type":37,"tag":45,"props":1735,"children":1736},{},[1737,1739,1745,1747,1753,1755,1761],{"type":42,"value":1738},"Image ",{"type":37,"tag":51,"props":1740,"children":1742},{"className":1741},[],[1743],{"type":42,"value":1744},"url",{"type":42,"value":1746}," can be a public ",{"type":37,"tag":51,"props":1748,"children":1750},{"className":1749},[],[1751],{"type":42,"value":1752},"https:\u002F\u002F",{"type":42,"value":1754}," URL or a local-file data URL: ",{"type":37,"tag":51,"props":1756,"children":1758},{"className":1757},[],[1759],{"type":42,"value":1760},"MIME=image\u002Fpng; B64=$(base64 \u003C file.png | tr -d '\\n'); url=\"data:${MIME};base64,${B64}\"",{"type":42,"value":1595},{"type":37,"tag":94,"props":1763,"children":1765},{"id":1764},"provider-passthrough",[1766],{"type":42,"value":1767},"Provider passthrough",{"type":37,"tag":45,"props":1769,"children":1770},{},[1771,1773,1779,1781,1786,1788,1794],{"type":42,"value":1772},"Provider-specific params go under ",{"type":37,"tag":51,"props":1774,"children":1776},{"className":1775},[],[1777],{"type":42,"value":1778},"provider.options.\u003Cslug>.parameters",{"type":42,"value":1780},". The allowed keys for a given model are listed (flat) in ",{"type":37,"tag":51,"props":1782,"children":1784},{"className":1783},[],[1785],{"type":42,"value":397},{"type":42,"value":1787}," on the models endpoint — but the meaning, value range, and required combinations come from the ",{"type":37,"tag":1789,"props":1790,"children":1791},"em",{},[1792],{"type":42,"value":1793},"upstream provider's",{"type":42,"value":1795}," API docs (Google Vertex, Alibaba Dashscope, Kwai, ByteDance Volc Engine, MiniMax, OpenAI, etc.). Read the upstream docs before using an unfamiliar key; casing conventions differ between providers (Google\u002FOpenAI use camelCase, most others use snake_case).",{"type":37,"tag":45,"props":1797,"children":1798},{},[1799],{"type":42,"value":1800},"Example:",{"type":37,"tag":243,"props":1802,"children":1806},{"className":1803,"code":1804,"language":1805,"meta":248,"style":248},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"model\": \"google\u002Fveo-3.1\",\n  \"prompt\": \"a time-lapse of a flower blooming\",\n  \"provider\": {\n    \"options\": {\n      \"google-vertex\": {\n        \"parameters\": {\n          \"personGeneration\": \"allow\",\n          \"negativePrompt\": \"blurry, low quality\"\n        }\n      }\n    }\n  }\n}\n","json",[1807],{"type":37,"tag":51,"props":1808,"children":1809},{"__ignoreMap":248},[1810,1818,1857,1893,1918,1943,1968,1993,2032,2065,2073,2081,2089,2097],{"type":37,"tag":254,"props":1811,"children":1812},{"class":256,"line":257},[1813],{"type":37,"tag":254,"props":1814,"children":1815},{"style":287},[1816],{"type":42,"value":1817},"{\n",{"type":37,"tag":254,"props":1819,"children":1820},{"class":256,"line":283},[1821,1826,1831,1835,1840,1844,1848,1852],{"type":37,"tag":254,"props":1822,"children":1823},{"style":287},[1824],{"type":42,"value":1825},"  \"",{"type":37,"tag":254,"props":1827,"children":1829},{"style":1828},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[1830],{"type":42,"value":1565},{"type":37,"tag":254,"props":1832,"children":1833},{"style":287},[1834],{"type":42,"value":469},{"type":37,"tag":254,"props":1836,"children":1837},{"style":287},[1838],{"type":42,"value":1839},":",{"type":37,"tag":254,"props":1841,"children":1842},{"style":287},[1843],{"type":42,"value":611},{"type":37,"tag":254,"props":1845,"children":1846},{"style":266},[1847],{"type":42,"value":501},{"type":37,"tag":254,"props":1849,"children":1850},{"style":287},[1851],{"type":42,"value":469},{"type":37,"tag":254,"props":1853,"children":1854},{"style":287},[1855],{"type":42,"value":1856},",\n",{"type":37,"tag":254,"props":1858,"children":1859},{"class":256,"line":443},[1860,1864,1868,1872,1876,1880,1885,1889],{"type":37,"tag":254,"props":1861,"children":1862},{"style":287},[1863],{"type":42,"value":1825},{"type":37,"tag":254,"props":1865,"children":1866},{"style":1828},[1867],{"type":42,"value":1572},{"type":37,"tag":254,"props":1869,"children":1870},{"style":287},[1871],{"type":42,"value":469},{"type":37,"tag":254,"props":1873,"children":1874},{"style":287},[1875],{"type":42,"value":1839},{"type":37,"tag":254,"props":1877,"children":1878},{"style":287},[1879],{"type":42,"value":611},{"type":37,"tag":254,"props":1881,"children":1882},{"style":266},[1883],{"type":42,"value":1884},"a time-lapse of a flower blooming",{"type":37,"tag":254,"props":1886,"children":1887},{"style":287},[1888],{"type":42,"value":469},{"type":37,"tag":254,"props":1890,"children":1891},{"style":287},[1892],{"type":42,"value":1856},{"type":37,"tag":254,"props":1894,"children":1895},{"class":256,"line":453},[1896,1900,1905,1909,1913],{"type":37,"tag":254,"props":1897,"children":1898},{"style":287},[1899],{"type":42,"value":1825},{"type":37,"tag":254,"props":1901,"children":1902},{"style":1828},[1903],{"type":42,"value":1904},"provider",{"type":37,"tag":254,"props":1906,"children":1907},{"style":287},[1908],{"type":42,"value":469},{"type":37,"tag":254,"props":1910,"children":1911},{"style":287},[1912],{"type":42,"value":1839},{"type":37,"tag":254,"props":1914,"children":1915},{"style":287},[1916],{"type":42,"value":1917}," {\n",{"type":37,"tag":254,"props":1919,"children":1920},{"class":256,"line":482},[1921,1926,1931,1935,1939],{"type":37,"tag":254,"props":1922,"children":1923},{"style":287},[1924],{"type":42,"value":1925},"    \"",{"type":37,"tag":254,"props":1927,"children":1928},{"style":261},[1929],{"type":42,"value":1930},"options",{"type":37,"tag":254,"props":1932,"children":1933},{"style":287},[1934],{"type":42,"value":469},{"type":37,"tag":254,"props":1936,"children":1937},{"style":287},[1938],{"type":42,"value":1839},{"type":37,"tag":254,"props":1940,"children":1941},{"style":287},[1942],{"type":42,"value":1917},{"type":37,"tag":254,"props":1944,"children":1945},{"class":256,"line":508},[1946,1951,1956,1960,1964],{"type":37,"tag":254,"props":1947,"children":1948},{"style":287},[1949],{"type":42,"value":1950},"      \"",{"type":37,"tag":254,"props":1952,"children":1953},{"style":984},[1954],{"type":42,"value":1955},"google-vertex",{"type":37,"tag":254,"props":1957,"children":1958},{"style":287},[1959],{"type":42,"value":469},{"type":37,"tag":254,"props":1961,"children":1962},{"style":287},[1963],{"type":42,"value":1839},{"type":37,"tag":254,"props":1965,"children":1966},{"style":287},[1967],{"type":42,"value":1917},{"type":37,"tag":254,"props":1969,"children":1970},{"class":256,"line":559},[1971,1976,1981,1985,1989],{"type":37,"tag":254,"props":1972,"children":1973},{"style":287},[1974],{"type":42,"value":1975},"        \"",{"type":37,"tag":254,"props":1977,"children":1979},{"style":1978},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[1980],{"type":42,"value":1551},{"type":37,"tag":254,"props":1982,"children":1983},{"style":287},[1984],{"type":42,"value":469},{"type":37,"tag":254,"props":1986,"children":1987},{"style":287},[1988],{"type":42,"value":1839},{"type":37,"tag":254,"props":1990,"children":1991},{"style":287},[1992],{"type":42,"value":1917},{"type":37,"tag":254,"props":1994,"children":1995},{"class":256,"line":567},[1996,2001,2007,2011,2015,2019,2024,2028],{"type":37,"tag":254,"props":1997,"children":1998},{"style":287},[1999],{"type":42,"value":2000},"          \"",{"type":37,"tag":254,"props":2002,"children":2004},{"style":2003},"--shiki-light:#916B53;--shiki-default:#916B53;--shiki-dark:#916B53",[2005],{"type":42,"value":2006},"personGeneration",{"type":37,"tag":254,"props":2008,"children":2009},{"style":287},[2010],{"type":42,"value":469},{"type":37,"tag":254,"props":2012,"children":2013},{"style":287},[2014],{"type":42,"value":1839},{"type":37,"tag":254,"props":2016,"children":2017},{"style":287},[2018],{"type":42,"value":611},{"type":37,"tag":254,"props":2020,"children":2021},{"style":266},[2022],{"type":42,"value":2023},"allow",{"type":37,"tag":254,"props":2025,"children":2026},{"style":287},[2027],{"type":42,"value":469},{"type":37,"tag":254,"props":2029,"children":2030},{"style":287},[2031],{"type":42,"value":1856},{"type":37,"tag":254,"props":2033,"children":2034},{"class":256,"line":576},[2035,2039,2044,2048,2052,2056,2061],{"type":37,"tag":254,"props":2036,"children":2037},{"style":287},[2038],{"type":42,"value":2000},{"type":37,"tag":254,"props":2040,"children":2041},{"style":2003},[2042],{"type":42,"value":2043},"negativePrompt",{"type":37,"tag":254,"props":2045,"children":2046},{"style":287},[2047],{"type":42,"value":469},{"type":37,"tag":254,"props":2049,"children":2050},{"style":287},[2051],{"type":42,"value":1839},{"type":37,"tag":254,"props":2053,"children":2054},{"style":287},[2055],{"type":42,"value":611},{"type":37,"tag":254,"props":2057,"children":2058},{"style":266},[2059],{"type":42,"value":2060},"blurry, low quality",{"type":37,"tag":254,"props":2062,"children":2063},{"style":287},[2064],{"type":42,"value":479},{"type":37,"tag":254,"props":2066,"children":2067},{"class":256,"line":649},[2068],{"type":37,"tag":254,"props":2069,"children":2070},{"style":287},[2071],{"type":42,"value":2072},"        }\n",{"type":37,"tag":254,"props":2074,"children":2075},{"class":256,"line":673},[2076],{"type":37,"tag":254,"props":2077,"children":2078},{"style":287},[2079],{"type":42,"value":2080},"      }\n",{"type":37,"tag":254,"props":2082,"children":2083},{"class":256,"line":681},[2084],{"type":37,"tag":254,"props":2085,"children":2086},{"style":287},[2087],{"type":42,"value":2088},"    }\n",{"type":37,"tag":254,"props":2090,"children":2091},{"class":256,"line":721},[2092],{"type":37,"tag":254,"props":2093,"children":2094},{"style":287},[2095],{"type":42,"value":2096},"  }\n",{"type":37,"tag":254,"props":2098,"children":2099},{"class":256,"line":752},[2100],{"type":37,"tag":254,"props":2101,"children":2102},{"style":287},[2103],{"type":42,"value":2104},"}\n",{"type":37,"tag":94,"props":2106,"children":2108},{"id":2107},"webhooks-optional",[2109],{"type":42,"value":2110},"Webhooks (optional)",{"type":37,"tag":45,"props":2112,"children":2113},{},[2114,2116,2121,2123,2129,2131,2137,2139,2145,2147,2153],{"type":42,"value":2115},"Pass ",{"type":37,"tag":51,"props":2117,"children":2119},{"className":2118},[],[2120],{"type":42,"value":1676},{"type":42,"value":2122}," (HTTPS) in the submit body. On terminal state, OpenRouter POSTs a ",{"type":37,"tag":51,"props":2124,"children":2126},{"className":2125},[],[2127],{"type":42,"value":2128},"video.generation.{completed,failed,cancelled,expired}",{"type":42,"value":2130}," event. Each delivery carries ",{"type":37,"tag":51,"props":2132,"children":2134},{"className":2133},[],[2135],{"type":42,"value":2136},"X-OpenRouter-Idempotency-Key: \u003Cjob_id>-\u003Cstatus>",{"type":42,"value":2138},". If a signing secret is configured on the workspace, verify ",{"type":37,"tag":51,"props":2140,"children":2142},{"className":2141},[],[2143],{"type":42,"value":2144},"X-OpenRouter-Signature: t=\u003Cts>,v1=\u003Chmac>",{"type":42,"value":2146}," — HMAC-SHA256 of ",{"type":37,"tag":51,"props":2148,"children":2150},{"className":2149},[],[2151],{"type":42,"value":2152},"\u003Cts>,\u003Craw_body>",{"type":42,"value":2154}," with the secret, reject timestamps older than ~5 minutes.",{"type":37,"tag":94,"props":2156,"children":2158},{"id":2157},"references",[2159],{"type":42,"value":2160},"References",{"type":37,"tag":1576,"props":2162,"children":2163},{},[2164,2174],{"type":37,"tag":110,"props":2165,"children":2166},{},[2167],{"type":37,"tag":84,"props":2168,"children":2171},{"href":2169,"rel":2170},"https:\u002F\u002Fopenrouter.ai\u002Fdocs\u002Fguides\u002Foverview\u002Fmultimodal\u002Fvideo-generation",[88],[2172],{"type":42,"value":2173},"Video generation guide",{"type":37,"tag":110,"props":2175,"children":2176},{},[2177],{"type":37,"tag":84,"props":2178,"children":2181},{"href":2179,"rel":2180},"https:\u002F\u002Fopenrouter.ai\u002Fmodels?output_modalities=video",[88],[2182],{"type":42,"value":2183},"Models page (filter by video output)",{"type":37,"tag":45,"props":2185,"children":2186},{},[2187],{"type":42,"value":2188},"Video generation is not ZDR-eligible because the provider must temporarily retain the output for the async download step.",{"type":37,"tag":2190,"props":2191,"children":2192},"style",{},[2193],{"type":42,"value":2194},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":2196,"total":811},[2197,2214,2224,2240,2254,2265,2274,2286,2298,2307,2318,2327],{"slug":2198,"name":2198,"fn":2199,"description":2200,"org":2201,"tags":2202,"stars":21,"repoUrl":22,"updatedAt":2213},"create-agent-tui","scaffold terminal agents with OpenRouter","Scaffolds a complete agent TUI in TypeScript using @openrouter\u002Fagent — like create-react-app for terminal agents. Generates a customizable terminal interface with three input styles, four tool display modes, ASCII banners, streaming output, session persistence, and configurable tools. Use when building an agent, creating a TUI, scaffolding an agent project, or building a coding assistant.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2203,2206,2209,2210],{"name":2204,"slug":2205,"type":14},"Agents","agents",{"name":2207,"slug":2208,"type":14},"CLI","cli",{"name":9,"slug":8,"type":14},{"name":2211,"slug":2212,"type":14},"TypeScript","typescript","2026-07-14T05:38:18.849741",{"slug":2215,"name":2215,"fn":2216,"description":2217,"org":2218,"tags":2219,"stars":21,"repoUrl":22,"updatedAt":2223},"create-headless-agent","scaffold headless agents with OpenRouter","Scaffolds a headless agent in TypeScript using @openrouter\u002Fagent and Bun — for CLI tools, API servers, queue workers, and pipelines. No terminal UI. Use when building a headless agent, programmatic agent, CLI tool that uses AI, batch agent, pipeline agent, API agent, agent without a UI, or agent service.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2220,2221,2222],{"name":2204,"slug":2205,"type":14},{"name":2207,"slug":2208,"type":14},{"name":2211,"slug":2212,"type":14},"2026-07-14T05:38:30.178029",{"slug":2225,"name":2225,"fn":2226,"description":2227,"org":2228,"tags":2229,"stars":21,"repoUrl":22,"updatedAt":2239},"open-responses","implement Open Responses-compliant APIs","This skill should be used when implementing, consuming, or debugging an Open Responses-compliant API — the open standard for multi-provider LLM interoperability. Covers protocol, items, state machines, streaming events, tools, the agentic loop pattern, and extensions. Triggers on: Open Responses, open-responses, \u002Fv1\u002Fresponses endpoint, multi-provider LLM API, Open Responses compliance.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2230,2233,2236],{"name":2231,"slug":2232,"type":14},"API Development","api-development",{"name":2234,"slug":2235,"type":14},"Interoperability","interoperability",{"name":2237,"slug":2238,"type":14},"LLM","llm","2026-07-14T05:38:13.153467",{"slug":2241,"name":2241,"fn":2242,"description":2243,"org":2244,"tags":2245,"stars":21,"repoUrl":22,"updatedAt":2253},"openrouter-agent-migration","migrate OpenRouter SDK to agent patterns","Migration guide from @openrouter\u002Fsdk to @openrouter\u002Fagent for callModel, tool(), stop conditions, and agent features. This skill should be used when code imports callModel, tool(), or stop conditions from @openrouter\u002Fsdk and needs to migrate to @openrouter\u002Fagent.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2246,2249,2252],{"name":2247,"slug":2248,"type":14},"Migration","migration",{"name":2250,"slug":2251,"type":14},"SDK","sdk",{"name":2211,"slug":2212,"type":14},"2026-07-14T05:38:28.914981",{"slug":2255,"name":2255,"fn":2256,"description":2257,"org":2258,"tags":2259,"stars":21,"repoUrl":22,"updatedAt":2264},"openrouter-analytics","analyze OpenRouter usage and spend","Answer natural-language questions about a user's OpenRouter usage data — spend, request volume, model breakdown, latency, token usage, and cost optimization. Use when the user asks about their API usage, billing, costs, top models, traffic patterns, or wants to optimize their OpenRouter spend.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2260,2263],{"name":2261,"slug":2262,"type":14},"Analytics","analytics",{"name":9,"slug":8,"type":14},"2026-07-30T05:30:15.098344",{"slug":2266,"name":2266,"fn":2267,"description":2268,"org":2269,"tags":2270,"stars":21,"repoUrl":22,"updatedAt":2273},"openrouter-analytics-query","execute analytics queries against OpenRouter","Construct and execute analytics queries against the OpenRouter API — full parameter reference for metrics, dimensions, filters, time ranges, ordering, and pagination. Use when building or debugging an analytics query, understanding the request\u002Fresponse shape, or handling query errors.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2271,2272],{"name":2261,"slug":2262,"type":14},{"name":2231,"slug":2232,"type":14},"2026-07-14T05:38:26.402047",{"slug":2275,"name":2275,"fn":2276,"description":2277,"org":2278,"tags":2279,"stars":21,"repoUrl":22,"updatedAt":2285},"openrouter-analytics-schema","query OpenRouter analytics schema","Discover the OpenRouter analytics schema — available metrics, dimensions, filter operators, and granularities. Use when you need to know what analytics data is queryable, what dimensions you can break down by, or how to map a user's question to the right metric\u002Fdimension combination.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2280,2281,2282],{"name":2261,"slug":2262,"type":14},{"name":2237,"slug":2238,"type":14},{"name":2283,"slug":2284,"type":14},"Reporting","reporting","2026-07-14T05:38:32.721796",{"slug":2287,"name":2287,"fn":2288,"description":2289,"org":2290,"tags":2291,"stars":21,"repoUrl":22,"updatedAt":2297},"openrouter-benchmarks","query OpenRouter model benchmarks","Query OpenRouter's Benchmarks API for model benchmark rankings and scores. Use when the user asks for benchmark-backed model selection, model rankings by coding\u002Fintelligence\u002Fagentic ability, Artificial Analysis or Design Arena ELO\u002Fwin-rate results, benchmark citations, or wants to call GET \u002Fapi\u002Fv1\u002Fbenchmarks. Also use alongside openrouter-models when the user asks what model should power an app, product, workflow, or use case and benchmark evidence could inform or rule out part of the recommendation, including creative writing, editing, coding, design, agentic, or intelligence-heavy apps. Do not use for OpenRouter usage analytics, billing\u002Fspend analysis, generation metadata, provider uptime\u002Flatency, generic model pricing\u002Fcapability lookup without any selection or benchmark-relevance decision, or creating an evaluation suite for a local app.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2292,2293,2296],{"name":2261,"slug":2262,"type":14},{"name":2294,"slug":2295,"type":14},"Benchmarking","benchmarking",{"name":2237,"slug":2238,"type":14},"2026-07-14T05:38:27.658475",{"slug":2299,"name":2299,"fn":2300,"description":2301,"org":2302,"tags":2303,"stars":21,"repoUrl":22,"updatedAt":2306},"openrouter-generations","retrieve metadata for OpenRouter generations","Retrieve detailed metadata and stored content for individual OpenRouter generations. Use when the user wants to inspect a specific request — its cost, latency, token usage, provider routing, or the actual prompt\u002Fcompletion text — or is debugging a failed or unexpected generation.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2304,2305],{"name":2237,"slug":2238,"type":14},{"name":9,"slug":8,"type":14},"2026-07-14T05:38:25.132801",{"slug":2308,"name":2308,"fn":2309,"description":2310,"org":2311,"tags":2312,"stars":21,"repoUrl":22,"updatedAt":2317},"openrouter-images","generate images with OpenRouter","Generate images from text prompts and edit existing images using OpenRouter's dedicated Image API. Use when the user asks to create, generate, or make an image, picture, or illustration from a description, or wants to edit, modify, transform, or alter an existing image with a text prompt.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2313,2316],{"name":2314,"slug":2315,"type":14},"Image Generation","image-generation",{"name":9,"slug":8,"type":14},"2026-07-14T05:38:21.393411",{"slug":2319,"name":2319,"fn":2320,"description":2321,"org":2322,"tags":2323,"stars":21,"repoUrl":22,"updatedAt":2326},"openrouter-models","query OpenRouter model metadata and pricing","Query OpenRouter for available AI models, pricing, capabilities, throughput, and provider performance. Use when the user asks about available OpenRouter models, model pricing, model context lengths, model capabilities, provider latency or uptime, throughput limits, supported parameters, wants to search\u002Ffilter\u002Fcompare models, or find the fastest provider for a model.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2324,2325],{"name":2237,"slug":2238,"type":14},{"name":9,"slug":8,"type":14},"2026-07-14T05:38:22.650307",{"slug":2328,"name":2328,"fn":2329,"description":2330,"org":2331,"tags":2332,"stars":21,"repoUrl":22,"updatedAt":2340},"openrouter-oauth","implement OpenRouter OAuth authentication","Implement \"Sign In with OpenRouter\" using OAuth PKCE — framework-agnostic, no SDK or client registration required. Use when the user wants to add OpenRouter login, authentication, sign-in buttons, OAuth, or AI model inference API keys for browser-based apps. No client registration, no backend, no secrets required.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2333,2336,2339],{"name":2334,"slug":2335,"type":14},"Auth","auth",{"name":2337,"slug":2338,"type":14},"OAuth","oauth",{"name":9,"slug":8,"type":14},"2026-07-14T05:38:20.116308",{"items":2342,"total":811},[2343,2350,2356,2362,2368,2373,2378],{"slug":2198,"name":2198,"fn":2199,"description":2200,"org":2344,"tags":2345,"stars":21,"repoUrl":22,"updatedAt":2213},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2346,2347,2348,2349],{"name":2204,"slug":2205,"type":14},{"name":2207,"slug":2208,"type":14},{"name":9,"slug":8,"type":14},{"name":2211,"slug":2212,"type":14},{"slug":2215,"name":2215,"fn":2216,"description":2217,"org":2351,"tags":2352,"stars":21,"repoUrl":22,"updatedAt":2223},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2353,2354,2355],{"name":2204,"slug":2205,"type":14},{"name":2207,"slug":2208,"type":14},{"name":2211,"slug":2212,"type":14},{"slug":2225,"name":2225,"fn":2226,"description":2227,"org":2357,"tags":2358,"stars":21,"repoUrl":22,"updatedAt":2239},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2359,2360,2361],{"name":2231,"slug":2232,"type":14},{"name":2234,"slug":2235,"type":14},{"name":2237,"slug":2238,"type":14},{"slug":2241,"name":2241,"fn":2242,"description":2243,"org":2363,"tags":2364,"stars":21,"repoUrl":22,"updatedAt":2253},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2365,2366,2367],{"name":2247,"slug":2248,"type":14},{"name":2250,"slug":2251,"type":14},{"name":2211,"slug":2212,"type":14},{"slug":2255,"name":2255,"fn":2256,"description":2257,"org":2369,"tags":2370,"stars":21,"repoUrl":22,"updatedAt":2264},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2371,2372],{"name":2261,"slug":2262,"type":14},{"name":9,"slug":8,"type":14},{"slug":2266,"name":2266,"fn":2267,"description":2268,"org":2374,"tags":2375,"stars":21,"repoUrl":22,"updatedAt":2273},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2376,2377],{"name":2261,"slug":2262,"type":14},{"name":2231,"slug":2232,"type":14},{"slug":2275,"name":2275,"fn":2276,"description":2277,"org":2379,"tags":2380,"stars":21,"repoUrl":22,"updatedAt":2285},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2381,2382,2383],{"name":2261,"slug":2262,"type":14},{"name":2237,"slug":2238,"type":14},{"name":2283,"slug":2284,"type":14}]