[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-openrouter-openrouter-images":3,"mdc-agyi9a-key":28,"related-repo-openrouter-openrouter-images":2691,"related-org-openrouter-openrouter-images":2783},{"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-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},"openrouter","OpenRouter","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fopenrouter.png","OpenRouterTeam",[13,15],{"name":9,"slug":8,"type":14},"tag",{"name":16,"slug":17,"type":14},"Image Generation","image-generation",187,"https:\u002F\u002Fgithub.com\u002FOpenRouterTeam\u002Fskills","2026-07-14T05:38:21.393411",null,26,[],{"repoUrl":19,"stars":18,"forks":22,"topics":25,"description":21},[],"https:\u002F\u002Fgithub.com\u002FOpenRouterTeam\u002Fskills\u002Ftree\u002FHEAD\u002Fskills\u002Fopenrouter-images","---\nname: openrouter-images\ndescription: 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.\n---\n\n# OpenRouter Images\n\nGenerate images from text prompts and edit existing images via OpenRouter's dedicated Image API (`POST \u002Fapi\u002Fv1\u002Fimages`). The skill also discovers which models exist and which parameters each one accepts, so you pick a valid model and options instead of guessing.\n\n## Prerequisites\n\nThe `OPENROUTER_API_KEY` environment variable must be set. Get a key at https:\u002F\u002Fopenrouter.ai\u002Fkeys\n\nDiscovery (`discover.ts`) is public and works without a key; generation and editing require one.\n\n## First-Time Setup\n\n```bash\ncd \u003Cskill-path>\u002Fscripts && npm install\n```\n\n## Decision Tree\n\nPick the right script based on what the user is asking:\n\n| User wants to... | Script | Example |\n|---|---|---|\n| See which image models exist and what they support | `discover.ts` | \"What image models can I use?\" |\n| Check the exact params a specific model accepts | `discover.ts \u003Cmodel>` | \"Does seedream support 4K?\" |\n| Generate an image from a text description | `generate.ts \"prompt\"` | \"Create an image of a sunset over mountains\" |\n| Generate with specific options | `generate.ts \"prompt\" --aspect-ratio 16:9` | \"Make a wide landscape image of a forest\" |\n| Generate with a different model | `generate.ts \"prompt\" --model \u003Cid>` | \"Generate using gemini 3.1 flash lite image\" |\n| Edit or modify an existing image | `edit.ts path \"prompt\"` | \"Make the sky purple in photo.png\" |\n| Transform an image with instructions | `edit.ts path \"prompt\"` | \"Add a party hat to the animal in this image\" |\n\n## Discover Capabilities First\n\nDifferent models accept different parameters. Rather than hardcoding flags and hitting 400s, discover what's available before generating.\n\nList every image model with a compact capability summary:\n\n```bash\ncd \u003Cskill-path>\u002Fscripts && npx tsx discover.ts\n```\n\nEach entry reports the model `id`, `input_modalities` \u002F `output_modalities` (image input means it supports editing \u002F image-to-image), `supports_streaming`, and a `supported_parameters` map — the union of what any endpoint of that model accepts.\n\nInspect one model's definitive per-endpoint capabilities:\n\n```bash\ncd \u003Cskill-path>\u002Fscripts && npx tsx discover.ts bytedance-seed\u002Fseedream-4.5\n```\n\nThis calls `GET \u002Fapi\u002Fv1\u002Fimages\u002Fmodels\u002F{author}\u002F{slug}\u002Fendpoints` and returns, per provider endpoint:\n\n| Field | Meaning |\n|---|---|\n| `provider_name` \u002F `provider_slug` | The serving provider. Use `provider_slug` as the key in `--provider-options`. |\n| `supported_parameters` | The exact parameters *this* endpoint accepts, with allowed values. |\n| `allowed_passthrough_parameters` | Provider-specific keys you can pass under `--provider-options` (e.g. `steps`, `guidance`). |\n| `supports_streaming` | Whether this endpoint streams. |\n| `pricing` | Per-image \u002F per-token pricing lines. |\n\nCapability values print as readable strings: an enum shows as `1K | 2K | 4K`, a range as `0–100`, a boolean as `supported`. A parameter that's absent is unsupported — don't send it.\n\n## Generate Image\n\nCreate a new image from a text prompt:\n\n```bash\ncd \u003Cskill-path>\u002Fscripts && npx tsx generate.ts \"a red panda wearing sunglasses\"\ncd \u003Cskill-path>\u002Fscripts && npx tsx generate.ts \"a futuristic cityscape at night\" --aspect-ratio 16:9\ncd \u003Cskill-path>\u002Fscripts && npx tsx generate.ts \"pixel art of a dragon\" --output dragon.png\ncd \u003Cskill-path>\u002Fscripts && npx tsx generate.ts \"a watercolor painting\" --model google\u002Fgemini-3.1-flash-lite-image --resolution 1K\n```\n\n## Edit Image\n\nModify an existing image with a text prompt. The source image is sent as an image-to-image reference (`input_references`), so use a model whose `input_modalities` include `image` — check with `discover.ts \u003Cmodel>`.\n\n```bash\ncd \u003Cskill-path>\u002Fscripts && npx tsx edit.ts photo.png \"make the sky purple\"\ncd \u003Cskill-path>\u002Fscripts && npx tsx edit.ts avatar.jpg \"add a party hat\" --output avatar-hat.png\ncd \u003Cskill-path>\u002Fscripts && npx tsx edit.ts scene.png \"convert to watercolor style\" --model google\u002Fgemini-3.1-flash-lite-image\n```\n\nSupported input formats: `.png`, `.jpg`, `.jpeg`, `.webp`, `.gif`\n\n## Options\n\nBoth `generate.ts` and `edit.ts` accept the same flags. Only pass parameters the target model supports — verify with `discover.ts \u003Cmodel>`.\n\n| Flag | Description | Default |\n|---|---|---|\n| `--model \u003Cid>` | OpenRouter model ID | `google\u002Fgemini-3.1-flash-image-preview` |\n| `--output \u003Cpath>` | Output file path | `image-YYYYMMDD-HHmmss.png` |\n| `--aspect-ratio \u003Cr>` | Aspect ratio (e.g. `16:9`, `1:1`, `4:3`) | Model default |\n| `--resolution \u003Ct>` | Resolution tier (`512`, `1K`, `2K`, `4K`) | Model default |\n| `--size \u003Cs>` | Shorthand: a tier (`2K`) or explicit pixels (`2048x2048`) | Model default |\n| `--quality \u003Cq>` | `auto`, `low`, `medium`, or `high` | Model default |\n| `--output-format \u003Cf>` | `png`, `jpeg`, `webp`, or `svg` (vector models) | Model default |\n| `--background \u003Cb>` | `auto`, `transparent`, or `opaque` | Model default |\n| `--output-compression \u003Cn>` | Compression 0–100 for webp\u002Fjpeg | Model default |\n| `--n \u003Ccount>` | Number of images to generate (1–10, provider permitting) | 1 |\n| `--seed \u003Cint>` | Seed for deterministic generation (where supported) | Random |\n| `--provider-options \u003Cjson>` | Provider-specific passthrough, keyed by `provider_slug` | None |\n\n`--provider-options` takes a JSON object keyed by provider slug, using keys from that endpoint's `allowed_passthrough_parameters`:\n\n```bash\ncd \u003Cskill-path>\u002Fscripts && npx tsx generate.ts \"a dramatic portrait\" \\\n  --model black-forest-labs\u002Fflux.2-pro \\\n  --provider-options '{\"black-forest-labs\": {\"steps\": 40, \"guidance\": 3}}'\n```\n\n## Output Format\n\n### generate.ts\n\n```json\n{\n  \"model\": \"google\u002Fgemini-3.1-flash-image-preview\",\n  \"prompt\": \"a red panda wearing sunglasses\",\n  \"images_saved\": [\"\u002Fabsolute\u002Fpath\u002Fto\u002Fimage-20260305-143022.png\"],\n  \"count\": 1\n}\n```\n\n### edit.ts\n\n```json\n{\n  \"model\": \"google\u002Fgemini-3.1-flash-image-preview\",\n  \"source_image\": \"photo.png\",\n  \"prompt\": \"make the sky purple\",\n  \"images_saved\": [\"\u002Fabsolute\u002Fpath\u002Fto\u002Fimage-20260305-143055.png\"],\n  \"count\": 1\n}\n```\n\nThe generation cost (USD) is printed to stderr when the API reports it. When `--n` requests multiple images, each is saved with a `-1`, `-2`, … suffix.\n\n## API Response Shapes\n\nGeneration uses `POST \u002Fapi\u002Fv1\u002Fimages`. See the [Image Generation guide](https:\u002F\u002Fopenrouter.ai\u002Fdocs\u002Fguides\u002Foverview\u002Fmultimodal\u002Fimage-generation) for full request\u002Fresponse details.\n\nImages come back base64-encoded in a `data` array. For raster PNG output, `media_type` is omitted; vector outputs (e.g. SVG) include it, and the saved file extension follows it:\n\n```json\n{\n  \"created\": 1748372400,\n  \"data\": [{ \"b64_json\": \"\u003Cbase64-encoded image data>\" }],\n  \"usage\": { \"prompt_tokens\": 0, \"completion_tokens\": 4175, \"total_tokens\": 4175, \"cost\": 0.04 }\n}\n```\n\n## Using a Different Model\n\nThe default model is `google\u002Fgemini-3.1-flash-image-preview` (Nano Banana 2). To use another, pass `--model \u003Cid>` with any image model ID (e.g. `google\u002Fgemini-3.1-flash-lite-image`). Run `discover.ts` to browse image models and `discover.ts \u003Cmodel>` to confirm which parameters and providers it supports before generating.\n\n## Presenting Results\n\n- After generating or editing, display the saved image to the user\n- Include the model used and, when reported, the generation cost (printed to stderr)\n- If multiple images are returned, show all of them\n- When the user doesn't specify an output path, tell them where the file was saved\n- For edit operations, mention the source image that was modified\n",{"data":29,"body":30},{"name":4,"description":6},{"type":31,"children":32},"root",[33,41,56,63,84,97,103,170,176,181,366,372,377,382,435,480,485,541,554,711,740,746,751,1029,1035,1069,1278,1317,1323,1350,1782,1799,1907,1913,1919,2090,2095,2287,2315,2321,2342,2363,2602,2608,2649,2655,2685],{"type":34,"tag":35,"props":36,"children":37},"element","h1",{"id":4},[38],{"type":39,"value":40},"text","OpenRouter Images",{"type":34,"tag":42,"props":43,"children":44},"p",{},[45,47,54],{"type":39,"value":46},"Generate images from text prompts and edit existing images via OpenRouter's dedicated Image API (",{"type":34,"tag":48,"props":49,"children":51},"code",{"className":50},[],[52],{"type":39,"value":53},"POST \u002Fapi\u002Fv1\u002Fimages",{"type":39,"value":55},"). The skill also discovers which models exist and which parameters each one accepts, so you pick a valid model and options instead of guessing.",{"type":34,"tag":57,"props":58,"children":60},"h2",{"id":59},"prerequisites",[61],{"type":39,"value":62},"Prerequisites",{"type":34,"tag":42,"props":64,"children":65},{},[66,68,74,76],{"type":39,"value":67},"The ",{"type":34,"tag":48,"props":69,"children":71},{"className":70},[],[72],{"type":39,"value":73},"OPENROUTER_API_KEY",{"type":39,"value":75}," environment variable must be set. Get a key at ",{"type":34,"tag":77,"props":78,"children":82},"a",{"href":79,"rel":80},"https:\u002F\u002Fopenrouter.ai\u002Fkeys",[81],"nofollow",[83],{"type":39,"value":79},{"type":34,"tag":42,"props":85,"children":86},{},[87,89,95],{"type":39,"value":88},"Discovery (",{"type":34,"tag":48,"props":90,"children":92},{"className":91},[],[93],{"type":39,"value":94},"discover.ts",{"type":39,"value":96},") is public and works without a key; generation and editing require one.",{"type":34,"tag":57,"props":98,"children":100},{"id":99},"first-time-setup",[101],{"type":39,"value":102},"First-Time Setup",{"type":34,"tag":104,"props":105,"children":110},"pre",{"className":106,"code":107,"language":108,"meta":109,"style":109},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","cd \u003Cskill-path>\u002Fscripts && npm install\n","bash","",[111],{"type":34,"tag":48,"props":112,"children":113},{"__ignoreMap":109},[114],{"type":34,"tag":115,"props":116,"children":119},"span",{"class":117,"line":118},"line",1,[120,126,132,138,144,149,154,159,165],{"type":34,"tag":115,"props":121,"children":123},{"style":122},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[124],{"type":39,"value":125},"cd",{"type":34,"tag":115,"props":127,"children":129},{"style":128},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[130],{"type":39,"value":131}," \u003C",{"type":34,"tag":115,"props":133,"children":135},{"style":134},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[136],{"type":39,"value":137},"skill-pat",{"type":34,"tag":115,"props":139,"children":141},{"style":140},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[142],{"type":39,"value":143},"h",{"type":34,"tag":115,"props":145,"children":146},{"style":128},[147],{"type":39,"value":148},">",{"type":34,"tag":115,"props":150,"children":151},{"style":134},[152],{"type":39,"value":153},"\u002Fscripts",{"type":34,"tag":115,"props":155,"children":156},{"style":128},[157],{"type":39,"value":158}," &&",{"type":34,"tag":115,"props":160,"children":162},{"style":161},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[163],{"type":39,"value":164}," npm",{"type":34,"tag":115,"props":166,"children":167},{"style":134},[168],{"type":39,"value":169}," install\n",{"type":34,"tag":57,"props":171,"children":173},{"id":172},"decision-tree",[174],{"type":39,"value":175},"Decision Tree",{"type":34,"tag":42,"props":177,"children":178},{},[179],{"type":39,"value":180},"Pick the right script based on what the user is asking:",{"type":34,"tag":182,"props":183,"children":184},"table",{},[185,209],{"type":34,"tag":186,"props":187,"children":188},"thead",{},[189],{"type":34,"tag":190,"props":191,"children":192},"tr",{},[193,199,204],{"type":34,"tag":194,"props":195,"children":196},"th",{},[197],{"type":39,"value":198},"User wants to...",{"type":34,"tag":194,"props":200,"children":201},{},[202],{"type":39,"value":203},"Script",{"type":34,"tag":194,"props":205,"children":206},{},[207],{"type":39,"value":208},"Example",{"type":34,"tag":210,"props":211,"children":212},"tbody",{},[213,235,257,279,301,323,345],{"type":34,"tag":190,"props":214,"children":215},{},[216,222,230],{"type":34,"tag":217,"props":218,"children":219},"td",{},[220],{"type":39,"value":221},"See which image models exist and what they support",{"type":34,"tag":217,"props":223,"children":224},{},[225],{"type":34,"tag":48,"props":226,"children":228},{"className":227},[],[229],{"type":39,"value":94},{"type":34,"tag":217,"props":231,"children":232},{},[233],{"type":39,"value":234},"\"What image models can I use?\"",{"type":34,"tag":190,"props":236,"children":237},{},[238,243,252],{"type":34,"tag":217,"props":239,"children":240},{},[241],{"type":39,"value":242},"Check the exact params a specific model accepts",{"type":34,"tag":217,"props":244,"children":245},{},[246],{"type":34,"tag":48,"props":247,"children":249},{"className":248},[],[250],{"type":39,"value":251},"discover.ts \u003Cmodel>",{"type":34,"tag":217,"props":253,"children":254},{},[255],{"type":39,"value":256},"\"Does seedream support 4K?\"",{"type":34,"tag":190,"props":258,"children":259},{},[260,265,274],{"type":34,"tag":217,"props":261,"children":262},{},[263],{"type":39,"value":264},"Generate an image from a text description",{"type":34,"tag":217,"props":266,"children":267},{},[268],{"type":34,"tag":48,"props":269,"children":271},{"className":270},[],[272],{"type":39,"value":273},"generate.ts \"prompt\"",{"type":34,"tag":217,"props":275,"children":276},{},[277],{"type":39,"value":278},"\"Create an image of a sunset over mountains\"",{"type":34,"tag":190,"props":280,"children":281},{},[282,287,296],{"type":34,"tag":217,"props":283,"children":284},{},[285],{"type":39,"value":286},"Generate with specific options",{"type":34,"tag":217,"props":288,"children":289},{},[290],{"type":34,"tag":48,"props":291,"children":293},{"className":292},[],[294],{"type":39,"value":295},"generate.ts \"prompt\" --aspect-ratio 16:9",{"type":34,"tag":217,"props":297,"children":298},{},[299],{"type":39,"value":300},"\"Make a wide landscape image of a forest\"",{"type":34,"tag":190,"props":302,"children":303},{},[304,309,318],{"type":34,"tag":217,"props":305,"children":306},{},[307],{"type":39,"value":308},"Generate with a different model",{"type":34,"tag":217,"props":310,"children":311},{},[312],{"type":34,"tag":48,"props":313,"children":315},{"className":314},[],[316],{"type":39,"value":317},"generate.ts \"prompt\" --model \u003Cid>",{"type":34,"tag":217,"props":319,"children":320},{},[321],{"type":39,"value":322},"\"Generate using gemini 3.1 flash lite image\"",{"type":34,"tag":190,"props":324,"children":325},{},[326,331,340],{"type":34,"tag":217,"props":327,"children":328},{},[329],{"type":39,"value":330},"Edit or modify an existing image",{"type":34,"tag":217,"props":332,"children":333},{},[334],{"type":34,"tag":48,"props":335,"children":337},{"className":336},[],[338],{"type":39,"value":339},"edit.ts path \"prompt\"",{"type":34,"tag":217,"props":341,"children":342},{},[343],{"type":39,"value":344},"\"Make the sky purple in photo.png\"",{"type":34,"tag":190,"props":346,"children":347},{},[348,353,361],{"type":34,"tag":217,"props":349,"children":350},{},[351],{"type":39,"value":352},"Transform an image with instructions",{"type":34,"tag":217,"props":354,"children":355},{},[356],{"type":34,"tag":48,"props":357,"children":359},{"className":358},[],[360],{"type":39,"value":339},{"type":34,"tag":217,"props":362,"children":363},{},[364],{"type":39,"value":365},"\"Add a party hat to the animal in this image\"",{"type":34,"tag":57,"props":367,"children":369},{"id":368},"discover-capabilities-first",[370],{"type":39,"value":371},"Discover Capabilities First",{"type":34,"tag":42,"props":373,"children":374},{},[375],{"type":39,"value":376},"Different models accept different parameters. Rather than hardcoding flags and hitting 400s, discover what's available before generating.",{"type":34,"tag":42,"props":378,"children":379},{},[380],{"type":39,"value":381},"List every image model with a compact capability summary:",{"type":34,"tag":104,"props":383,"children":385},{"className":106,"code":384,"language":108,"meta":109,"style":109},"cd \u003Cskill-path>\u002Fscripts && npx tsx discover.ts\n",[386],{"type":34,"tag":48,"props":387,"children":388},{"__ignoreMap":109},[389],{"type":34,"tag":115,"props":390,"children":391},{"class":117,"line":118},[392,396,400,404,408,412,416,420,425,430],{"type":34,"tag":115,"props":393,"children":394},{"style":122},[395],{"type":39,"value":125},{"type":34,"tag":115,"props":397,"children":398},{"style":128},[399],{"type":39,"value":131},{"type":34,"tag":115,"props":401,"children":402},{"style":134},[403],{"type":39,"value":137},{"type":34,"tag":115,"props":405,"children":406},{"style":140},[407],{"type":39,"value":143},{"type":34,"tag":115,"props":409,"children":410},{"style":128},[411],{"type":39,"value":148},{"type":34,"tag":115,"props":413,"children":414},{"style":134},[415],{"type":39,"value":153},{"type":34,"tag":115,"props":417,"children":418},{"style":128},[419],{"type":39,"value":158},{"type":34,"tag":115,"props":421,"children":422},{"style":161},[423],{"type":39,"value":424}," npx",{"type":34,"tag":115,"props":426,"children":427},{"style":134},[428],{"type":39,"value":429}," tsx",{"type":34,"tag":115,"props":431,"children":432},{"style":134},[433],{"type":39,"value":434}," discover.ts\n",{"type":34,"tag":42,"props":436,"children":437},{},[438,440,446,448,454,456,462,464,470,472,478],{"type":39,"value":439},"Each entry reports the model ",{"type":34,"tag":48,"props":441,"children":443},{"className":442},[],[444],{"type":39,"value":445},"id",{"type":39,"value":447},", ",{"type":34,"tag":48,"props":449,"children":451},{"className":450},[],[452],{"type":39,"value":453},"input_modalities",{"type":39,"value":455}," \u002F ",{"type":34,"tag":48,"props":457,"children":459},{"className":458},[],[460],{"type":39,"value":461},"output_modalities",{"type":39,"value":463}," (image input means it supports editing \u002F image-to-image), ",{"type":34,"tag":48,"props":465,"children":467},{"className":466},[],[468],{"type":39,"value":469},"supports_streaming",{"type":39,"value":471},", and a ",{"type":34,"tag":48,"props":473,"children":475},{"className":474},[],[476],{"type":39,"value":477},"supported_parameters",{"type":39,"value":479}," map — the union of what any endpoint of that model accepts.",{"type":34,"tag":42,"props":481,"children":482},{},[483],{"type":39,"value":484},"Inspect one model's definitive per-endpoint capabilities:",{"type":34,"tag":104,"props":486,"children":488},{"className":106,"code":487,"language":108,"meta":109,"style":109},"cd \u003Cskill-path>\u002Fscripts && npx tsx discover.ts bytedance-seed\u002Fseedream-4.5\n",[489],{"type":34,"tag":48,"props":490,"children":491},{"__ignoreMap":109},[492],{"type":34,"tag":115,"props":493,"children":494},{"class":117,"line":118},[495,499,503,507,511,515,519,523,527,531,536],{"type":34,"tag":115,"props":496,"children":497},{"style":122},[498],{"type":39,"value":125},{"type":34,"tag":115,"props":500,"children":501},{"style":128},[502],{"type":39,"value":131},{"type":34,"tag":115,"props":504,"children":505},{"style":134},[506],{"type":39,"value":137},{"type":34,"tag":115,"props":508,"children":509},{"style":140},[510],{"type":39,"value":143},{"type":34,"tag":115,"props":512,"children":513},{"style":128},[514],{"type":39,"value":148},{"type":34,"tag":115,"props":516,"children":517},{"style":134},[518],{"type":39,"value":153},{"type":34,"tag":115,"props":520,"children":521},{"style":128},[522],{"type":39,"value":158},{"type":34,"tag":115,"props":524,"children":525},{"style":161},[526],{"type":39,"value":424},{"type":34,"tag":115,"props":528,"children":529},{"style":134},[530],{"type":39,"value":429},{"type":34,"tag":115,"props":532,"children":533},{"style":134},[534],{"type":39,"value":535}," discover.ts",{"type":34,"tag":115,"props":537,"children":538},{"style":134},[539],{"type":39,"value":540}," bytedance-seed\u002Fseedream-4.5\n",{"type":34,"tag":42,"props":542,"children":543},{},[544,546,552],{"type":39,"value":545},"This calls ",{"type":34,"tag":48,"props":547,"children":549},{"className":548},[],[550],{"type":39,"value":551},"GET \u002Fapi\u002Fv1\u002Fimages\u002Fmodels\u002F{author}\u002F{slug}\u002Fendpoints",{"type":39,"value":553}," and returns, per provider endpoint:",{"type":34,"tag":182,"props":555,"children":556},{},[557,573],{"type":34,"tag":186,"props":558,"children":559},{},[560],{"type":34,"tag":190,"props":561,"children":562},{},[563,568],{"type":34,"tag":194,"props":564,"children":565},{},[566],{"type":39,"value":567},"Field",{"type":34,"tag":194,"props":569,"children":570},{},[571],{"type":39,"value":572},"Meaning",{"type":34,"tag":210,"props":574,"children":575},{},[576,615,639,678,694],{"type":34,"tag":190,"props":577,"children":578},{},[579,595],{"type":34,"tag":217,"props":580,"children":581},{},[582,588,589],{"type":34,"tag":48,"props":583,"children":585},{"className":584},[],[586],{"type":39,"value":587},"provider_name",{"type":39,"value":455},{"type":34,"tag":48,"props":590,"children":592},{"className":591},[],[593],{"type":39,"value":594},"provider_slug",{"type":34,"tag":217,"props":596,"children":597},{},[598,600,605,607,613],{"type":39,"value":599},"The serving provider. Use ",{"type":34,"tag":48,"props":601,"children":603},{"className":602},[],[604],{"type":39,"value":594},{"type":39,"value":606}," as the key in ",{"type":34,"tag":48,"props":608,"children":610},{"className":609},[],[611],{"type":39,"value":612},"--provider-options",{"type":39,"value":614},".",{"type":34,"tag":190,"props":616,"children":617},{},[618,626],{"type":34,"tag":217,"props":619,"children":620},{},[621],{"type":34,"tag":48,"props":622,"children":624},{"className":623},[],[625],{"type":39,"value":477},{"type":34,"tag":217,"props":627,"children":628},{},[629,631,637],{"type":39,"value":630},"The exact parameters ",{"type":34,"tag":632,"props":633,"children":634},"em",{},[635],{"type":39,"value":636},"this",{"type":39,"value":638}," endpoint accepts, with allowed values.",{"type":34,"tag":190,"props":640,"children":641},{},[642,651],{"type":34,"tag":217,"props":643,"children":644},{},[645],{"type":34,"tag":48,"props":646,"children":648},{"className":647},[],[649],{"type":39,"value":650},"allowed_passthrough_parameters",{"type":34,"tag":217,"props":652,"children":653},{},[654,656,661,663,669,670,676],{"type":39,"value":655},"Provider-specific keys you can pass under ",{"type":34,"tag":48,"props":657,"children":659},{"className":658},[],[660],{"type":39,"value":612},{"type":39,"value":662}," (e.g. ",{"type":34,"tag":48,"props":664,"children":666},{"className":665},[],[667],{"type":39,"value":668},"steps",{"type":39,"value":447},{"type":34,"tag":48,"props":671,"children":673},{"className":672},[],[674],{"type":39,"value":675},"guidance",{"type":39,"value":677},").",{"type":34,"tag":190,"props":679,"children":680},{},[681,689],{"type":34,"tag":217,"props":682,"children":683},{},[684],{"type":34,"tag":48,"props":685,"children":687},{"className":686},[],[688],{"type":39,"value":469},{"type":34,"tag":217,"props":690,"children":691},{},[692],{"type":39,"value":693},"Whether this endpoint streams.",{"type":34,"tag":190,"props":695,"children":696},{},[697,706],{"type":34,"tag":217,"props":698,"children":699},{},[700],{"type":34,"tag":48,"props":701,"children":703},{"className":702},[],[704],{"type":39,"value":705},"pricing",{"type":34,"tag":217,"props":707,"children":708},{},[709],{"type":39,"value":710},"Per-image \u002F per-token pricing lines.",{"type":34,"tag":42,"props":712,"children":713},{},[714,716,722,724,730,732,738],{"type":39,"value":715},"Capability values print as readable strings: an enum shows as ",{"type":34,"tag":48,"props":717,"children":719},{"className":718},[],[720],{"type":39,"value":721},"1K | 2K | 4K",{"type":39,"value":723},", a range as ",{"type":34,"tag":48,"props":725,"children":727},{"className":726},[],[728],{"type":39,"value":729},"0–100",{"type":39,"value":731},", a boolean as ",{"type":34,"tag":48,"props":733,"children":735},{"className":734},[],[736],{"type":39,"value":737},"supported",{"type":39,"value":739},". A parameter that's absent is unsupported — don't send it.",{"type":34,"tag":57,"props":741,"children":743},{"id":742},"generate-image",[744],{"type":39,"value":745},"Generate Image",{"type":34,"tag":42,"props":747,"children":748},{},[749],{"type":39,"value":750},"Create a new image from a text prompt:",{"type":34,"tag":104,"props":752,"children":754},{"className":106,"code":753,"language":108,"meta":109,"style":109},"cd \u003Cskill-path>\u002Fscripts && npx tsx generate.ts \"a red panda wearing sunglasses\"\ncd \u003Cskill-path>\u002Fscripts && npx tsx generate.ts \"a futuristic cityscape at night\" --aspect-ratio 16:9\ncd \u003Cskill-path>\u002Fscripts && npx tsx generate.ts \"pixel art of a dragon\" --output dragon.png\ncd \u003Cskill-path>\u002Fscripts && npx tsx generate.ts \"a watercolor painting\" --model google\u002Fgemini-3.1-flash-lite-image --resolution 1K\n",[755],{"type":34,"tag":48,"props":756,"children":757},{"__ignoreMap":109},[758,817,885,952],{"type":34,"tag":115,"props":759,"children":760},{"class":117,"line":118},[761,765,769,773,777,781,785,789,793,797,802,807,812],{"type":34,"tag":115,"props":762,"children":763},{"style":122},[764],{"type":39,"value":125},{"type":34,"tag":115,"props":766,"children":767},{"style":128},[768],{"type":39,"value":131},{"type":34,"tag":115,"props":770,"children":771},{"style":134},[772],{"type":39,"value":137},{"type":34,"tag":115,"props":774,"children":775},{"style":140},[776],{"type":39,"value":143},{"type":34,"tag":115,"props":778,"children":779},{"style":128},[780],{"type":39,"value":148},{"type":34,"tag":115,"props":782,"children":783},{"style":134},[784],{"type":39,"value":153},{"type":34,"tag":115,"props":786,"children":787},{"style":128},[788],{"type":39,"value":158},{"type":34,"tag":115,"props":790,"children":791},{"style":161},[792],{"type":39,"value":424},{"type":34,"tag":115,"props":794,"children":795},{"style":134},[796],{"type":39,"value":429},{"type":34,"tag":115,"props":798,"children":799},{"style":134},[800],{"type":39,"value":801}," generate.ts",{"type":34,"tag":115,"props":803,"children":804},{"style":128},[805],{"type":39,"value":806}," \"",{"type":34,"tag":115,"props":808,"children":809},{"style":134},[810],{"type":39,"value":811},"a red panda wearing sunglasses",{"type":34,"tag":115,"props":813,"children":814},{"style":128},[815],{"type":39,"value":816},"\"\n",{"type":34,"tag":115,"props":818,"children":820},{"class":117,"line":819},2,[821,825,829,833,837,841,845,849,853,857,861,865,870,875,880],{"type":34,"tag":115,"props":822,"children":823},{"style":122},[824],{"type":39,"value":125},{"type":34,"tag":115,"props":826,"children":827},{"style":128},[828],{"type":39,"value":131},{"type":34,"tag":115,"props":830,"children":831},{"style":134},[832],{"type":39,"value":137},{"type":34,"tag":115,"props":834,"children":835},{"style":140},[836],{"type":39,"value":143},{"type":34,"tag":115,"props":838,"children":839},{"style":128},[840],{"type":39,"value":148},{"type":34,"tag":115,"props":842,"children":843},{"style":134},[844],{"type":39,"value":153},{"type":34,"tag":115,"props":846,"children":847},{"style":128},[848],{"type":39,"value":158},{"type":34,"tag":115,"props":850,"children":851},{"style":161},[852],{"type":39,"value":424},{"type":34,"tag":115,"props":854,"children":855},{"style":134},[856],{"type":39,"value":429},{"type":34,"tag":115,"props":858,"children":859},{"style":134},[860],{"type":39,"value":801},{"type":34,"tag":115,"props":862,"children":863},{"style":128},[864],{"type":39,"value":806},{"type":34,"tag":115,"props":866,"children":867},{"style":134},[868],{"type":39,"value":869},"a futuristic cityscape at night",{"type":34,"tag":115,"props":871,"children":872},{"style":128},[873],{"type":39,"value":874},"\"",{"type":34,"tag":115,"props":876,"children":877},{"style":134},[878],{"type":39,"value":879}," --aspect-ratio",{"type":34,"tag":115,"props":881,"children":882},{"style":134},[883],{"type":39,"value":884}," 16:9\n",{"type":34,"tag":115,"props":886,"children":888},{"class":117,"line":887},3,[889,893,897,901,905,909,913,917,921,925,929,933,938,942,947],{"type":34,"tag":115,"props":890,"children":891},{"style":122},[892],{"type":39,"value":125},{"type":34,"tag":115,"props":894,"children":895},{"style":128},[896],{"type":39,"value":131},{"type":34,"tag":115,"props":898,"children":899},{"style":134},[900],{"type":39,"value":137},{"type":34,"tag":115,"props":902,"children":903},{"style":140},[904],{"type":39,"value":143},{"type":34,"tag":115,"props":906,"children":907},{"style":128},[908],{"type":39,"value":148},{"type":34,"tag":115,"props":910,"children":911},{"style":134},[912],{"type":39,"value":153},{"type":34,"tag":115,"props":914,"children":915},{"style":128},[916],{"type":39,"value":158},{"type":34,"tag":115,"props":918,"children":919},{"style":161},[920],{"type":39,"value":424},{"type":34,"tag":115,"props":922,"children":923},{"style":134},[924],{"type":39,"value":429},{"type":34,"tag":115,"props":926,"children":927},{"style":134},[928],{"type":39,"value":801},{"type":34,"tag":115,"props":930,"children":931},{"style":128},[932],{"type":39,"value":806},{"type":34,"tag":115,"props":934,"children":935},{"style":134},[936],{"type":39,"value":937},"pixel art of a dragon",{"type":34,"tag":115,"props":939,"children":940},{"style":128},[941],{"type":39,"value":874},{"type":34,"tag":115,"props":943,"children":944},{"style":134},[945],{"type":39,"value":946}," --output",{"type":34,"tag":115,"props":948,"children":949},{"style":134},[950],{"type":39,"value":951}," dragon.png\n",{"type":34,"tag":115,"props":953,"children":955},{"class":117,"line":954},4,[956,960,964,968,972,976,980,984,988,992,996,1000,1005,1009,1014,1019,1024],{"type":34,"tag":115,"props":957,"children":958},{"style":122},[959],{"type":39,"value":125},{"type":34,"tag":115,"props":961,"children":962},{"style":128},[963],{"type":39,"value":131},{"type":34,"tag":115,"props":965,"children":966},{"style":134},[967],{"type":39,"value":137},{"type":34,"tag":115,"props":969,"children":970},{"style":140},[971],{"type":39,"value":143},{"type":34,"tag":115,"props":973,"children":974},{"style":128},[975],{"type":39,"value":148},{"type":34,"tag":115,"props":977,"children":978},{"style":134},[979],{"type":39,"value":153},{"type":34,"tag":115,"props":981,"children":982},{"style":128},[983],{"type":39,"value":158},{"type":34,"tag":115,"props":985,"children":986},{"style":161},[987],{"type":39,"value":424},{"type":34,"tag":115,"props":989,"children":990},{"style":134},[991],{"type":39,"value":429},{"type":34,"tag":115,"props":993,"children":994},{"style":134},[995],{"type":39,"value":801},{"type":34,"tag":115,"props":997,"children":998},{"style":128},[999],{"type":39,"value":806},{"type":34,"tag":115,"props":1001,"children":1002},{"style":134},[1003],{"type":39,"value":1004},"a watercolor painting",{"type":34,"tag":115,"props":1006,"children":1007},{"style":128},[1008],{"type":39,"value":874},{"type":34,"tag":115,"props":1010,"children":1011},{"style":134},[1012],{"type":39,"value":1013}," --model",{"type":34,"tag":115,"props":1015,"children":1016},{"style":134},[1017],{"type":39,"value":1018}," google\u002Fgemini-3.1-flash-lite-image",{"type":34,"tag":115,"props":1020,"children":1021},{"style":134},[1022],{"type":39,"value":1023}," --resolution",{"type":34,"tag":115,"props":1025,"children":1026},{"style":134},[1027],{"type":39,"value":1028}," 1K\n",{"type":34,"tag":57,"props":1030,"children":1032},{"id":1031},"edit-image",[1033],{"type":39,"value":1034},"Edit Image",{"type":34,"tag":42,"props":1036,"children":1037},{},[1038,1040,1046,1048,1053,1055,1061,1063,1068],{"type":39,"value":1039},"Modify an existing image with a text prompt. The source image is sent as an image-to-image reference (",{"type":34,"tag":48,"props":1041,"children":1043},{"className":1042},[],[1044],{"type":39,"value":1045},"input_references",{"type":39,"value":1047},"), so use a model whose ",{"type":34,"tag":48,"props":1049,"children":1051},{"className":1050},[],[1052],{"type":39,"value":453},{"type":39,"value":1054}," include ",{"type":34,"tag":48,"props":1056,"children":1058},{"className":1057},[],[1059],{"type":39,"value":1060},"image",{"type":39,"value":1062}," — check with ",{"type":34,"tag":48,"props":1064,"children":1066},{"className":1065},[],[1067],{"type":39,"value":251},{"type":39,"value":614},{"type":34,"tag":104,"props":1070,"children":1072},{"className":106,"code":1071,"language":108,"meta":109,"style":109},"cd \u003Cskill-path>\u002Fscripts && npx tsx edit.ts photo.png \"make the sky purple\"\ncd \u003Cskill-path>\u002Fscripts && npx tsx edit.ts avatar.jpg \"add a party hat\" --output avatar-hat.png\ncd \u003Cskill-path>\u002Fscripts && npx tsx edit.ts scene.png \"convert to watercolor style\" --model google\u002Fgemini-3.1-flash-lite-image\n",[1073],{"type":34,"tag":48,"props":1074,"children":1075},{"__ignoreMap":109},[1076,1138,1208],{"type":34,"tag":115,"props":1077,"children":1078},{"class":117,"line":118},[1079,1083,1087,1091,1095,1099,1103,1107,1111,1115,1120,1125,1129,1134],{"type":34,"tag":115,"props":1080,"children":1081},{"style":122},[1082],{"type":39,"value":125},{"type":34,"tag":115,"props":1084,"children":1085},{"style":128},[1086],{"type":39,"value":131},{"type":34,"tag":115,"props":1088,"children":1089},{"style":134},[1090],{"type":39,"value":137},{"type":34,"tag":115,"props":1092,"children":1093},{"style":140},[1094],{"type":39,"value":143},{"type":34,"tag":115,"props":1096,"children":1097},{"style":128},[1098],{"type":39,"value":148},{"type":34,"tag":115,"props":1100,"children":1101},{"style":134},[1102],{"type":39,"value":153},{"type":34,"tag":115,"props":1104,"children":1105},{"style":128},[1106],{"type":39,"value":158},{"type":34,"tag":115,"props":1108,"children":1109},{"style":161},[1110],{"type":39,"value":424},{"type":34,"tag":115,"props":1112,"children":1113},{"style":134},[1114],{"type":39,"value":429},{"type":34,"tag":115,"props":1116,"children":1117},{"style":134},[1118],{"type":39,"value":1119}," edit.ts",{"type":34,"tag":115,"props":1121,"children":1122},{"style":134},[1123],{"type":39,"value":1124}," photo.png",{"type":34,"tag":115,"props":1126,"children":1127},{"style":128},[1128],{"type":39,"value":806},{"type":34,"tag":115,"props":1130,"children":1131},{"style":134},[1132],{"type":39,"value":1133},"make the sky purple",{"type":34,"tag":115,"props":1135,"children":1136},{"style":128},[1137],{"type":39,"value":816},{"type":34,"tag":115,"props":1139,"children":1140},{"class":117,"line":819},[1141,1145,1149,1153,1157,1161,1165,1169,1173,1177,1181,1186,1190,1195,1199,1203],{"type":34,"tag":115,"props":1142,"children":1143},{"style":122},[1144],{"type":39,"value":125},{"type":34,"tag":115,"props":1146,"children":1147},{"style":128},[1148],{"type":39,"value":131},{"type":34,"tag":115,"props":1150,"children":1151},{"style":134},[1152],{"type":39,"value":137},{"type":34,"tag":115,"props":1154,"children":1155},{"style":140},[1156],{"type":39,"value":143},{"type":34,"tag":115,"props":1158,"children":1159},{"style":128},[1160],{"type":39,"value":148},{"type":34,"tag":115,"props":1162,"children":1163},{"style":134},[1164],{"type":39,"value":153},{"type":34,"tag":115,"props":1166,"children":1167},{"style":128},[1168],{"type":39,"value":158},{"type":34,"tag":115,"props":1170,"children":1171},{"style":161},[1172],{"type":39,"value":424},{"type":34,"tag":115,"props":1174,"children":1175},{"style":134},[1176],{"type":39,"value":429},{"type":34,"tag":115,"props":1178,"children":1179},{"style":134},[1180],{"type":39,"value":1119},{"type":34,"tag":115,"props":1182,"children":1183},{"style":134},[1184],{"type":39,"value":1185}," avatar.jpg",{"type":34,"tag":115,"props":1187,"children":1188},{"style":128},[1189],{"type":39,"value":806},{"type":34,"tag":115,"props":1191,"children":1192},{"style":134},[1193],{"type":39,"value":1194},"add a party hat",{"type":34,"tag":115,"props":1196,"children":1197},{"style":128},[1198],{"type":39,"value":874},{"type":34,"tag":115,"props":1200,"children":1201},{"style":134},[1202],{"type":39,"value":946},{"type":34,"tag":115,"props":1204,"children":1205},{"style":134},[1206],{"type":39,"value":1207}," avatar-hat.png\n",{"type":34,"tag":115,"props":1209,"children":1210},{"class":117,"line":887},[1211,1215,1219,1223,1227,1231,1235,1239,1243,1247,1251,1256,1260,1265,1269,1273],{"type":34,"tag":115,"props":1212,"children":1213},{"style":122},[1214],{"type":39,"value":125},{"type":34,"tag":115,"props":1216,"children":1217},{"style":128},[1218],{"type":39,"value":131},{"type":34,"tag":115,"props":1220,"children":1221},{"style":134},[1222],{"type":39,"value":137},{"type":34,"tag":115,"props":1224,"children":1225},{"style":140},[1226],{"type":39,"value":143},{"type":34,"tag":115,"props":1228,"children":1229},{"style":128},[1230],{"type":39,"value":148},{"type":34,"tag":115,"props":1232,"children":1233},{"style":134},[1234],{"type":39,"value":153},{"type":34,"tag":115,"props":1236,"children":1237},{"style":128},[1238],{"type":39,"value":158},{"type":34,"tag":115,"props":1240,"children":1241},{"style":161},[1242],{"type":39,"value":424},{"type":34,"tag":115,"props":1244,"children":1245},{"style":134},[1246],{"type":39,"value":429},{"type":34,"tag":115,"props":1248,"children":1249},{"style":134},[1250],{"type":39,"value":1119},{"type":34,"tag":115,"props":1252,"children":1253},{"style":134},[1254],{"type":39,"value":1255}," scene.png",{"type":34,"tag":115,"props":1257,"children":1258},{"style":128},[1259],{"type":39,"value":806},{"type":34,"tag":115,"props":1261,"children":1262},{"style":134},[1263],{"type":39,"value":1264},"convert to watercolor style",{"type":34,"tag":115,"props":1266,"children":1267},{"style":128},[1268],{"type":39,"value":874},{"type":34,"tag":115,"props":1270,"children":1271},{"style":134},[1272],{"type":39,"value":1013},{"type":34,"tag":115,"props":1274,"children":1275},{"style":134},[1276],{"type":39,"value":1277}," google\u002Fgemini-3.1-flash-lite-image\n",{"type":34,"tag":42,"props":1279,"children":1280},{},[1281,1283,1289,1290,1296,1297,1303,1304,1310,1311],{"type":39,"value":1282},"Supported input formats: ",{"type":34,"tag":48,"props":1284,"children":1286},{"className":1285},[],[1287],{"type":39,"value":1288},".png",{"type":39,"value":447},{"type":34,"tag":48,"props":1291,"children":1293},{"className":1292},[],[1294],{"type":39,"value":1295},".jpg",{"type":39,"value":447},{"type":34,"tag":48,"props":1298,"children":1300},{"className":1299},[],[1301],{"type":39,"value":1302},".jpeg",{"type":39,"value":447},{"type":34,"tag":48,"props":1305,"children":1307},{"className":1306},[],[1308],{"type":39,"value":1309},".webp",{"type":39,"value":447},{"type":34,"tag":48,"props":1312,"children":1314},{"className":1313},[],[1315],{"type":39,"value":1316},".gif",{"type":34,"tag":57,"props":1318,"children":1320},{"id":1319},"options",[1321],{"type":39,"value":1322},"Options",{"type":34,"tag":42,"props":1324,"children":1325},{},[1326,1328,1334,1336,1342,1344,1349],{"type":39,"value":1327},"Both ",{"type":34,"tag":48,"props":1329,"children":1331},{"className":1330},[],[1332],{"type":39,"value":1333},"generate.ts",{"type":39,"value":1335}," and ",{"type":34,"tag":48,"props":1337,"children":1339},{"className":1338},[],[1340],{"type":39,"value":1341},"edit.ts",{"type":39,"value":1343}," accept the same flags. Only pass parameters the target model supports — verify with ",{"type":34,"tag":48,"props":1345,"children":1347},{"className":1346},[],[1348],{"type":39,"value":251},{"type":39,"value":614},{"type":34,"tag":182,"props":1351,"children":1352},{},[1353,1374],{"type":34,"tag":186,"props":1354,"children":1355},{},[1356],{"type":34,"tag":190,"props":1357,"children":1358},{},[1359,1364,1369],{"type":34,"tag":194,"props":1360,"children":1361},{},[1362],{"type":39,"value":1363},"Flag",{"type":34,"tag":194,"props":1365,"children":1366},{},[1367],{"type":39,"value":1368},"Description",{"type":34,"tag":194,"props":1370,"children":1371},{},[1372],{"type":39,"value":1373},"Default",{"type":34,"tag":210,"props":1375,"children":1376},{},[1377,1403,1429,1473,1522,1557,1604,1652,1690,1711,1733,1755],{"type":34,"tag":190,"props":1378,"children":1379},{},[1380,1389,1394],{"type":34,"tag":217,"props":1381,"children":1382},{},[1383],{"type":34,"tag":48,"props":1384,"children":1386},{"className":1385},[],[1387],{"type":39,"value":1388},"--model \u003Cid>",{"type":34,"tag":217,"props":1390,"children":1391},{},[1392],{"type":39,"value":1393},"OpenRouter model ID",{"type":34,"tag":217,"props":1395,"children":1396},{},[1397],{"type":34,"tag":48,"props":1398,"children":1400},{"className":1399},[],[1401],{"type":39,"value":1402},"google\u002Fgemini-3.1-flash-image-preview",{"type":34,"tag":190,"props":1404,"children":1405},{},[1406,1415,1420],{"type":34,"tag":217,"props":1407,"children":1408},{},[1409],{"type":34,"tag":48,"props":1410,"children":1412},{"className":1411},[],[1413],{"type":39,"value":1414},"--output \u003Cpath>",{"type":34,"tag":217,"props":1416,"children":1417},{},[1418],{"type":39,"value":1419},"Output file path",{"type":34,"tag":217,"props":1421,"children":1422},{},[1423],{"type":34,"tag":48,"props":1424,"children":1426},{"className":1425},[],[1427],{"type":39,"value":1428},"image-YYYYMMDD-HHmmss.png",{"type":34,"tag":190,"props":1430,"children":1431},{},[1432,1441,1468],{"type":34,"tag":217,"props":1433,"children":1434},{},[1435],{"type":34,"tag":48,"props":1436,"children":1438},{"className":1437},[],[1439],{"type":39,"value":1440},"--aspect-ratio \u003Cr>",{"type":34,"tag":217,"props":1442,"children":1443},{},[1444,1446,1452,1453,1459,1460,1466],{"type":39,"value":1445},"Aspect ratio (e.g. ",{"type":34,"tag":48,"props":1447,"children":1449},{"className":1448},[],[1450],{"type":39,"value":1451},"16:9",{"type":39,"value":447},{"type":34,"tag":48,"props":1454,"children":1456},{"className":1455},[],[1457],{"type":39,"value":1458},"1:1",{"type":39,"value":447},{"type":34,"tag":48,"props":1461,"children":1463},{"className":1462},[],[1464],{"type":39,"value":1465},"4:3",{"type":39,"value":1467},")",{"type":34,"tag":217,"props":1469,"children":1470},{},[1471],{"type":39,"value":1472},"Model default",{"type":34,"tag":190,"props":1474,"children":1475},{},[1476,1485,1518],{"type":34,"tag":217,"props":1477,"children":1478},{},[1479],{"type":34,"tag":48,"props":1480,"children":1482},{"className":1481},[],[1483],{"type":39,"value":1484},"--resolution \u003Ct>",{"type":34,"tag":217,"props":1486,"children":1487},{},[1488,1490,1496,1497,1503,1504,1510,1511,1517],{"type":39,"value":1489},"Resolution tier (",{"type":34,"tag":48,"props":1491,"children":1493},{"className":1492},[],[1494],{"type":39,"value":1495},"512",{"type":39,"value":447},{"type":34,"tag":48,"props":1498,"children":1500},{"className":1499},[],[1501],{"type":39,"value":1502},"1K",{"type":39,"value":447},{"type":34,"tag":48,"props":1505,"children":1507},{"className":1506},[],[1508],{"type":39,"value":1509},"2K",{"type":39,"value":447},{"type":34,"tag":48,"props":1512,"children":1514},{"className":1513},[],[1515],{"type":39,"value":1516},"4K",{"type":39,"value":1467},{"type":34,"tag":217,"props":1519,"children":1520},{},[1521],{"type":39,"value":1472},{"type":34,"tag":190,"props":1523,"children":1524},{},[1525,1534,1553],{"type":34,"tag":217,"props":1526,"children":1527},{},[1528],{"type":34,"tag":48,"props":1529,"children":1531},{"className":1530},[],[1532],{"type":39,"value":1533},"--size \u003Cs>",{"type":34,"tag":217,"props":1535,"children":1536},{},[1537,1539,1544,1546,1552],{"type":39,"value":1538},"Shorthand: a tier (",{"type":34,"tag":48,"props":1540,"children":1542},{"className":1541},[],[1543],{"type":39,"value":1509},{"type":39,"value":1545},") or explicit pixels (",{"type":34,"tag":48,"props":1547,"children":1549},{"className":1548},[],[1550],{"type":39,"value":1551},"2048x2048",{"type":39,"value":1467},{"type":34,"tag":217,"props":1554,"children":1555},{},[1556],{"type":39,"value":1472},{"type":34,"tag":190,"props":1558,"children":1559},{},[1560,1569,1600],{"type":34,"tag":217,"props":1561,"children":1562},{},[1563],{"type":34,"tag":48,"props":1564,"children":1566},{"className":1565},[],[1567],{"type":39,"value":1568},"--quality \u003Cq>",{"type":34,"tag":217,"props":1570,"children":1571},{},[1572,1578,1579,1585,1586,1592,1594],{"type":34,"tag":48,"props":1573,"children":1575},{"className":1574},[],[1576],{"type":39,"value":1577},"auto",{"type":39,"value":447},{"type":34,"tag":48,"props":1580,"children":1582},{"className":1581},[],[1583],{"type":39,"value":1584},"low",{"type":39,"value":447},{"type":34,"tag":48,"props":1587,"children":1589},{"className":1588},[],[1590],{"type":39,"value":1591},"medium",{"type":39,"value":1593},", or ",{"type":34,"tag":48,"props":1595,"children":1597},{"className":1596},[],[1598],{"type":39,"value":1599},"high",{"type":34,"tag":217,"props":1601,"children":1602},{},[1603],{"type":39,"value":1472},{"type":34,"tag":190,"props":1605,"children":1606},{},[1607,1616,1648],{"type":34,"tag":217,"props":1608,"children":1609},{},[1610],{"type":34,"tag":48,"props":1611,"children":1613},{"className":1612},[],[1614],{"type":39,"value":1615},"--output-format \u003Cf>",{"type":34,"tag":217,"props":1617,"children":1618},{},[1619,1625,1626,1632,1633,1639,1640,1646],{"type":34,"tag":48,"props":1620,"children":1622},{"className":1621},[],[1623],{"type":39,"value":1624},"png",{"type":39,"value":447},{"type":34,"tag":48,"props":1627,"children":1629},{"className":1628},[],[1630],{"type":39,"value":1631},"jpeg",{"type":39,"value":447},{"type":34,"tag":48,"props":1634,"children":1636},{"className":1635},[],[1637],{"type":39,"value":1638},"webp",{"type":39,"value":1593},{"type":34,"tag":48,"props":1641,"children":1643},{"className":1642},[],[1644],{"type":39,"value":1645},"svg",{"type":39,"value":1647}," (vector models)",{"type":34,"tag":217,"props":1649,"children":1650},{},[1651],{"type":39,"value":1472},{"type":34,"tag":190,"props":1653,"children":1654},{},[1655,1664,1686],{"type":34,"tag":217,"props":1656,"children":1657},{},[1658],{"type":34,"tag":48,"props":1659,"children":1661},{"className":1660},[],[1662],{"type":39,"value":1663},"--background \u003Cb>",{"type":34,"tag":217,"props":1665,"children":1666},{},[1667,1672,1673,1679,1680],{"type":34,"tag":48,"props":1668,"children":1670},{"className":1669},[],[1671],{"type":39,"value":1577},{"type":39,"value":447},{"type":34,"tag":48,"props":1674,"children":1676},{"className":1675},[],[1677],{"type":39,"value":1678},"transparent",{"type":39,"value":1593},{"type":34,"tag":48,"props":1681,"children":1683},{"className":1682},[],[1684],{"type":39,"value":1685},"opaque",{"type":34,"tag":217,"props":1687,"children":1688},{},[1689],{"type":39,"value":1472},{"type":34,"tag":190,"props":1691,"children":1692},{},[1693,1702,1707],{"type":34,"tag":217,"props":1694,"children":1695},{},[1696],{"type":34,"tag":48,"props":1697,"children":1699},{"className":1698},[],[1700],{"type":39,"value":1701},"--output-compression \u003Cn>",{"type":34,"tag":217,"props":1703,"children":1704},{},[1705],{"type":39,"value":1706},"Compression 0–100 for webp\u002Fjpeg",{"type":34,"tag":217,"props":1708,"children":1709},{},[1710],{"type":39,"value":1472},{"type":34,"tag":190,"props":1712,"children":1713},{},[1714,1723,1728],{"type":34,"tag":217,"props":1715,"children":1716},{},[1717],{"type":34,"tag":48,"props":1718,"children":1720},{"className":1719},[],[1721],{"type":39,"value":1722},"--n \u003Ccount>",{"type":34,"tag":217,"props":1724,"children":1725},{},[1726],{"type":39,"value":1727},"Number of images to generate (1–10, provider permitting)",{"type":34,"tag":217,"props":1729,"children":1730},{},[1731],{"type":39,"value":1732},"1",{"type":34,"tag":190,"props":1734,"children":1735},{},[1736,1745,1750],{"type":34,"tag":217,"props":1737,"children":1738},{},[1739],{"type":34,"tag":48,"props":1740,"children":1742},{"className":1741},[],[1743],{"type":39,"value":1744},"--seed \u003Cint>",{"type":34,"tag":217,"props":1746,"children":1747},{},[1748],{"type":39,"value":1749},"Seed for deterministic generation (where supported)",{"type":34,"tag":217,"props":1751,"children":1752},{},[1753],{"type":39,"value":1754},"Random",{"type":34,"tag":190,"props":1756,"children":1757},{},[1758,1767,1777],{"type":34,"tag":217,"props":1759,"children":1760},{},[1761],{"type":34,"tag":48,"props":1762,"children":1764},{"className":1763},[],[1765],{"type":39,"value":1766},"--provider-options \u003Cjson>",{"type":34,"tag":217,"props":1768,"children":1769},{},[1770,1772],{"type":39,"value":1771},"Provider-specific passthrough, keyed by ",{"type":34,"tag":48,"props":1773,"children":1775},{"className":1774},[],[1776],{"type":39,"value":594},{"type":34,"tag":217,"props":1778,"children":1779},{},[1780],{"type":39,"value":1781},"None",{"type":34,"tag":42,"props":1783,"children":1784},{},[1785,1790,1792,1797],{"type":34,"tag":48,"props":1786,"children":1788},{"className":1787},[],[1789],{"type":39,"value":612},{"type":39,"value":1791}," takes a JSON object keyed by provider slug, using keys from that endpoint's ",{"type":34,"tag":48,"props":1793,"children":1795},{"className":1794},[],[1796],{"type":39,"value":650},{"type":39,"value":1798},":",{"type":34,"tag":104,"props":1800,"children":1802},{"className":106,"code":1801,"language":108,"meta":109,"style":109},"cd \u003Cskill-path>\u002Fscripts && npx tsx generate.ts \"a dramatic portrait\" \\\n  --model black-forest-labs\u002Fflux.2-pro \\\n  --provider-options '{\"black-forest-labs\": {\"steps\": 40, \"guidance\": 3}}'\n",[1803],{"type":34,"tag":48,"props":1804,"children":1805},{"__ignoreMap":109},[1806,1867,1884],{"type":34,"tag":115,"props":1807,"children":1808},{"class":117,"line":118},[1809,1813,1817,1821,1825,1829,1833,1837,1841,1845,1849,1853,1858,1862],{"type":34,"tag":115,"props":1810,"children":1811},{"style":122},[1812],{"type":39,"value":125},{"type":34,"tag":115,"props":1814,"children":1815},{"style":128},[1816],{"type":39,"value":131},{"type":34,"tag":115,"props":1818,"children":1819},{"style":134},[1820],{"type":39,"value":137},{"type":34,"tag":115,"props":1822,"children":1823},{"style":140},[1824],{"type":39,"value":143},{"type":34,"tag":115,"props":1826,"children":1827},{"style":128},[1828],{"type":39,"value":148},{"type":34,"tag":115,"props":1830,"children":1831},{"style":134},[1832],{"type":39,"value":153},{"type":34,"tag":115,"props":1834,"children":1835},{"style":128},[1836],{"type":39,"value":158},{"type":34,"tag":115,"props":1838,"children":1839},{"style":161},[1840],{"type":39,"value":424},{"type":34,"tag":115,"props":1842,"children":1843},{"style":134},[1844],{"type":39,"value":429},{"type":34,"tag":115,"props":1846,"children":1847},{"style":134},[1848],{"type":39,"value":801},{"type":34,"tag":115,"props":1850,"children":1851},{"style":128},[1852],{"type":39,"value":806},{"type":34,"tag":115,"props":1854,"children":1855},{"style":134},[1856],{"type":39,"value":1857},"a dramatic portrait",{"type":34,"tag":115,"props":1859,"children":1860},{"style":128},[1861],{"type":39,"value":874},{"type":34,"tag":115,"props":1863,"children":1864},{"style":140},[1865],{"type":39,"value":1866}," \\\n",{"type":34,"tag":115,"props":1868,"children":1869},{"class":117,"line":819},[1870,1875,1880],{"type":34,"tag":115,"props":1871,"children":1872},{"style":134},[1873],{"type":39,"value":1874},"  --model",{"type":34,"tag":115,"props":1876,"children":1877},{"style":134},[1878],{"type":39,"value":1879}," black-forest-labs\u002Fflux.2-pro",{"type":34,"tag":115,"props":1881,"children":1882},{"style":140},[1883],{"type":39,"value":1866},{"type":34,"tag":115,"props":1885,"children":1886},{"class":117,"line":887},[1887,1892,1897,1902],{"type":34,"tag":115,"props":1888,"children":1889},{"style":134},[1890],{"type":39,"value":1891},"  --provider-options",{"type":34,"tag":115,"props":1893,"children":1894},{"style":128},[1895],{"type":39,"value":1896}," '",{"type":34,"tag":115,"props":1898,"children":1899},{"style":134},[1900],{"type":39,"value":1901},"{\"black-forest-labs\": {\"steps\": 40, \"guidance\": 3}}",{"type":34,"tag":115,"props":1903,"children":1904},{"style":128},[1905],{"type":39,"value":1906},"'\n",{"type":34,"tag":57,"props":1908,"children":1910},{"id":1909},"output-format",[1911],{"type":39,"value":1912},"Output Format",{"type":34,"tag":1914,"props":1915,"children":1917},"h3",{"id":1916},"generatets",[1918],{"type":39,"value":1333},{"type":34,"tag":104,"props":1920,"children":1924},{"className":1921,"code":1922,"language":1923,"meta":109,"style":109},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"model\": \"google\u002Fgemini-3.1-flash-image-preview\",\n  \"prompt\": \"a red panda wearing sunglasses\",\n  \"images_saved\": [\"\u002Fabsolute\u002Fpath\u002Fto\u002Fimage-20260305-143022.png\"],\n  \"count\": 1\n}\n","json",[1925],{"type":34,"tag":48,"props":1926,"children":1927},{"__ignoreMap":109},[1928,1936,1975,2011,2054,2081],{"type":34,"tag":115,"props":1929,"children":1930},{"class":117,"line":118},[1931],{"type":34,"tag":115,"props":1932,"children":1933},{"style":128},[1934],{"type":39,"value":1935},"{\n",{"type":34,"tag":115,"props":1937,"children":1938},{"class":117,"line":819},[1939,1944,1950,1954,1958,1962,1966,1970],{"type":34,"tag":115,"props":1940,"children":1941},{"style":128},[1942],{"type":39,"value":1943},"  \"",{"type":34,"tag":115,"props":1945,"children":1947},{"style":1946},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[1948],{"type":39,"value":1949},"model",{"type":34,"tag":115,"props":1951,"children":1952},{"style":128},[1953],{"type":39,"value":874},{"type":34,"tag":115,"props":1955,"children":1956},{"style":128},[1957],{"type":39,"value":1798},{"type":34,"tag":115,"props":1959,"children":1960},{"style":128},[1961],{"type":39,"value":806},{"type":34,"tag":115,"props":1963,"children":1964},{"style":134},[1965],{"type":39,"value":1402},{"type":34,"tag":115,"props":1967,"children":1968},{"style":128},[1969],{"type":39,"value":874},{"type":34,"tag":115,"props":1971,"children":1972},{"style":128},[1973],{"type":39,"value":1974},",\n",{"type":34,"tag":115,"props":1976,"children":1977},{"class":117,"line":887},[1978,1982,1987,1991,1995,1999,2003,2007],{"type":34,"tag":115,"props":1979,"children":1980},{"style":128},[1981],{"type":39,"value":1943},{"type":34,"tag":115,"props":1983,"children":1984},{"style":1946},[1985],{"type":39,"value":1986},"prompt",{"type":34,"tag":115,"props":1988,"children":1989},{"style":128},[1990],{"type":39,"value":874},{"type":34,"tag":115,"props":1992,"children":1993},{"style":128},[1994],{"type":39,"value":1798},{"type":34,"tag":115,"props":1996,"children":1997},{"style":128},[1998],{"type":39,"value":806},{"type":34,"tag":115,"props":2000,"children":2001},{"style":134},[2002],{"type":39,"value":811},{"type":34,"tag":115,"props":2004,"children":2005},{"style":128},[2006],{"type":39,"value":874},{"type":34,"tag":115,"props":2008,"children":2009},{"style":128},[2010],{"type":39,"value":1974},{"type":34,"tag":115,"props":2012,"children":2013},{"class":117,"line":954},[2014,2018,2023,2027,2031,2036,2040,2045,2049],{"type":34,"tag":115,"props":2015,"children":2016},{"style":128},[2017],{"type":39,"value":1943},{"type":34,"tag":115,"props":2019,"children":2020},{"style":1946},[2021],{"type":39,"value":2022},"images_saved",{"type":34,"tag":115,"props":2024,"children":2025},{"style":128},[2026],{"type":39,"value":874},{"type":34,"tag":115,"props":2028,"children":2029},{"style":128},[2030],{"type":39,"value":1798},{"type":34,"tag":115,"props":2032,"children":2033},{"style":128},[2034],{"type":39,"value":2035}," [",{"type":34,"tag":115,"props":2037,"children":2038},{"style":128},[2039],{"type":39,"value":874},{"type":34,"tag":115,"props":2041,"children":2042},{"style":134},[2043],{"type":39,"value":2044},"\u002Fabsolute\u002Fpath\u002Fto\u002Fimage-20260305-143022.png",{"type":34,"tag":115,"props":2046,"children":2047},{"style":128},[2048],{"type":39,"value":874},{"type":34,"tag":115,"props":2050,"children":2051},{"style":128},[2052],{"type":39,"value":2053},"],\n",{"type":34,"tag":115,"props":2055,"children":2057},{"class":117,"line":2056},5,[2058,2062,2067,2071,2075],{"type":34,"tag":115,"props":2059,"children":2060},{"style":128},[2061],{"type":39,"value":1943},{"type":34,"tag":115,"props":2063,"children":2064},{"style":1946},[2065],{"type":39,"value":2066},"count",{"type":34,"tag":115,"props":2068,"children":2069},{"style":128},[2070],{"type":39,"value":874},{"type":34,"tag":115,"props":2072,"children":2073},{"style":128},[2074],{"type":39,"value":1798},{"type":34,"tag":115,"props":2076,"children":2078},{"style":2077},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[2079],{"type":39,"value":2080}," 1\n",{"type":34,"tag":115,"props":2082,"children":2084},{"class":117,"line":2083},6,[2085],{"type":34,"tag":115,"props":2086,"children":2087},{"style":128},[2088],{"type":39,"value":2089},"}\n",{"type":34,"tag":1914,"props":2091,"children":2093},{"id":2092},"editts",[2094],{"type":39,"value":1341},{"type":34,"tag":104,"props":2096,"children":2098},{"className":1921,"code":2097,"language":1923,"meta":109,"style":109},"{\n  \"model\": \"google\u002Fgemini-3.1-flash-image-preview\",\n  \"source_image\": \"photo.png\",\n  \"prompt\": \"make the sky purple\",\n  \"images_saved\": [\"\u002Fabsolute\u002Fpath\u002Fto\u002Fimage-20260305-143055.png\"],\n  \"count\": 1\n}\n",[2099],{"type":34,"tag":48,"props":2100,"children":2101},{"__ignoreMap":109},[2102,2109,2144,2181,2216,2256,2279],{"type":34,"tag":115,"props":2103,"children":2104},{"class":117,"line":118},[2105],{"type":34,"tag":115,"props":2106,"children":2107},{"style":128},[2108],{"type":39,"value":1935},{"type":34,"tag":115,"props":2110,"children":2111},{"class":117,"line":819},[2112,2116,2120,2124,2128,2132,2136,2140],{"type":34,"tag":115,"props":2113,"children":2114},{"style":128},[2115],{"type":39,"value":1943},{"type":34,"tag":115,"props":2117,"children":2118},{"style":1946},[2119],{"type":39,"value":1949},{"type":34,"tag":115,"props":2121,"children":2122},{"style":128},[2123],{"type":39,"value":874},{"type":34,"tag":115,"props":2125,"children":2126},{"style":128},[2127],{"type":39,"value":1798},{"type":34,"tag":115,"props":2129,"children":2130},{"style":128},[2131],{"type":39,"value":806},{"type":34,"tag":115,"props":2133,"children":2134},{"style":134},[2135],{"type":39,"value":1402},{"type":34,"tag":115,"props":2137,"children":2138},{"style":128},[2139],{"type":39,"value":874},{"type":34,"tag":115,"props":2141,"children":2142},{"style":128},[2143],{"type":39,"value":1974},{"type":34,"tag":115,"props":2145,"children":2146},{"class":117,"line":887},[2147,2151,2156,2160,2164,2168,2173,2177],{"type":34,"tag":115,"props":2148,"children":2149},{"style":128},[2150],{"type":39,"value":1943},{"type":34,"tag":115,"props":2152,"children":2153},{"style":1946},[2154],{"type":39,"value":2155},"source_image",{"type":34,"tag":115,"props":2157,"children":2158},{"style":128},[2159],{"type":39,"value":874},{"type":34,"tag":115,"props":2161,"children":2162},{"style":128},[2163],{"type":39,"value":1798},{"type":34,"tag":115,"props":2165,"children":2166},{"style":128},[2167],{"type":39,"value":806},{"type":34,"tag":115,"props":2169,"children":2170},{"style":134},[2171],{"type":39,"value":2172},"photo.png",{"type":34,"tag":115,"props":2174,"children":2175},{"style":128},[2176],{"type":39,"value":874},{"type":34,"tag":115,"props":2178,"children":2179},{"style":128},[2180],{"type":39,"value":1974},{"type":34,"tag":115,"props":2182,"children":2183},{"class":117,"line":954},[2184,2188,2192,2196,2200,2204,2208,2212],{"type":34,"tag":115,"props":2185,"children":2186},{"style":128},[2187],{"type":39,"value":1943},{"type":34,"tag":115,"props":2189,"children":2190},{"style":1946},[2191],{"type":39,"value":1986},{"type":34,"tag":115,"props":2193,"children":2194},{"style":128},[2195],{"type":39,"value":874},{"type":34,"tag":115,"props":2197,"children":2198},{"style":128},[2199],{"type":39,"value":1798},{"type":34,"tag":115,"props":2201,"children":2202},{"style":128},[2203],{"type":39,"value":806},{"type":34,"tag":115,"props":2205,"children":2206},{"style":134},[2207],{"type":39,"value":1133},{"type":34,"tag":115,"props":2209,"children":2210},{"style":128},[2211],{"type":39,"value":874},{"type":34,"tag":115,"props":2213,"children":2214},{"style":128},[2215],{"type":39,"value":1974},{"type":34,"tag":115,"props":2217,"children":2218},{"class":117,"line":2056},[2219,2223,2227,2231,2235,2239,2243,2248,2252],{"type":34,"tag":115,"props":2220,"children":2221},{"style":128},[2222],{"type":39,"value":1943},{"type":34,"tag":115,"props":2224,"children":2225},{"style":1946},[2226],{"type":39,"value":2022},{"type":34,"tag":115,"props":2228,"children":2229},{"style":128},[2230],{"type":39,"value":874},{"type":34,"tag":115,"props":2232,"children":2233},{"style":128},[2234],{"type":39,"value":1798},{"type":34,"tag":115,"props":2236,"children":2237},{"style":128},[2238],{"type":39,"value":2035},{"type":34,"tag":115,"props":2240,"children":2241},{"style":128},[2242],{"type":39,"value":874},{"type":34,"tag":115,"props":2244,"children":2245},{"style":134},[2246],{"type":39,"value":2247},"\u002Fabsolute\u002Fpath\u002Fto\u002Fimage-20260305-143055.png",{"type":34,"tag":115,"props":2249,"children":2250},{"style":128},[2251],{"type":39,"value":874},{"type":34,"tag":115,"props":2253,"children":2254},{"style":128},[2255],{"type":39,"value":2053},{"type":34,"tag":115,"props":2257,"children":2258},{"class":117,"line":2083},[2259,2263,2267,2271,2275],{"type":34,"tag":115,"props":2260,"children":2261},{"style":128},[2262],{"type":39,"value":1943},{"type":34,"tag":115,"props":2264,"children":2265},{"style":1946},[2266],{"type":39,"value":2066},{"type":34,"tag":115,"props":2268,"children":2269},{"style":128},[2270],{"type":39,"value":874},{"type":34,"tag":115,"props":2272,"children":2273},{"style":128},[2274],{"type":39,"value":1798},{"type":34,"tag":115,"props":2276,"children":2277},{"style":2077},[2278],{"type":39,"value":2080},{"type":34,"tag":115,"props":2280,"children":2282},{"class":117,"line":2281},7,[2283],{"type":34,"tag":115,"props":2284,"children":2285},{"style":128},[2286],{"type":39,"value":2089},{"type":34,"tag":42,"props":2288,"children":2289},{},[2290,2292,2298,2300,2306,2307,2313],{"type":39,"value":2291},"The generation cost (USD) is printed to stderr when the API reports it. When ",{"type":34,"tag":48,"props":2293,"children":2295},{"className":2294},[],[2296],{"type":39,"value":2297},"--n",{"type":39,"value":2299}," requests multiple images, each is saved with a ",{"type":34,"tag":48,"props":2301,"children":2303},{"className":2302},[],[2304],{"type":39,"value":2305},"-1",{"type":39,"value":447},{"type":34,"tag":48,"props":2308,"children":2310},{"className":2309},[],[2311],{"type":39,"value":2312},"-2",{"type":39,"value":2314},", … suffix.",{"type":34,"tag":57,"props":2316,"children":2318},{"id":2317},"api-response-shapes",[2319],{"type":39,"value":2320},"API Response Shapes",{"type":34,"tag":42,"props":2322,"children":2323},{},[2324,2326,2331,2333,2340],{"type":39,"value":2325},"Generation uses ",{"type":34,"tag":48,"props":2327,"children":2329},{"className":2328},[],[2330],{"type":39,"value":53},{"type":39,"value":2332},". See the ",{"type":34,"tag":77,"props":2334,"children":2337},{"href":2335,"rel":2336},"https:\u002F\u002Fopenrouter.ai\u002Fdocs\u002Fguides\u002Foverview\u002Fmultimodal\u002Fimage-generation",[81],[2338],{"type":39,"value":2339},"Image Generation guide",{"type":39,"value":2341}," for full request\u002Fresponse details.",{"type":34,"tag":42,"props":2343,"children":2344},{},[2345,2347,2353,2355,2361],{"type":39,"value":2346},"Images come back base64-encoded in a ",{"type":34,"tag":48,"props":2348,"children":2350},{"className":2349},[],[2351],{"type":39,"value":2352},"data",{"type":39,"value":2354}," array. For raster PNG output, ",{"type":34,"tag":48,"props":2356,"children":2358},{"className":2357},[],[2359],{"type":39,"value":2360},"media_type",{"type":39,"value":2362}," is omitted; vector outputs (e.g. SVG) include it, and the saved file extension follows it:",{"type":34,"tag":104,"props":2364,"children":2366},{"className":1921,"code":2365,"language":1923,"meta":109,"style":109},"{\n  \"created\": 1748372400,\n  \"data\": [{ \"b64_json\": \"\u003Cbase64-encoded image data>\" }],\n  \"usage\": { \"prompt_tokens\": 0, \"completion_tokens\": 4175, \"total_tokens\": 4175, \"cost\": 0.04 }\n}\n",[2367],{"type":34,"tag":48,"props":2368,"children":2369},{"__ignoreMap":109},[2370,2377,2406,2465,2595],{"type":34,"tag":115,"props":2371,"children":2372},{"class":117,"line":118},[2373],{"type":34,"tag":115,"props":2374,"children":2375},{"style":128},[2376],{"type":39,"value":1935},{"type":34,"tag":115,"props":2378,"children":2379},{"class":117,"line":819},[2380,2384,2389,2393,2397,2402],{"type":34,"tag":115,"props":2381,"children":2382},{"style":128},[2383],{"type":39,"value":1943},{"type":34,"tag":115,"props":2385,"children":2386},{"style":1946},[2387],{"type":39,"value":2388},"created",{"type":34,"tag":115,"props":2390,"children":2391},{"style":128},[2392],{"type":39,"value":874},{"type":34,"tag":115,"props":2394,"children":2395},{"style":128},[2396],{"type":39,"value":1798},{"type":34,"tag":115,"props":2398,"children":2399},{"style":2077},[2400],{"type":39,"value":2401}," 1748372400",{"type":34,"tag":115,"props":2403,"children":2404},{"style":128},[2405],{"type":39,"value":1974},{"type":34,"tag":115,"props":2407,"children":2408},{"class":117,"line":887},[2409,2413,2417,2421,2425,2430,2434,2439,2443,2447,2451,2456,2460],{"type":34,"tag":115,"props":2410,"children":2411},{"style":128},[2412],{"type":39,"value":1943},{"type":34,"tag":115,"props":2414,"children":2415},{"style":1946},[2416],{"type":39,"value":2352},{"type":34,"tag":115,"props":2418,"children":2419},{"style":128},[2420],{"type":39,"value":874},{"type":34,"tag":115,"props":2422,"children":2423},{"style":128},[2424],{"type":39,"value":1798},{"type":34,"tag":115,"props":2426,"children":2427},{"style":128},[2428],{"type":39,"value":2429}," [{",{"type":34,"tag":115,"props":2431,"children":2432},{"style":128},[2433],{"type":39,"value":806},{"type":34,"tag":115,"props":2435,"children":2436},{"style":161},[2437],{"type":39,"value":2438},"b64_json",{"type":34,"tag":115,"props":2440,"children":2441},{"style":128},[2442],{"type":39,"value":874},{"type":34,"tag":115,"props":2444,"children":2445},{"style":128},[2446],{"type":39,"value":1798},{"type":34,"tag":115,"props":2448,"children":2449},{"style":128},[2450],{"type":39,"value":806},{"type":34,"tag":115,"props":2452,"children":2453},{"style":134},[2454],{"type":39,"value":2455},"\u003Cbase64-encoded image data>",{"type":34,"tag":115,"props":2457,"children":2458},{"style":128},[2459],{"type":39,"value":874},{"type":34,"tag":115,"props":2461,"children":2462},{"style":128},[2463],{"type":39,"value":2464}," }],\n",{"type":34,"tag":115,"props":2466,"children":2467},{"class":117,"line":954},[2468,2472,2477,2481,2485,2490,2494,2499,2503,2507,2512,2517,2521,2526,2530,2534,2539,2543,2547,2552,2556,2560,2564,2568,2572,2577,2581,2585,2590],{"type":34,"tag":115,"props":2469,"children":2470},{"style":128},[2471],{"type":39,"value":1943},{"type":34,"tag":115,"props":2473,"children":2474},{"style":1946},[2475],{"type":39,"value":2476},"usage",{"type":34,"tag":115,"props":2478,"children":2479},{"style":128},[2480],{"type":39,"value":874},{"type":34,"tag":115,"props":2482,"children":2483},{"style":128},[2484],{"type":39,"value":1798},{"type":34,"tag":115,"props":2486,"children":2487},{"style":128},[2488],{"type":39,"value":2489}," {",{"type":34,"tag":115,"props":2491,"children":2492},{"style":128},[2493],{"type":39,"value":806},{"type":34,"tag":115,"props":2495,"children":2496},{"style":161},[2497],{"type":39,"value":2498},"prompt_tokens",{"type":34,"tag":115,"props":2500,"children":2501},{"style":128},[2502],{"type":39,"value":874},{"type":34,"tag":115,"props":2504,"children":2505},{"style":128},[2506],{"type":39,"value":1798},{"type":34,"tag":115,"props":2508,"children":2509},{"style":2077},[2510],{"type":39,"value":2511}," 0",{"type":34,"tag":115,"props":2513,"children":2514},{"style":128},[2515],{"type":39,"value":2516},",",{"type":34,"tag":115,"props":2518,"children":2519},{"style":128},[2520],{"type":39,"value":806},{"type":34,"tag":115,"props":2522,"children":2523},{"style":161},[2524],{"type":39,"value":2525},"completion_tokens",{"type":34,"tag":115,"props":2527,"children":2528},{"style":128},[2529],{"type":39,"value":874},{"type":34,"tag":115,"props":2531,"children":2532},{"style":128},[2533],{"type":39,"value":1798},{"type":34,"tag":115,"props":2535,"children":2536},{"style":2077},[2537],{"type":39,"value":2538}," 4175",{"type":34,"tag":115,"props":2540,"children":2541},{"style":128},[2542],{"type":39,"value":2516},{"type":34,"tag":115,"props":2544,"children":2545},{"style":128},[2546],{"type":39,"value":806},{"type":34,"tag":115,"props":2548,"children":2549},{"style":161},[2550],{"type":39,"value":2551},"total_tokens",{"type":34,"tag":115,"props":2553,"children":2554},{"style":128},[2555],{"type":39,"value":874},{"type":34,"tag":115,"props":2557,"children":2558},{"style":128},[2559],{"type":39,"value":1798},{"type":34,"tag":115,"props":2561,"children":2562},{"style":2077},[2563],{"type":39,"value":2538},{"type":34,"tag":115,"props":2565,"children":2566},{"style":128},[2567],{"type":39,"value":2516},{"type":34,"tag":115,"props":2569,"children":2570},{"style":128},[2571],{"type":39,"value":806},{"type":34,"tag":115,"props":2573,"children":2574},{"style":161},[2575],{"type":39,"value":2576},"cost",{"type":34,"tag":115,"props":2578,"children":2579},{"style":128},[2580],{"type":39,"value":874},{"type":34,"tag":115,"props":2582,"children":2583},{"style":128},[2584],{"type":39,"value":1798},{"type":34,"tag":115,"props":2586,"children":2587},{"style":2077},[2588],{"type":39,"value":2589}," 0.04",{"type":34,"tag":115,"props":2591,"children":2592},{"style":128},[2593],{"type":39,"value":2594}," }\n",{"type":34,"tag":115,"props":2596,"children":2597},{"class":117,"line":2056},[2598],{"type":34,"tag":115,"props":2599,"children":2600},{"style":128},[2601],{"type":39,"value":2089},{"type":34,"tag":57,"props":2603,"children":2605},{"id":2604},"using-a-different-model",[2606],{"type":39,"value":2607},"Using a Different Model",{"type":34,"tag":42,"props":2609,"children":2610},{},[2611,2613,2618,2620,2625,2627,2633,2635,2640,2642,2647],{"type":39,"value":2612},"The default model is ",{"type":34,"tag":48,"props":2614,"children":2616},{"className":2615},[],[2617],{"type":39,"value":1402},{"type":39,"value":2619}," (Nano Banana 2). To use another, pass ",{"type":34,"tag":48,"props":2621,"children":2623},{"className":2622},[],[2624],{"type":39,"value":1388},{"type":39,"value":2626}," with any image model ID (e.g. ",{"type":34,"tag":48,"props":2628,"children":2630},{"className":2629},[],[2631],{"type":39,"value":2632},"google\u002Fgemini-3.1-flash-lite-image",{"type":39,"value":2634},"). Run ",{"type":34,"tag":48,"props":2636,"children":2638},{"className":2637},[],[2639],{"type":39,"value":94},{"type":39,"value":2641}," to browse image models and ",{"type":34,"tag":48,"props":2643,"children":2645},{"className":2644},[],[2646],{"type":39,"value":251},{"type":39,"value":2648}," to confirm which parameters and providers it supports before generating.",{"type":34,"tag":57,"props":2650,"children":2652},{"id":2651},"presenting-results",[2653],{"type":39,"value":2654},"Presenting Results",{"type":34,"tag":2656,"props":2657,"children":2658},"ul",{},[2659,2665,2670,2675,2680],{"type":34,"tag":2660,"props":2661,"children":2662},"li",{},[2663],{"type":39,"value":2664},"After generating or editing, display the saved image to the user",{"type":34,"tag":2660,"props":2666,"children":2667},{},[2668],{"type":39,"value":2669},"Include the model used and, when reported, the generation cost (printed to stderr)",{"type":34,"tag":2660,"props":2671,"children":2672},{},[2673],{"type":39,"value":2674},"If multiple images are returned, show all of them",{"type":34,"tag":2660,"props":2676,"children":2677},{},[2678],{"type":39,"value":2679},"When the user doesn't specify an output path, tell them where the file was saved",{"type":34,"tag":2660,"props":2681,"children":2682},{},[2683],{"type":39,"value":2684},"For edit operations, mention the source image that was modified",{"type":34,"tag":2686,"props":2687,"children":2688},"style",{},[2689],{"type":39,"value":2690},"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":2692,"total":2782},[2693,2710,2720,2736,2750,2761,2770],{"slug":2694,"name":2694,"fn":2695,"description":2696,"org":2697,"tags":2698,"stars":18,"repoUrl":19,"updatedAt":2709},"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},[2699,2702,2705,2706],{"name":2700,"slug":2701,"type":14},"Agents","agents",{"name":2703,"slug":2704,"type":14},"CLI","cli",{"name":9,"slug":8,"type":14},{"name":2707,"slug":2708,"type":14},"TypeScript","typescript","2026-07-14T05:38:18.849741",{"slug":2711,"name":2711,"fn":2712,"description":2713,"org":2714,"tags":2715,"stars":18,"repoUrl":19,"updatedAt":2719},"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},[2716,2717,2718],{"name":2700,"slug":2701,"type":14},{"name":2703,"slug":2704,"type":14},{"name":2707,"slug":2708,"type":14},"2026-07-14T05:38:30.178029",{"slug":2721,"name":2721,"fn":2722,"description":2723,"org":2724,"tags":2725,"stars":18,"repoUrl":19,"updatedAt":2735},"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},[2726,2729,2732],{"name":2727,"slug":2728,"type":14},"API Development","api-development",{"name":2730,"slug":2731,"type":14},"Interoperability","interoperability",{"name":2733,"slug":2734,"type":14},"LLM","llm","2026-07-14T05:38:13.153467",{"slug":2737,"name":2737,"fn":2738,"description":2739,"org":2740,"tags":2741,"stars":18,"repoUrl":19,"updatedAt":2749},"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},[2742,2745,2748],{"name":2743,"slug":2744,"type":14},"Migration","migration",{"name":2746,"slug":2747,"type":14},"SDK","sdk",{"name":2707,"slug":2708,"type":14},"2026-07-14T05:38:28.914981",{"slug":2751,"name":2751,"fn":2752,"description":2753,"org":2754,"tags":2755,"stars":18,"repoUrl":19,"updatedAt":2760},"openrouter-analytics","analyze OpenRouter usage and spend","Answer natural-language questions about a user's OpenRouter usage data — spend, request volume, model breakdown, latency, token usage, and cost optimization. Use when the user asks about their API usage, billing, costs, top models, traffic patterns, or wants to optimize their OpenRouter spend.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2756,2759],{"name":2757,"slug":2758,"type":14},"Analytics","analytics",{"name":9,"slug":8,"type":14},"2026-07-30T05:30:15.098344",{"slug":2762,"name":2762,"fn":2763,"description":2764,"org":2765,"tags":2766,"stars":18,"repoUrl":19,"updatedAt":2769},"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},[2767,2768],{"name":2757,"slug":2758,"type":14},{"name":2727,"slug":2728,"type":14},"2026-07-14T05:38:26.402047",{"slug":2771,"name":2771,"fn":2772,"description":2773,"org":2774,"tags":2775,"stars":18,"repoUrl":19,"updatedAt":2781},"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},[2776,2777,2778],{"name":2757,"slug":2758,"type":14},{"name":2733,"slug":2734,"type":14},{"name":2779,"slug":2780,"type":14},"Reporting","reporting","2026-07-14T05:38:32.721796",17,{"items":2784,"total":2782},[2785,2792,2798,2804,2810,2815,2820,2826,2838,2847,2852,2861],{"slug":2694,"name":2694,"fn":2695,"description":2696,"org":2786,"tags":2787,"stars":18,"repoUrl":19,"updatedAt":2709},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2788,2789,2790,2791],{"name":2700,"slug":2701,"type":14},{"name":2703,"slug":2704,"type":14},{"name":9,"slug":8,"type":14},{"name":2707,"slug":2708,"type":14},{"slug":2711,"name":2711,"fn":2712,"description":2713,"org":2793,"tags":2794,"stars":18,"repoUrl":19,"updatedAt":2719},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2795,2796,2797],{"name":2700,"slug":2701,"type":14},{"name":2703,"slug":2704,"type":14},{"name":2707,"slug":2708,"type":14},{"slug":2721,"name":2721,"fn":2722,"description":2723,"org":2799,"tags":2800,"stars":18,"repoUrl":19,"updatedAt":2735},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2801,2802,2803],{"name":2727,"slug":2728,"type":14},{"name":2730,"slug":2731,"type":14},{"name":2733,"slug":2734,"type":14},{"slug":2737,"name":2737,"fn":2738,"description":2739,"org":2805,"tags":2806,"stars":18,"repoUrl":19,"updatedAt":2749},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2807,2808,2809],{"name":2743,"slug":2744,"type":14},{"name":2746,"slug":2747,"type":14},{"name":2707,"slug":2708,"type":14},{"slug":2751,"name":2751,"fn":2752,"description":2753,"org":2811,"tags":2812,"stars":18,"repoUrl":19,"updatedAt":2760},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2813,2814],{"name":2757,"slug":2758,"type":14},{"name":9,"slug":8,"type":14},{"slug":2762,"name":2762,"fn":2763,"description":2764,"org":2816,"tags":2817,"stars":18,"repoUrl":19,"updatedAt":2769},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2818,2819],{"name":2757,"slug":2758,"type":14},{"name":2727,"slug":2728,"type":14},{"slug":2771,"name":2771,"fn":2772,"description":2773,"org":2821,"tags":2822,"stars":18,"repoUrl":19,"updatedAt":2781},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2823,2824,2825],{"name":2757,"slug":2758,"type":14},{"name":2733,"slug":2734,"type":14},{"name":2779,"slug":2780,"type":14},{"slug":2827,"name":2827,"fn":2828,"description":2829,"org":2830,"tags":2831,"stars":18,"repoUrl":19,"updatedAt":2837},"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},[2832,2833,2836],{"name":2757,"slug":2758,"type":14},{"name":2834,"slug":2835,"type":14},"Benchmarking","benchmarking",{"name":2733,"slug":2734,"type":14},"2026-07-14T05:38:27.658475",{"slug":2839,"name":2839,"fn":2840,"description":2841,"org":2842,"tags":2843,"stars":18,"repoUrl":19,"updatedAt":2846},"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},[2844,2845],{"name":2733,"slug":2734,"type":14},{"name":9,"slug":8,"type":14},"2026-07-14T05:38:25.132801",{"slug":4,"name":4,"fn":5,"description":6,"org":2848,"tags":2849,"stars":18,"repoUrl":19,"updatedAt":20},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2850,2851],{"name":16,"slug":17,"type":14},{"name":9,"slug":8,"type":14},{"slug":2853,"name":2853,"fn":2854,"description":2855,"org":2856,"tags":2857,"stars":18,"repoUrl":19,"updatedAt":2860},"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},[2858,2859],{"name":2733,"slug":2734,"type":14},{"name":9,"slug":8,"type":14},"2026-07-14T05:38:22.650307",{"slug":2862,"name":2862,"fn":2863,"description":2864,"org":2865,"tags":2866,"stars":18,"repoUrl":19,"updatedAt":2874},"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},[2867,2870,2873],{"name":2868,"slug":2869,"type":14},"Auth","auth",{"name":2871,"slug":2872,"type":14},"OAuth","oauth",{"name":9,"slug":8,"type":14},"2026-07-14T05:38:20.116308"]