[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-openrouter-openrouter-generations":3,"mdc--evnhpf-key":28,"related-org-openrouter-openrouter-generations":3545,"related-repo-openrouter-openrouter-generations":3684},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":12,"stars":18,"repoUrl":19,"updatedAt":20,"license":21,"forks":22,"topics":23,"repo":24,"sourceUrl":26,"mdContent":27},"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},"openrouter","OpenRouter","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fopenrouter.png","OpenRouterTeam",[13,17],{"name":14,"slug":15,"type":16},"LLM","llm","tag",{"name":9,"slug":8,"type":16},187,"https:\u002F\u002Fgithub.com\u002FOpenRouterTeam\u002Fskills","2026-07-14T05:38:25.132801",null,26,[],{"repoUrl":19,"stars":18,"forks":22,"topics":25,"description":21},[],"https:\u002F\u002Fgithub.com\u002FOpenRouterTeam\u002Fskills\u002Ftree\u002FHEAD\u002Fskills\u002Fopenrouter-generations","---\nname: openrouter-generations\ndescription: 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.\nversion: 0.1.0\n---\n\n# openrouter-generations\n\nRetrieve detailed metadata and stored content for individual OpenRouter generations. Use this skill when you need to inspect a specific request — its cost, latency, token usage, provider routing, or the actual prompt\u002Fcompletion text.\n\n## Prerequisites\n\n- Any valid OpenRouter API key (regular or management key). Get one at [openrouter.ai\u002Fsettings\u002Fkeys](https:\u002F\u002Fopenrouter.ai\u002Fsettings\u002Fkeys).\n- Pass it via `--api-key \u003Ckey>` or set the `OPENROUTER_API_KEY` environment variable\n- Generation IDs look like `gen-1234567890` or `gen-aBcDeFgHiJkLmNoPqRsT`.\n\n## First-Time Setup\n\n```bash\ncd \u003Cskill-path>\u002Fscripts && npm install\n```\n\n## Endpoints\n\n| Endpoint | Method | Purpose |\n|----------|--------|---------|\n| `\u002Fapi\u002Fv1\u002Fgeneration` | GET | Request metadata and usage (tokens, cost, latency, model, provider) |\n| `\u002Fapi\u002Fv1\u002Fgeneration\u002Fcontent` | GET | Stored prompt and completion text |\n\nBoth take a single query parameter: `id` (the generation ID).\n\nFull API reference: [openrouter.ai\u002Fdocs\u002Fapi\u002Fapi-reference\u002Fgenerations\u002Fget-generation](https:\u002F\u002Fopenrouter.ai\u002Fdocs\u002Fapi\u002Fapi-reference\u002Fgenerations\u002Fget-generation)\n\n## Workflow\n\n### 1. Get generation metadata\n\nRetrieves everything about a generation *except* the actual prompt\u002Fcompletion text:\n\n```bash\ncd \u003Cskill-path>\u002Fscripts && npx tsx get-generation.ts gen-1234567890\nnpx tsx get-generation.ts --id gen-1234567890 --json\n```\n\n**What you get back:**\n\n- **Model & routing**: `model`, `provider_name`, `router`, `service_tier`\n- **Tokens**: `tokens_prompt`, `tokens_completion`, `native_tokens_reasoning`, `native_tokens_cached`\n- **Cost**: `total_cost`, `usage`, `upstream_inference_cost`, `cache_discount`\n- **Performance**: `latency`, `generation_time`, `moderation_latency`\n- **Status**: `finish_reason`, `streamed`, `cancelled`, `is_byok`\n- **Context**: `created_at`, `app_id`, `external_user`, `session_id`, `request_id`\n- **Provider chain**: `provider_responses` array showing fallback attempts with per-provider latency and status\n\n### 2. Get generation content\n\nRetrieves the stored prompt and completion:\n\n```bash\ncd \u003Cskill-path>\u002Fscripts && npx tsx get-generation-content.ts gen-1234567890\nnpx tsx get-generation-content.ts --id gen-1234567890 --json\n```\n\n**What you get back:**\n\n- **Input**: `prompt` (raw text) and\u002For `messages` (array of `{role, content}`)\n- **Output**: `completion` (the model's response) and `reasoning` (chain-of-thought, if applicable)\n\n**Note:** Content is only available if the generation was *not* made with Zero Data Retention (ZDR) enabled. If ZDR was on, this endpoint returns empty\u002Fnull content.\n\n## Direct API Usage (curl)\n\n### Get metadata\n\n```bash\ncurl -G https:\u002F\u002Fopenrouter.ai\u002Fapi\u002Fv1\u002Fgeneration \\\n  -H \"Authorization: Bearer $OPENROUTER_API_KEY\" \\\n  -d id=gen-1234567890\n```\n\n### Get content\n\n```bash\ncurl -G https:\u002F\u002Fopenrouter.ai\u002Fapi\u002Fv1\u002Fgeneration\u002Fcontent \\\n  -H \"Authorization: Bearer $OPENROUTER_API_KEY\" \\\n  -d id=gen-1234567890\n```\n\n## Response Schemas\n\n### Metadata response (`\u002Fapi\u002Fv1\u002Fgeneration`)\n\n```json\n{\n  \"data\": {\n    \"id\": \"gen-3bhGkxlo4XFrqiabUM7NDtwDzWwG\",\n    \"api_type\": \"completions\",\n    \"model\": \"openai\u002Fgpt-4o\",\n    \"provider_name\": \"OpenAI\",\n    \"created_at\": \"2024-07-15T23:33:19.433273+00:00\",\n    \"tokens_prompt\": 10,\n    \"tokens_completion\": 25,\n    \"native_tokens_reasoning\": 5,\n    \"native_tokens_cached\": 3,\n    \"total_cost\": 0.0015,\n    \"usage\": 0.0015,\n    \"upstream_inference_cost\": 0.0012,\n    \"latency\": 1250,\n    \"generation_time\": 1200,\n    \"finish_reason\": \"stop\",\n    \"streamed\": true,\n    \"is_byok\": false,\n    \"cancelled\": false,\n    \"router\": \"openrouter\u002Fauto\",\n    \"service_tier\": \"priority\",\n    \"provider_responses\": [\n      {\n        \"provider_name\": \"OpenAI\",\n        \"model_permaslug\": \"openai\u002Fgpt-4o\",\n        \"status\": 200,\n        \"latency\": 1200,\n        \"is_byok\": false\n      }\n    ]\n  }\n}\n```\n\n### Content response (`\u002Fapi\u002Fv1\u002Fgeneration\u002Fcontent`)\n\n```json\n{\n  \"data\": {\n    \"input\": {\n      \"prompt\": \"What is the meaning of life?\",\n      \"messages\": [\n        {\n          \"content\": \"What is the meaning of life?\",\n          \"role\": \"user\"\n        }\n      ]\n    },\n    \"output\": {\n      \"completion\": \"The meaning of life is a philosophical question...\",\n      \"reasoning\": null\n    }\n  }\n}\n```\n\n## Common Use Cases\n\n### Debug a failed generation\n\n```bash\n# Check what happened — look at finish_reason, provider_responses, and cancelled\ncd \u003Cskill-path>\u002Fscripts && npx tsx get-generation.ts gen-abc123 --json\n```\n\nLook for:\n- `finish_reason` = `\"length\"` means the model hit max tokens\n- `finish_reason` = `\"content_filter\"` means content was filtered\n- `cancelled` = `true` means the request was cancelled by the client\n- `provider_responses` with multiple entries means fallbacks occurred\n\n### Check cost of a specific request\n\n```bash\ncd \u003Cskill-path>\u002Fscripts && npx tsx get-generation.ts gen-abc123\n```\n\nCheck `total_cost` (what you were charged) vs `upstream_inference_cost` (what the provider charged OpenRouter).\n\n### Review what was actually sent\u002Freceived\n\n```bash\ncd \u003Cskill-path>\u002Fscripts && npx tsx get-generation-content.ts gen-abc123\n```\n\nUseful for debugging unexpected outputs — verify the actual prompt sent and completion received.\n\n### Trace a multi-generation session\n\nIf you have a `request_id` or `session_id` from one generation, you can find related generations via the analytics query endpoint (see `openrouter-analytics` skill).\n\n## Error Handling\n\n| Status | Meaning |\n|--------|---------|\n| 401 | Invalid or missing API key |\n| 403 | You don't have access to this generation (belongs to another user) |\n| 404 | Generation ID not found |\n| 429 | Rate limited — wait and retry |\n| 500 | Server error — retry |\n| 502 | Upstream failure — retry |\n\n## Key Fields Reference\n\n### Metadata fields\n\n| Field | Type | Description |\n|-------|------|-------------|\n| `id` | string | Generation ID (`gen-...`) |\n| `model` | string | Model permaslug (e.g., `openai\u002Fgpt-4o`) |\n| `provider_name` | string\\|null | Provider that served the request |\n| `api_type` | string | One of: `completions`, `embeddings`, `rerank`, `tts`, `stt`, `video` |\n| `tokens_prompt` | int\\|null | Prompt token count |\n| `tokens_completion` | int\\|null | Completion token count |\n| `native_tokens_reasoning` | int\\|null | Reasoning\u002Fthinking tokens |\n| `native_tokens_cached` | int\\|null | Cached input tokens |\n| `total_cost` | number | Total cost in USD |\n| `usage` | number | Usage amount in USD |\n| `upstream_inference_cost` | number\\|null | Provider's cost in USD |\n| `cache_discount` | number\\|null | Discount from caching |\n| `latency` | number\\|null | Total latency in ms |\n| `generation_time` | number\\|null | Model generation time in ms |\n| `moderation_latency` | number\\|null | Moderation check time in ms |\n| `finish_reason` | string\\|null | Why generation stopped (`stop`, `length`, `content_filter`, etc.) |\n| `native_finish_reason` | string\\|null | Raw finish reason from provider |\n| `streamed` | bool\\|null | Whether response was streamed |\n| `is_byok` | bool | Whether user's own provider key was used |\n| `cancelled` | bool\\|null | Whether request was cancelled |\n| `app_id` | int\\|null | OAuth app ID |\n| `external_user` | string\\|null | External user identifier (X-External-User header) |\n| `session_id` | string\\|null | Session grouping ID |\n| `request_id` | string\\|null | Request grouping ID (all gens from one API call) |\n| `router` | string\\|null | Router used (e.g., `openrouter\u002Fauto`) |\n| `service_tier` | string\\|null | Provider service tier |\n| `web_search_engine` | string\\|null | Search engine used (e.g., `exa`, `firecrawl`) |\n| `num_search_results` | int\\|null | Number of search results included |\n| `provider_responses` | array\\|null | Provider attempt chain with per-provider latency\u002Fstatus |\n\n### Content fields\n\n| Field | Type | Description |\n|-------|------|-------------|\n| `data.input.prompt` | string\\|null | Raw prompt text |\n| `data.input.messages` | array\\|null | Messages array (`[{role, content}]`) |\n| `data.output.completion` | string\\|null | Model's completion text |\n| `data.output.reasoning` | string\\|null | Chain-of-thought reasoning |\n",{"data":29,"body":31},{"name":4,"description":6,"version":30},"0.1.0",{"type":32,"children":33},"root",[34,41,47,54,117,123,190,196,272,285,297,303,310,323,413,422,660,666,671,753,760,821,838,844,850,926,932,997,1003,1015,1919,1931,2262,2268,2274,2342,2347,2412,2418,2473,2492,2498,2552,2557,2563,2589,2595,2694,2700,2706,3418,3424,3539],{"type":35,"tag":36,"props":37,"children":38},"element","h1",{"id":4},[39],{"type":40,"value":4},"text",{"type":35,"tag":42,"props":43,"children":44},"p",{},[45],{"type":40,"value":46},"Retrieve detailed metadata and stored content for individual OpenRouter generations. Use this skill when you need to inspect a specific request — its cost, latency, token usage, provider routing, or the actual prompt\u002Fcompletion text.",{"type":35,"tag":48,"props":49,"children":51},"h2",{"id":50},"prerequisites",[52],{"type":40,"value":53},"Prerequisites",{"type":35,"tag":55,"props":56,"children":57},"ul",{},[58,75,97],{"type":35,"tag":59,"props":60,"children":61},"li",{},[62,64,73],{"type":40,"value":63},"Any valid OpenRouter API key (regular or management key). Get one at ",{"type":35,"tag":65,"props":66,"children":70},"a",{"href":67,"rel":68},"https:\u002F\u002Fopenrouter.ai\u002Fsettings\u002Fkeys",[69],"nofollow",[71],{"type":40,"value":72},"openrouter.ai\u002Fsettings\u002Fkeys",{"type":40,"value":74},".",{"type":35,"tag":59,"props":76,"children":77},{},[78,80,87,89,95],{"type":40,"value":79},"Pass it via ",{"type":35,"tag":81,"props":82,"children":84},"code",{"className":83},[],[85],{"type":40,"value":86},"--api-key \u003Ckey>",{"type":40,"value":88}," or set the ",{"type":35,"tag":81,"props":90,"children":92},{"className":91},[],[93],{"type":40,"value":94},"OPENROUTER_API_KEY",{"type":40,"value":96}," environment variable",{"type":35,"tag":59,"props":98,"children":99},{},[100,102,108,110,116],{"type":40,"value":101},"Generation IDs look like ",{"type":35,"tag":81,"props":103,"children":105},{"className":104},[],[106],{"type":40,"value":107},"gen-1234567890",{"type":40,"value":109}," or ",{"type":35,"tag":81,"props":111,"children":113},{"className":112},[],[114],{"type":40,"value":115},"gen-aBcDeFgHiJkLmNoPqRsT",{"type":40,"value":74},{"type":35,"tag":48,"props":118,"children":120},{"id":119},"first-time-setup",[121],{"type":40,"value":122},"First-Time Setup",{"type":35,"tag":124,"props":125,"children":130},"pre",{"className":126,"code":127,"language":128,"meta":129,"style":129},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","cd \u003Cskill-path>\u002Fscripts && npm install\n","bash","",[131],{"type":35,"tag":81,"props":132,"children":133},{"__ignoreMap":129},[134],{"type":35,"tag":135,"props":136,"children":139},"span",{"class":137,"line":138},"line",1,[140,146,152,158,164,169,174,179,185],{"type":35,"tag":135,"props":141,"children":143},{"style":142},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[144],{"type":40,"value":145},"cd",{"type":35,"tag":135,"props":147,"children":149},{"style":148},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[150],{"type":40,"value":151}," \u003C",{"type":35,"tag":135,"props":153,"children":155},{"style":154},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[156],{"type":40,"value":157},"skill-pat",{"type":35,"tag":135,"props":159,"children":161},{"style":160},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[162],{"type":40,"value":163},"h",{"type":35,"tag":135,"props":165,"children":166},{"style":148},[167],{"type":40,"value":168},">",{"type":35,"tag":135,"props":170,"children":171},{"style":154},[172],{"type":40,"value":173},"\u002Fscripts",{"type":35,"tag":135,"props":175,"children":176},{"style":148},[177],{"type":40,"value":178}," &&",{"type":35,"tag":135,"props":180,"children":182},{"style":181},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[183],{"type":40,"value":184}," npm",{"type":35,"tag":135,"props":186,"children":187},{"style":154},[188],{"type":40,"value":189}," install\n",{"type":35,"tag":48,"props":191,"children":193},{"id":192},"endpoints",[194],{"type":40,"value":195},"Endpoints",{"type":35,"tag":197,"props":198,"children":199},"table",{},[200,224],{"type":35,"tag":201,"props":202,"children":203},"thead",{},[204],{"type":35,"tag":205,"props":206,"children":207},"tr",{},[208,214,219],{"type":35,"tag":209,"props":210,"children":211},"th",{},[212],{"type":40,"value":213},"Endpoint",{"type":35,"tag":209,"props":215,"children":216},{},[217],{"type":40,"value":218},"Method",{"type":35,"tag":209,"props":220,"children":221},{},[222],{"type":40,"value":223},"Purpose",{"type":35,"tag":225,"props":226,"children":227},"tbody",{},[228,251],{"type":35,"tag":205,"props":229,"children":230},{},[231,241,246],{"type":35,"tag":232,"props":233,"children":234},"td",{},[235],{"type":35,"tag":81,"props":236,"children":238},{"className":237},[],[239],{"type":40,"value":240},"\u002Fapi\u002Fv1\u002Fgeneration",{"type":35,"tag":232,"props":242,"children":243},{},[244],{"type":40,"value":245},"GET",{"type":35,"tag":232,"props":247,"children":248},{},[249],{"type":40,"value":250},"Request metadata and usage (tokens, cost, latency, model, provider)",{"type":35,"tag":205,"props":252,"children":253},{},[254,263,267],{"type":35,"tag":232,"props":255,"children":256},{},[257],{"type":35,"tag":81,"props":258,"children":260},{"className":259},[],[261],{"type":40,"value":262},"\u002Fapi\u002Fv1\u002Fgeneration\u002Fcontent",{"type":35,"tag":232,"props":264,"children":265},{},[266],{"type":40,"value":245},{"type":35,"tag":232,"props":268,"children":269},{},[270],{"type":40,"value":271},"Stored prompt and completion text",{"type":35,"tag":42,"props":273,"children":274},{},[275,277,283],{"type":40,"value":276},"Both take a single query parameter: ",{"type":35,"tag":81,"props":278,"children":280},{"className":279},[],[281],{"type":40,"value":282},"id",{"type":40,"value":284}," (the generation ID).",{"type":35,"tag":42,"props":286,"children":287},{},[288,290],{"type":40,"value":289},"Full API reference: ",{"type":35,"tag":65,"props":291,"children":294},{"href":292,"rel":293},"https:\u002F\u002Fopenrouter.ai\u002Fdocs\u002Fapi\u002Fapi-reference\u002Fgenerations\u002Fget-generation",[69],[295],{"type":40,"value":296},"openrouter.ai\u002Fdocs\u002Fapi\u002Fapi-reference\u002Fgenerations\u002Fget-generation",{"type":35,"tag":48,"props":298,"children":300},{"id":299},"workflow",[301],{"type":40,"value":302},"Workflow",{"type":35,"tag":304,"props":305,"children":307},"h3",{"id":306},"_1-get-generation-metadata",[308],{"type":40,"value":309},"1. Get generation metadata",{"type":35,"tag":42,"props":311,"children":312},{},[313,315,321],{"type":40,"value":314},"Retrieves everything about a generation ",{"type":35,"tag":316,"props":317,"children":318},"em",{},[319],{"type":40,"value":320},"except",{"type":40,"value":322}," the actual prompt\u002Fcompletion text:",{"type":35,"tag":124,"props":324,"children":326},{"className":126,"code":325,"language":128,"meta":129,"style":129},"cd \u003Cskill-path>\u002Fscripts && npx tsx get-generation.ts gen-1234567890\nnpx tsx get-generation.ts --id gen-1234567890 --json\n",[327],{"type":35,"tag":81,"props":328,"children":329},{"__ignoreMap":129},[330,381],{"type":35,"tag":135,"props":331,"children":332},{"class":137,"line":138},[333,337,341,345,349,353,357,361,366,371,376],{"type":35,"tag":135,"props":334,"children":335},{"style":142},[336],{"type":40,"value":145},{"type":35,"tag":135,"props":338,"children":339},{"style":148},[340],{"type":40,"value":151},{"type":35,"tag":135,"props":342,"children":343},{"style":154},[344],{"type":40,"value":157},{"type":35,"tag":135,"props":346,"children":347},{"style":160},[348],{"type":40,"value":163},{"type":35,"tag":135,"props":350,"children":351},{"style":148},[352],{"type":40,"value":168},{"type":35,"tag":135,"props":354,"children":355},{"style":154},[356],{"type":40,"value":173},{"type":35,"tag":135,"props":358,"children":359},{"style":148},[360],{"type":40,"value":178},{"type":35,"tag":135,"props":362,"children":363},{"style":181},[364],{"type":40,"value":365}," npx",{"type":35,"tag":135,"props":367,"children":368},{"style":154},[369],{"type":40,"value":370}," tsx",{"type":35,"tag":135,"props":372,"children":373},{"style":154},[374],{"type":40,"value":375}," get-generation.ts",{"type":35,"tag":135,"props":377,"children":378},{"style":154},[379],{"type":40,"value":380}," gen-1234567890\n",{"type":35,"tag":135,"props":382,"children":384},{"class":137,"line":383},2,[385,390,394,398,403,408],{"type":35,"tag":135,"props":386,"children":387},{"style":181},[388],{"type":40,"value":389},"npx",{"type":35,"tag":135,"props":391,"children":392},{"style":154},[393],{"type":40,"value":370},{"type":35,"tag":135,"props":395,"children":396},{"style":154},[397],{"type":40,"value":375},{"type":35,"tag":135,"props":399,"children":400},{"style":154},[401],{"type":40,"value":402}," --id",{"type":35,"tag":135,"props":404,"children":405},{"style":154},[406],{"type":40,"value":407}," gen-1234567890",{"type":35,"tag":135,"props":409,"children":410},{"style":154},[411],{"type":40,"value":412}," --json\n",{"type":35,"tag":42,"props":414,"children":415},{},[416],{"type":35,"tag":417,"props":418,"children":419},"strong",{},[420],{"type":40,"value":421},"What you get back:",{"type":35,"tag":55,"props":423,"children":424},{},[425,463,499,535,564,600,643],{"type":35,"tag":59,"props":426,"children":427},{},[428,433,435,441,443,449,450,456,457],{"type":35,"tag":417,"props":429,"children":430},{},[431],{"type":40,"value":432},"Model & routing",{"type":40,"value":434},": ",{"type":35,"tag":81,"props":436,"children":438},{"className":437},[],[439],{"type":40,"value":440},"model",{"type":40,"value":442},", ",{"type":35,"tag":81,"props":444,"children":446},{"className":445},[],[447],{"type":40,"value":448},"provider_name",{"type":40,"value":442},{"type":35,"tag":81,"props":451,"children":453},{"className":452},[],[454],{"type":40,"value":455},"router",{"type":40,"value":442},{"type":35,"tag":81,"props":458,"children":460},{"className":459},[],[461],{"type":40,"value":462},"service_tier",{"type":35,"tag":59,"props":464,"children":465},{},[466,471,472,478,479,485,486,492,493],{"type":35,"tag":417,"props":467,"children":468},{},[469],{"type":40,"value":470},"Tokens",{"type":40,"value":434},{"type":35,"tag":81,"props":473,"children":475},{"className":474},[],[476],{"type":40,"value":477},"tokens_prompt",{"type":40,"value":442},{"type":35,"tag":81,"props":480,"children":482},{"className":481},[],[483],{"type":40,"value":484},"tokens_completion",{"type":40,"value":442},{"type":35,"tag":81,"props":487,"children":489},{"className":488},[],[490],{"type":40,"value":491},"native_tokens_reasoning",{"type":40,"value":442},{"type":35,"tag":81,"props":494,"children":496},{"className":495},[],[497],{"type":40,"value":498},"native_tokens_cached",{"type":35,"tag":59,"props":500,"children":501},{},[502,507,508,514,515,521,522,528,529],{"type":35,"tag":417,"props":503,"children":504},{},[505],{"type":40,"value":506},"Cost",{"type":40,"value":434},{"type":35,"tag":81,"props":509,"children":511},{"className":510},[],[512],{"type":40,"value":513},"total_cost",{"type":40,"value":442},{"type":35,"tag":81,"props":516,"children":518},{"className":517},[],[519],{"type":40,"value":520},"usage",{"type":40,"value":442},{"type":35,"tag":81,"props":523,"children":525},{"className":524},[],[526],{"type":40,"value":527},"upstream_inference_cost",{"type":40,"value":442},{"type":35,"tag":81,"props":530,"children":532},{"className":531},[],[533],{"type":40,"value":534},"cache_discount",{"type":35,"tag":59,"props":536,"children":537},{},[538,543,544,550,551,557,558],{"type":35,"tag":417,"props":539,"children":540},{},[541],{"type":40,"value":542},"Performance",{"type":40,"value":434},{"type":35,"tag":81,"props":545,"children":547},{"className":546},[],[548],{"type":40,"value":549},"latency",{"type":40,"value":442},{"type":35,"tag":81,"props":552,"children":554},{"className":553},[],[555],{"type":40,"value":556},"generation_time",{"type":40,"value":442},{"type":35,"tag":81,"props":559,"children":561},{"className":560},[],[562],{"type":40,"value":563},"moderation_latency",{"type":35,"tag":59,"props":565,"children":566},{},[567,572,573,579,580,586,587,593,594],{"type":35,"tag":417,"props":568,"children":569},{},[570],{"type":40,"value":571},"Status",{"type":40,"value":434},{"type":35,"tag":81,"props":574,"children":576},{"className":575},[],[577],{"type":40,"value":578},"finish_reason",{"type":40,"value":442},{"type":35,"tag":81,"props":581,"children":583},{"className":582},[],[584],{"type":40,"value":585},"streamed",{"type":40,"value":442},{"type":35,"tag":81,"props":588,"children":590},{"className":589},[],[591],{"type":40,"value":592},"cancelled",{"type":40,"value":442},{"type":35,"tag":81,"props":595,"children":597},{"className":596},[],[598],{"type":40,"value":599},"is_byok",{"type":35,"tag":59,"props":601,"children":602},{},[603,608,609,615,616,622,623,629,630,636,637],{"type":35,"tag":417,"props":604,"children":605},{},[606],{"type":40,"value":607},"Context",{"type":40,"value":434},{"type":35,"tag":81,"props":610,"children":612},{"className":611},[],[613],{"type":40,"value":614},"created_at",{"type":40,"value":442},{"type":35,"tag":81,"props":617,"children":619},{"className":618},[],[620],{"type":40,"value":621},"app_id",{"type":40,"value":442},{"type":35,"tag":81,"props":624,"children":626},{"className":625},[],[627],{"type":40,"value":628},"external_user",{"type":40,"value":442},{"type":35,"tag":81,"props":631,"children":633},{"className":632},[],[634],{"type":40,"value":635},"session_id",{"type":40,"value":442},{"type":35,"tag":81,"props":638,"children":640},{"className":639},[],[641],{"type":40,"value":642},"request_id",{"type":35,"tag":59,"props":644,"children":645},{},[646,651,652,658],{"type":35,"tag":417,"props":647,"children":648},{},[649],{"type":40,"value":650},"Provider chain",{"type":40,"value":434},{"type":35,"tag":81,"props":653,"children":655},{"className":654},[],[656],{"type":40,"value":657},"provider_responses",{"type":40,"value":659}," array showing fallback attempts with per-provider latency and status",{"type":35,"tag":304,"props":661,"children":663},{"id":662},"_2-get-generation-content",[664],{"type":40,"value":665},"2. Get generation content",{"type":35,"tag":42,"props":667,"children":668},{},[669],{"type":40,"value":670},"Retrieves the stored prompt and completion:",{"type":35,"tag":124,"props":672,"children":674},{"className":126,"code":673,"language":128,"meta":129,"style":129},"cd \u003Cskill-path>\u002Fscripts && npx tsx get-generation-content.ts gen-1234567890\nnpx tsx get-generation-content.ts --id gen-1234567890 --json\n",[675],{"type":35,"tag":81,"props":676,"children":677},{"__ignoreMap":129},[678,726],{"type":35,"tag":135,"props":679,"children":680},{"class":137,"line":138},[681,685,689,693,697,701,705,709,713,717,722],{"type":35,"tag":135,"props":682,"children":683},{"style":142},[684],{"type":40,"value":145},{"type":35,"tag":135,"props":686,"children":687},{"style":148},[688],{"type":40,"value":151},{"type":35,"tag":135,"props":690,"children":691},{"style":154},[692],{"type":40,"value":157},{"type":35,"tag":135,"props":694,"children":695},{"style":160},[696],{"type":40,"value":163},{"type":35,"tag":135,"props":698,"children":699},{"style":148},[700],{"type":40,"value":168},{"type":35,"tag":135,"props":702,"children":703},{"style":154},[704],{"type":40,"value":173},{"type":35,"tag":135,"props":706,"children":707},{"style":148},[708],{"type":40,"value":178},{"type":35,"tag":135,"props":710,"children":711},{"style":181},[712],{"type":40,"value":365},{"type":35,"tag":135,"props":714,"children":715},{"style":154},[716],{"type":40,"value":370},{"type":35,"tag":135,"props":718,"children":719},{"style":154},[720],{"type":40,"value":721}," get-generation-content.ts",{"type":35,"tag":135,"props":723,"children":724},{"style":154},[725],{"type":40,"value":380},{"type":35,"tag":135,"props":727,"children":728},{"class":137,"line":383},[729,733,737,741,745,749],{"type":35,"tag":135,"props":730,"children":731},{"style":181},[732],{"type":40,"value":389},{"type":35,"tag":135,"props":734,"children":735},{"style":154},[736],{"type":40,"value":370},{"type":35,"tag":135,"props":738,"children":739},{"style":154},[740],{"type":40,"value":721},{"type":35,"tag":135,"props":742,"children":743},{"style":154},[744],{"type":40,"value":402},{"type":35,"tag":135,"props":746,"children":747},{"style":154},[748],{"type":40,"value":407},{"type":35,"tag":135,"props":750,"children":751},{"style":154},[752],{"type":40,"value":412},{"type":35,"tag":42,"props":754,"children":755},{},[756],{"type":35,"tag":417,"props":757,"children":758},{},[759],{"type":40,"value":421},{"type":35,"tag":55,"props":761,"children":762},{},[763,796],{"type":35,"tag":59,"props":764,"children":765},{},[766,771,772,778,780,786,788,794],{"type":35,"tag":417,"props":767,"children":768},{},[769],{"type":40,"value":770},"Input",{"type":40,"value":434},{"type":35,"tag":81,"props":773,"children":775},{"className":774},[],[776],{"type":40,"value":777},"prompt",{"type":40,"value":779}," (raw text) and\u002For ",{"type":35,"tag":81,"props":781,"children":783},{"className":782},[],[784],{"type":40,"value":785},"messages",{"type":40,"value":787}," (array of ",{"type":35,"tag":81,"props":789,"children":791},{"className":790},[],[792],{"type":40,"value":793},"{role, content}",{"type":40,"value":795},")",{"type":35,"tag":59,"props":797,"children":798},{},[799,804,805,811,813,819],{"type":35,"tag":417,"props":800,"children":801},{},[802],{"type":40,"value":803},"Output",{"type":40,"value":434},{"type":35,"tag":81,"props":806,"children":808},{"className":807},[],[809],{"type":40,"value":810},"completion",{"type":40,"value":812}," (the model's response) and ",{"type":35,"tag":81,"props":814,"children":816},{"className":815},[],[817],{"type":40,"value":818},"reasoning",{"type":40,"value":820}," (chain-of-thought, if applicable)",{"type":35,"tag":42,"props":822,"children":823},{},[824,829,831,836],{"type":35,"tag":417,"props":825,"children":826},{},[827],{"type":40,"value":828},"Note:",{"type":40,"value":830}," Content is only available if the generation was ",{"type":35,"tag":316,"props":832,"children":833},{},[834],{"type":40,"value":835},"not",{"type":40,"value":837}," made with Zero Data Retention (ZDR) enabled. If ZDR was on, this endpoint returns empty\u002Fnull content.",{"type":35,"tag":48,"props":839,"children":841},{"id":840},"direct-api-usage-curl",[842],{"type":40,"value":843},"Direct API Usage (curl)",{"type":35,"tag":304,"props":845,"children":847},{"id":846},"get-metadata",[848],{"type":40,"value":849},"Get metadata",{"type":35,"tag":124,"props":851,"children":853},{"className":126,"code":852,"language":128,"meta":129,"style":129},"curl -G https:\u002F\u002Fopenrouter.ai\u002Fapi\u002Fv1\u002Fgeneration \\\n  -H \"Authorization: Bearer $OPENROUTER_API_KEY\" \\\n  -d id=gen-1234567890\n",[854],{"type":35,"tag":81,"props":855,"children":856},{"__ignoreMap":129},[857,880,912],{"type":35,"tag":135,"props":858,"children":859},{"class":137,"line":138},[860,865,870,875],{"type":35,"tag":135,"props":861,"children":862},{"style":181},[863],{"type":40,"value":864},"curl",{"type":35,"tag":135,"props":866,"children":867},{"style":154},[868],{"type":40,"value":869}," -G",{"type":35,"tag":135,"props":871,"children":872},{"style":154},[873],{"type":40,"value":874}," https:\u002F\u002Fopenrouter.ai\u002Fapi\u002Fv1\u002Fgeneration",{"type":35,"tag":135,"props":876,"children":877},{"style":160},[878],{"type":40,"value":879}," \\\n",{"type":35,"tag":135,"props":881,"children":882},{"class":137,"line":383},[883,888,893,898,903,908],{"type":35,"tag":135,"props":884,"children":885},{"style":154},[886],{"type":40,"value":887},"  -H",{"type":35,"tag":135,"props":889,"children":890},{"style":148},[891],{"type":40,"value":892}," \"",{"type":35,"tag":135,"props":894,"children":895},{"style":154},[896],{"type":40,"value":897},"Authorization: Bearer ",{"type":35,"tag":135,"props":899,"children":900},{"style":160},[901],{"type":40,"value":902},"$OPENROUTER_API_KEY",{"type":35,"tag":135,"props":904,"children":905},{"style":148},[906],{"type":40,"value":907},"\"",{"type":35,"tag":135,"props":909,"children":910},{"style":160},[911],{"type":40,"value":879},{"type":35,"tag":135,"props":913,"children":915},{"class":137,"line":914},3,[916,921],{"type":35,"tag":135,"props":917,"children":918},{"style":154},[919],{"type":40,"value":920},"  -d",{"type":35,"tag":135,"props":922,"children":923},{"style":154},[924],{"type":40,"value":925}," id=gen-1234567890\n",{"type":35,"tag":304,"props":927,"children":929},{"id":928},"get-content",[930],{"type":40,"value":931},"Get content",{"type":35,"tag":124,"props":933,"children":935},{"className":126,"code":934,"language":128,"meta":129,"style":129},"curl -G https:\u002F\u002Fopenrouter.ai\u002Fapi\u002Fv1\u002Fgeneration\u002Fcontent \\\n  -H \"Authorization: Bearer $OPENROUTER_API_KEY\" \\\n  -d id=gen-1234567890\n",[936],{"type":35,"tag":81,"props":937,"children":938},{"__ignoreMap":129},[939,959,986],{"type":35,"tag":135,"props":940,"children":941},{"class":137,"line":138},[942,946,950,955],{"type":35,"tag":135,"props":943,"children":944},{"style":181},[945],{"type":40,"value":864},{"type":35,"tag":135,"props":947,"children":948},{"style":154},[949],{"type":40,"value":869},{"type":35,"tag":135,"props":951,"children":952},{"style":154},[953],{"type":40,"value":954}," https:\u002F\u002Fopenrouter.ai\u002Fapi\u002Fv1\u002Fgeneration\u002Fcontent",{"type":35,"tag":135,"props":956,"children":957},{"style":160},[958],{"type":40,"value":879},{"type":35,"tag":135,"props":960,"children":961},{"class":137,"line":383},[962,966,970,974,978,982],{"type":35,"tag":135,"props":963,"children":964},{"style":154},[965],{"type":40,"value":887},{"type":35,"tag":135,"props":967,"children":968},{"style":148},[969],{"type":40,"value":892},{"type":35,"tag":135,"props":971,"children":972},{"style":154},[973],{"type":40,"value":897},{"type":35,"tag":135,"props":975,"children":976},{"style":160},[977],{"type":40,"value":902},{"type":35,"tag":135,"props":979,"children":980},{"style":148},[981],{"type":40,"value":907},{"type":35,"tag":135,"props":983,"children":984},{"style":160},[985],{"type":40,"value":879},{"type":35,"tag":135,"props":987,"children":988},{"class":137,"line":914},[989,993],{"type":35,"tag":135,"props":990,"children":991},{"style":154},[992],{"type":40,"value":920},{"type":35,"tag":135,"props":994,"children":995},{"style":154},[996],{"type":40,"value":925},{"type":35,"tag":48,"props":998,"children":1000},{"id":999},"response-schemas",[1001],{"type":40,"value":1002},"Response Schemas",{"type":35,"tag":304,"props":1004,"children":1006},{"id":1005},"metadata-response-apiv1generation",[1007,1009,1014],{"type":40,"value":1008},"Metadata response (",{"type":35,"tag":81,"props":1010,"children":1012},{"className":1011},[],[1013],{"type":40,"value":240},{"type":40,"value":795},{"type":35,"tag":124,"props":1016,"children":1020},{"className":1017,"code":1018,"language":1019,"meta":129,"style":129},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"data\": {\n    \"id\": \"gen-3bhGkxlo4XFrqiabUM7NDtwDzWwG\",\n    \"api_type\": \"completions\",\n    \"model\": \"openai\u002Fgpt-4o\",\n    \"provider_name\": \"OpenAI\",\n    \"created_at\": \"2024-07-15T23:33:19.433273+00:00\",\n    \"tokens_prompt\": 10,\n    \"tokens_completion\": 25,\n    \"native_tokens_reasoning\": 5,\n    \"native_tokens_cached\": 3,\n    \"total_cost\": 0.0015,\n    \"usage\": 0.0015,\n    \"upstream_inference_cost\": 0.0012,\n    \"latency\": 1250,\n    \"generation_time\": 1200,\n    \"finish_reason\": \"stop\",\n    \"streamed\": true,\n    \"is_byok\": false,\n    \"cancelled\": false,\n    \"router\": \"openrouter\u002Fauto\",\n    \"service_tier\": \"priority\",\n    \"provider_responses\": [\n      {\n        \"provider_name\": \"OpenAI\",\n        \"model_permaslug\": \"openai\u002Fgpt-4o\",\n        \"status\": 200,\n        \"latency\": 1200,\n        \"is_byok\": false\n      }\n    ]\n  }\n}\n","json",[1021],{"type":35,"tag":81,"props":1022,"children":1023},{"__ignoreMap":129},[1024,1032,1060,1098,1136,1173,1210,1247,1277,1306,1335,1364,1393,1421,1450,1479,1508,1545,1570,1595,1619,1656,1693,1718,1727,1764,1800,1830,1858,1883,1892,1901,1910],{"type":35,"tag":135,"props":1025,"children":1026},{"class":137,"line":138},[1027],{"type":35,"tag":135,"props":1028,"children":1029},{"style":148},[1030],{"type":40,"value":1031},"{\n",{"type":35,"tag":135,"props":1033,"children":1034},{"class":137,"line":383},[1035,1040,1046,1050,1055],{"type":35,"tag":135,"props":1036,"children":1037},{"style":148},[1038],{"type":40,"value":1039},"  \"",{"type":35,"tag":135,"props":1041,"children":1043},{"style":1042},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[1044],{"type":40,"value":1045},"data",{"type":35,"tag":135,"props":1047,"children":1048},{"style":148},[1049],{"type":40,"value":907},{"type":35,"tag":135,"props":1051,"children":1052},{"style":148},[1053],{"type":40,"value":1054},":",{"type":35,"tag":135,"props":1056,"children":1057},{"style":148},[1058],{"type":40,"value":1059}," {\n",{"type":35,"tag":135,"props":1061,"children":1062},{"class":137,"line":914},[1063,1068,1072,1076,1080,1084,1089,1093],{"type":35,"tag":135,"props":1064,"children":1065},{"style":148},[1066],{"type":40,"value":1067},"    \"",{"type":35,"tag":135,"props":1069,"children":1070},{"style":181},[1071],{"type":40,"value":282},{"type":35,"tag":135,"props":1073,"children":1074},{"style":148},[1075],{"type":40,"value":907},{"type":35,"tag":135,"props":1077,"children":1078},{"style":148},[1079],{"type":40,"value":1054},{"type":35,"tag":135,"props":1081,"children":1082},{"style":148},[1083],{"type":40,"value":892},{"type":35,"tag":135,"props":1085,"children":1086},{"style":154},[1087],{"type":40,"value":1088},"gen-3bhGkxlo4XFrqiabUM7NDtwDzWwG",{"type":35,"tag":135,"props":1090,"children":1091},{"style":148},[1092],{"type":40,"value":907},{"type":35,"tag":135,"props":1094,"children":1095},{"style":148},[1096],{"type":40,"value":1097},",\n",{"type":35,"tag":135,"props":1099,"children":1101},{"class":137,"line":1100},4,[1102,1106,1111,1115,1119,1123,1128,1132],{"type":35,"tag":135,"props":1103,"children":1104},{"style":148},[1105],{"type":40,"value":1067},{"type":35,"tag":135,"props":1107,"children":1108},{"style":181},[1109],{"type":40,"value":1110},"api_type",{"type":35,"tag":135,"props":1112,"children":1113},{"style":148},[1114],{"type":40,"value":907},{"type":35,"tag":135,"props":1116,"children":1117},{"style":148},[1118],{"type":40,"value":1054},{"type":35,"tag":135,"props":1120,"children":1121},{"style":148},[1122],{"type":40,"value":892},{"type":35,"tag":135,"props":1124,"children":1125},{"style":154},[1126],{"type":40,"value":1127},"completions",{"type":35,"tag":135,"props":1129,"children":1130},{"style":148},[1131],{"type":40,"value":907},{"type":35,"tag":135,"props":1133,"children":1134},{"style":148},[1135],{"type":40,"value":1097},{"type":35,"tag":135,"props":1137,"children":1139},{"class":137,"line":1138},5,[1140,1144,1148,1152,1156,1160,1165,1169],{"type":35,"tag":135,"props":1141,"children":1142},{"style":148},[1143],{"type":40,"value":1067},{"type":35,"tag":135,"props":1145,"children":1146},{"style":181},[1147],{"type":40,"value":440},{"type":35,"tag":135,"props":1149,"children":1150},{"style":148},[1151],{"type":40,"value":907},{"type":35,"tag":135,"props":1153,"children":1154},{"style":148},[1155],{"type":40,"value":1054},{"type":35,"tag":135,"props":1157,"children":1158},{"style":148},[1159],{"type":40,"value":892},{"type":35,"tag":135,"props":1161,"children":1162},{"style":154},[1163],{"type":40,"value":1164},"openai\u002Fgpt-4o",{"type":35,"tag":135,"props":1166,"children":1167},{"style":148},[1168],{"type":40,"value":907},{"type":35,"tag":135,"props":1170,"children":1171},{"style":148},[1172],{"type":40,"value":1097},{"type":35,"tag":135,"props":1174,"children":1176},{"class":137,"line":1175},6,[1177,1181,1185,1189,1193,1197,1202,1206],{"type":35,"tag":135,"props":1178,"children":1179},{"style":148},[1180],{"type":40,"value":1067},{"type":35,"tag":135,"props":1182,"children":1183},{"style":181},[1184],{"type":40,"value":448},{"type":35,"tag":135,"props":1186,"children":1187},{"style":148},[1188],{"type":40,"value":907},{"type":35,"tag":135,"props":1190,"children":1191},{"style":148},[1192],{"type":40,"value":1054},{"type":35,"tag":135,"props":1194,"children":1195},{"style":148},[1196],{"type":40,"value":892},{"type":35,"tag":135,"props":1198,"children":1199},{"style":154},[1200],{"type":40,"value":1201},"OpenAI",{"type":35,"tag":135,"props":1203,"children":1204},{"style":148},[1205],{"type":40,"value":907},{"type":35,"tag":135,"props":1207,"children":1208},{"style":148},[1209],{"type":40,"value":1097},{"type":35,"tag":135,"props":1211,"children":1213},{"class":137,"line":1212},7,[1214,1218,1222,1226,1230,1234,1239,1243],{"type":35,"tag":135,"props":1215,"children":1216},{"style":148},[1217],{"type":40,"value":1067},{"type":35,"tag":135,"props":1219,"children":1220},{"style":181},[1221],{"type":40,"value":614},{"type":35,"tag":135,"props":1223,"children":1224},{"style":148},[1225],{"type":40,"value":907},{"type":35,"tag":135,"props":1227,"children":1228},{"style":148},[1229],{"type":40,"value":1054},{"type":35,"tag":135,"props":1231,"children":1232},{"style":148},[1233],{"type":40,"value":892},{"type":35,"tag":135,"props":1235,"children":1236},{"style":154},[1237],{"type":40,"value":1238},"2024-07-15T23:33:19.433273+00:00",{"type":35,"tag":135,"props":1240,"children":1241},{"style":148},[1242],{"type":40,"value":907},{"type":35,"tag":135,"props":1244,"children":1245},{"style":148},[1246],{"type":40,"value":1097},{"type":35,"tag":135,"props":1248,"children":1250},{"class":137,"line":1249},8,[1251,1255,1259,1263,1267,1273],{"type":35,"tag":135,"props":1252,"children":1253},{"style":148},[1254],{"type":40,"value":1067},{"type":35,"tag":135,"props":1256,"children":1257},{"style":181},[1258],{"type":40,"value":477},{"type":35,"tag":135,"props":1260,"children":1261},{"style":148},[1262],{"type":40,"value":907},{"type":35,"tag":135,"props":1264,"children":1265},{"style":148},[1266],{"type":40,"value":1054},{"type":35,"tag":135,"props":1268,"children":1270},{"style":1269},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[1271],{"type":40,"value":1272}," 10",{"type":35,"tag":135,"props":1274,"children":1275},{"style":148},[1276],{"type":40,"value":1097},{"type":35,"tag":135,"props":1278,"children":1280},{"class":137,"line":1279},9,[1281,1285,1289,1293,1297,1302],{"type":35,"tag":135,"props":1282,"children":1283},{"style":148},[1284],{"type":40,"value":1067},{"type":35,"tag":135,"props":1286,"children":1287},{"style":181},[1288],{"type":40,"value":484},{"type":35,"tag":135,"props":1290,"children":1291},{"style":148},[1292],{"type":40,"value":907},{"type":35,"tag":135,"props":1294,"children":1295},{"style":148},[1296],{"type":40,"value":1054},{"type":35,"tag":135,"props":1298,"children":1299},{"style":1269},[1300],{"type":40,"value":1301}," 25",{"type":35,"tag":135,"props":1303,"children":1304},{"style":148},[1305],{"type":40,"value":1097},{"type":35,"tag":135,"props":1307,"children":1309},{"class":137,"line":1308},10,[1310,1314,1318,1322,1326,1331],{"type":35,"tag":135,"props":1311,"children":1312},{"style":148},[1313],{"type":40,"value":1067},{"type":35,"tag":135,"props":1315,"children":1316},{"style":181},[1317],{"type":40,"value":491},{"type":35,"tag":135,"props":1319,"children":1320},{"style":148},[1321],{"type":40,"value":907},{"type":35,"tag":135,"props":1323,"children":1324},{"style":148},[1325],{"type":40,"value":1054},{"type":35,"tag":135,"props":1327,"children":1328},{"style":1269},[1329],{"type":40,"value":1330}," 5",{"type":35,"tag":135,"props":1332,"children":1333},{"style":148},[1334],{"type":40,"value":1097},{"type":35,"tag":135,"props":1336,"children":1338},{"class":137,"line":1337},11,[1339,1343,1347,1351,1355,1360],{"type":35,"tag":135,"props":1340,"children":1341},{"style":148},[1342],{"type":40,"value":1067},{"type":35,"tag":135,"props":1344,"children":1345},{"style":181},[1346],{"type":40,"value":498},{"type":35,"tag":135,"props":1348,"children":1349},{"style":148},[1350],{"type":40,"value":907},{"type":35,"tag":135,"props":1352,"children":1353},{"style":148},[1354],{"type":40,"value":1054},{"type":35,"tag":135,"props":1356,"children":1357},{"style":1269},[1358],{"type":40,"value":1359}," 3",{"type":35,"tag":135,"props":1361,"children":1362},{"style":148},[1363],{"type":40,"value":1097},{"type":35,"tag":135,"props":1365,"children":1367},{"class":137,"line":1366},12,[1368,1372,1376,1380,1384,1389],{"type":35,"tag":135,"props":1369,"children":1370},{"style":148},[1371],{"type":40,"value":1067},{"type":35,"tag":135,"props":1373,"children":1374},{"style":181},[1375],{"type":40,"value":513},{"type":35,"tag":135,"props":1377,"children":1378},{"style":148},[1379],{"type":40,"value":907},{"type":35,"tag":135,"props":1381,"children":1382},{"style":148},[1383],{"type":40,"value":1054},{"type":35,"tag":135,"props":1385,"children":1386},{"style":1269},[1387],{"type":40,"value":1388}," 0.0015",{"type":35,"tag":135,"props":1390,"children":1391},{"style":148},[1392],{"type":40,"value":1097},{"type":35,"tag":135,"props":1394,"children":1396},{"class":137,"line":1395},13,[1397,1401,1405,1409,1413,1417],{"type":35,"tag":135,"props":1398,"children":1399},{"style":148},[1400],{"type":40,"value":1067},{"type":35,"tag":135,"props":1402,"children":1403},{"style":181},[1404],{"type":40,"value":520},{"type":35,"tag":135,"props":1406,"children":1407},{"style":148},[1408],{"type":40,"value":907},{"type":35,"tag":135,"props":1410,"children":1411},{"style":148},[1412],{"type":40,"value":1054},{"type":35,"tag":135,"props":1414,"children":1415},{"style":1269},[1416],{"type":40,"value":1388},{"type":35,"tag":135,"props":1418,"children":1419},{"style":148},[1420],{"type":40,"value":1097},{"type":35,"tag":135,"props":1422,"children":1424},{"class":137,"line":1423},14,[1425,1429,1433,1437,1441,1446],{"type":35,"tag":135,"props":1426,"children":1427},{"style":148},[1428],{"type":40,"value":1067},{"type":35,"tag":135,"props":1430,"children":1431},{"style":181},[1432],{"type":40,"value":527},{"type":35,"tag":135,"props":1434,"children":1435},{"style":148},[1436],{"type":40,"value":907},{"type":35,"tag":135,"props":1438,"children":1439},{"style":148},[1440],{"type":40,"value":1054},{"type":35,"tag":135,"props":1442,"children":1443},{"style":1269},[1444],{"type":40,"value":1445}," 0.0012",{"type":35,"tag":135,"props":1447,"children":1448},{"style":148},[1449],{"type":40,"value":1097},{"type":35,"tag":135,"props":1451,"children":1453},{"class":137,"line":1452},15,[1454,1458,1462,1466,1470,1475],{"type":35,"tag":135,"props":1455,"children":1456},{"style":148},[1457],{"type":40,"value":1067},{"type":35,"tag":135,"props":1459,"children":1460},{"style":181},[1461],{"type":40,"value":549},{"type":35,"tag":135,"props":1463,"children":1464},{"style":148},[1465],{"type":40,"value":907},{"type":35,"tag":135,"props":1467,"children":1468},{"style":148},[1469],{"type":40,"value":1054},{"type":35,"tag":135,"props":1471,"children":1472},{"style":1269},[1473],{"type":40,"value":1474}," 1250",{"type":35,"tag":135,"props":1476,"children":1477},{"style":148},[1478],{"type":40,"value":1097},{"type":35,"tag":135,"props":1480,"children":1482},{"class":137,"line":1481},16,[1483,1487,1491,1495,1499,1504],{"type":35,"tag":135,"props":1484,"children":1485},{"style":148},[1486],{"type":40,"value":1067},{"type":35,"tag":135,"props":1488,"children":1489},{"style":181},[1490],{"type":40,"value":556},{"type":35,"tag":135,"props":1492,"children":1493},{"style":148},[1494],{"type":40,"value":907},{"type":35,"tag":135,"props":1496,"children":1497},{"style":148},[1498],{"type":40,"value":1054},{"type":35,"tag":135,"props":1500,"children":1501},{"style":1269},[1502],{"type":40,"value":1503}," 1200",{"type":35,"tag":135,"props":1505,"children":1506},{"style":148},[1507],{"type":40,"value":1097},{"type":35,"tag":135,"props":1509,"children":1511},{"class":137,"line":1510},17,[1512,1516,1520,1524,1528,1532,1537,1541],{"type":35,"tag":135,"props":1513,"children":1514},{"style":148},[1515],{"type":40,"value":1067},{"type":35,"tag":135,"props":1517,"children":1518},{"style":181},[1519],{"type":40,"value":578},{"type":35,"tag":135,"props":1521,"children":1522},{"style":148},[1523],{"type":40,"value":907},{"type":35,"tag":135,"props":1525,"children":1526},{"style":148},[1527],{"type":40,"value":1054},{"type":35,"tag":135,"props":1529,"children":1530},{"style":148},[1531],{"type":40,"value":892},{"type":35,"tag":135,"props":1533,"children":1534},{"style":154},[1535],{"type":40,"value":1536},"stop",{"type":35,"tag":135,"props":1538,"children":1539},{"style":148},[1540],{"type":40,"value":907},{"type":35,"tag":135,"props":1542,"children":1543},{"style":148},[1544],{"type":40,"value":1097},{"type":35,"tag":135,"props":1546,"children":1548},{"class":137,"line":1547},18,[1549,1553,1557,1561,1565],{"type":35,"tag":135,"props":1550,"children":1551},{"style":148},[1552],{"type":40,"value":1067},{"type":35,"tag":135,"props":1554,"children":1555},{"style":181},[1556],{"type":40,"value":585},{"type":35,"tag":135,"props":1558,"children":1559},{"style":148},[1560],{"type":40,"value":907},{"type":35,"tag":135,"props":1562,"children":1563},{"style":148},[1564],{"type":40,"value":1054},{"type":35,"tag":135,"props":1566,"children":1567},{"style":148},[1568],{"type":40,"value":1569}," true,\n",{"type":35,"tag":135,"props":1571,"children":1573},{"class":137,"line":1572},19,[1574,1578,1582,1586,1590],{"type":35,"tag":135,"props":1575,"children":1576},{"style":148},[1577],{"type":40,"value":1067},{"type":35,"tag":135,"props":1579,"children":1580},{"style":181},[1581],{"type":40,"value":599},{"type":35,"tag":135,"props":1583,"children":1584},{"style":148},[1585],{"type":40,"value":907},{"type":35,"tag":135,"props":1587,"children":1588},{"style":148},[1589],{"type":40,"value":1054},{"type":35,"tag":135,"props":1591,"children":1592},{"style":148},[1593],{"type":40,"value":1594}," false,\n",{"type":35,"tag":135,"props":1596,"children":1598},{"class":137,"line":1597},20,[1599,1603,1607,1611,1615],{"type":35,"tag":135,"props":1600,"children":1601},{"style":148},[1602],{"type":40,"value":1067},{"type":35,"tag":135,"props":1604,"children":1605},{"style":181},[1606],{"type":40,"value":592},{"type":35,"tag":135,"props":1608,"children":1609},{"style":148},[1610],{"type":40,"value":907},{"type":35,"tag":135,"props":1612,"children":1613},{"style":148},[1614],{"type":40,"value":1054},{"type":35,"tag":135,"props":1616,"children":1617},{"style":148},[1618],{"type":40,"value":1594},{"type":35,"tag":135,"props":1620,"children":1622},{"class":137,"line":1621},21,[1623,1627,1631,1635,1639,1643,1648,1652],{"type":35,"tag":135,"props":1624,"children":1625},{"style":148},[1626],{"type":40,"value":1067},{"type":35,"tag":135,"props":1628,"children":1629},{"style":181},[1630],{"type":40,"value":455},{"type":35,"tag":135,"props":1632,"children":1633},{"style":148},[1634],{"type":40,"value":907},{"type":35,"tag":135,"props":1636,"children":1637},{"style":148},[1638],{"type":40,"value":1054},{"type":35,"tag":135,"props":1640,"children":1641},{"style":148},[1642],{"type":40,"value":892},{"type":35,"tag":135,"props":1644,"children":1645},{"style":154},[1646],{"type":40,"value":1647},"openrouter\u002Fauto",{"type":35,"tag":135,"props":1649,"children":1650},{"style":148},[1651],{"type":40,"value":907},{"type":35,"tag":135,"props":1653,"children":1654},{"style":148},[1655],{"type":40,"value":1097},{"type":35,"tag":135,"props":1657,"children":1659},{"class":137,"line":1658},22,[1660,1664,1668,1672,1676,1680,1685,1689],{"type":35,"tag":135,"props":1661,"children":1662},{"style":148},[1663],{"type":40,"value":1067},{"type":35,"tag":135,"props":1665,"children":1666},{"style":181},[1667],{"type":40,"value":462},{"type":35,"tag":135,"props":1669,"children":1670},{"style":148},[1671],{"type":40,"value":907},{"type":35,"tag":135,"props":1673,"children":1674},{"style":148},[1675],{"type":40,"value":1054},{"type":35,"tag":135,"props":1677,"children":1678},{"style":148},[1679],{"type":40,"value":892},{"type":35,"tag":135,"props":1681,"children":1682},{"style":154},[1683],{"type":40,"value":1684},"priority",{"type":35,"tag":135,"props":1686,"children":1687},{"style":148},[1688],{"type":40,"value":907},{"type":35,"tag":135,"props":1690,"children":1691},{"style":148},[1692],{"type":40,"value":1097},{"type":35,"tag":135,"props":1694,"children":1696},{"class":137,"line":1695},23,[1697,1701,1705,1709,1713],{"type":35,"tag":135,"props":1698,"children":1699},{"style":148},[1700],{"type":40,"value":1067},{"type":35,"tag":135,"props":1702,"children":1703},{"style":181},[1704],{"type":40,"value":657},{"type":35,"tag":135,"props":1706,"children":1707},{"style":148},[1708],{"type":40,"value":907},{"type":35,"tag":135,"props":1710,"children":1711},{"style":148},[1712],{"type":40,"value":1054},{"type":35,"tag":135,"props":1714,"children":1715},{"style":148},[1716],{"type":40,"value":1717}," [\n",{"type":35,"tag":135,"props":1719,"children":1721},{"class":137,"line":1720},24,[1722],{"type":35,"tag":135,"props":1723,"children":1724},{"style":148},[1725],{"type":40,"value":1726},"      {\n",{"type":35,"tag":135,"props":1728,"children":1730},{"class":137,"line":1729},25,[1731,1736,1740,1744,1748,1752,1756,1760],{"type":35,"tag":135,"props":1732,"children":1733},{"style":148},[1734],{"type":40,"value":1735},"        \"",{"type":35,"tag":135,"props":1737,"children":1738},{"style":1269},[1739],{"type":40,"value":448},{"type":35,"tag":135,"props":1741,"children":1742},{"style":148},[1743],{"type":40,"value":907},{"type":35,"tag":135,"props":1745,"children":1746},{"style":148},[1747],{"type":40,"value":1054},{"type":35,"tag":135,"props":1749,"children":1750},{"style":148},[1751],{"type":40,"value":892},{"type":35,"tag":135,"props":1753,"children":1754},{"style":154},[1755],{"type":40,"value":1201},{"type":35,"tag":135,"props":1757,"children":1758},{"style":148},[1759],{"type":40,"value":907},{"type":35,"tag":135,"props":1761,"children":1762},{"style":148},[1763],{"type":40,"value":1097},{"type":35,"tag":135,"props":1765,"children":1766},{"class":137,"line":22},[1767,1771,1776,1780,1784,1788,1792,1796],{"type":35,"tag":135,"props":1768,"children":1769},{"style":148},[1770],{"type":40,"value":1735},{"type":35,"tag":135,"props":1772,"children":1773},{"style":1269},[1774],{"type":40,"value":1775},"model_permaslug",{"type":35,"tag":135,"props":1777,"children":1778},{"style":148},[1779],{"type":40,"value":907},{"type":35,"tag":135,"props":1781,"children":1782},{"style":148},[1783],{"type":40,"value":1054},{"type":35,"tag":135,"props":1785,"children":1786},{"style":148},[1787],{"type":40,"value":892},{"type":35,"tag":135,"props":1789,"children":1790},{"style":154},[1791],{"type":40,"value":1164},{"type":35,"tag":135,"props":1793,"children":1794},{"style":148},[1795],{"type":40,"value":907},{"type":35,"tag":135,"props":1797,"children":1798},{"style":148},[1799],{"type":40,"value":1097},{"type":35,"tag":135,"props":1801,"children":1803},{"class":137,"line":1802},27,[1804,1808,1813,1817,1821,1826],{"type":35,"tag":135,"props":1805,"children":1806},{"style":148},[1807],{"type":40,"value":1735},{"type":35,"tag":135,"props":1809,"children":1810},{"style":1269},[1811],{"type":40,"value":1812},"status",{"type":35,"tag":135,"props":1814,"children":1815},{"style":148},[1816],{"type":40,"value":907},{"type":35,"tag":135,"props":1818,"children":1819},{"style":148},[1820],{"type":40,"value":1054},{"type":35,"tag":135,"props":1822,"children":1823},{"style":1269},[1824],{"type":40,"value":1825}," 200",{"type":35,"tag":135,"props":1827,"children":1828},{"style":148},[1829],{"type":40,"value":1097},{"type":35,"tag":135,"props":1831,"children":1833},{"class":137,"line":1832},28,[1834,1838,1842,1846,1850,1854],{"type":35,"tag":135,"props":1835,"children":1836},{"style":148},[1837],{"type":40,"value":1735},{"type":35,"tag":135,"props":1839,"children":1840},{"style":1269},[1841],{"type":40,"value":549},{"type":35,"tag":135,"props":1843,"children":1844},{"style":148},[1845],{"type":40,"value":907},{"type":35,"tag":135,"props":1847,"children":1848},{"style":148},[1849],{"type":40,"value":1054},{"type":35,"tag":135,"props":1851,"children":1852},{"style":1269},[1853],{"type":40,"value":1503},{"type":35,"tag":135,"props":1855,"children":1856},{"style":148},[1857],{"type":40,"value":1097},{"type":35,"tag":135,"props":1859,"children":1861},{"class":137,"line":1860},29,[1862,1866,1870,1874,1878],{"type":35,"tag":135,"props":1863,"children":1864},{"style":148},[1865],{"type":40,"value":1735},{"type":35,"tag":135,"props":1867,"children":1868},{"style":1269},[1869],{"type":40,"value":599},{"type":35,"tag":135,"props":1871,"children":1872},{"style":148},[1873],{"type":40,"value":907},{"type":35,"tag":135,"props":1875,"children":1876},{"style":148},[1877],{"type":40,"value":1054},{"type":35,"tag":135,"props":1879,"children":1880},{"style":148},[1881],{"type":40,"value":1882}," false\n",{"type":35,"tag":135,"props":1884,"children":1886},{"class":137,"line":1885},30,[1887],{"type":35,"tag":135,"props":1888,"children":1889},{"style":148},[1890],{"type":40,"value":1891},"      }\n",{"type":35,"tag":135,"props":1893,"children":1895},{"class":137,"line":1894},31,[1896],{"type":35,"tag":135,"props":1897,"children":1898},{"style":148},[1899],{"type":40,"value":1900},"    ]\n",{"type":35,"tag":135,"props":1902,"children":1904},{"class":137,"line":1903},32,[1905],{"type":35,"tag":135,"props":1906,"children":1907},{"style":148},[1908],{"type":40,"value":1909},"  }\n",{"type":35,"tag":135,"props":1911,"children":1913},{"class":137,"line":1912},33,[1914],{"type":35,"tag":135,"props":1915,"children":1916},{"style":148},[1917],{"type":40,"value":1918},"}\n",{"type":35,"tag":304,"props":1920,"children":1922},{"id":1921},"content-response-apiv1generationcontent",[1923,1925,1930],{"type":40,"value":1924},"Content response (",{"type":35,"tag":81,"props":1926,"children":1928},{"className":1927},[],[1929],{"type":40,"value":262},{"type":40,"value":795},{"type":35,"tag":124,"props":1932,"children":1934},{"className":1017,"code":1933,"language":1019,"meta":129,"style":129},"{\n  \"data\": {\n    \"input\": {\n      \"prompt\": \"What is the meaning of life?\",\n      \"messages\": [\n        {\n          \"content\": \"What is the meaning of life?\",\n          \"role\": \"user\"\n        }\n      ]\n    },\n    \"output\": {\n      \"completion\": \"The meaning of life is a philosophical question...\",\n      \"reasoning\": null\n    }\n  }\n}\n",[1935],{"type":35,"tag":81,"props":1936,"children":1937},{"__ignoreMap":129},[1938,1945,1968,1992,2029,2052,2060,2098,2132,2140,2148,2156,2180,2216,2240,2248,2255],{"type":35,"tag":135,"props":1939,"children":1940},{"class":137,"line":138},[1941],{"type":35,"tag":135,"props":1942,"children":1943},{"style":148},[1944],{"type":40,"value":1031},{"type":35,"tag":135,"props":1946,"children":1947},{"class":137,"line":383},[1948,1952,1956,1960,1964],{"type":35,"tag":135,"props":1949,"children":1950},{"style":148},[1951],{"type":40,"value":1039},{"type":35,"tag":135,"props":1953,"children":1954},{"style":1042},[1955],{"type":40,"value":1045},{"type":35,"tag":135,"props":1957,"children":1958},{"style":148},[1959],{"type":40,"value":907},{"type":35,"tag":135,"props":1961,"children":1962},{"style":148},[1963],{"type":40,"value":1054},{"type":35,"tag":135,"props":1965,"children":1966},{"style":148},[1967],{"type":40,"value":1059},{"type":35,"tag":135,"props":1969,"children":1970},{"class":137,"line":914},[1971,1975,1980,1984,1988],{"type":35,"tag":135,"props":1972,"children":1973},{"style":148},[1974],{"type":40,"value":1067},{"type":35,"tag":135,"props":1976,"children":1977},{"style":181},[1978],{"type":40,"value":1979},"input",{"type":35,"tag":135,"props":1981,"children":1982},{"style":148},[1983],{"type":40,"value":907},{"type":35,"tag":135,"props":1985,"children":1986},{"style":148},[1987],{"type":40,"value":1054},{"type":35,"tag":135,"props":1989,"children":1990},{"style":148},[1991],{"type":40,"value":1059},{"type":35,"tag":135,"props":1993,"children":1994},{"class":137,"line":1100},[1995,2000,2004,2008,2012,2016,2021,2025],{"type":35,"tag":135,"props":1996,"children":1997},{"style":148},[1998],{"type":40,"value":1999},"      \"",{"type":35,"tag":135,"props":2001,"children":2002},{"style":1269},[2003],{"type":40,"value":777},{"type":35,"tag":135,"props":2005,"children":2006},{"style":148},[2007],{"type":40,"value":907},{"type":35,"tag":135,"props":2009,"children":2010},{"style":148},[2011],{"type":40,"value":1054},{"type":35,"tag":135,"props":2013,"children":2014},{"style":148},[2015],{"type":40,"value":892},{"type":35,"tag":135,"props":2017,"children":2018},{"style":154},[2019],{"type":40,"value":2020},"What is the meaning of life?",{"type":35,"tag":135,"props":2022,"children":2023},{"style":148},[2024],{"type":40,"value":907},{"type":35,"tag":135,"props":2026,"children":2027},{"style":148},[2028],{"type":40,"value":1097},{"type":35,"tag":135,"props":2030,"children":2031},{"class":137,"line":1138},[2032,2036,2040,2044,2048],{"type":35,"tag":135,"props":2033,"children":2034},{"style":148},[2035],{"type":40,"value":1999},{"type":35,"tag":135,"props":2037,"children":2038},{"style":1269},[2039],{"type":40,"value":785},{"type":35,"tag":135,"props":2041,"children":2042},{"style":148},[2043],{"type":40,"value":907},{"type":35,"tag":135,"props":2045,"children":2046},{"style":148},[2047],{"type":40,"value":1054},{"type":35,"tag":135,"props":2049,"children":2050},{"style":148},[2051],{"type":40,"value":1717},{"type":35,"tag":135,"props":2053,"children":2054},{"class":137,"line":1175},[2055],{"type":35,"tag":135,"props":2056,"children":2057},{"style":148},[2058],{"type":40,"value":2059},"        {\n",{"type":35,"tag":135,"props":2061,"children":2062},{"class":137,"line":1212},[2063,2068,2074,2078,2082,2086,2090,2094],{"type":35,"tag":135,"props":2064,"children":2065},{"style":148},[2066],{"type":40,"value":2067},"          \"",{"type":35,"tag":135,"props":2069,"children":2071},{"style":2070},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[2072],{"type":40,"value":2073},"content",{"type":35,"tag":135,"props":2075,"children":2076},{"style":148},[2077],{"type":40,"value":907},{"type":35,"tag":135,"props":2079,"children":2080},{"style":148},[2081],{"type":40,"value":1054},{"type":35,"tag":135,"props":2083,"children":2084},{"style":148},[2085],{"type":40,"value":892},{"type":35,"tag":135,"props":2087,"children":2088},{"style":154},[2089],{"type":40,"value":2020},{"type":35,"tag":135,"props":2091,"children":2092},{"style":148},[2093],{"type":40,"value":907},{"type":35,"tag":135,"props":2095,"children":2096},{"style":148},[2097],{"type":40,"value":1097},{"type":35,"tag":135,"props":2099,"children":2100},{"class":137,"line":1249},[2101,2105,2110,2114,2118,2122,2127],{"type":35,"tag":135,"props":2102,"children":2103},{"style":148},[2104],{"type":40,"value":2067},{"type":35,"tag":135,"props":2106,"children":2107},{"style":2070},[2108],{"type":40,"value":2109},"role",{"type":35,"tag":135,"props":2111,"children":2112},{"style":148},[2113],{"type":40,"value":907},{"type":35,"tag":135,"props":2115,"children":2116},{"style":148},[2117],{"type":40,"value":1054},{"type":35,"tag":135,"props":2119,"children":2120},{"style":148},[2121],{"type":40,"value":892},{"type":35,"tag":135,"props":2123,"children":2124},{"style":154},[2125],{"type":40,"value":2126},"user",{"type":35,"tag":135,"props":2128,"children":2129},{"style":148},[2130],{"type":40,"value":2131},"\"\n",{"type":35,"tag":135,"props":2133,"children":2134},{"class":137,"line":1279},[2135],{"type":35,"tag":135,"props":2136,"children":2137},{"style":148},[2138],{"type":40,"value":2139},"        }\n",{"type":35,"tag":135,"props":2141,"children":2142},{"class":137,"line":1308},[2143],{"type":35,"tag":135,"props":2144,"children":2145},{"style":148},[2146],{"type":40,"value":2147},"      ]\n",{"type":35,"tag":135,"props":2149,"children":2150},{"class":137,"line":1337},[2151],{"type":35,"tag":135,"props":2152,"children":2153},{"style":148},[2154],{"type":40,"value":2155},"    },\n",{"type":35,"tag":135,"props":2157,"children":2158},{"class":137,"line":1366},[2159,2163,2168,2172,2176],{"type":35,"tag":135,"props":2160,"children":2161},{"style":148},[2162],{"type":40,"value":1067},{"type":35,"tag":135,"props":2164,"children":2165},{"style":181},[2166],{"type":40,"value":2167},"output",{"type":35,"tag":135,"props":2169,"children":2170},{"style":148},[2171],{"type":40,"value":907},{"type":35,"tag":135,"props":2173,"children":2174},{"style":148},[2175],{"type":40,"value":1054},{"type":35,"tag":135,"props":2177,"children":2178},{"style":148},[2179],{"type":40,"value":1059},{"type":35,"tag":135,"props":2181,"children":2182},{"class":137,"line":1395},[2183,2187,2191,2195,2199,2203,2208,2212],{"type":35,"tag":135,"props":2184,"children":2185},{"style":148},[2186],{"type":40,"value":1999},{"type":35,"tag":135,"props":2188,"children":2189},{"style":1269},[2190],{"type":40,"value":810},{"type":35,"tag":135,"props":2192,"children":2193},{"style":148},[2194],{"type":40,"value":907},{"type":35,"tag":135,"props":2196,"children":2197},{"style":148},[2198],{"type":40,"value":1054},{"type":35,"tag":135,"props":2200,"children":2201},{"style":148},[2202],{"type":40,"value":892},{"type":35,"tag":135,"props":2204,"children":2205},{"style":154},[2206],{"type":40,"value":2207},"The meaning of life is a philosophical question...",{"type":35,"tag":135,"props":2209,"children":2210},{"style":148},[2211],{"type":40,"value":907},{"type":35,"tag":135,"props":2213,"children":2214},{"style":148},[2215],{"type":40,"value":1097},{"type":35,"tag":135,"props":2217,"children":2218},{"class":137,"line":1423},[2219,2223,2227,2231,2235],{"type":35,"tag":135,"props":2220,"children":2221},{"style":148},[2222],{"type":40,"value":1999},{"type":35,"tag":135,"props":2224,"children":2225},{"style":1269},[2226],{"type":40,"value":818},{"type":35,"tag":135,"props":2228,"children":2229},{"style":148},[2230],{"type":40,"value":907},{"type":35,"tag":135,"props":2232,"children":2233},{"style":148},[2234],{"type":40,"value":1054},{"type":35,"tag":135,"props":2236,"children":2237},{"style":148},[2238],{"type":40,"value":2239}," null\n",{"type":35,"tag":135,"props":2241,"children":2242},{"class":137,"line":1452},[2243],{"type":35,"tag":135,"props":2244,"children":2245},{"style":148},[2246],{"type":40,"value":2247},"    }\n",{"type":35,"tag":135,"props":2249,"children":2250},{"class":137,"line":1481},[2251],{"type":35,"tag":135,"props":2252,"children":2253},{"style":148},[2254],{"type":40,"value":1909},{"type":35,"tag":135,"props":2256,"children":2257},{"class":137,"line":1510},[2258],{"type":35,"tag":135,"props":2259,"children":2260},{"style":148},[2261],{"type":40,"value":1918},{"type":35,"tag":48,"props":2263,"children":2265},{"id":2264},"common-use-cases",[2266],{"type":40,"value":2267},"Common Use Cases",{"type":35,"tag":304,"props":2269,"children":2271},{"id":2270},"debug-a-failed-generation",[2272],{"type":40,"value":2273},"Debug a failed generation",{"type":35,"tag":124,"props":2275,"children":2277},{"className":126,"code":2276,"language":128,"meta":129,"style":129},"# Check what happened — look at finish_reason, provider_responses, and cancelled\ncd \u003Cskill-path>\u002Fscripts && npx tsx get-generation.ts gen-abc123 --json\n",[2278],{"type":35,"tag":81,"props":2279,"children":2280},{"__ignoreMap":129},[2281,2290],{"type":35,"tag":135,"props":2282,"children":2283},{"class":137,"line":138},[2284],{"type":35,"tag":135,"props":2285,"children":2287},{"style":2286},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[2288],{"type":40,"value":2289},"# Check what happened — look at finish_reason, provider_responses, and cancelled\n",{"type":35,"tag":135,"props":2291,"children":2292},{"class":137,"line":383},[2293,2297,2301,2305,2309,2313,2317,2321,2325,2329,2333,2338],{"type":35,"tag":135,"props":2294,"children":2295},{"style":142},[2296],{"type":40,"value":145},{"type":35,"tag":135,"props":2298,"children":2299},{"style":148},[2300],{"type":40,"value":151},{"type":35,"tag":135,"props":2302,"children":2303},{"style":154},[2304],{"type":40,"value":157},{"type":35,"tag":135,"props":2306,"children":2307},{"style":160},[2308],{"type":40,"value":163},{"type":35,"tag":135,"props":2310,"children":2311},{"style":148},[2312],{"type":40,"value":168},{"type":35,"tag":135,"props":2314,"children":2315},{"style":154},[2316],{"type":40,"value":173},{"type":35,"tag":135,"props":2318,"children":2319},{"style":148},[2320],{"type":40,"value":178},{"type":35,"tag":135,"props":2322,"children":2323},{"style":181},[2324],{"type":40,"value":365},{"type":35,"tag":135,"props":2326,"children":2327},{"style":154},[2328],{"type":40,"value":370},{"type":35,"tag":135,"props":2330,"children":2331},{"style":154},[2332],{"type":40,"value":375},{"type":35,"tag":135,"props":2334,"children":2335},{"style":154},[2336],{"type":40,"value":2337}," gen-abc123",{"type":35,"tag":135,"props":2339,"children":2340},{"style":154},[2341],{"type":40,"value":412},{"type":35,"tag":42,"props":2343,"children":2344},{},[2345],{"type":40,"value":2346},"Look for:",{"type":35,"tag":55,"props":2348,"children":2349},{},[2350,2368,2385,2402],{"type":35,"tag":59,"props":2351,"children":2352},{},[2353,2358,2360,2366],{"type":35,"tag":81,"props":2354,"children":2356},{"className":2355},[],[2357],{"type":40,"value":578},{"type":40,"value":2359}," = ",{"type":35,"tag":81,"props":2361,"children":2363},{"className":2362},[],[2364],{"type":40,"value":2365},"\"length\"",{"type":40,"value":2367}," means the model hit max tokens",{"type":35,"tag":59,"props":2369,"children":2370},{},[2371,2376,2377,2383],{"type":35,"tag":81,"props":2372,"children":2374},{"className":2373},[],[2375],{"type":40,"value":578},{"type":40,"value":2359},{"type":35,"tag":81,"props":2378,"children":2380},{"className":2379},[],[2381],{"type":40,"value":2382},"\"content_filter\"",{"type":40,"value":2384}," means content was filtered",{"type":35,"tag":59,"props":2386,"children":2387},{},[2388,2393,2394,2400],{"type":35,"tag":81,"props":2389,"children":2391},{"className":2390},[],[2392],{"type":40,"value":592},{"type":40,"value":2359},{"type":35,"tag":81,"props":2395,"children":2397},{"className":2396},[],[2398],{"type":40,"value":2399},"true",{"type":40,"value":2401}," means the request was cancelled by the client",{"type":35,"tag":59,"props":2403,"children":2404},{},[2405,2410],{"type":35,"tag":81,"props":2406,"children":2408},{"className":2407},[],[2409],{"type":40,"value":657},{"type":40,"value":2411}," with multiple entries means fallbacks occurred",{"type":35,"tag":304,"props":2413,"children":2415},{"id":2414},"check-cost-of-a-specific-request",[2416],{"type":40,"value":2417},"Check cost of a specific request",{"type":35,"tag":124,"props":2419,"children":2421},{"className":126,"code":2420,"language":128,"meta":129,"style":129},"cd \u003Cskill-path>\u002Fscripts && npx tsx get-generation.ts gen-abc123\n",[2422],{"type":35,"tag":81,"props":2423,"children":2424},{"__ignoreMap":129},[2425],{"type":35,"tag":135,"props":2426,"children":2427},{"class":137,"line":138},[2428,2432,2436,2440,2444,2448,2452,2456,2460,2464,2468],{"type":35,"tag":135,"props":2429,"children":2430},{"style":142},[2431],{"type":40,"value":145},{"type":35,"tag":135,"props":2433,"children":2434},{"style":148},[2435],{"type":40,"value":151},{"type":35,"tag":135,"props":2437,"children":2438},{"style":154},[2439],{"type":40,"value":157},{"type":35,"tag":135,"props":2441,"children":2442},{"style":160},[2443],{"type":40,"value":163},{"type":35,"tag":135,"props":2445,"children":2446},{"style":148},[2447],{"type":40,"value":168},{"type":35,"tag":135,"props":2449,"children":2450},{"style":154},[2451],{"type":40,"value":173},{"type":35,"tag":135,"props":2453,"children":2454},{"style":148},[2455],{"type":40,"value":178},{"type":35,"tag":135,"props":2457,"children":2458},{"style":181},[2459],{"type":40,"value":365},{"type":35,"tag":135,"props":2461,"children":2462},{"style":154},[2463],{"type":40,"value":370},{"type":35,"tag":135,"props":2465,"children":2466},{"style":154},[2467],{"type":40,"value":375},{"type":35,"tag":135,"props":2469,"children":2470},{"style":154},[2471],{"type":40,"value":2472}," gen-abc123\n",{"type":35,"tag":42,"props":2474,"children":2475},{},[2476,2478,2483,2485,2490],{"type":40,"value":2477},"Check ",{"type":35,"tag":81,"props":2479,"children":2481},{"className":2480},[],[2482],{"type":40,"value":513},{"type":40,"value":2484}," (what you were charged) vs ",{"type":35,"tag":81,"props":2486,"children":2488},{"className":2487},[],[2489],{"type":40,"value":527},{"type":40,"value":2491}," (what the provider charged OpenRouter).",{"type":35,"tag":304,"props":2493,"children":2495},{"id":2494},"review-what-was-actually-sentreceived",[2496],{"type":40,"value":2497},"Review what was actually sent\u002Freceived",{"type":35,"tag":124,"props":2499,"children":2501},{"className":126,"code":2500,"language":128,"meta":129,"style":129},"cd \u003Cskill-path>\u002Fscripts && npx tsx get-generation-content.ts gen-abc123\n",[2502],{"type":35,"tag":81,"props":2503,"children":2504},{"__ignoreMap":129},[2505],{"type":35,"tag":135,"props":2506,"children":2507},{"class":137,"line":138},[2508,2512,2516,2520,2524,2528,2532,2536,2540,2544,2548],{"type":35,"tag":135,"props":2509,"children":2510},{"style":142},[2511],{"type":40,"value":145},{"type":35,"tag":135,"props":2513,"children":2514},{"style":148},[2515],{"type":40,"value":151},{"type":35,"tag":135,"props":2517,"children":2518},{"style":154},[2519],{"type":40,"value":157},{"type":35,"tag":135,"props":2521,"children":2522},{"style":160},[2523],{"type":40,"value":163},{"type":35,"tag":135,"props":2525,"children":2526},{"style":148},[2527],{"type":40,"value":168},{"type":35,"tag":135,"props":2529,"children":2530},{"style":154},[2531],{"type":40,"value":173},{"type":35,"tag":135,"props":2533,"children":2534},{"style":148},[2535],{"type":40,"value":178},{"type":35,"tag":135,"props":2537,"children":2538},{"style":181},[2539],{"type":40,"value":365},{"type":35,"tag":135,"props":2541,"children":2542},{"style":154},[2543],{"type":40,"value":370},{"type":35,"tag":135,"props":2545,"children":2546},{"style":154},[2547],{"type":40,"value":721},{"type":35,"tag":135,"props":2549,"children":2550},{"style":154},[2551],{"type":40,"value":2472},{"type":35,"tag":42,"props":2553,"children":2554},{},[2555],{"type":40,"value":2556},"Useful for debugging unexpected outputs — verify the actual prompt sent and completion received.",{"type":35,"tag":304,"props":2558,"children":2560},{"id":2559},"trace-a-multi-generation-session",[2561],{"type":40,"value":2562},"Trace a multi-generation session",{"type":35,"tag":42,"props":2564,"children":2565},{},[2566,2568,2573,2574,2579,2581,2587],{"type":40,"value":2567},"If you have a ",{"type":35,"tag":81,"props":2569,"children":2571},{"className":2570},[],[2572],{"type":40,"value":642},{"type":40,"value":109},{"type":35,"tag":81,"props":2575,"children":2577},{"className":2576},[],[2578],{"type":40,"value":635},{"type":40,"value":2580}," from one generation, you can find related generations via the analytics query endpoint (see ",{"type":35,"tag":81,"props":2582,"children":2584},{"className":2583},[],[2585],{"type":40,"value":2586},"openrouter-analytics",{"type":40,"value":2588}," skill).",{"type":35,"tag":48,"props":2590,"children":2592},{"id":2591},"error-handling",[2593],{"type":40,"value":2594},"Error Handling",{"type":35,"tag":197,"props":2596,"children":2597},{},[2598,2613],{"type":35,"tag":201,"props":2599,"children":2600},{},[2601],{"type":35,"tag":205,"props":2602,"children":2603},{},[2604,2608],{"type":35,"tag":209,"props":2605,"children":2606},{},[2607],{"type":40,"value":571},{"type":35,"tag":209,"props":2609,"children":2610},{},[2611],{"type":40,"value":2612},"Meaning",{"type":35,"tag":225,"props":2614,"children":2615},{},[2616,2629,2642,2655,2668,2681],{"type":35,"tag":205,"props":2617,"children":2618},{},[2619,2624],{"type":35,"tag":232,"props":2620,"children":2621},{},[2622],{"type":40,"value":2623},"401",{"type":35,"tag":232,"props":2625,"children":2626},{},[2627],{"type":40,"value":2628},"Invalid or missing API key",{"type":35,"tag":205,"props":2630,"children":2631},{},[2632,2637],{"type":35,"tag":232,"props":2633,"children":2634},{},[2635],{"type":40,"value":2636},"403",{"type":35,"tag":232,"props":2638,"children":2639},{},[2640],{"type":40,"value":2641},"You don't have access to this generation (belongs to another user)",{"type":35,"tag":205,"props":2643,"children":2644},{},[2645,2650],{"type":35,"tag":232,"props":2646,"children":2647},{},[2648],{"type":40,"value":2649},"404",{"type":35,"tag":232,"props":2651,"children":2652},{},[2653],{"type":40,"value":2654},"Generation ID not found",{"type":35,"tag":205,"props":2656,"children":2657},{},[2658,2663],{"type":35,"tag":232,"props":2659,"children":2660},{},[2661],{"type":40,"value":2662},"429",{"type":35,"tag":232,"props":2664,"children":2665},{},[2666],{"type":40,"value":2667},"Rate limited — wait and retry",{"type":35,"tag":205,"props":2669,"children":2670},{},[2671,2676],{"type":35,"tag":232,"props":2672,"children":2673},{},[2674],{"type":40,"value":2675},"500",{"type":35,"tag":232,"props":2677,"children":2678},{},[2679],{"type":40,"value":2680},"Server error — retry",{"type":35,"tag":205,"props":2682,"children":2683},{},[2684,2689],{"type":35,"tag":232,"props":2685,"children":2686},{},[2687],{"type":40,"value":2688},"502",{"type":35,"tag":232,"props":2690,"children":2691},{},[2692],{"type":40,"value":2693},"Upstream failure — retry",{"type":35,"tag":48,"props":2695,"children":2697},{"id":2696},"key-fields-reference",[2698],{"type":40,"value":2699},"Key Fields Reference",{"type":35,"tag":304,"props":2701,"children":2703},{"id":2702},"metadata-fields",[2704],{"type":40,"value":2705},"Metadata fields",{"type":35,"tag":197,"props":2707,"children":2708},{},[2709,2730],{"type":35,"tag":201,"props":2710,"children":2711},{},[2712],{"type":35,"tag":205,"props":2713,"children":2714},{},[2715,2720,2725],{"type":35,"tag":209,"props":2716,"children":2717},{},[2718],{"type":40,"value":2719},"Field",{"type":35,"tag":209,"props":2721,"children":2722},{},[2723],{"type":40,"value":2724},"Type",{"type":35,"tag":209,"props":2726,"children":2727},{},[2728],{"type":40,"value":2729},"Description",{"type":35,"tag":225,"props":2731,"children":2732},{},[2733,2761,2787,2808,2868,2889,2909,2929,2949,2970,2990,3011,3031,3051,3071,3091,3132,3153,3174,3195,3215,3235,3255,3275,3295,3321,3341,3376,3397],{"type":35,"tag":205,"props":2734,"children":2735},{},[2736,2744,2749],{"type":35,"tag":232,"props":2737,"children":2738},{},[2739],{"type":35,"tag":81,"props":2740,"children":2742},{"className":2741},[],[2743],{"type":40,"value":282},{"type":35,"tag":232,"props":2745,"children":2746},{},[2747],{"type":40,"value":2748},"string",{"type":35,"tag":232,"props":2750,"children":2751},{},[2752,2754,2760],{"type":40,"value":2753},"Generation ID (",{"type":35,"tag":81,"props":2755,"children":2757},{"className":2756},[],[2758],{"type":40,"value":2759},"gen-...",{"type":40,"value":795},{"type":35,"tag":205,"props":2762,"children":2763},{},[2764,2772,2776],{"type":35,"tag":232,"props":2765,"children":2766},{},[2767],{"type":35,"tag":81,"props":2768,"children":2770},{"className":2769},[],[2771],{"type":40,"value":440},{"type":35,"tag":232,"props":2773,"children":2774},{},[2775],{"type":40,"value":2748},{"type":35,"tag":232,"props":2777,"children":2778},{},[2779,2781,2786],{"type":40,"value":2780},"Model permaslug (e.g., ",{"type":35,"tag":81,"props":2782,"children":2784},{"className":2783},[],[2785],{"type":40,"value":1164},{"type":40,"value":795},{"type":35,"tag":205,"props":2788,"children":2789},{},[2790,2798,2803],{"type":35,"tag":232,"props":2791,"children":2792},{},[2793],{"type":35,"tag":81,"props":2794,"children":2796},{"className":2795},[],[2797],{"type":40,"value":448},{"type":35,"tag":232,"props":2799,"children":2800},{},[2801],{"type":40,"value":2802},"string|null",{"type":35,"tag":232,"props":2804,"children":2805},{},[2806],{"type":40,"value":2807},"Provider that served the request",{"type":35,"tag":205,"props":2809,"children":2810},{},[2811,2819,2823],{"type":35,"tag":232,"props":2812,"children":2813},{},[2814],{"type":35,"tag":81,"props":2815,"children":2817},{"className":2816},[],[2818],{"type":40,"value":1110},{"type":35,"tag":232,"props":2820,"children":2821},{},[2822],{"type":40,"value":2748},{"type":35,"tag":232,"props":2824,"children":2825},{},[2826,2828,2833,2834,2840,2841,2847,2848,2854,2855,2861,2862],{"type":40,"value":2827},"One of: ",{"type":35,"tag":81,"props":2829,"children":2831},{"className":2830},[],[2832],{"type":40,"value":1127},{"type":40,"value":442},{"type":35,"tag":81,"props":2835,"children":2837},{"className":2836},[],[2838],{"type":40,"value":2839},"embeddings",{"type":40,"value":442},{"type":35,"tag":81,"props":2842,"children":2844},{"className":2843},[],[2845],{"type":40,"value":2846},"rerank",{"type":40,"value":442},{"type":35,"tag":81,"props":2849,"children":2851},{"className":2850},[],[2852],{"type":40,"value":2853},"tts",{"type":40,"value":442},{"type":35,"tag":81,"props":2856,"children":2858},{"className":2857},[],[2859],{"type":40,"value":2860},"stt",{"type":40,"value":442},{"type":35,"tag":81,"props":2863,"children":2865},{"className":2864},[],[2866],{"type":40,"value":2867},"video",{"type":35,"tag":205,"props":2869,"children":2870},{},[2871,2879,2884],{"type":35,"tag":232,"props":2872,"children":2873},{},[2874],{"type":35,"tag":81,"props":2875,"children":2877},{"className":2876},[],[2878],{"type":40,"value":477},{"type":35,"tag":232,"props":2880,"children":2881},{},[2882],{"type":40,"value":2883},"int|null",{"type":35,"tag":232,"props":2885,"children":2886},{},[2887],{"type":40,"value":2888},"Prompt token count",{"type":35,"tag":205,"props":2890,"children":2891},{},[2892,2900,2904],{"type":35,"tag":232,"props":2893,"children":2894},{},[2895],{"type":35,"tag":81,"props":2896,"children":2898},{"className":2897},[],[2899],{"type":40,"value":484},{"type":35,"tag":232,"props":2901,"children":2902},{},[2903],{"type":40,"value":2883},{"type":35,"tag":232,"props":2905,"children":2906},{},[2907],{"type":40,"value":2908},"Completion token count",{"type":35,"tag":205,"props":2910,"children":2911},{},[2912,2920,2924],{"type":35,"tag":232,"props":2913,"children":2914},{},[2915],{"type":35,"tag":81,"props":2916,"children":2918},{"className":2917},[],[2919],{"type":40,"value":491},{"type":35,"tag":232,"props":2921,"children":2922},{},[2923],{"type":40,"value":2883},{"type":35,"tag":232,"props":2925,"children":2926},{},[2927],{"type":40,"value":2928},"Reasoning\u002Fthinking tokens",{"type":35,"tag":205,"props":2930,"children":2931},{},[2932,2940,2944],{"type":35,"tag":232,"props":2933,"children":2934},{},[2935],{"type":35,"tag":81,"props":2936,"children":2938},{"className":2937},[],[2939],{"type":40,"value":498},{"type":35,"tag":232,"props":2941,"children":2942},{},[2943],{"type":40,"value":2883},{"type":35,"tag":232,"props":2945,"children":2946},{},[2947],{"type":40,"value":2948},"Cached input tokens",{"type":35,"tag":205,"props":2950,"children":2951},{},[2952,2960,2965],{"type":35,"tag":232,"props":2953,"children":2954},{},[2955],{"type":35,"tag":81,"props":2956,"children":2958},{"className":2957},[],[2959],{"type":40,"value":513},{"type":35,"tag":232,"props":2961,"children":2962},{},[2963],{"type":40,"value":2964},"number",{"type":35,"tag":232,"props":2966,"children":2967},{},[2968],{"type":40,"value":2969},"Total cost in USD",{"type":35,"tag":205,"props":2971,"children":2972},{},[2973,2981,2985],{"type":35,"tag":232,"props":2974,"children":2975},{},[2976],{"type":35,"tag":81,"props":2977,"children":2979},{"className":2978},[],[2980],{"type":40,"value":520},{"type":35,"tag":232,"props":2982,"children":2983},{},[2984],{"type":40,"value":2964},{"type":35,"tag":232,"props":2986,"children":2987},{},[2988],{"type":40,"value":2989},"Usage amount in USD",{"type":35,"tag":205,"props":2991,"children":2992},{},[2993,3001,3006],{"type":35,"tag":232,"props":2994,"children":2995},{},[2996],{"type":35,"tag":81,"props":2997,"children":2999},{"className":2998},[],[3000],{"type":40,"value":527},{"type":35,"tag":232,"props":3002,"children":3003},{},[3004],{"type":40,"value":3005},"number|null",{"type":35,"tag":232,"props":3007,"children":3008},{},[3009],{"type":40,"value":3010},"Provider's cost in USD",{"type":35,"tag":205,"props":3012,"children":3013},{},[3014,3022,3026],{"type":35,"tag":232,"props":3015,"children":3016},{},[3017],{"type":35,"tag":81,"props":3018,"children":3020},{"className":3019},[],[3021],{"type":40,"value":534},{"type":35,"tag":232,"props":3023,"children":3024},{},[3025],{"type":40,"value":3005},{"type":35,"tag":232,"props":3027,"children":3028},{},[3029],{"type":40,"value":3030},"Discount from caching",{"type":35,"tag":205,"props":3032,"children":3033},{},[3034,3042,3046],{"type":35,"tag":232,"props":3035,"children":3036},{},[3037],{"type":35,"tag":81,"props":3038,"children":3040},{"className":3039},[],[3041],{"type":40,"value":549},{"type":35,"tag":232,"props":3043,"children":3044},{},[3045],{"type":40,"value":3005},{"type":35,"tag":232,"props":3047,"children":3048},{},[3049],{"type":40,"value":3050},"Total latency in ms",{"type":35,"tag":205,"props":3052,"children":3053},{},[3054,3062,3066],{"type":35,"tag":232,"props":3055,"children":3056},{},[3057],{"type":35,"tag":81,"props":3058,"children":3060},{"className":3059},[],[3061],{"type":40,"value":556},{"type":35,"tag":232,"props":3063,"children":3064},{},[3065],{"type":40,"value":3005},{"type":35,"tag":232,"props":3067,"children":3068},{},[3069],{"type":40,"value":3070},"Model generation time in ms",{"type":35,"tag":205,"props":3072,"children":3073},{},[3074,3082,3086],{"type":35,"tag":232,"props":3075,"children":3076},{},[3077],{"type":35,"tag":81,"props":3078,"children":3080},{"className":3079},[],[3081],{"type":40,"value":563},{"type":35,"tag":232,"props":3083,"children":3084},{},[3085],{"type":40,"value":3005},{"type":35,"tag":232,"props":3087,"children":3088},{},[3089],{"type":40,"value":3090},"Moderation check time in ms",{"type":35,"tag":205,"props":3092,"children":3093},{},[3094,3102,3106],{"type":35,"tag":232,"props":3095,"children":3096},{},[3097],{"type":35,"tag":81,"props":3098,"children":3100},{"className":3099},[],[3101],{"type":40,"value":578},{"type":35,"tag":232,"props":3103,"children":3104},{},[3105],{"type":40,"value":2802},{"type":35,"tag":232,"props":3107,"children":3108},{},[3109,3111,3116,3117,3123,3124,3130],{"type":40,"value":3110},"Why generation stopped (",{"type":35,"tag":81,"props":3112,"children":3114},{"className":3113},[],[3115],{"type":40,"value":1536},{"type":40,"value":442},{"type":35,"tag":81,"props":3118,"children":3120},{"className":3119},[],[3121],{"type":40,"value":3122},"length",{"type":40,"value":442},{"type":35,"tag":81,"props":3125,"children":3127},{"className":3126},[],[3128],{"type":40,"value":3129},"content_filter",{"type":40,"value":3131},", etc.)",{"type":35,"tag":205,"props":3133,"children":3134},{},[3135,3144,3148],{"type":35,"tag":232,"props":3136,"children":3137},{},[3138],{"type":35,"tag":81,"props":3139,"children":3141},{"className":3140},[],[3142],{"type":40,"value":3143},"native_finish_reason",{"type":35,"tag":232,"props":3145,"children":3146},{},[3147],{"type":40,"value":2802},{"type":35,"tag":232,"props":3149,"children":3150},{},[3151],{"type":40,"value":3152},"Raw finish reason from provider",{"type":35,"tag":205,"props":3154,"children":3155},{},[3156,3164,3169],{"type":35,"tag":232,"props":3157,"children":3158},{},[3159],{"type":35,"tag":81,"props":3160,"children":3162},{"className":3161},[],[3163],{"type":40,"value":585},{"type":35,"tag":232,"props":3165,"children":3166},{},[3167],{"type":40,"value":3168},"bool|null",{"type":35,"tag":232,"props":3170,"children":3171},{},[3172],{"type":40,"value":3173},"Whether response was streamed",{"type":35,"tag":205,"props":3175,"children":3176},{},[3177,3185,3190],{"type":35,"tag":232,"props":3178,"children":3179},{},[3180],{"type":35,"tag":81,"props":3181,"children":3183},{"className":3182},[],[3184],{"type":40,"value":599},{"type":35,"tag":232,"props":3186,"children":3187},{},[3188],{"type":40,"value":3189},"bool",{"type":35,"tag":232,"props":3191,"children":3192},{},[3193],{"type":40,"value":3194},"Whether user's own provider key was used",{"type":35,"tag":205,"props":3196,"children":3197},{},[3198,3206,3210],{"type":35,"tag":232,"props":3199,"children":3200},{},[3201],{"type":35,"tag":81,"props":3202,"children":3204},{"className":3203},[],[3205],{"type":40,"value":592},{"type":35,"tag":232,"props":3207,"children":3208},{},[3209],{"type":40,"value":3168},{"type":35,"tag":232,"props":3211,"children":3212},{},[3213],{"type":40,"value":3214},"Whether request was cancelled",{"type":35,"tag":205,"props":3216,"children":3217},{},[3218,3226,3230],{"type":35,"tag":232,"props":3219,"children":3220},{},[3221],{"type":35,"tag":81,"props":3222,"children":3224},{"className":3223},[],[3225],{"type":40,"value":621},{"type":35,"tag":232,"props":3227,"children":3228},{},[3229],{"type":40,"value":2883},{"type":35,"tag":232,"props":3231,"children":3232},{},[3233],{"type":40,"value":3234},"OAuth app ID",{"type":35,"tag":205,"props":3236,"children":3237},{},[3238,3246,3250],{"type":35,"tag":232,"props":3239,"children":3240},{},[3241],{"type":35,"tag":81,"props":3242,"children":3244},{"className":3243},[],[3245],{"type":40,"value":628},{"type":35,"tag":232,"props":3247,"children":3248},{},[3249],{"type":40,"value":2802},{"type":35,"tag":232,"props":3251,"children":3252},{},[3253],{"type":40,"value":3254},"External user identifier (X-External-User header)",{"type":35,"tag":205,"props":3256,"children":3257},{},[3258,3266,3270],{"type":35,"tag":232,"props":3259,"children":3260},{},[3261],{"type":35,"tag":81,"props":3262,"children":3264},{"className":3263},[],[3265],{"type":40,"value":635},{"type":35,"tag":232,"props":3267,"children":3268},{},[3269],{"type":40,"value":2802},{"type":35,"tag":232,"props":3271,"children":3272},{},[3273],{"type":40,"value":3274},"Session grouping ID",{"type":35,"tag":205,"props":3276,"children":3277},{},[3278,3286,3290],{"type":35,"tag":232,"props":3279,"children":3280},{},[3281],{"type":35,"tag":81,"props":3282,"children":3284},{"className":3283},[],[3285],{"type":40,"value":642},{"type":35,"tag":232,"props":3287,"children":3288},{},[3289],{"type":40,"value":2802},{"type":35,"tag":232,"props":3291,"children":3292},{},[3293],{"type":40,"value":3294},"Request grouping ID (all gens from one API call)",{"type":35,"tag":205,"props":3296,"children":3297},{},[3298,3306,3310],{"type":35,"tag":232,"props":3299,"children":3300},{},[3301],{"type":35,"tag":81,"props":3302,"children":3304},{"className":3303},[],[3305],{"type":40,"value":455},{"type":35,"tag":232,"props":3307,"children":3308},{},[3309],{"type":40,"value":2802},{"type":35,"tag":232,"props":3311,"children":3312},{},[3313,3315,3320],{"type":40,"value":3314},"Router used (e.g., ",{"type":35,"tag":81,"props":3316,"children":3318},{"className":3317},[],[3319],{"type":40,"value":1647},{"type":40,"value":795},{"type":35,"tag":205,"props":3322,"children":3323},{},[3324,3332,3336],{"type":35,"tag":232,"props":3325,"children":3326},{},[3327],{"type":35,"tag":81,"props":3328,"children":3330},{"className":3329},[],[3331],{"type":40,"value":462},{"type":35,"tag":232,"props":3333,"children":3334},{},[3335],{"type":40,"value":2802},{"type":35,"tag":232,"props":3337,"children":3338},{},[3339],{"type":40,"value":3340},"Provider service tier",{"type":35,"tag":205,"props":3342,"children":3343},{},[3344,3353,3357],{"type":35,"tag":232,"props":3345,"children":3346},{},[3347],{"type":35,"tag":81,"props":3348,"children":3350},{"className":3349},[],[3351],{"type":40,"value":3352},"web_search_engine",{"type":35,"tag":232,"props":3354,"children":3355},{},[3356],{"type":40,"value":2802},{"type":35,"tag":232,"props":3358,"children":3359},{},[3360,3362,3368,3369,3375],{"type":40,"value":3361},"Search engine used (e.g., ",{"type":35,"tag":81,"props":3363,"children":3365},{"className":3364},[],[3366],{"type":40,"value":3367},"exa",{"type":40,"value":442},{"type":35,"tag":81,"props":3370,"children":3372},{"className":3371},[],[3373],{"type":40,"value":3374},"firecrawl",{"type":40,"value":795},{"type":35,"tag":205,"props":3377,"children":3378},{},[3379,3388,3392],{"type":35,"tag":232,"props":3380,"children":3381},{},[3382],{"type":35,"tag":81,"props":3383,"children":3385},{"className":3384},[],[3386],{"type":40,"value":3387},"num_search_results",{"type":35,"tag":232,"props":3389,"children":3390},{},[3391],{"type":40,"value":2883},{"type":35,"tag":232,"props":3393,"children":3394},{},[3395],{"type":40,"value":3396},"Number of search results included",{"type":35,"tag":205,"props":3398,"children":3399},{},[3400,3408,3413],{"type":35,"tag":232,"props":3401,"children":3402},{},[3403],{"type":35,"tag":81,"props":3404,"children":3406},{"className":3405},[],[3407],{"type":40,"value":657},{"type":35,"tag":232,"props":3409,"children":3410},{},[3411],{"type":40,"value":3412},"array|null",{"type":35,"tag":232,"props":3414,"children":3415},{},[3416],{"type":40,"value":3417},"Provider attempt chain with per-provider latency\u002Fstatus",{"type":35,"tag":304,"props":3419,"children":3421},{"id":3420},"content-fields",[3422],{"type":40,"value":3423},"Content fields",{"type":35,"tag":197,"props":3425,"children":3426},{},[3427,3445],{"type":35,"tag":201,"props":3428,"children":3429},{},[3430],{"type":35,"tag":205,"props":3431,"children":3432},{},[3433,3437,3441],{"type":35,"tag":209,"props":3434,"children":3435},{},[3436],{"type":40,"value":2719},{"type":35,"tag":209,"props":3438,"children":3439},{},[3440],{"type":40,"value":2724},{"type":35,"tag":209,"props":3442,"children":3443},{},[3444],{"type":40,"value":2729},{"type":35,"tag":225,"props":3446,"children":3447},{},[3448,3469,3497,3518],{"type":35,"tag":205,"props":3449,"children":3450},{},[3451,3460,3464],{"type":35,"tag":232,"props":3452,"children":3453},{},[3454],{"type":35,"tag":81,"props":3455,"children":3457},{"className":3456},[],[3458],{"type":40,"value":3459},"data.input.prompt",{"type":35,"tag":232,"props":3461,"children":3462},{},[3463],{"type":40,"value":2802},{"type":35,"tag":232,"props":3465,"children":3466},{},[3467],{"type":40,"value":3468},"Raw prompt text",{"type":35,"tag":205,"props":3470,"children":3471},{},[3472,3481,3485],{"type":35,"tag":232,"props":3473,"children":3474},{},[3475],{"type":35,"tag":81,"props":3476,"children":3478},{"className":3477},[],[3479],{"type":40,"value":3480},"data.input.messages",{"type":35,"tag":232,"props":3482,"children":3483},{},[3484],{"type":40,"value":3412},{"type":35,"tag":232,"props":3486,"children":3487},{},[3488,3490,3496],{"type":40,"value":3489},"Messages array (",{"type":35,"tag":81,"props":3491,"children":3493},{"className":3492},[],[3494],{"type":40,"value":3495},"[{role, content}]",{"type":40,"value":795},{"type":35,"tag":205,"props":3498,"children":3499},{},[3500,3509,3513],{"type":35,"tag":232,"props":3501,"children":3502},{},[3503],{"type":35,"tag":81,"props":3504,"children":3506},{"className":3505},[],[3507],{"type":40,"value":3508},"data.output.completion",{"type":35,"tag":232,"props":3510,"children":3511},{},[3512],{"type":40,"value":2802},{"type":35,"tag":232,"props":3514,"children":3515},{},[3516],{"type":40,"value":3517},"Model's completion text",{"type":35,"tag":205,"props":3519,"children":3520},{},[3521,3530,3534],{"type":35,"tag":232,"props":3522,"children":3523},{},[3524],{"type":35,"tag":81,"props":3525,"children":3527},{"className":3526},[],[3528],{"type":40,"value":3529},"data.output.reasoning",{"type":35,"tag":232,"props":3531,"children":3532},{},[3533],{"type":40,"value":2802},{"type":35,"tag":232,"props":3535,"children":3536},{},[3537],{"type":40,"value":3538},"Chain-of-thought reasoning",{"type":35,"tag":3540,"props":3541,"children":3542},"style",{},[3543],{"type":40,"value":3544},"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":3546,"total":1510},[3547,3564,3574,3588,3602,3612,3621,3633,3645,3650,3661,3670],{"slug":3548,"name":3548,"fn":3549,"description":3550,"org":3551,"tags":3552,"stars":18,"repoUrl":19,"updatedAt":3563},"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},[3553,3556,3559,3560],{"name":3554,"slug":3555,"type":16},"Agents","agents",{"name":3557,"slug":3558,"type":16},"CLI","cli",{"name":9,"slug":8,"type":16},{"name":3561,"slug":3562,"type":16},"TypeScript","typescript","2026-07-14T05:38:18.849741",{"slug":3565,"name":3565,"fn":3566,"description":3567,"org":3568,"tags":3569,"stars":18,"repoUrl":19,"updatedAt":3573},"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},[3570,3571,3572],{"name":3554,"slug":3555,"type":16},{"name":3557,"slug":3558,"type":16},{"name":3561,"slug":3562,"type":16},"2026-07-14T05:38:30.178029",{"slug":3575,"name":3575,"fn":3576,"description":3577,"org":3578,"tags":3579,"stars":18,"repoUrl":19,"updatedAt":3587},"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},[3580,3583,3586],{"name":3581,"slug":3582,"type":16},"API Development","api-development",{"name":3584,"slug":3585,"type":16},"Interoperability","interoperability",{"name":14,"slug":15,"type":16},"2026-07-14T05:38:13.153467",{"slug":3589,"name":3589,"fn":3590,"description":3591,"org":3592,"tags":3593,"stars":18,"repoUrl":19,"updatedAt":3601},"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},[3594,3597,3600],{"name":3595,"slug":3596,"type":16},"Migration","migration",{"name":3598,"slug":3599,"type":16},"SDK","sdk",{"name":3561,"slug":3562,"type":16},"2026-07-14T05:38:28.914981",{"slug":2586,"name":2586,"fn":3603,"description":3604,"org":3605,"tags":3606,"stars":18,"repoUrl":19,"updatedAt":3611},"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},[3607,3610],{"name":3608,"slug":3609,"type":16},"Analytics","analytics",{"name":9,"slug":8,"type":16},"2026-07-30T05:30:15.098344",{"slug":3613,"name":3613,"fn":3614,"description":3615,"org":3616,"tags":3617,"stars":18,"repoUrl":19,"updatedAt":3620},"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},[3618,3619],{"name":3608,"slug":3609,"type":16},{"name":3581,"slug":3582,"type":16},"2026-07-14T05:38:26.402047",{"slug":3622,"name":3622,"fn":3623,"description":3624,"org":3625,"tags":3626,"stars":18,"repoUrl":19,"updatedAt":3632},"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},[3627,3628,3629],{"name":3608,"slug":3609,"type":16},{"name":14,"slug":15,"type":16},{"name":3630,"slug":3631,"type":16},"Reporting","reporting","2026-07-14T05:38:32.721796",{"slug":3634,"name":3634,"fn":3635,"description":3636,"org":3637,"tags":3638,"stars":18,"repoUrl":19,"updatedAt":3644},"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},[3639,3640,3643],{"name":3608,"slug":3609,"type":16},{"name":3641,"slug":3642,"type":16},"Benchmarking","benchmarking",{"name":14,"slug":15,"type":16},"2026-07-14T05:38:27.658475",{"slug":4,"name":4,"fn":5,"description":6,"org":3646,"tags":3647,"stars":18,"repoUrl":19,"updatedAt":20},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3648,3649],{"name":14,"slug":15,"type":16},{"name":9,"slug":8,"type":16},{"slug":3651,"name":3651,"fn":3652,"description":3653,"org":3654,"tags":3655,"stars":18,"repoUrl":19,"updatedAt":3660},"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},[3656,3659],{"name":3657,"slug":3658,"type":16},"Image Generation","image-generation",{"name":9,"slug":8,"type":16},"2026-07-14T05:38:21.393411",{"slug":3662,"name":3662,"fn":3663,"description":3664,"org":3665,"tags":3666,"stars":18,"repoUrl":19,"updatedAt":3669},"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},[3667,3668],{"name":14,"slug":15,"type":16},{"name":9,"slug":8,"type":16},"2026-07-14T05:38:22.650307",{"slug":3671,"name":3671,"fn":3672,"description":3673,"org":3674,"tags":3675,"stars":18,"repoUrl":19,"updatedAt":3683},"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},[3676,3679,3682],{"name":3677,"slug":3678,"type":16},"Auth","auth",{"name":3680,"slug":3681,"type":16},"OAuth","oauth",{"name":9,"slug":8,"type":16},"2026-07-14T05:38:20.116308",{"items":3685,"total":1510},[3686,3693,3699,3705,3711,3716,3721],{"slug":3548,"name":3548,"fn":3549,"description":3550,"org":3687,"tags":3688,"stars":18,"repoUrl":19,"updatedAt":3563},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3689,3690,3691,3692],{"name":3554,"slug":3555,"type":16},{"name":3557,"slug":3558,"type":16},{"name":9,"slug":8,"type":16},{"name":3561,"slug":3562,"type":16},{"slug":3565,"name":3565,"fn":3566,"description":3567,"org":3694,"tags":3695,"stars":18,"repoUrl":19,"updatedAt":3573},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3696,3697,3698],{"name":3554,"slug":3555,"type":16},{"name":3557,"slug":3558,"type":16},{"name":3561,"slug":3562,"type":16},{"slug":3575,"name":3575,"fn":3576,"description":3577,"org":3700,"tags":3701,"stars":18,"repoUrl":19,"updatedAt":3587},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3702,3703,3704],{"name":3581,"slug":3582,"type":16},{"name":3584,"slug":3585,"type":16},{"name":14,"slug":15,"type":16},{"slug":3589,"name":3589,"fn":3590,"description":3591,"org":3706,"tags":3707,"stars":18,"repoUrl":19,"updatedAt":3601},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3708,3709,3710],{"name":3595,"slug":3596,"type":16},{"name":3598,"slug":3599,"type":16},{"name":3561,"slug":3562,"type":16},{"slug":2586,"name":2586,"fn":3603,"description":3604,"org":3712,"tags":3713,"stars":18,"repoUrl":19,"updatedAt":3611},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3714,3715],{"name":3608,"slug":3609,"type":16},{"name":9,"slug":8,"type":16},{"slug":3613,"name":3613,"fn":3614,"description":3615,"org":3717,"tags":3718,"stars":18,"repoUrl":19,"updatedAt":3620},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3719,3720],{"name":3608,"slug":3609,"type":16},{"name":3581,"slug":3582,"type":16},{"slug":3622,"name":3622,"fn":3623,"description":3624,"org":3722,"tags":3723,"stars":18,"repoUrl":19,"updatedAt":3632},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3724,3725,3726],{"name":3608,"slug":3609,"type":16},{"name":14,"slug":15,"type":16},{"name":3630,"slug":3631,"type":16}]