[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-netlify-netlify-ai-gateway":3,"mdc--krosmn-key":33,"related-org-netlify-netlify-ai-gateway":4069,"related-repo-netlify-netlify-ai-gateway":4241},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":23,"repoUrl":24,"updatedAt":25,"license":26,"forks":27,"topics":28,"repo":29,"sourceUrl":31,"mdContent":32},"netlify-ai-gateway","route AI requests via Netlify AI Gateway","Reference for Netlify AI Gateway — the managed proxy that routes calls to OpenAI, Anthropic, and Google Gemini SDKs without provider API keys. Use this skill any time the user wants to add AI on a Netlify site (chat, completion, reasoning, image generation, image-to-image edit\u002Fstylize), choose or change a model, wire up the OpenAI \u002F Anthropic \u002F @google\u002Fgenai SDK, decide which provider to use for an image-gen feature (it's Gemini-only on the gateway), or debug \"model not found\" \u002F \"API key missing\" against the gateway. Required reading before pinning a model — the gateway exposes a curated subset, not every provider model.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"netlify","Netlify","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fnetlify.png",[12,16,17,20],{"name":13,"slug":14,"type":15},"LLM","llm","tag",{"name":9,"slug":8,"type":15},{"name":18,"slug":19,"type":15},"AI Infrastructure","ai-infrastructure",{"name":21,"slug":22,"type":15},"API Development","api-development",24,"https:\u002F\u002Fgithub.com\u002Fnetlify\u002Fcontext-and-tools","2026-07-17T05:30:13.14555",null,5,[],{"repoUrl":24,"stars":23,"forks":27,"topics":30,"description":26},[],"https:\u002F\u002Fgithub.com\u002Fnetlify\u002Fcontext-and-tools\u002Ftree\u002FHEAD\u002Fskills\u002Fnetlify-ai-gateway","---\nname: netlify-ai-gateway\ndescription: Reference for Netlify AI Gateway — the managed proxy that routes calls to OpenAI, Anthropic, and Google Gemini SDKs without provider API keys. Use this skill any time the user wants to add AI on a Netlify site (chat, completion, reasoning, image generation, image-to-image edit\u002Fstylize), choose or change a model, wire up the OpenAI \u002F Anthropic \u002F @google\u002Fgenai SDK, decide which provider to use for an image-gen feature (it's Gemini-only on the gateway), or debug \"model not found\" \u002F \"API key missing\" against the gateway. Required reading before pinning a model — the gateway exposes a curated subset, not every provider model.\n---\n\n# Netlify AI Gateway\n\n> **IMPORTANT:** Only use models listed in the \"Available Models\" section below. AI Gateway does not support every model a provider offers. Using an unsupported model returns an HTTP error from the gateway.\n\n> **First-deploy requirement:** The AI Gateway only activates after a site has had at least one production deploy. Local dev (`netlify dev`, `@netlify\u002Fvite-plugin`) will NOT have gateway access on a brand-new project until you deploy to production once.\n\n> **Usage is credit-metered:** Gateway calls draw down your Netlify AI credit\u002Finference allowance and start returning errors once it's exhausted — there's no separate provider bill behind it. Budget for this explicitly in any bulk or fan-out design (generating content for hundreds of rows\u002Fpages, retry loops), and don't retry unbounded.\n\nNetlify AI Gateway provides access to AI models from multiple providers without managing API keys directly. It is available on all Netlify sites.\n\n## How It Works\n\nThe AI Gateway acts as a proxy — you use standard provider SDKs but point them at Netlify's gateway URL. Netlify auto-injects both the base URL and a placeholder API key for each provider, then authenticates upstream on your behalf.\n\nAlways make the call through the provider's official SDK, constructed bare (`new OpenAI()`, `new Anthropic()`, `new GoogleGenAI()`) — the SDK reads the auto-injected base URL and key from the environment. **Don't hand-roll the gateway call with a raw `fetch()` and a manually-read `process.env.OPENAI_API_KEY`** (or a hardcoded key\u002FURL): the injected key is only a placeholder, and rolling your own request bypasses the supported path the gateway expects.\n\n## Setup\n\n1. Enable AI on your site in the Netlify UI\n2. Deploy to production at least once — the gateway does not activate until then\n3. Install the provider SDK you want to use\n\nDon't set your own `OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, `GEMINI_API_KEY`, or `GOOGLE_API_KEY` (the `@google\u002Fgenai` SDK reads either `GEMINI_API_KEY` or `GOOGLE_API_KEY`). Doing so disables Netlify's auto-injection and routes calls directly to the provider, bypassing the gateway.\n\n## Using OpenAI SDK\n\n```bash\nnpm install openai\n```\n\n```typescript\nimport OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\u002F\u002F `OPENAI_API_KEY` and `OPENAI_BASE_URL` are auto-injected; the SDK\n\u002F\u002F reads both from the environment, so no constructor args are needed.\n\nconst completion = await openai.chat.completions.create({\n  model: \"gpt-4o-mini\",\n  messages: [{ role: \"user\", content: \"Hello!\" }],\n});\n```\n\n## Using Anthropic SDK\n\n```bash\nnpm install @anthropic-ai\u002Fsdk\n```\n\n```typescript\nimport Anthropic from \"@anthropic-ai\u002Fsdk\";\n\nconst client = new Anthropic();\n\u002F\u002F `ANTHROPIC_API_KEY` and `ANTHROPIC_BASE_URL` are auto-injected; the SDK\n\u002F\u002F reads both from the environment, so no constructor args are needed.\n\nconst message = await client.messages.create({\n  model: \"claude-sonnet-4-5-20250929\",\n  max_tokens: 1024,\n  messages: [{ role: \"user\", content: \"Hello!\" }],\n});\n```\n\n## Using Google Gemini SDK\n\nUse `@google\u002Fgenai` (the unified Google GenAI SDK). The older `@google\u002Fgenerative-ai` package does not pick up the gateway env vars.\n\n```bash\nnpm install @google\u002Fgenai\n```\n\n```typescript\nimport { GoogleGenAI } from \"@google\u002Fgenai\";\n\nconst ai = new GoogleGenAI({});\n\u002F\u002F `GEMINI_API_KEY` and `GOOGLE_GEMINI_BASE_URL` are auto-injected. The SDK also\n\u002F\u002F honors `GOOGLE_API_KEY`; leave both Gemini keys unset so the gateway's\n\u002F\u002F injection isn't shadowed.\n\nconst response = await ai.models.generateContent({\n  model: \"gemini-2.5-flash\",\n  contents: \"Hello!\",\n});\n\nconst text = response.text;\n```\n\n## In a Netlify Function\n\n```typescript\nimport type { Config, Context } from \"@netlify\u002Ffunctions\";\nimport OpenAI from \"openai\";\n\nexport default async (req: Request, context: Context) => {\n  const { prompt } = await req.json();\n  const openai = new OpenAI();\n\n  const completion = await openai.chat.completions.create({\n    model: \"gpt-4o-mini\",\n    messages: [{ role: \"user\", content: prompt }],\n  });\n\n  return Response.json({\n    response: completion.choices[0].message.content,\n  });\n};\n\nexport const config: Config = {\n  path: \"\u002Fapi\u002Fai\",\n  method: \"POST\",\n};\n```\n\nReturn the reply as JSON with `Response.json({...})`, even when the request only asks for \"the reply text\" back — a raw `text\u002Fplain` body breaks JSON-consuming clients and diverges from the convention used everywhere else in Netlify Functions.\n\n## Image Generation\n\nImage generation on the gateway is supported through **Gemini image models** (e.g., `gemini-2.5-flash-image`, `gemini-3-pro-image`, `gemini-3.1-flash-image`, `gemini-3.1-flash-lite-image`). OpenAI's image models (`gpt-image-1`, `dall-e-*`) are **not** routed through the gateway.\n\nBoth text-to-image and image-to-image use the same `generateContent` method as chat — only the model and response shape differ. The image is returned as base64 `inlineData` on a content part, not as a URL.\n\n### Text-to-image\n\n```typescript\nimport { GoogleGenAI } from \"@google\u002Fgenai\";\n\nconst ai = new GoogleGenAI({});\n\nconst response = await ai.models.generateContent({\n  model: \"gemini-3.1-flash-image\",\n  contents: \"A watercolor portrait of a corgi wearing a beret\",\n});\n\nconst imagePart = response.candidates[0].content.parts.find(\n  (p) => p.inlineData,\n);\nconst base64 = imagePart.inlineData.data;\nconst mimeType = imagePart.inlineData.mimeType; \u002F\u002F e.g. \"image\u002Fpng\"\nconst bytes = Buffer.from(base64, \"base64\");\n```\n\n### Image-to-image (edit \u002F stylize an input image)\n\nPass the source image as an additional content part with `inlineData`:\n\n```typescript\nconst sourceBase64 = sourceBuffer.toString(\"base64\");\n\nconst response = await ai.models.generateContent({\n  model: \"gemini-3.1-flash-image\",\n  contents: [\n    { text: \"Restyle this photo as a Picasso-era cubist portrait\" },\n    { inlineData: { mimeType: \"image\u002Fpng\", data: sourceBase64 } },\n  ],\n});\n```\n\nThe response shape is the same — pull `base64` and `mimeType` off the first part with `inlineData`. Most callers persist the bytes to Netlify Blobs (see `netlify-blobs\u002FSKILL.md`) and serve a URL back to the client rather than returning multi-MB base64 in the function response.\n\n## Environment Variables\n\nAll of these are injected automatically by Netlify when AI is enabled. Setting your own value for any of the per-provider vars disables gateway routing.\n\n| Variable | Provider | Purpose |\n|---|---|---|\n| `OPENAI_BASE_URL` | OpenAI | Gateway endpoint |\n| `OPENAI_API_KEY` | OpenAI | Placeholder; satisfies the SDK's \"key required\" check |\n| `ANTHROPIC_BASE_URL` | Anthropic | Gateway endpoint |\n| `ANTHROPIC_API_KEY` | Anthropic | Placeholder; satisfies the SDK's \"key required\" check |\n| `GOOGLE_GEMINI_BASE_URL` | Google Gemini | Gateway endpoint |\n| `GEMINI_API_KEY` | Google Gemini | Placeholder; satisfies the SDK's \"key required\" check |\n| `NETLIFY_AI_GATEWAY_BASE_URL` | (universal) | Provider-agnostic gateway endpoint |\n| `NETLIFY_AI_GATEWAY_KEY` | (universal) | Provider-agnostic gateway key |\n\nThe real upstream API keys live on Netlify's side. The per-provider `*_API_KEY` vars are placeholders so the SDKs construct successfully; the gateway authenticates server-side. You don't read these yourself — the SDK picks them up.\n\nWhen your own code needs some *other* environment value (a config flag, a model name you've parameterized), prefer `Netlify.env.get(\"VAR\")` — it works in Netlify Functions and Edge Functions, and Edge Functions expose **only** `Netlify.env.get`. (In a framework's own server routes, use whatever that framework documents for env access — often `process.env`.)\n\n## Local Development\n\nWith `@netlify\u002Fvite-plugin` or `netlify dev`, gateway environment variables are injected automatically into the local process — but only after the site has had at least one production deploy. A brand-new local-only project will see \"API key missing\" or \"model not found\" errors until you deploy.\n\nLocal injection also requires the working directory to be **linked** to the Netlify site. `netlify dev` pulls the gateway base URL and placeholder key from the linked site's environment, so an unlinked directory has no site context — nothing is injected and gateway calls fail even when the site has already been deployed to production. Run `netlify link` (or `netlify init`) in the project first, then start `netlify dev`. A bare framework dev server started outside `netlify dev` \u002F `@netlify\u002Fvite-plugin` also gets no gateway env vars.\n\n## Usage metering and where the gateway runs\n\n**Gateway usage is credit-metered.** Calls draw down your Netlify AI credit\u002Finference allowance; when that limit is reached the gateway **pauses** and returns errors until the allowance resets or is raised. There's no separate provider bill to fall back on — an unbounded loop of gateway calls burns the allowance and then starts failing, so budget for it and don't retry indefinitely.\n\n**Gateway credentials are runtime-only.** Netlify injects the base URL and placeholder key only into runtime compute — deployed functions, edge functions, and server-rendered routes at request time. They are **not** present during the build: AI calls made at build time, in prerender\u002FSSG, or in a build plugin get no gateway credentials and fail. Do AI work at request time (in a function or server route) and cache the result if you need it to look precomputed (e.g. to Netlify Blobs) — don't call the gateway from build scripts or static-generation hooks.\n\n## No browser-callable gateway — proxy through server code\n\nGateway credentials are injected only into server-side runtime compute (functions, edge functions, server-rendered routes). There is **no browser-callable gateway endpoint**: client-side JavaScript has no gateway credentials, and there is no public URL a browser can hit to reach the gateway directly. Client code (React\u002FVue\u002Fvanilla JS running in the browser) that constructs a provider SDK against the gateway will find no key and fail — and \"fixing\" it by hardcoding a real provider key in the client leaks that key to every visitor AND bypasses the gateway (a user-set key disables Netlify's auto-injection).\n\nThe correct pattern is to proxy: put the gateway call in a **Netlify Function** (or edge function \u002F server route), and have the browser `fetch()` your own endpoint (e.g. `\u002Fapi\u002Fchat`). The function talks to the gateway server-side with the auto-injected credentials and returns the result to the client. Never import a provider SDK into a browser bundle to call the gateway, and never expose a provider API key to the client.\n\n## Long generations and the function timeout\n\nA gateway call runs inside your function, so it is bound by the **60-second synchronous function timeout**. Large completions, reasoning models, and image generations can run longer than that, and a synchronous function that exceeds the ceiling is terminated before it can respond. Two mitigations:\n\n- **Stream the response.** Enable streaming on the SDK call and return a `ReadableStream` (e.g. `Content-Type: text\u002Fevent-stream`), forwarding the provider's tokens\u002Fchunks as they arrive — for example `stream: true` on the OpenAI SDK, `client.messages.stream(...)` on Anthropic, or `generateContentStream(...)` on `@google\u002Fgenai`. Streaming sends bytes to the client incrementally instead of buffering the whole completion inside the sync window, and is the right default for interactive chat and long text.\n- **Use a background function** for long, fire-and-forget jobs (batch generation, large image renders). Background functions run up to 15 minutes, but they return a `202` immediately and their return value is ignored — they cannot hand the result back to the caller. Persist the output (e.g. to Netlify Blobs or a database) and have the client poll or fetch it.\n\nDon't leave a slow synchronous generation unstreamed and assume it will finish — bound the model and `max_tokens`, and choose streaming or a background function based on how long the job runs.\n\n## Errors & Troubleshooting\n\n- **Unsupported model:** the gateway returns an HTTP error. Check the \"Available Models\" list below — the gateway exposes a curated subset, not every model the provider offers.\n- **`OPENAI_API_KEY missing` (or equivalent) at runtime:** AI Features are disabled on the site, or the project has not had a production deploy yet.\n- **Calls succeed but skip the gateway \u002F aren't tracked:** check you haven't set your own `*_API_KEY`. Any user-set provider key shadows Netlify's auto-injection and routes directly to the provider.\n- **Limits:** 200k-token context window. Batch inference, custom request headers, and OpenAI priority processing are not supported. Anthropic prompt caching is limited to the 5-minute ephemeral cache; Gemini explicit caching is not supported.\n\n## Available Models\n\n_Verified 2026-04-30 against the live AI Gateway providers list. The user-facing reference is https:\u002F\u002Fdocs.netlify.com\u002Fbuild\u002Fai-gateway\u002Foverview\u002F — re-check before pinning a new model._\n\n### Anthropic (chat)\n- `claude-haiku-4-5`, `claude-haiku-4-5-20251001`\n- `claude-sonnet-4-0`, `claude-sonnet-4-20250514`, `claude-sonnet-4-5`, `claude-sonnet-4-5-20250929`, `claude-sonnet-4-6`\n- `claude-opus-4-1-20250805`, `claude-opus-4-20250514`, `claude-opus-4-5`, `claude-opus-4-5-20251101`, `claude-opus-4-6`, `claude-opus-4-7`\n\n### OpenAI (chat \u002F reasoning \u002F Codex)\n- gpt-4 family: `gpt-4o`, `gpt-4o-mini`, `gpt-4.1`, `gpt-4.1-mini`, `gpt-4.1-nano`\n- gpt-5: `gpt-5`, `gpt-5-mini`, `gpt-5-nano`, `gpt-5-pro`, `gpt-5-codex`; dated: `gpt-5-2025-08-07`, `gpt-5-mini-2025-08-07`\n- gpt-5.1: `gpt-5.1`, `gpt-5.1-codex`, `gpt-5.1-codex-max`, `gpt-5.1-codex-mini`; dated: `gpt-5.1-2025-11-13`\n- gpt-5.2: `gpt-5.2`, `gpt-5.2-codex`, `gpt-5.2-pro`; dated: `gpt-5.2-2025-12-11`, `gpt-5.2-pro-2025-12-11`\n- gpt-5.3: `gpt-5.3-chat-latest`, `gpt-5.3-codex` (no unversioned `gpt-5.3`)\n- gpt-5.4: `gpt-5.4`, `gpt-5.4-mini`, `gpt-5.4-nano`, `gpt-5.4-pro`; dated: `gpt-5.4-2026-03-05`, `gpt-5.4-mini-2026-03-17`, `gpt-5.4-nano-2026-03-17`, `gpt-5.4-pro-2026-03-05`\n- gpt-5.5: `gpt-5.5`, `gpt-5.5-pro`; dated: `gpt-5.5-2026-04-23`, `gpt-5.5-pro-2026-04-23`\n- Reasoning (o-series): `o3`, `o3-mini`, `o4-mini`\n\n### Google Gemini (chat + image)\n- Chat: `gemini-2.0-flash`, `gemini-2.0-flash-lite`, `gemini-2.5-flash`, `gemini-2.5-flash-lite`, `gemini-2.5-pro`, `gemini-3-flash-preview`, `gemini-3.1-flash-lite`, `gemini-3.1-pro-preview`, `gemini-3.1-pro-preview-customtools`, `gemini-flash-latest`, `gemini-flash-lite-latest`\n- Image: `gemini-2.5-flash-image`, `gemini-3-pro-image`, `gemini-3.1-flash-image`, `gemini-3.1-flash-lite-image`\n\n",{"data":34,"body":35},{"name":4,"description":6},{"type":36,"children":37},"root",[38,46,62,92,105,110,117,122,170,176,196,253,259,293,621,627,650,943,949,969,992,1284,1290,1950,1971,1977,2040,2060,2067,2554,2560,2571,2858,2892,2898,2903,3101,3114,3158,3164,3182,3238,3244,3261,3277,3283,3295,3322,3328,3340,3419,3432,3438,3494,3500,3518,3524,3623,3629,3946,3952,4063],{"type":39,"tag":40,"props":41,"children":42},"element","h1",{"id":4},[43],{"type":44,"value":45},"text","Netlify AI Gateway",{"type":39,"tag":47,"props":48,"children":49},"blockquote",{},[50],{"type":39,"tag":51,"props":52,"children":53},"p",{},[54,60],{"type":39,"tag":55,"props":56,"children":57},"strong",{},[58],{"type":44,"value":59},"IMPORTANT:",{"type":44,"value":61}," Only use models listed in the \"Available Models\" section below. AI Gateway does not support every model a provider offers. Using an unsupported model returns an HTTP error from the gateway.",{"type":39,"tag":47,"props":63,"children":64},{},[65],{"type":39,"tag":51,"props":66,"children":67},{},[68,73,75,82,84,90],{"type":39,"tag":55,"props":69,"children":70},{},[71],{"type":44,"value":72},"First-deploy requirement:",{"type":44,"value":74}," The AI Gateway only activates after a site has had at least one production deploy. Local dev (",{"type":39,"tag":76,"props":77,"children":79},"code",{"className":78},[],[80],{"type":44,"value":81},"netlify dev",{"type":44,"value":83},", ",{"type":39,"tag":76,"props":85,"children":87},{"className":86},[],[88],{"type":44,"value":89},"@netlify\u002Fvite-plugin",{"type":44,"value":91},") will NOT have gateway access on a brand-new project until you deploy to production once.",{"type":39,"tag":47,"props":93,"children":94},{},[95],{"type":39,"tag":51,"props":96,"children":97},{},[98,103],{"type":39,"tag":55,"props":99,"children":100},{},[101],{"type":44,"value":102},"Usage is credit-metered:",{"type":44,"value":104}," Gateway calls draw down your Netlify AI credit\u002Finference allowance and start returning errors once it's exhausted — there's no separate provider bill behind it. Budget for this explicitly in any bulk or fan-out design (generating content for hundreds of rows\u002Fpages, retry loops), and don't retry unbounded.",{"type":39,"tag":51,"props":106,"children":107},{},[108],{"type":44,"value":109},"Netlify AI Gateway provides access to AI models from multiple providers without managing API keys directly. It is available on all Netlify sites.",{"type":39,"tag":111,"props":112,"children":114},"h2",{"id":113},"how-it-works",[115],{"type":44,"value":116},"How It Works",{"type":39,"tag":51,"props":118,"children":119},{},[120],{"type":44,"value":121},"The AI Gateway acts as a proxy — you use standard provider SDKs but point them at Netlify's gateway URL. Netlify auto-injects both the base URL and a placeholder API key for each provider, then authenticates upstream on your behalf.",{"type":39,"tag":51,"props":123,"children":124},{},[125,127,133,134,140,141,147,149,168],{"type":44,"value":126},"Always make the call through the provider's official SDK, constructed bare (",{"type":39,"tag":76,"props":128,"children":130},{"className":129},[],[131],{"type":44,"value":132},"new OpenAI()",{"type":44,"value":83},{"type":39,"tag":76,"props":135,"children":137},{"className":136},[],[138],{"type":44,"value":139},"new Anthropic()",{"type":44,"value":83},{"type":39,"tag":76,"props":142,"children":144},{"className":143},[],[145],{"type":44,"value":146},"new GoogleGenAI()",{"type":44,"value":148},") — the SDK reads the auto-injected base URL and key from the environment. ",{"type":39,"tag":55,"props":150,"children":151},{},[152,154,160,162],{"type":44,"value":153},"Don't hand-roll the gateway call with a raw ",{"type":39,"tag":76,"props":155,"children":157},{"className":156},[],[158],{"type":44,"value":159},"fetch()",{"type":44,"value":161}," and a manually-read ",{"type":39,"tag":76,"props":163,"children":165},{"className":164},[],[166],{"type":44,"value":167},"process.env.OPENAI_API_KEY",{"type":44,"value":169}," (or a hardcoded key\u002FURL): the injected key is only a placeholder, and rolling your own request bypasses the supported path the gateway expects.",{"type":39,"tag":111,"props":171,"children":173},{"id":172},"setup",[174],{"type":44,"value":175},"Setup",{"type":39,"tag":177,"props":178,"children":179},"ol",{},[180,186,191],{"type":39,"tag":181,"props":182,"children":183},"li",{},[184],{"type":44,"value":185},"Enable AI on your site in the Netlify UI",{"type":39,"tag":181,"props":187,"children":188},{},[189],{"type":44,"value":190},"Deploy to production at least once — the gateway does not activate until then",{"type":39,"tag":181,"props":192,"children":193},{},[194],{"type":44,"value":195},"Install the provider SDK you want to use",{"type":39,"tag":51,"props":197,"children":198},{},[199,201,207,208,214,215,221,223,229,231,237,239,244,246,251],{"type":44,"value":200},"Don't set your own ",{"type":39,"tag":76,"props":202,"children":204},{"className":203},[],[205],{"type":44,"value":206},"OPENAI_API_KEY",{"type":44,"value":83},{"type":39,"tag":76,"props":209,"children":211},{"className":210},[],[212],{"type":44,"value":213},"ANTHROPIC_API_KEY",{"type":44,"value":83},{"type":39,"tag":76,"props":216,"children":218},{"className":217},[],[219],{"type":44,"value":220},"GEMINI_API_KEY",{"type":44,"value":222},", or ",{"type":39,"tag":76,"props":224,"children":226},{"className":225},[],[227],{"type":44,"value":228},"GOOGLE_API_KEY",{"type":44,"value":230}," (the ",{"type":39,"tag":76,"props":232,"children":234},{"className":233},[],[235],{"type":44,"value":236},"@google\u002Fgenai",{"type":44,"value":238}," SDK reads either ",{"type":39,"tag":76,"props":240,"children":242},{"className":241},[],[243],{"type":44,"value":220},{"type":44,"value":245}," or ",{"type":39,"tag":76,"props":247,"children":249},{"className":248},[],[250],{"type":44,"value":228},{"type":44,"value":252},"). Doing so disables Netlify's auto-injection and routes calls directly to the provider, bypassing the gateway.",{"type":39,"tag":111,"props":254,"children":256},{"id":255},"using-openai-sdk",[257],{"type":44,"value":258},"Using OpenAI SDK",{"type":39,"tag":260,"props":261,"children":266},"pre",{"className":262,"code":263,"language":264,"meta":265,"style":265},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","npm install openai\n","bash","",[267],{"type":39,"tag":76,"props":268,"children":269},{"__ignoreMap":265},[270],{"type":39,"tag":271,"props":272,"children":275},"span",{"class":273,"line":274},"line",1,[276,282,288],{"type":39,"tag":271,"props":277,"children":279},{"style":278},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[280],{"type":44,"value":281},"npm",{"type":39,"tag":271,"props":283,"children":285},{"style":284},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[286],{"type":44,"value":287}," install",{"type":39,"tag":271,"props":289,"children":290},{"style":284},[291],{"type":44,"value":292}," openai\n",{"type":39,"tag":260,"props":294,"children":298},{"className":295,"code":296,"language":297,"meta":265,"style":265},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\u002F\u002F `OPENAI_API_KEY` and `OPENAI_BASE_URL` are auto-injected; the SDK\n\u002F\u002F reads both from the environment, so no constructor args are needed.\n\nconst completion = await openai.chat.completions.create({\n  model: \"gpt-4o-mini\",\n  messages: [{ role: \"user\", content: \"Hello!\" }],\n});\n","typescript",[299],{"type":39,"tag":76,"props":300,"children":301},{"__ignoreMap":265},[302,343,353,393,403,411,419,484,517,603],{"type":39,"tag":271,"props":303,"children":304},{"class":273,"line":274},[305,311,317,322,328,333,338],{"type":39,"tag":271,"props":306,"children":308},{"style":307},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[309],{"type":44,"value":310},"import",{"type":39,"tag":271,"props":312,"children":314},{"style":313},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[315],{"type":44,"value":316}," OpenAI ",{"type":39,"tag":271,"props":318,"children":319},{"style":307},[320],{"type":44,"value":321},"from",{"type":39,"tag":271,"props":323,"children":325},{"style":324},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[326],{"type":44,"value":327}," \"",{"type":39,"tag":271,"props":329,"children":330},{"style":284},[331],{"type":44,"value":332},"openai",{"type":39,"tag":271,"props":334,"children":335},{"style":324},[336],{"type":44,"value":337},"\"",{"type":39,"tag":271,"props":339,"children":340},{"style":324},[341],{"type":44,"value":342},";\n",{"type":39,"tag":271,"props":344,"children":346},{"class":273,"line":345},2,[347],{"type":39,"tag":271,"props":348,"children":350},{"emptyLinePlaceholder":349},true,[351],{"type":44,"value":352},"\n",{"type":39,"tag":271,"props":354,"children":356},{"class":273,"line":355},3,[357,363,368,373,378,384,389],{"type":39,"tag":271,"props":358,"children":360},{"style":359},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[361],{"type":44,"value":362},"const",{"type":39,"tag":271,"props":364,"children":365},{"style":313},[366],{"type":44,"value":367}," openai ",{"type":39,"tag":271,"props":369,"children":370},{"style":324},[371],{"type":44,"value":372},"=",{"type":39,"tag":271,"props":374,"children":375},{"style":324},[376],{"type":44,"value":377}," new",{"type":39,"tag":271,"props":379,"children":381},{"style":380},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[382],{"type":44,"value":383}," OpenAI",{"type":39,"tag":271,"props":385,"children":386},{"style":313},[387],{"type":44,"value":388},"()",{"type":39,"tag":271,"props":390,"children":391},{"style":324},[392],{"type":44,"value":342},{"type":39,"tag":271,"props":394,"children":396},{"class":273,"line":395},4,[397],{"type":39,"tag":271,"props":398,"children":400},{"style":399},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[401],{"type":44,"value":402},"\u002F\u002F `OPENAI_API_KEY` and `OPENAI_BASE_URL` are auto-injected; the SDK\n",{"type":39,"tag":271,"props":404,"children":405},{"class":273,"line":27},[406],{"type":39,"tag":271,"props":407,"children":408},{"style":399},[409],{"type":44,"value":410},"\u002F\u002F reads both from the environment, so no constructor args are needed.\n",{"type":39,"tag":271,"props":412,"children":414},{"class":273,"line":413},6,[415],{"type":39,"tag":271,"props":416,"children":417},{"emptyLinePlaceholder":349},[418],{"type":44,"value":352},{"type":39,"tag":271,"props":420,"children":422},{"class":273,"line":421},7,[423,427,432,436,441,446,451,456,460,465,469,474,479],{"type":39,"tag":271,"props":424,"children":425},{"style":359},[426],{"type":44,"value":362},{"type":39,"tag":271,"props":428,"children":429},{"style":313},[430],{"type":44,"value":431}," completion ",{"type":39,"tag":271,"props":433,"children":434},{"style":324},[435],{"type":44,"value":372},{"type":39,"tag":271,"props":437,"children":438},{"style":307},[439],{"type":44,"value":440}," await",{"type":39,"tag":271,"props":442,"children":443},{"style":313},[444],{"type":44,"value":445}," openai",{"type":39,"tag":271,"props":447,"children":448},{"style":324},[449],{"type":44,"value":450},".",{"type":39,"tag":271,"props":452,"children":453},{"style":313},[454],{"type":44,"value":455},"chat",{"type":39,"tag":271,"props":457,"children":458},{"style":324},[459],{"type":44,"value":450},{"type":39,"tag":271,"props":461,"children":462},{"style":313},[463],{"type":44,"value":464},"completions",{"type":39,"tag":271,"props":466,"children":467},{"style":324},[468],{"type":44,"value":450},{"type":39,"tag":271,"props":470,"children":471},{"style":380},[472],{"type":44,"value":473},"create",{"type":39,"tag":271,"props":475,"children":476},{"style":313},[477],{"type":44,"value":478},"(",{"type":39,"tag":271,"props":480,"children":481},{"style":324},[482],{"type":44,"value":483},"{\n",{"type":39,"tag":271,"props":485,"children":487},{"class":273,"line":486},8,[488,494,499,503,508,512],{"type":39,"tag":271,"props":489,"children":491},{"style":490},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[492],{"type":44,"value":493},"  model",{"type":39,"tag":271,"props":495,"children":496},{"style":324},[497],{"type":44,"value":498},":",{"type":39,"tag":271,"props":500,"children":501},{"style":324},[502],{"type":44,"value":327},{"type":39,"tag":271,"props":504,"children":505},{"style":284},[506],{"type":44,"value":507},"gpt-4o-mini",{"type":39,"tag":271,"props":509,"children":510},{"style":324},[511],{"type":44,"value":337},{"type":39,"tag":271,"props":513,"children":514},{"style":324},[515],{"type":44,"value":516},",\n",{"type":39,"tag":271,"props":518,"children":520},{"class":273,"line":519},9,[521,526,530,535,540,545,549,553,558,562,567,572,576,580,585,589,594,599],{"type":39,"tag":271,"props":522,"children":523},{"style":490},[524],{"type":44,"value":525},"  messages",{"type":39,"tag":271,"props":527,"children":528},{"style":324},[529],{"type":44,"value":498},{"type":39,"tag":271,"props":531,"children":532},{"style":313},[533],{"type":44,"value":534}," [",{"type":39,"tag":271,"props":536,"children":537},{"style":324},[538],{"type":44,"value":539},"{",{"type":39,"tag":271,"props":541,"children":542},{"style":490},[543],{"type":44,"value":544}," role",{"type":39,"tag":271,"props":546,"children":547},{"style":324},[548],{"type":44,"value":498},{"type":39,"tag":271,"props":550,"children":551},{"style":324},[552],{"type":44,"value":327},{"type":39,"tag":271,"props":554,"children":555},{"style":284},[556],{"type":44,"value":557},"user",{"type":39,"tag":271,"props":559,"children":560},{"style":324},[561],{"type":44,"value":337},{"type":39,"tag":271,"props":563,"children":564},{"style":324},[565],{"type":44,"value":566},",",{"type":39,"tag":271,"props":568,"children":569},{"style":490},[570],{"type":44,"value":571}," content",{"type":39,"tag":271,"props":573,"children":574},{"style":324},[575],{"type":44,"value":498},{"type":39,"tag":271,"props":577,"children":578},{"style":324},[579],{"type":44,"value":327},{"type":39,"tag":271,"props":581,"children":582},{"style":284},[583],{"type":44,"value":584},"Hello!",{"type":39,"tag":271,"props":586,"children":587},{"style":324},[588],{"type":44,"value":337},{"type":39,"tag":271,"props":590,"children":591},{"style":324},[592],{"type":44,"value":593}," }",{"type":39,"tag":271,"props":595,"children":596},{"style":313},[597],{"type":44,"value":598},"]",{"type":39,"tag":271,"props":600,"children":601},{"style":324},[602],{"type":44,"value":516},{"type":39,"tag":271,"props":604,"children":606},{"class":273,"line":605},10,[607,612,617],{"type":39,"tag":271,"props":608,"children":609},{"style":324},[610],{"type":44,"value":611},"}",{"type":39,"tag":271,"props":613,"children":614},{"style":313},[615],{"type":44,"value":616},")",{"type":39,"tag":271,"props":618,"children":619},{"style":324},[620],{"type":44,"value":342},{"type":39,"tag":111,"props":622,"children":624},{"id":623},"using-anthropic-sdk",[625],{"type":44,"value":626},"Using Anthropic SDK",{"type":39,"tag":260,"props":628,"children":630},{"className":262,"code":629,"language":264,"meta":265,"style":265},"npm install @anthropic-ai\u002Fsdk\n",[631],{"type":39,"tag":76,"props":632,"children":633},{"__ignoreMap":265},[634],{"type":39,"tag":271,"props":635,"children":636},{"class":273,"line":274},[637,641,645],{"type":39,"tag":271,"props":638,"children":639},{"style":278},[640],{"type":44,"value":281},{"type":39,"tag":271,"props":642,"children":643},{"style":284},[644],{"type":44,"value":287},{"type":39,"tag":271,"props":646,"children":647},{"style":284},[648],{"type":44,"value":649}," @anthropic-ai\u002Fsdk\n",{"type":39,"tag":260,"props":651,"children":653},{"className":295,"code":652,"language":297,"meta":265,"style":265},"import Anthropic from \"@anthropic-ai\u002Fsdk\";\n\nconst client = new Anthropic();\n\u002F\u002F `ANTHROPIC_API_KEY` and `ANTHROPIC_BASE_URL` are auto-injected; the SDK\n\u002F\u002F reads both from the environment, so no constructor args are needed.\n\nconst message = await client.messages.create({\n  model: \"claude-sonnet-4-5-20250929\",\n  max_tokens: 1024,\n  messages: [{ role: \"user\", content: \"Hello!\" }],\n});\n",[654],{"type":39,"tag":76,"props":655,"children":656},{"__ignoreMap":265},[657,690,697,730,738,745,752,802,830,852,927],{"type":39,"tag":271,"props":658,"children":659},{"class":273,"line":274},[660,664,669,673,677,682,686],{"type":39,"tag":271,"props":661,"children":662},{"style":307},[663],{"type":44,"value":310},{"type":39,"tag":271,"props":665,"children":666},{"style":313},[667],{"type":44,"value":668}," Anthropic ",{"type":39,"tag":271,"props":670,"children":671},{"style":307},[672],{"type":44,"value":321},{"type":39,"tag":271,"props":674,"children":675},{"style":324},[676],{"type":44,"value":327},{"type":39,"tag":271,"props":678,"children":679},{"style":284},[680],{"type":44,"value":681},"@anthropic-ai\u002Fsdk",{"type":39,"tag":271,"props":683,"children":684},{"style":324},[685],{"type":44,"value":337},{"type":39,"tag":271,"props":687,"children":688},{"style":324},[689],{"type":44,"value":342},{"type":39,"tag":271,"props":691,"children":692},{"class":273,"line":345},[693],{"type":39,"tag":271,"props":694,"children":695},{"emptyLinePlaceholder":349},[696],{"type":44,"value":352},{"type":39,"tag":271,"props":698,"children":699},{"class":273,"line":355},[700,704,709,713,717,722,726],{"type":39,"tag":271,"props":701,"children":702},{"style":359},[703],{"type":44,"value":362},{"type":39,"tag":271,"props":705,"children":706},{"style":313},[707],{"type":44,"value":708}," client ",{"type":39,"tag":271,"props":710,"children":711},{"style":324},[712],{"type":44,"value":372},{"type":39,"tag":271,"props":714,"children":715},{"style":324},[716],{"type":44,"value":377},{"type":39,"tag":271,"props":718,"children":719},{"style":380},[720],{"type":44,"value":721}," Anthropic",{"type":39,"tag":271,"props":723,"children":724},{"style":313},[725],{"type":44,"value":388},{"type":39,"tag":271,"props":727,"children":728},{"style":324},[729],{"type":44,"value":342},{"type":39,"tag":271,"props":731,"children":732},{"class":273,"line":395},[733],{"type":39,"tag":271,"props":734,"children":735},{"style":399},[736],{"type":44,"value":737},"\u002F\u002F `ANTHROPIC_API_KEY` and `ANTHROPIC_BASE_URL` are auto-injected; the SDK\n",{"type":39,"tag":271,"props":739,"children":740},{"class":273,"line":27},[741],{"type":39,"tag":271,"props":742,"children":743},{"style":399},[744],{"type":44,"value":410},{"type":39,"tag":271,"props":746,"children":747},{"class":273,"line":413},[748],{"type":39,"tag":271,"props":749,"children":750},{"emptyLinePlaceholder":349},[751],{"type":44,"value":352},{"type":39,"tag":271,"props":753,"children":754},{"class":273,"line":421},[755,759,764,768,772,777,781,786,790,794,798],{"type":39,"tag":271,"props":756,"children":757},{"style":359},[758],{"type":44,"value":362},{"type":39,"tag":271,"props":760,"children":761},{"style":313},[762],{"type":44,"value":763}," message ",{"type":39,"tag":271,"props":765,"children":766},{"style":324},[767],{"type":44,"value":372},{"type":39,"tag":271,"props":769,"children":770},{"style":307},[771],{"type":44,"value":440},{"type":39,"tag":271,"props":773,"children":774},{"style":313},[775],{"type":44,"value":776}," client",{"type":39,"tag":271,"props":778,"children":779},{"style":324},[780],{"type":44,"value":450},{"type":39,"tag":271,"props":782,"children":783},{"style":313},[784],{"type":44,"value":785},"messages",{"type":39,"tag":271,"props":787,"children":788},{"style":324},[789],{"type":44,"value":450},{"type":39,"tag":271,"props":791,"children":792},{"style":380},[793],{"type":44,"value":473},{"type":39,"tag":271,"props":795,"children":796},{"style":313},[797],{"type":44,"value":478},{"type":39,"tag":271,"props":799,"children":800},{"style":324},[801],{"type":44,"value":483},{"type":39,"tag":271,"props":803,"children":804},{"class":273,"line":486},[805,809,813,817,822,826],{"type":39,"tag":271,"props":806,"children":807},{"style":490},[808],{"type":44,"value":493},{"type":39,"tag":271,"props":810,"children":811},{"style":324},[812],{"type":44,"value":498},{"type":39,"tag":271,"props":814,"children":815},{"style":324},[816],{"type":44,"value":327},{"type":39,"tag":271,"props":818,"children":819},{"style":284},[820],{"type":44,"value":821},"claude-sonnet-4-5-20250929",{"type":39,"tag":271,"props":823,"children":824},{"style":324},[825],{"type":44,"value":337},{"type":39,"tag":271,"props":827,"children":828},{"style":324},[829],{"type":44,"value":516},{"type":39,"tag":271,"props":831,"children":832},{"class":273,"line":519},[833,838,842,848],{"type":39,"tag":271,"props":834,"children":835},{"style":490},[836],{"type":44,"value":837},"  max_tokens",{"type":39,"tag":271,"props":839,"children":840},{"style":324},[841],{"type":44,"value":498},{"type":39,"tag":271,"props":843,"children":845},{"style":844},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[846],{"type":44,"value":847}," 1024",{"type":39,"tag":271,"props":849,"children":850},{"style":324},[851],{"type":44,"value":516},{"type":39,"tag":271,"props":853,"children":854},{"class":273,"line":605},[855,859,863,867,871,875,879,883,887,891,895,899,903,907,911,915,919,923],{"type":39,"tag":271,"props":856,"children":857},{"style":490},[858],{"type":44,"value":525},{"type":39,"tag":271,"props":860,"children":861},{"style":324},[862],{"type":44,"value":498},{"type":39,"tag":271,"props":864,"children":865},{"style":313},[866],{"type":44,"value":534},{"type":39,"tag":271,"props":868,"children":869},{"style":324},[870],{"type":44,"value":539},{"type":39,"tag":271,"props":872,"children":873},{"style":490},[874],{"type":44,"value":544},{"type":39,"tag":271,"props":876,"children":877},{"style":324},[878],{"type":44,"value":498},{"type":39,"tag":271,"props":880,"children":881},{"style":324},[882],{"type":44,"value":327},{"type":39,"tag":271,"props":884,"children":885},{"style":284},[886],{"type":44,"value":557},{"type":39,"tag":271,"props":888,"children":889},{"style":324},[890],{"type":44,"value":337},{"type":39,"tag":271,"props":892,"children":893},{"style":324},[894],{"type":44,"value":566},{"type":39,"tag":271,"props":896,"children":897},{"style":490},[898],{"type":44,"value":571},{"type":39,"tag":271,"props":900,"children":901},{"style":324},[902],{"type":44,"value":498},{"type":39,"tag":271,"props":904,"children":905},{"style":324},[906],{"type":44,"value":327},{"type":39,"tag":271,"props":908,"children":909},{"style":284},[910],{"type":44,"value":584},{"type":39,"tag":271,"props":912,"children":913},{"style":324},[914],{"type":44,"value":337},{"type":39,"tag":271,"props":916,"children":917},{"style":324},[918],{"type":44,"value":593},{"type":39,"tag":271,"props":920,"children":921},{"style":313},[922],{"type":44,"value":598},{"type":39,"tag":271,"props":924,"children":925},{"style":324},[926],{"type":44,"value":516},{"type":39,"tag":271,"props":928,"children":930},{"class":273,"line":929},11,[931,935,939],{"type":39,"tag":271,"props":932,"children":933},{"style":324},[934],{"type":44,"value":611},{"type":39,"tag":271,"props":936,"children":937},{"style":313},[938],{"type":44,"value":616},{"type":39,"tag":271,"props":940,"children":941},{"style":324},[942],{"type":44,"value":342},{"type":39,"tag":111,"props":944,"children":946},{"id":945},"using-google-gemini-sdk",[947],{"type":44,"value":948},"Using Google Gemini SDK",{"type":39,"tag":51,"props":950,"children":951},{},[952,954,959,961,967],{"type":44,"value":953},"Use ",{"type":39,"tag":76,"props":955,"children":957},{"className":956},[],[958],{"type":44,"value":236},{"type":44,"value":960}," (the unified Google GenAI SDK). The older ",{"type":39,"tag":76,"props":962,"children":964},{"className":963},[],[965],{"type":44,"value":966},"@google\u002Fgenerative-ai",{"type":44,"value":968}," package does not pick up the gateway env vars.",{"type":39,"tag":260,"props":970,"children":972},{"className":262,"code":971,"language":264,"meta":265,"style":265},"npm install @google\u002Fgenai\n",[973],{"type":39,"tag":76,"props":974,"children":975},{"__ignoreMap":265},[976],{"type":39,"tag":271,"props":977,"children":978},{"class":273,"line":274},[979,983,987],{"type":39,"tag":271,"props":980,"children":981},{"style":278},[982],{"type":44,"value":281},{"type":39,"tag":271,"props":984,"children":985},{"style":284},[986],{"type":44,"value":287},{"type":39,"tag":271,"props":988,"children":989},{"style":284},[990],{"type":44,"value":991}," @google\u002Fgenai\n",{"type":39,"tag":260,"props":993,"children":995},{"className":295,"code":994,"language":297,"meta":265,"style":265},"import { GoogleGenAI } from \"@google\u002Fgenai\";\n\nconst ai = new GoogleGenAI({});\n\u002F\u002F `GEMINI_API_KEY` and `GOOGLE_GEMINI_BASE_URL` are auto-injected. The SDK also\n\u002F\u002F honors `GOOGLE_API_KEY`; leave both Gemini keys unset so the gateway's\n\u002F\u002F injection isn't shadowed.\n\nconst response = await ai.models.generateContent({\n  model: \"gemini-2.5-flash\",\n  contents: \"Hello!\",\n});\n\nconst text = response.text;\n",[996],{"type":39,"tag":76,"props":997,"children":998},{"__ignoreMap":265},[999,1041,1048,1089,1097,1105,1113,1120,1171,1199,1227,1242,1250],{"type":39,"tag":271,"props":1000,"children":1001},{"class":273,"line":274},[1002,1006,1011,1016,1020,1025,1029,1033,1037],{"type":39,"tag":271,"props":1003,"children":1004},{"style":307},[1005],{"type":44,"value":310},{"type":39,"tag":271,"props":1007,"children":1008},{"style":324},[1009],{"type":44,"value":1010}," {",{"type":39,"tag":271,"props":1012,"children":1013},{"style":313},[1014],{"type":44,"value":1015}," GoogleGenAI",{"type":39,"tag":271,"props":1017,"children":1018},{"style":324},[1019],{"type":44,"value":593},{"type":39,"tag":271,"props":1021,"children":1022},{"style":307},[1023],{"type":44,"value":1024}," from",{"type":39,"tag":271,"props":1026,"children":1027},{"style":324},[1028],{"type":44,"value":327},{"type":39,"tag":271,"props":1030,"children":1031},{"style":284},[1032],{"type":44,"value":236},{"type":39,"tag":271,"props":1034,"children":1035},{"style":324},[1036],{"type":44,"value":337},{"type":39,"tag":271,"props":1038,"children":1039},{"style":324},[1040],{"type":44,"value":342},{"type":39,"tag":271,"props":1042,"children":1043},{"class":273,"line":345},[1044],{"type":39,"tag":271,"props":1045,"children":1046},{"emptyLinePlaceholder":349},[1047],{"type":44,"value":352},{"type":39,"tag":271,"props":1049,"children":1050},{"class":273,"line":355},[1051,1055,1060,1064,1068,1072,1076,1081,1085],{"type":39,"tag":271,"props":1052,"children":1053},{"style":359},[1054],{"type":44,"value":362},{"type":39,"tag":271,"props":1056,"children":1057},{"style":313},[1058],{"type":44,"value":1059}," ai ",{"type":39,"tag":271,"props":1061,"children":1062},{"style":324},[1063],{"type":44,"value":372},{"type":39,"tag":271,"props":1065,"children":1066},{"style":324},[1067],{"type":44,"value":377},{"type":39,"tag":271,"props":1069,"children":1070},{"style":380},[1071],{"type":44,"value":1015},{"type":39,"tag":271,"props":1073,"children":1074},{"style":313},[1075],{"type":44,"value":478},{"type":39,"tag":271,"props":1077,"children":1078},{"style":324},[1079],{"type":44,"value":1080},"{}",{"type":39,"tag":271,"props":1082,"children":1083},{"style":313},[1084],{"type":44,"value":616},{"type":39,"tag":271,"props":1086,"children":1087},{"style":324},[1088],{"type":44,"value":342},{"type":39,"tag":271,"props":1090,"children":1091},{"class":273,"line":395},[1092],{"type":39,"tag":271,"props":1093,"children":1094},{"style":399},[1095],{"type":44,"value":1096},"\u002F\u002F `GEMINI_API_KEY` and `GOOGLE_GEMINI_BASE_URL` are auto-injected. The SDK also\n",{"type":39,"tag":271,"props":1098,"children":1099},{"class":273,"line":27},[1100],{"type":39,"tag":271,"props":1101,"children":1102},{"style":399},[1103],{"type":44,"value":1104},"\u002F\u002F honors `GOOGLE_API_KEY`; leave both Gemini keys unset so the gateway's\n",{"type":39,"tag":271,"props":1106,"children":1107},{"class":273,"line":413},[1108],{"type":39,"tag":271,"props":1109,"children":1110},{"style":399},[1111],{"type":44,"value":1112},"\u002F\u002F injection isn't shadowed.\n",{"type":39,"tag":271,"props":1114,"children":1115},{"class":273,"line":421},[1116],{"type":39,"tag":271,"props":1117,"children":1118},{"emptyLinePlaceholder":349},[1119],{"type":44,"value":352},{"type":39,"tag":271,"props":1121,"children":1122},{"class":273,"line":486},[1123,1127,1132,1136,1140,1145,1149,1154,1158,1163,1167],{"type":39,"tag":271,"props":1124,"children":1125},{"style":359},[1126],{"type":44,"value":362},{"type":39,"tag":271,"props":1128,"children":1129},{"style":313},[1130],{"type":44,"value":1131}," response ",{"type":39,"tag":271,"props":1133,"children":1134},{"style":324},[1135],{"type":44,"value":372},{"type":39,"tag":271,"props":1137,"children":1138},{"style":307},[1139],{"type":44,"value":440},{"type":39,"tag":271,"props":1141,"children":1142},{"style":313},[1143],{"type":44,"value":1144}," ai",{"type":39,"tag":271,"props":1146,"children":1147},{"style":324},[1148],{"type":44,"value":450},{"type":39,"tag":271,"props":1150,"children":1151},{"style":313},[1152],{"type":44,"value":1153},"models",{"type":39,"tag":271,"props":1155,"children":1156},{"style":324},[1157],{"type":44,"value":450},{"type":39,"tag":271,"props":1159,"children":1160},{"style":380},[1161],{"type":44,"value":1162},"generateContent",{"type":39,"tag":271,"props":1164,"children":1165},{"style":313},[1166],{"type":44,"value":478},{"type":39,"tag":271,"props":1168,"children":1169},{"style":324},[1170],{"type":44,"value":483},{"type":39,"tag":271,"props":1172,"children":1173},{"class":273,"line":519},[1174,1178,1182,1186,1191,1195],{"type":39,"tag":271,"props":1175,"children":1176},{"style":490},[1177],{"type":44,"value":493},{"type":39,"tag":271,"props":1179,"children":1180},{"style":324},[1181],{"type":44,"value":498},{"type":39,"tag":271,"props":1183,"children":1184},{"style":324},[1185],{"type":44,"value":327},{"type":39,"tag":271,"props":1187,"children":1188},{"style":284},[1189],{"type":44,"value":1190},"gemini-2.5-flash",{"type":39,"tag":271,"props":1192,"children":1193},{"style":324},[1194],{"type":44,"value":337},{"type":39,"tag":271,"props":1196,"children":1197},{"style":324},[1198],{"type":44,"value":516},{"type":39,"tag":271,"props":1200,"children":1201},{"class":273,"line":605},[1202,1207,1211,1215,1219,1223],{"type":39,"tag":271,"props":1203,"children":1204},{"style":490},[1205],{"type":44,"value":1206},"  contents",{"type":39,"tag":271,"props":1208,"children":1209},{"style":324},[1210],{"type":44,"value":498},{"type":39,"tag":271,"props":1212,"children":1213},{"style":324},[1214],{"type":44,"value":327},{"type":39,"tag":271,"props":1216,"children":1217},{"style":284},[1218],{"type":44,"value":584},{"type":39,"tag":271,"props":1220,"children":1221},{"style":324},[1222],{"type":44,"value":337},{"type":39,"tag":271,"props":1224,"children":1225},{"style":324},[1226],{"type":44,"value":516},{"type":39,"tag":271,"props":1228,"children":1229},{"class":273,"line":929},[1230,1234,1238],{"type":39,"tag":271,"props":1231,"children":1232},{"style":324},[1233],{"type":44,"value":611},{"type":39,"tag":271,"props":1235,"children":1236},{"style":313},[1237],{"type":44,"value":616},{"type":39,"tag":271,"props":1239,"children":1240},{"style":324},[1241],{"type":44,"value":342},{"type":39,"tag":271,"props":1243,"children":1245},{"class":273,"line":1244},12,[1246],{"type":39,"tag":271,"props":1247,"children":1248},{"emptyLinePlaceholder":349},[1249],{"type":44,"value":352},{"type":39,"tag":271,"props":1251,"children":1253},{"class":273,"line":1252},13,[1254,1258,1263,1267,1272,1276,1280],{"type":39,"tag":271,"props":1255,"children":1256},{"style":359},[1257],{"type":44,"value":362},{"type":39,"tag":271,"props":1259,"children":1260},{"style":313},[1261],{"type":44,"value":1262}," text ",{"type":39,"tag":271,"props":1264,"children":1265},{"style":324},[1266],{"type":44,"value":372},{"type":39,"tag":271,"props":1268,"children":1269},{"style":313},[1270],{"type":44,"value":1271}," response",{"type":39,"tag":271,"props":1273,"children":1274},{"style":324},[1275],{"type":44,"value":450},{"type":39,"tag":271,"props":1277,"children":1278},{"style":313},[1279],{"type":44,"value":44},{"type":39,"tag":271,"props":1281,"children":1282},{"style":324},[1283],{"type":44,"value":342},{"type":39,"tag":111,"props":1285,"children":1287},{"id":1286},"in-a-netlify-function",[1288],{"type":44,"value":1289},"In a Netlify Function",{"type":39,"tag":260,"props":1291,"children":1293},{"className":295,"code":1292,"language":297,"meta":265,"style":265},"import type { Config, Context } from \"@netlify\u002Ffunctions\";\nimport OpenAI from \"openai\";\n\nexport default async (req: Request, context: Context) => {\n  const { prompt } = await req.json();\n  const openai = new OpenAI();\n\n  const completion = await openai.chat.completions.create({\n    model: \"gpt-4o-mini\",\n    messages: [{ role: \"user\", content: prompt }],\n  });\n\n  return Response.json({\n    response: completion.choices[0].message.content,\n  });\n};\n\nexport const config: Config = {\n  path: \"\u002Fapi\u002Fai\",\n  method: \"POST\",\n};\n",[1294],{"type":39,"tag":76,"props":1295,"children":1296},{"__ignoreMap":265},[1297,1352,1383,1390,1459,1511,1542,1549,1605,1633,1701,1717,1724,1753,1815,1831,1840,1848,1882,1912,1942],{"type":39,"tag":271,"props":1298,"children":1299},{"class":273,"line":274},[1300,1304,1309,1313,1318,1322,1327,1331,1335,1339,1344,1348],{"type":39,"tag":271,"props":1301,"children":1302},{"style":307},[1303],{"type":44,"value":310},{"type":39,"tag":271,"props":1305,"children":1306},{"style":307},[1307],{"type":44,"value":1308}," type",{"type":39,"tag":271,"props":1310,"children":1311},{"style":324},[1312],{"type":44,"value":1010},{"type":39,"tag":271,"props":1314,"children":1315},{"style":313},[1316],{"type":44,"value":1317}," Config",{"type":39,"tag":271,"props":1319,"children":1320},{"style":324},[1321],{"type":44,"value":566},{"type":39,"tag":271,"props":1323,"children":1324},{"style":313},[1325],{"type":44,"value":1326}," Context",{"type":39,"tag":271,"props":1328,"children":1329},{"style":324},[1330],{"type":44,"value":593},{"type":39,"tag":271,"props":1332,"children":1333},{"style":307},[1334],{"type":44,"value":1024},{"type":39,"tag":271,"props":1336,"children":1337},{"style":324},[1338],{"type":44,"value":327},{"type":39,"tag":271,"props":1340,"children":1341},{"style":284},[1342],{"type":44,"value":1343},"@netlify\u002Ffunctions",{"type":39,"tag":271,"props":1345,"children":1346},{"style":324},[1347],{"type":44,"value":337},{"type":39,"tag":271,"props":1349,"children":1350},{"style":324},[1351],{"type":44,"value":342},{"type":39,"tag":271,"props":1353,"children":1354},{"class":273,"line":345},[1355,1359,1363,1367,1371,1375,1379],{"type":39,"tag":271,"props":1356,"children":1357},{"style":307},[1358],{"type":44,"value":310},{"type":39,"tag":271,"props":1360,"children":1361},{"style":313},[1362],{"type":44,"value":316},{"type":39,"tag":271,"props":1364,"children":1365},{"style":307},[1366],{"type":44,"value":321},{"type":39,"tag":271,"props":1368,"children":1369},{"style":324},[1370],{"type":44,"value":327},{"type":39,"tag":271,"props":1372,"children":1373},{"style":284},[1374],{"type":44,"value":332},{"type":39,"tag":271,"props":1376,"children":1377},{"style":324},[1378],{"type":44,"value":337},{"type":39,"tag":271,"props":1380,"children":1381},{"style":324},[1382],{"type":44,"value":342},{"type":39,"tag":271,"props":1384,"children":1385},{"class":273,"line":355},[1386],{"type":39,"tag":271,"props":1387,"children":1388},{"emptyLinePlaceholder":349},[1389],{"type":44,"value":352},{"type":39,"tag":271,"props":1391,"children":1392},{"class":273,"line":395},[1393,1398,1403,1408,1413,1419,1423,1428,1432,1437,1441,1445,1449,1454],{"type":39,"tag":271,"props":1394,"children":1395},{"style":307},[1396],{"type":44,"value":1397},"export",{"type":39,"tag":271,"props":1399,"children":1400},{"style":307},[1401],{"type":44,"value":1402}," default",{"type":39,"tag":271,"props":1404,"children":1405},{"style":359},[1406],{"type":44,"value":1407}," async",{"type":39,"tag":271,"props":1409,"children":1410},{"style":324},[1411],{"type":44,"value":1412}," (",{"type":39,"tag":271,"props":1414,"children":1416},{"style":1415},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic",[1417],{"type":44,"value":1418},"req",{"type":39,"tag":271,"props":1420,"children":1421},{"style":324},[1422],{"type":44,"value":498},{"type":39,"tag":271,"props":1424,"children":1425},{"style":278},[1426],{"type":44,"value":1427}," Request",{"type":39,"tag":271,"props":1429,"children":1430},{"style":324},[1431],{"type":44,"value":566},{"type":39,"tag":271,"props":1433,"children":1434},{"style":1415},[1435],{"type":44,"value":1436}," context",{"type":39,"tag":271,"props":1438,"children":1439},{"style":324},[1440],{"type":44,"value":498},{"type":39,"tag":271,"props":1442,"children":1443},{"style":278},[1444],{"type":44,"value":1326},{"type":39,"tag":271,"props":1446,"children":1447},{"style":324},[1448],{"type":44,"value":616},{"type":39,"tag":271,"props":1450,"children":1451},{"style":359},[1452],{"type":44,"value":1453}," =>",{"type":39,"tag":271,"props":1455,"children":1456},{"style":324},[1457],{"type":44,"value":1458}," {\n",{"type":39,"tag":271,"props":1460,"children":1461},{"class":273,"line":27},[1462,1467,1471,1476,1480,1485,1489,1494,1498,1503,1507],{"type":39,"tag":271,"props":1463,"children":1464},{"style":359},[1465],{"type":44,"value":1466},"  const",{"type":39,"tag":271,"props":1468,"children":1469},{"style":324},[1470],{"type":44,"value":1010},{"type":39,"tag":271,"props":1472,"children":1473},{"style":313},[1474],{"type":44,"value":1475}," prompt",{"type":39,"tag":271,"props":1477,"children":1478},{"style":324},[1479],{"type":44,"value":593},{"type":39,"tag":271,"props":1481,"children":1482},{"style":324},[1483],{"type":44,"value":1484}," =",{"type":39,"tag":271,"props":1486,"children":1487},{"style":307},[1488],{"type":44,"value":440},{"type":39,"tag":271,"props":1490,"children":1491},{"style":313},[1492],{"type":44,"value":1493}," req",{"type":39,"tag":271,"props":1495,"children":1496},{"style":324},[1497],{"type":44,"value":450},{"type":39,"tag":271,"props":1499,"children":1500},{"style":380},[1501],{"type":44,"value":1502},"json",{"type":39,"tag":271,"props":1504,"children":1505},{"style":490},[1506],{"type":44,"value":388},{"type":39,"tag":271,"props":1508,"children":1509},{"style":324},[1510],{"type":44,"value":342},{"type":39,"tag":271,"props":1512,"children":1513},{"class":273,"line":413},[1514,1518,1522,1526,1530,1534,1538],{"type":39,"tag":271,"props":1515,"children":1516},{"style":359},[1517],{"type":44,"value":1466},{"type":39,"tag":271,"props":1519,"children":1520},{"style":313},[1521],{"type":44,"value":445},{"type":39,"tag":271,"props":1523,"children":1524},{"style":324},[1525],{"type":44,"value":1484},{"type":39,"tag":271,"props":1527,"children":1528},{"style":324},[1529],{"type":44,"value":377},{"type":39,"tag":271,"props":1531,"children":1532},{"style":380},[1533],{"type":44,"value":383},{"type":39,"tag":271,"props":1535,"children":1536},{"style":490},[1537],{"type":44,"value":388},{"type":39,"tag":271,"props":1539,"children":1540},{"style":324},[1541],{"type":44,"value":342},{"type":39,"tag":271,"props":1543,"children":1544},{"class":273,"line":421},[1545],{"type":39,"tag":271,"props":1546,"children":1547},{"emptyLinePlaceholder":349},[1548],{"type":44,"value":352},{"type":39,"tag":271,"props":1550,"children":1551},{"class":273,"line":486},[1552,1556,1561,1565,1569,1573,1577,1581,1585,1589,1593,1597,1601],{"type":39,"tag":271,"props":1553,"children":1554},{"style":359},[1555],{"type":44,"value":1466},{"type":39,"tag":271,"props":1557,"children":1558},{"style":313},[1559],{"type":44,"value":1560}," completion",{"type":39,"tag":271,"props":1562,"children":1563},{"style":324},[1564],{"type":44,"value":1484},{"type":39,"tag":271,"props":1566,"children":1567},{"style":307},[1568],{"type":44,"value":440},{"type":39,"tag":271,"props":1570,"children":1571},{"style":313},[1572],{"type":44,"value":445},{"type":39,"tag":271,"props":1574,"children":1575},{"style":324},[1576],{"type":44,"value":450},{"type":39,"tag":271,"props":1578,"children":1579},{"style":313},[1580],{"type":44,"value":455},{"type":39,"tag":271,"props":1582,"children":1583},{"style":324},[1584],{"type":44,"value":450},{"type":39,"tag":271,"props":1586,"children":1587},{"style":313},[1588],{"type":44,"value":464},{"type":39,"tag":271,"props":1590,"children":1591},{"style":324},[1592],{"type":44,"value":450},{"type":39,"tag":271,"props":1594,"children":1595},{"style":380},[1596],{"type":44,"value":473},{"type":39,"tag":271,"props":1598,"children":1599},{"style":490},[1600],{"type":44,"value":478},{"type":39,"tag":271,"props":1602,"children":1603},{"style":324},[1604],{"type":44,"value":483},{"type":39,"tag":271,"props":1606,"children":1607},{"class":273,"line":519},[1608,1613,1617,1621,1625,1629],{"type":39,"tag":271,"props":1609,"children":1610},{"style":490},[1611],{"type":44,"value":1612},"    model",{"type":39,"tag":271,"props":1614,"children":1615},{"style":324},[1616],{"type":44,"value":498},{"type":39,"tag":271,"props":1618,"children":1619},{"style":324},[1620],{"type":44,"value":327},{"type":39,"tag":271,"props":1622,"children":1623},{"style":284},[1624],{"type":44,"value":507},{"type":39,"tag":271,"props":1626,"children":1627},{"style":324},[1628],{"type":44,"value":337},{"type":39,"tag":271,"props":1630,"children":1631},{"style":324},[1632],{"type":44,"value":516},{"type":39,"tag":271,"props":1634,"children":1635},{"class":273,"line":605},[1636,1641,1645,1649,1653,1657,1661,1665,1669,1673,1677,1681,1685,1689,1693,1697],{"type":39,"tag":271,"props":1637,"children":1638},{"style":490},[1639],{"type":44,"value":1640},"    messages",{"type":39,"tag":271,"props":1642,"children":1643},{"style":324},[1644],{"type":44,"value":498},{"type":39,"tag":271,"props":1646,"children":1647},{"style":490},[1648],{"type":44,"value":534},{"type":39,"tag":271,"props":1650,"children":1651},{"style":324},[1652],{"type":44,"value":539},{"type":39,"tag":271,"props":1654,"children":1655},{"style":490},[1656],{"type":44,"value":544},{"type":39,"tag":271,"props":1658,"children":1659},{"style":324},[1660],{"type":44,"value":498},{"type":39,"tag":271,"props":1662,"children":1663},{"style":324},[1664],{"type":44,"value":327},{"type":39,"tag":271,"props":1666,"children":1667},{"style":284},[1668],{"type":44,"value":557},{"type":39,"tag":271,"props":1670,"children":1671},{"style":324},[1672],{"type":44,"value":337},{"type":39,"tag":271,"props":1674,"children":1675},{"style":324},[1676],{"type":44,"value":566},{"type":39,"tag":271,"props":1678,"children":1679},{"style":490},[1680],{"type":44,"value":571},{"type":39,"tag":271,"props":1682,"children":1683},{"style":324},[1684],{"type":44,"value":498},{"type":39,"tag":271,"props":1686,"children":1687},{"style":313},[1688],{"type":44,"value":1475},{"type":39,"tag":271,"props":1690,"children":1691},{"style":324},[1692],{"type":44,"value":593},{"type":39,"tag":271,"props":1694,"children":1695},{"style":490},[1696],{"type":44,"value":598},{"type":39,"tag":271,"props":1698,"children":1699},{"style":324},[1700],{"type":44,"value":516},{"type":39,"tag":271,"props":1702,"children":1703},{"class":273,"line":929},[1704,1709,1713],{"type":39,"tag":271,"props":1705,"children":1706},{"style":324},[1707],{"type":44,"value":1708},"  }",{"type":39,"tag":271,"props":1710,"children":1711},{"style":490},[1712],{"type":44,"value":616},{"type":39,"tag":271,"props":1714,"children":1715},{"style":324},[1716],{"type":44,"value":342},{"type":39,"tag":271,"props":1718,"children":1719},{"class":273,"line":1244},[1720],{"type":39,"tag":271,"props":1721,"children":1722},{"emptyLinePlaceholder":349},[1723],{"type":44,"value":352},{"type":39,"tag":271,"props":1725,"children":1726},{"class":273,"line":1252},[1727,1732,1737,1741,1745,1749],{"type":39,"tag":271,"props":1728,"children":1729},{"style":307},[1730],{"type":44,"value":1731},"  return",{"type":39,"tag":271,"props":1733,"children":1734},{"style":313},[1735],{"type":44,"value":1736}," Response",{"type":39,"tag":271,"props":1738,"children":1739},{"style":324},[1740],{"type":44,"value":450},{"type":39,"tag":271,"props":1742,"children":1743},{"style":380},[1744],{"type":44,"value":1502},{"type":39,"tag":271,"props":1746,"children":1747},{"style":490},[1748],{"type":44,"value":478},{"type":39,"tag":271,"props":1750,"children":1751},{"style":324},[1752],{"type":44,"value":483},{"type":39,"tag":271,"props":1754,"children":1756},{"class":273,"line":1755},14,[1757,1762,1766,1770,1774,1779,1784,1789,1793,1797,1802,1806,1811],{"type":39,"tag":271,"props":1758,"children":1759},{"style":490},[1760],{"type":44,"value":1761},"    response",{"type":39,"tag":271,"props":1763,"children":1764},{"style":324},[1765],{"type":44,"value":498},{"type":39,"tag":271,"props":1767,"children":1768},{"style":313},[1769],{"type":44,"value":1560},{"type":39,"tag":271,"props":1771,"children":1772},{"style":324},[1773],{"type":44,"value":450},{"type":39,"tag":271,"props":1775,"children":1776},{"style":313},[1777],{"type":44,"value":1778},"choices",{"type":39,"tag":271,"props":1780,"children":1781},{"style":490},[1782],{"type":44,"value":1783},"[",{"type":39,"tag":271,"props":1785,"children":1786},{"style":844},[1787],{"type":44,"value":1788},"0",{"type":39,"tag":271,"props":1790,"children":1791},{"style":490},[1792],{"type":44,"value":598},{"type":39,"tag":271,"props":1794,"children":1795},{"style":324},[1796],{"type":44,"value":450},{"type":39,"tag":271,"props":1798,"children":1799},{"style":313},[1800],{"type":44,"value":1801},"message",{"type":39,"tag":271,"props":1803,"children":1804},{"style":324},[1805],{"type":44,"value":450},{"type":39,"tag":271,"props":1807,"children":1808},{"style":313},[1809],{"type":44,"value":1810},"content",{"type":39,"tag":271,"props":1812,"children":1813},{"style":324},[1814],{"type":44,"value":516},{"type":39,"tag":271,"props":1816,"children":1818},{"class":273,"line":1817},15,[1819,1823,1827],{"type":39,"tag":271,"props":1820,"children":1821},{"style":324},[1822],{"type":44,"value":1708},{"type":39,"tag":271,"props":1824,"children":1825},{"style":490},[1826],{"type":44,"value":616},{"type":39,"tag":271,"props":1828,"children":1829},{"style":324},[1830],{"type":44,"value":342},{"type":39,"tag":271,"props":1832,"children":1834},{"class":273,"line":1833},16,[1835],{"type":39,"tag":271,"props":1836,"children":1837},{"style":324},[1838],{"type":44,"value":1839},"};\n",{"type":39,"tag":271,"props":1841,"children":1843},{"class":273,"line":1842},17,[1844],{"type":39,"tag":271,"props":1845,"children":1846},{"emptyLinePlaceholder":349},[1847],{"type":44,"value":352},{"type":39,"tag":271,"props":1849,"children":1851},{"class":273,"line":1850},18,[1852,1856,1861,1866,1870,1874,1878],{"type":39,"tag":271,"props":1853,"children":1854},{"style":307},[1855],{"type":44,"value":1397},{"type":39,"tag":271,"props":1857,"children":1858},{"style":359},[1859],{"type":44,"value":1860}," const",{"type":39,"tag":271,"props":1862,"children":1863},{"style":313},[1864],{"type":44,"value":1865}," config",{"type":39,"tag":271,"props":1867,"children":1868},{"style":324},[1869],{"type":44,"value":498},{"type":39,"tag":271,"props":1871,"children":1872},{"style":278},[1873],{"type":44,"value":1317},{"type":39,"tag":271,"props":1875,"children":1876},{"style":324},[1877],{"type":44,"value":1484},{"type":39,"tag":271,"props":1879,"children":1880},{"style":324},[1881],{"type":44,"value":1458},{"type":39,"tag":271,"props":1883,"children":1885},{"class":273,"line":1884},19,[1886,1891,1895,1899,1904,1908],{"type":39,"tag":271,"props":1887,"children":1888},{"style":490},[1889],{"type":44,"value":1890},"  path",{"type":39,"tag":271,"props":1892,"children":1893},{"style":324},[1894],{"type":44,"value":498},{"type":39,"tag":271,"props":1896,"children":1897},{"style":324},[1898],{"type":44,"value":327},{"type":39,"tag":271,"props":1900,"children":1901},{"style":284},[1902],{"type":44,"value":1903},"\u002Fapi\u002Fai",{"type":39,"tag":271,"props":1905,"children":1906},{"style":324},[1907],{"type":44,"value":337},{"type":39,"tag":271,"props":1909,"children":1910},{"style":324},[1911],{"type":44,"value":516},{"type":39,"tag":271,"props":1913,"children":1915},{"class":273,"line":1914},20,[1916,1921,1925,1929,1934,1938],{"type":39,"tag":271,"props":1917,"children":1918},{"style":490},[1919],{"type":44,"value":1920},"  method",{"type":39,"tag":271,"props":1922,"children":1923},{"style":324},[1924],{"type":44,"value":498},{"type":39,"tag":271,"props":1926,"children":1927},{"style":324},[1928],{"type":44,"value":327},{"type":39,"tag":271,"props":1930,"children":1931},{"style":284},[1932],{"type":44,"value":1933},"POST",{"type":39,"tag":271,"props":1935,"children":1936},{"style":324},[1937],{"type":44,"value":337},{"type":39,"tag":271,"props":1939,"children":1940},{"style":324},[1941],{"type":44,"value":516},{"type":39,"tag":271,"props":1943,"children":1945},{"class":273,"line":1944},21,[1946],{"type":39,"tag":271,"props":1947,"children":1948},{"style":324},[1949],{"type":44,"value":1839},{"type":39,"tag":51,"props":1951,"children":1952},{},[1953,1955,1961,1963,1969],{"type":44,"value":1954},"Return the reply as JSON with ",{"type":39,"tag":76,"props":1956,"children":1958},{"className":1957},[],[1959],{"type":44,"value":1960},"Response.json({...})",{"type":44,"value":1962},", even when the request only asks for \"the reply text\" back — a raw ",{"type":39,"tag":76,"props":1964,"children":1966},{"className":1965},[],[1967],{"type":44,"value":1968},"text\u002Fplain",{"type":44,"value":1970}," body breaks JSON-consuming clients and diverges from the convention used everywhere else in Netlify Functions.",{"type":39,"tag":111,"props":1972,"children":1974},{"id":1973},"image-generation",[1975],{"type":44,"value":1976},"Image Generation",{"type":39,"tag":51,"props":1978,"children":1979},{},[1980,1982,1987,1989,1995,1996,2002,2003,2009,2010,2016,2018,2024,2025,2031,2033,2038],{"type":44,"value":1981},"Image generation on the gateway is supported through ",{"type":39,"tag":55,"props":1983,"children":1984},{},[1985],{"type":44,"value":1986},"Gemini image models",{"type":44,"value":1988}," (e.g., ",{"type":39,"tag":76,"props":1990,"children":1992},{"className":1991},[],[1993],{"type":44,"value":1994},"gemini-2.5-flash-image",{"type":44,"value":83},{"type":39,"tag":76,"props":1997,"children":1999},{"className":1998},[],[2000],{"type":44,"value":2001},"gemini-3-pro-image",{"type":44,"value":83},{"type":39,"tag":76,"props":2004,"children":2006},{"className":2005},[],[2007],{"type":44,"value":2008},"gemini-3.1-flash-image",{"type":44,"value":83},{"type":39,"tag":76,"props":2011,"children":2013},{"className":2012},[],[2014],{"type":44,"value":2015},"gemini-3.1-flash-lite-image",{"type":44,"value":2017},"). OpenAI's image models (",{"type":39,"tag":76,"props":2019,"children":2021},{"className":2020},[],[2022],{"type":44,"value":2023},"gpt-image-1",{"type":44,"value":83},{"type":39,"tag":76,"props":2026,"children":2028},{"className":2027},[],[2029],{"type":44,"value":2030},"dall-e-*",{"type":44,"value":2032},") are ",{"type":39,"tag":55,"props":2034,"children":2035},{},[2036],{"type":44,"value":2037},"not",{"type":44,"value":2039}," routed through the gateway.",{"type":39,"tag":51,"props":2041,"children":2042},{},[2043,2045,2050,2052,2058],{"type":44,"value":2044},"Both text-to-image and image-to-image use the same ",{"type":39,"tag":76,"props":2046,"children":2048},{"className":2047},[],[2049],{"type":44,"value":1162},{"type":44,"value":2051}," method as chat — only the model and response shape differ. The image is returned as base64 ",{"type":39,"tag":76,"props":2053,"children":2055},{"className":2054},[],[2056],{"type":44,"value":2057},"inlineData",{"type":44,"value":2059}," on a content part, not as a URL.",{"type":39,"tag":2061,"props":2062,"children":2064},"h3",{"id":2063},"text-to-image",[2065],{"type":44,"value":2066},"Text-to-image",{"type":39,"tag":260,"props":2068,"children":2070},{"className":295,"code":2069,"language":297,"meta":265,"style":265},"import { GoogleGenAI } from \"@google\u002Fgenai\";\n\nconst ai = new GoogleGenAI({});\n\nconst response = await ai.models.generateContent({\n  model: \"gemini-3.1-flash-image\",\n  contents: \"A watercolor portrait of a corgi wearing a beret\",\n});\n\nconst imagePart = response.candidates[0].content.parts.find(\n  (p) => p.inlineData,\n);\nconst base64 = imagePart.inlineData.data;\nconst mimeType = imagePart.inlineData.mimeType; \u002F\u002F e.g. \"image\u002Fpng\"\nconst bytes = Buffer.from(base64, \"base64\");\n",[2071],{"type":39,"tag":76,"props":2072,"children":2073},{"__ignoreMap":265},[2074,2113,2120,2159,2166,2213,2240,2268,2283,2290,2358,2395,2406,2448,2495],{"type":39,"tag":271,"props":2075,"children":2076},{"class":273,"line":274},[2077,2081,2085,2089,2093,2097,2101,2105,2109],{"type":39,"tag":271,"props":2078,"children":2079},{"style":307},[2080],{"type":44,"value":310},{"type":39,"tag":271,"props":2082,"children":2083},{"style":324},[2084],{"type":44,"value":1010},{"type":39,"tag":271,"props":2086,"children":2087},{"style":313},[2088],{"type":44,"value":1015},{"type":39,"tag":271,"props":2090,"children":2091},{"style":324},[2092],{"type":44,"value":593},{"type":39,"tag":271,"props":2094,"children":2095},{"style":307},[2096],{"type":44,"value":1024},{"type":39,"tag":271,"props":2098,"children":2099},{"style":324},[2100],{"type":44,"value":327},{"type":39,"tag":271,"props":2102,"children":2103},{"style":284},[2104],{"type":44,"value":236},{"type":39,"tag":271,"props":2106,"children":2107},{"style":324},[2108],{"type":44,"value":337},{"type":39,"tag":271,"props":2110,"children":2111},{"style":324},[2112],{"type":44,"value":342},{"type":39,"tag":271,"props":2114,"children":2115},{"class":273,"line":345},[2116],{"type":39,"tag":271,"props":2117,"children":2118},{"emptyLinePlaceholder":349},[2119],{"type":44,"value":352},{"type":39,"tag":271,"props":2121,"children":2122},{"class":273,"line":355},[2123,2127,2131,2135,2139,2143,2147,2151,2155],{"type":39,"tag":271,"props":2124,"children":2125},{"style":359},[2126],{"type":44,"value":362},{"type":39,"tag":271,"props":2128,"children":2129},{"style":313},[2130],{"type":44,"value":1059},{"type":39,"tag":271,"props":2132,"children":2133},{"style":324},[2134],{"type":44,"value":372},{"type":39,"tag":271,"props":2136,"children":2137},{"style":324},[2138],{"type":44,"value":377},{"type":39,"tag":271,"props":2140,"children":2141},{"style":380},[2142],{"type":44,"value":1015},{"type":39,"tag":271,"props":2144,"children":2145},{"style":313},[2146],{"type":44,"value":478},{"type":39,"tag":271,"props":2148,"children":2149},{"style":324},[2150],{"type":44,"value":1080},{"type":39,"tag":271,"props":2152,"children":2153},{"style":313},[2154],{"type":44,"value":616},{"type":39,"tag":271,"props":2156,"children":2157},{"style":324},[2158],{"type":44,"value":342},{"type":39,"tag":271,"props":2160,"children":2161},{"class":273,"line":395},[2162],{"type":39,"tag":271,"props":2163,"children":2164},{"emptyLinePlaceholder":349},[2165],{"type":44,"value":352},{"type":39,"tag":271,"props":2167,"children":2168},{"class":273,"line":27},[2169,2173,2177,2181,2185,2189,2193,2197,2201,2205,2209],{"type":39,"tag":271,"props":2170,"children":2171},{"style":359},[2172],{"type":44,"value":362},{"type":39,"tag":271,"props":2174,"children":2175},{"style":313},[2176],{"type":44,"value":1131},{"type":39,"tag":271,"props":2178,"children":2179},{"style":324},[2180],{"type":44,"value":372},{"type":39,"tag":271,"props":2182,"children":2183},{"style":307},[2184],{"type":44,"value":440},{"type":39,"tag":271,"props":2186,"children":2187},{"style":313},[2188],{"type":44,"value":1144},{"type":39,"tag":271,"props":2190,"children":2191},{"style":324},[2192],{"type":44,"value":450},{"type":39,"tag":271,"props":2194,"children":2195},{"style":313},[2196],{"type":44,"value":1153},{"type":39,"tag":271,"props":2198,"children":2199},{"style":324},[2200],{"type":44,"value":450},{"type":39,"tag":271,"props":2202,"children":2203},{"style":380},[2204],{"type":44,"value":1162},{"type":39,"tag":271,"props":2206,"children":2207},{"style":313},[2208],{"type":44,"value":478},{"type":39,"tag":271,"props":2210,"children":2211},{"style":324},[2212],{"type":44,"value":483},{"type":39,"tag":271,"props":2214,"children":2215},{"class":273,"line":413},[2216,2220,2224,2228,2232,2236],{"type":39,"tag":271,"props":2217,"children":2218},{"style":490},[2219],{"type":44,"value":493},{"type":39,"tag":271,"props":2221,"children":2222},{"style":324},[2223],{"type":44,"value":498},{"type":39,"tag":271,"props":2225,"children":2226},{"style":324},[2227],{"type":44,"value":327},{"type":39,"tag":271,"props":2229,"children":2230},{"style":284},[2231],{"type":44,"value":2008},{"type":39,"tag":271,"props":2233,"children":2234},{"style":324},[2235],{"type":44,"value":337},{"type":39,"tag":271,"props":2237,"children":2238},{"style":324},[2239],{"type":44,"value":516},{"type":39,"tag":271,"props":2241,"children":2242},{"class":273,"line":421},[2243,2247,2251,2255,2260,2264],{"type":39,"tag":271,"props":2244,"children":2245},{"style":490},[2246],{"type":44,"value":1206},{"type":39,"tag":271,"props":2248,"children":2249},{"style":324},[2250],{"type":44,"value":498},{"type":39,"tag":271,"props":2252,"children":2253},{"style":324},[2254],{"type":44,"value":327},{"type":39,"tag":271,"props":2256,"children":2257},{"style":284},[2258],{"type":44,"value":2259},"A watercolor portrait of a corgi wearing a beret",{"type":39,"tag":271,"props":2261,"children":2262},{"style":324},[2263],{"type":44,"value":337},{"type":39,"tag":271,"props":2265,"children":2266},{"style":324},[2267],{"type":44,"value":516},{"type":39,"tag":271,"props":2269,"children":2270},{"class":273,"line":486},[2271,2275,2279],{"type":39,"tag":271,"props":2272,"children":2273},{"style":324},[2274],{"type":44,"value":611},{"type":39,"tag":271,"props":2276,"children":2277},{"style":313},[2278],{"type":44,"value":616},{"type":39,"tag":271,"props":2280,"children":2281},{"style":324},[2282],{"type":44,"value":342},{"type":39,"tag":271,"props":2284,"children":2285},{"class":273,"line":519},[2286],{"type":39,"tag":271,"props":2287,"children":2288},{"emptyLinePlaceholder":349},[2289],{"type":44,"value":352},{"type":39,"tag":271,"props":2291,"children":2292},{"class":273,"line":605},[2293,2297,2302,2306,2310,2314,2319,2323,2327,2331,2335,2339,2344,2348,2353],{"type":39,"tag":271,"props":2294,"children":2295},{"style":359},[2296],{"type":44,"value":362},{"type":39,"tag":271,"props":2298,"children":2299},{"style":313},[2300],{"type":44,"value":2301}," imagePart ",{"type":39,"tag":271,"props":2303,"children":2304},{"style":324},[2305],{"type":44,"value":372},{"type":39,"tag":271,"props":2307,"children":2308},{"style":313},[2309],{"type":44,"value":1271},{"type":39,"tag":271,"props":2311,"children":2312},{"style":324},[2313],{"type":44,"value":450},{"type":39,"tag":271,"props":2315,"children":2316},{"style":313},[2317],{"type":44,"value":2318},"candidates[",{"type":39,"tag":271,"props":2320,"children":2321},{"style":844},[2322],{"type":44,"value":1788},{"type":39,"tag":271,"props":2324,"children":2325},{"style":313},[2326],{"type":44,"value":598},{"type":39,"tag":271,"props":2328,"children":2329},{"style":324},[2330],{"type":44,"value":450},{"type":39,"tag":271,"props":2332,"children":2333},{"style":313},[2334],{"type":44,"value":1810},{"type":39,"tag":271,"props":2336,"children":2337},{"style":324},[2338],{"type":44,"value":450},{"type":39,"tag":271,"props":2340,"children":2341},{"style":313},[2342],{"type":44,"value":2343},"parts",{"type":39,"tag":271,"props":2345,"children":2346},{"style":324},[2347],{"type":44,"value":450},{"type":39,"tag":271,"props":2349,"children":2350},{"style":380},[2351],{"type":44,"value":2352},"find",{"type":39,"tag":271,"props":2354,"children":2355},{"style":313},[2356],{"type":44,"value":2357},"(\n",{"type":39,"tag":271,"props":2359,"children":2360},{"class":273,"line":929},[2361,2366,2370,2374,2378,2383,2387,2391],{"type":39,"tag":271,"props":2362,"children":2363},{"style":324},[2364],{"type":44,"value":2365},"  (",{"type":39,"tag":271,"props":2367,"children":2368},{"style":1415},[2369],{"type":44,"value":51},{"type":39,"tag":271,"props":2371,"children":2372},{"style":324},[2373],{"type":44,"value":616},{"type":39,"tag":271,"props":2375,"children":2376},{"style":359},[2377],{"type":44,"value":1453},{"type":39,"tag":271,"props":2379,"children":2380},{"style":313},[2381],{"type":44,"value":2382}," p",{"type":39,"tag":271,"props":2384,"children":2385},{"style":324},[2386],{"type":44,"value":450},{"type":39,"tag":271,"props":2388,"children":2389},{"style":313},[2390],{"type":44,"value":2057},{"type":39,"tag":271,"props":2392,"children":2393},{"style":324},[2394],{"type":44,"value":516},{"type":39,"tag":271,"props":2396,"children":2397},{"class":273,"line":1244},[2398,2402],{"type":39,"tag":271,"props":2399,"children":2400},{"style":313},[2401],{"type":44,"value":616},{"type":39,"tag":271,"props":2403,"children":2404},{"style":324},[2405],{"type":44,"value":342},{"type":39,"tag":271,"props":2407,"children":2408},{"class":273,"line":1252},[2409,2413,2418,2422,2427,2431,2435,2439,2444],{"type":39,"tag":271,"props":2410,"children":2411},{"style":359},[2412],{"type":44,"value":362},{"type":39,"tag":271,"props":2414,"children":2415},{"style":313},[2416],{"type":44,"value":2417}," base64 ",{"type":39,"tag":271,"props":2419,"children":2420},{"style":324},[2421],{"type":44,"value":372},{"type":39,"tag":271,"props":2423,"children":2424},{"style":313},[2425],{"type":44,"value":2426}," imagePart",{"type":39,"tag":271,"props":2428,"children":2429},{"style":324},[2430],{"type":44,"value":450},{"type":39,"tag":271,"props":2432,"children":2433},{"style":313},[2434],{"type":44,"value":2057},{"type":39,"tag":271,"props":2436,"children":2437},{"style":324},[2438],{"type":44,"value":450},{"type":39,"tag":271,"props":2440,"children":2441},{"style":313},[2442],{"type":44,"value":2443},"data",{"type":39,"tag":271,"props":2445,"children":2446},{"style":324},[2447],{"type":44,"value":342},{"type":39,"tag":271,"props":2449,"children":2450},{"class":273,"line":1755},[2451,2455,2460,2464,2468,2472,2476,2480,2485,2490],{"type":39,"tag":271,"props":2452,"children":2453},{"style":359},[2454],{"type":44,"value":362},{"type":39,"tag":271,"props":2456,"children":2457},{"style":313},[2458],{"type":44,"value":2459}," mimeType ",{"type":39,"tag":271,"props":2461,"children":2462},{"style":324},[2463],{"type":44,"value":372},{"type":39,"tag":271,"props":2465,"children":2466},{"style":313},[2467],{"type":44,"value":2426},{"type":39,"tag":271,"props":2469,"children":2470},{"style":324},[2471],{"type":44,"value":450},{"type":39,"tag":271,"props":2473,"children":2474},{"style":313},[2475],{"type":44,"value":2057},{"type":39,"tag":271,"props":2477,"children":2478},{"style":324},[2479],{"type":44,"value":450},{"type":39,"tag":271,"props":2481,"children":2482},{"style":313},[2483],{"type":44,"value":2484},"mimeType",{"type":39,"tag":271,"props":2486,"children":2487},{"style":324},[2488],{"type":44,"value":2489},";",{"type":39,"tag":271,"props":2491,"children":2492},{"style":399},[2493],{"type":44,"value":2494}," \u002F\u002F e.g. \"image\u002Fpng\"\n",{"type":39,"tag":271,"props":2496,"children":2497},{"class":273,"line":1817},[2498,2502,2507,2511,2516,2520,2524,2529,2533,2537,2542,2546,2550],{"type":39,"tag":271,"props":2499,"children":2500},{"style":359},[2501],{"type":44,"value":362},{"type":39,"tag":271,"props":2503,"children":2504},{"style":313},[2505],{"type":44,"value":2506}," bytes ",{"type":39,"tag":271,"props":2508,"children":2509},{"style":324},[2510],{"type":44,"value":372},{"type":39,"tag":271,"props":2512,"children":2513},{"style":313},[2514],{"type":44,"value":2515}," Buffer",{"type":39,"tag":271,"props":2517,"children":2518},{"style":324},[2519],{"type":44,"value":450},{"type":39,"tag":271,"props":2521,"children":2522},{"style":380},[2523],{"type":44,"value":321},{"type":39,"tag":271,"props":2525,"children":2526},{"style":313},[2527],{"type":44,"value":2528},"(base64",{"type":39,"tag":271,"props":2530,"children":2531},{"style":324},[2532],{"type":44,"value":566},{"type":39,"tag":271,"props":2534,"children":2535},{"style":324},[2536],{"type":44,"value":327},{"type":39,"tag":271,"props":2538,"children":2539},{"style":284},[2540],{"type":44,"value":2541},"base64",{"type":39,"tag":271,"props":2543,"children":2544},{"style":324},[2545],{"type":44,"value":337},{"type":39,"tag":271,"props":2547,"children":2548},{"style":313},[2549],{"type":44,"value":616},{"type":39,"tag":271,"props":2551,"children":2552},{"style":324},[2553],{"type":44,"value":342},{"type":39,"tag":2061,"props":2555,"children":2557},{"id":2556},"image-to-image-edit-stylize-an-input-image",[2558],{"type":44,"value":2559},"Image-to-image (edit \u002F stylize an input image)",{"type":39,"tag":51,"props":2561,"children":2562},{},[2563,2565,2570],{"type":44,"value":2564},"Pass the source image as an additional content part with ",{"type":39,"tag":76,"props":2566,"children":2568},{"className":2567},[],[2569],{"type":44,"value":2057},{"type":44,"value":498},{"type":39,"tag":260,"props":2572,"children":2574},{"className":295,"code":2573,"language":297,"meta":265,"style":265},"const sourceBase64 = sourceBuffer.toString(\"base64\");\n\nconst response = await ai.models.generateContent({\n  model: \"gemini-3.1-flash-image\",\n  contents: [\n    { text: \"Restyle this photo as a Picasso-era cubist portrait\" },\n    { inlineData: { mimeType: \"image\u002Fpng\", data: sourceBase64 } },\n  ],\n});\n",[2575],{"type":39,"tag":76,"props":2576,"children":2577},{"__ignoreMap":265},[2578,2632,2639,2686,2713,2729,2764,2831,2843],{"type":39,"tag":271,"props":2579,"children":2580},{"class":273,"line":274},[2581,2585,2590,2594,2599,2603,2608,2612,2616,2620,2624,2628],{"type":39,"tag":271,"props":2582,"children":2583},{"style":359},[2584],{"type":44,"value":362},{"type":39,"tag":271,"props":2586,"children":2587},{"style":313},[2588],{"type":44,"value":2589}," sourceBase64 ",{"type":39,"tag":271,"props":2591,"children":2592},{"style":324},[2593],{"type":44,"value":372},{"type":39,"tag":271,"props":2595,"children":2596},{"style":313},[2597],{"type":44,"value":2598}," sourceBuffer",{"type":39,"tag":271,"props":2600,"children":2601},{"style":324},[2602],{"type":44,"value":450},{"type":39,"tag":271,"props":2604,"children":2605},{"style":380},[2606],{"type":44,"value":2607},"toString",{"type":39,"tag":271,"props":2609,"children":2610},{"style":313},[2611],{"type":44,"value":478},{"type":39,"tag":271,"props":2613,"children":2614},{"style":324},[2615],{"type":44,"value":337},{"type":39,"tag":271,"props":2617,"children":2618},{"style":284},[2619],{"type":44,"value":2541},{"type":39,"tag":271,"props":2621,"children":2622},{"style":324},[2623],{"type":44,"value":337},{"type":39,"tag":271,"props":2625,"children":2626},{"style":313},[2627],{"type":44,"value":616},{"type":39,"tag":271,"props":2629,"children":2630},{"style":324},[2631],{"type":44,"value":342},{"type":39,"tag":271,"props":2633,"children":2634},{"class":273,"line":345},[2635],{"type":39,"tag":271,"props":2636,"children":2637},{"emptyLinePlaceholder":349},[2638],{"type":44,"value":352},{"type":39,"tag":271,"props":2640,"children":2641},{"class":273,"line":355},[2642,2646,2650,2654,2658,2662,2666,2670,2674,2678,2682],{"type":39,"tag":271,"props":2643,"children":2644},{"style":359},[2645],{"type":44,"value":362},{"type":39,"tag":271,"props":2647,"children":2648},{"style":313},[2649],{"type":44,"value":1131},{"type":39,"tag":271,"props":2651,"children":2652},{"style":324},[2653],{"type":44,"value":372},{"type":39,"tag":271,"props":2655,"children":2656},{"style":307},[2657],{"type":44,"value":440},{"type":39,"tag":271,"props":2659,"children":2660},{"style":313},[2661],{"type":44,"value":1144},{"type":39,"tag":271,"props":2663,"children":2664},{"style":324},[2665],{"type":44,"value":450},{"type":39,"tag":271,"props":2667,"children":2668},{"style":313},[2669],{"type":44,"value":1153},{"type":39,"tag":271,"props":2671,"children":2672},{"style":324},[2673],{"type":44,"value":450},{"type":39,"tag":271,"props":2675,"children":2676},{"style":380},[2677],{"type":44,"value":1162},{"type":39,"tag":271,"props":2679,"children":2680},{"style":313},[2681],{"type":44,"value":478},{"type":39,"tag":271,"props":2683,"children":2684},{"style":324},[2685],{"type":44,"value":483},{"type":39,"tag":271,"props":2687,"children":2688},{"class":273,"line":395},[2689,2693,2697,2701,2705,2709],{"type":39,"tag":271,"props":2690,"children":2691},{"style":490},[2692],{"type":44,"value":493},{"type":39,"tag":271,"props":2694,"children":2695},{"style":324},[2696],{"type":44,"value":498},{"type":39,"tag":271,"props":2698,"children":2699},{"style":324},[2700],{"type":44,"value":327},{"type":39,"tag":271,"props":2702,"children":2703},{"style":284},[2704],{"type":44,"value":2008},{"type":39,"tag":271,"props":2706,"children":2707},{"style":324},[2708],{"type":44,"value":337},{"type":39,"tag":271,"props":2710,"children":2711},{"style":324},[2712],{"type":44,"value":516},{"type":39,"tag":271,"props":2714,"children":2715},{"class":273,"line":27},[2716,2720,2724],{"type":39,"tag":271,"props":2717,"children":2718},{"style":490},[2719],{"type":44,"value":1206},{"type":39,"tag":271,"props":2721,"children":2722},{"style":324},[2723],{"type":44,"value":498},{"type":39,"tag":271,"props":2725,"children":2726},{"style":313},[2727],{"type":44,"value":2728}," [\n",{"type":39,"tag":271,"props":2730,"children":2731},{"class":273,"line":413},[2732,2737,2742,2746,2750,2755,2759],{"type":39,"tag":271,"props":2733,"children":2734},{"style":324},[2735],{"type":44,"value":2736},"    {",{"type":39,"tag":271,"props":2738,"children":2739},{"style":490},[2740],{"type":44,"value":2741}," text",{"type":39,"tag":271,"props":2743,"children":2744},{"style":324},[2745],{"type":44,"value":498},{"type":39,"tag":271,"props":2747,"children":2748},{"style":324},[2749],{"type":44,"value":327},{"type":39,"tag":271,"props":2751,"children":2752},{"style":284},[2753],{"type":44,"value":2754},"Restyle this photo as a Picasso-era cubist portrait",{"type":39,"tag":271,"props":2756,"children":2757},{"style":324},[2758],{"type":44,"value":337},{"type":39,"tag":271,"props":2760,"children":2761},{"style":324},[2762],{"type":44,"value":2763}," },\n",{"type":39,"tag":271,"props":2765,"children":2766},{"class":273,"line":421},[2767,2771,2776,2780,2784,2789,2793,2797,2802,2806,2810,2815,2819,2823,2827],{"type":39,"tag":271,"props":2768,"children":2769},{"style":324},[2770],{"type":44,"value":2736},{"type":39,"tag":271,"props":2772,"children":2773},{"style":490},[2774],{"type":44,"value":2775}," inlineData",{"type":39,"tag":271,"props":2777,"children":2778},{"style":324},[2779],{"type":44,"value":498},{"type":39,"tag":271,"props":2781,"children":2782},{"style":324},[2783],{"type":44,"value":1010},{"type":39,"tag":271,"props":2785,"children":2786},{"style":490},[2787],{"type":44,"value":2788}," mimeType",{"type":39,"tag":271,"props":2790,"children":2791},{"style":324},[2792],{"type":44,"value":498},{"type":39,"tag":271,"props":2794,"children":2795},{"style":324},[2796],{"type":44,"value":327},{"type":39,"tag":271,"props":2798,"children":2799},{"style":284},[2800],{"type":44,"value":2801},"image\u002Fpng",{"type":39,"tag":271,"props":2803,"children":2804},{"style":324},[2805],{"type":44,"value":337},{"type":39,"tag":271,"props":2807,"children":2808},{"style":324},[2809],{"type":44,"value":566},{"type":39,"tag":271,"props":2811,"children":2812},{"style":490},[2813],{"type":44,"value":2814}," data",{"type":39,"tag":271,"props":2816,"children":2817},{"style":324},[2818],{"type":44,"value":498},{"type":39,"tag":271,"props":2820,"children":2821},{"style":313},[2822],{"type":44,"value":2589},{"type":39,"tag":271,"props":2824,"children":2825},{"style":324},[2826],{"type":44,"value":611},{"type":39,"tag":271,"props":2828,"children":2829},{"style":324},[2830],{"type":44,"value":2763},{"type":39,"tag":271,"props":2832,"children":2833},{"class":273,"line":486},[2834,2839],{"type":39,"tag":271,"props":2835,"children":2836},{"style":313},[2837],{"type":44,"value":2838},"  ]",{"type":39,"tag":271,"props":2840,"children":2841},{"style":324},[2842],{"type":44,"value":516},{"type":39,"tag":271,"props":2844,"children":2845},{"class":273,"line":519},[2846,2850,2854],{"type":39,"tag":271,"props":2847,"children":2848},{"style":324},[2849],{"type":44,"value":611},{"type":39,"tag":271,"props":2851,"children":2852},{"style":313},[2853],{"type":44,"value":616},{"type":39,"tag":271,"props":2855,"children":2856},{"style":324},[2857],{"type":44,"value":342},{"type":39,"tag":51,"props":2859,"children":2860},{},[2861,2863,2868,2870,2875,2877,2882,2884,2890],{"type":44,"value":2862},"The response shape is the same — pull ",{"type":39,"tag":76,"props":2864,"children":2866},{"className":2865},[],[2867],{"type":44,"value":2541},{"type":44,"value":2869}," and ",{"type":39,"tag":76,"props":2871,"children":2873},{"className":2872},[],[2874],{"type":44,"value":2484},{"type":44,"value":2876}," off the first part with ",{"type":39,"tag":76,"props":2878,"children":2880},{"className":2879},[],[2881],{"type":44,"value":2057},{"type":44,"value":2883},". Most callers persist the bytes to Netlify Blobs (see ",{"type":39,"tag":76,"props":2885,"children":2887},{"className":2886},[],[2888],{"type":44,"value":2889},"netlify-blobs\u002FSKILL.md",{"type":44,"value":2891},") and serve a URL back to the client rather than returning multi-MB base64 in the function response.",{"type":39,"tag":111,"props":2893,"children":2895},{"id":2894},"environment-variables",[2896],{"type":44,"value":2897},"Environment Variables",{"type":39,"tag":51,"props":2899,"children":2900},{},[2901],{"type":44,"value":2902},"All of these are injected automatically by Netlify when AI is enabled. Setting your own value for any of the per-provider vars disables gateway routing.",{"type":39,"tag":2904,"props":2905,"children":2906},"table",{},[2907,2931],{"type":39,"tag":2908,"props":2909,"children":2910},"thead",{},[2911],{"type":39,"tag":2912,"props":2913,"children":2914},"tr",{},[2915,2921,2926],{"type":39,"tag":2916,"props":2917,"children":2918},"th",{},[2919],{"type":44,"value":2920},"Variable",{"type":39,"tag":2916,"props":2922,"children":2923},{},[2924],{"type":44,"value":2925},"Provider",{"type":39,"tag":2916,"props":2927,"children":2928},{},[2929],{"type":44,"value":2930},"Purpose",{"type":39,"tag":2932,"props":2933,"children":2934},"tbody",{},[2935,2958,2978,2999,3018,3039,3058,3080],{"type":39,"tag":2912,"props":2936,"children":2937},{},[2938,2948,2953],{"type":39,"tag":2939,"props":2940,"children":2941},"td",{},[2942],{"type":39,"tag":76,"props":2943,"children":2945},{"className":2944},[],[2946],{"type":44,"value":2947},"OPENAI_BASE_URL",{"type":39,"tag":2939,"props":2949,"children":2950},{},[2951],{"type":44,"value":2952},"OpenAI",{"type":39,"tag":2939,"props":2954,"children":2955},{},[2956],{"type":44,"value":2957},"Gateway endpoint",{"type":39,"tag":2912,"props":2959,"children":2960},{},[2961,2969,2973],{"type":39,"tag":2939,"props":2962,"children":2963},{},[2964],{"type":39,"tag":76,"props":2965,"children":2967},{"className":2966},[],[2968],{"type":44,"value":206},{"type":39,"tag":2939,"props":2970,"children":2971},{},[2972],{"type":44,"value":2952},{"type":39,"tag":2939,"props":2974,"children":2975},{},[2976],{"type":44,"value":2977},"Placeholder; satisfies the SDK's \"key required\" check",{"type":39,"tag":2912,"props":2979,"children":2980},{},[2981,2990,2995],{"type":39,"tag":2939,"props":2982,"children":2983},{},[2984],{"type":39,"tag":76,"props":2985,"children":2987},{"className":2986},[],[2988],{"type":44,"value":2989},"ANTHROPIC_BASE_URL",{"type":39,"tag":2939,"props":2991,"children":2992},{},[2993],{"type":44,"value":2994},"Anthropic",{"type":39,"tag":2939,"props":2996,"children":2997},{},[2998],{"type":44,"value":2957},{"type":39,"tag":2912,"props":3000,"children":3001},{},[3002,3010,3014],{"type":39,"tag":2939,"props":3003,"children":3004},{},[3005],{"type":39,"tag":76,"props":3006,"children":3008},{"className":3007},[],[3009],{"type":44,"value":213},{"type":39,"tag":2939,"props":3011,"children":3012},{},[3013],{"type":44,"value":2994},{"type":39,"tag":2939,"props":3015,"children":3016},{},[3017],{"type":44,"value":2977},{"type":39,"tag":2912,"props":3019,"children":3020},{},[3021,3030,3035],{"type":39,"tag":2939,"props":3022,"children":3023},{},[3024],{"type":39,"tag":76,"props":3025,"children":3027},{"className":3026},[],[3028],{"type":44,"value":3029},"GOOGLE_GEMINI_BASE_URL",{"type":39,"tag":2939,"props":3031,"children":3032},{},[3033],{"type":44,"value":3034},"Google Gemini",{"type":39,"tag":2939,"props":3036,"children":3037},{},[3038],{"type":44,"value":2957},{"type":39,"tag":2912,"props":3040,"children":3041},{},[3042,3050,3054],{"type":39,"tag":2939,"props":3043,"children":3044},{},[3045],{"type":39,"tag":76,"props":3046,"children":3048},{"className":3047},[],[3049],{"type":44,"value":220},{"type":39,"tag":2939,"props":3051,"children":3052},{},[3053],{"type":44,"value":3034},{"type":39,"tag":2939,"props":3055,"children":3056},{},[3057],{"type":44,"value":2977},{"type":39,"tag":2912,"props":3059,"children":3060},{},[3061,3070,3075],{"type":39,"tag":2939,"props":3062,"children":3063},{},[3064],{"type":39,"tag":76,"props":3065,"children":3067},{"className":3066},[],[3068],{"type":44,"value":3069},"NETLIFY_AI_GATEWAY_BASE_URL",{"type":39,"tag":2939,"props":3071,"children":3072},{},[3073],{"type":44,"value":3074},"(universal)",{"type":39,"tag":2939,"props":3076,"children":3077},{},[3078],{"type":44,"value":3079},"Provider-agnostic gateway endpoint",{"type":39,"tag":2912,"props":3081,"children":3082},{},[3083,3092,3096],{"type":39,"tag":2939,"props":3084,"children":3085},{},[3086],{"type":39,"tag":76,"props":3087,"children":3089},{"className":3088},[],[3090],{"type":44,"value":3091},"NETLIFY_AI_GATEWAY_KEY",{"type":39,"tag":2939,"props":3093,"children":3094},{},[3095],{"type":44,"value":3074},{"type":39,"tag":2939,"props":3097,"children":3098},{},[3099],{"type":44,"value":3100},"Provider-agnostic gateway key",{"type":39,"tag":51,"props":3102,"children":3103},{},[3104,3106,3112],{"type":44,"value":3105},"The real upstream API keys live on Netlify's side. The per-provider ",{"type":39,"tag":76,"props":3107,"children":3109},{"className":3108},[],[3110],{"type":44,"value":3111},"*_API_KEY",{"type":44,"value":3113}," vars are placeholders so the SDKs construct successfully; the gateway authenticates server-side. You don't read these yourself — the SDK picks them up.",{"type":39,"tag":51,"props":3115,"children":3116},{},[3117,3119,3125,3127,3133,3135,3140,3142,3148,3150,3156],{"type":44,"value":3118},"When your own code needs some ",{"type":39,"tag":3120,"props":3121,"children":3122},"em",{},[3123],{"type":44,"value":3124},"other",{"type":44,"value":3126}," environment value (a config flag, a model name you've parameterized), prefer ",{"type":39,"tag":76,"props":3128,"children":3130},{"className":3129},[],[3131],{"type":44,"value":3132},"Netlify.env.get(\"VAR\")",{"type":44,"value":3134}," — it works in Netlify Functions and Edge Functions, and Edge Functions expose ",{"type":39,"tag":55,"props":3136,"children":3137},{},[3138],{"type":44,"value":3139},"only",{"type":44,"value":3141}," ",{"type":39,"tag":76,"props":3143,"children":3145},{"className":3144},[],[3146],{"type":44,"value":3147},"Netlify.env.get",{"type":44,"value":3149},". (In a framework's own server routes, use whatever that framework documents for env access — often ",{"type":39,"tag":76,"props":3151,"children":3153},{"className":3152},[],[3154],{"type":44,"value":3155},"process.env",{"type":44,"value":3157},".)",{"type":39,"tag":111,"props":3159,"children":3161},{"id":3160},"local-development",[3162],{"type":44,"value":3163},"Local Development",{"type":39,"tag":51,"props":3165,"children":3166},{},[3167,3169,3174,3175,3180],{"type":44,"value":3168},"With ",{"type":39,"tag":76,"props":3170,"children":3172},{"className":3171},[],[3173],{"type":44,"value":89},{"type":44,"value":245},{"type":39,"tag":76,"props":3176,"children":3178},{"className":3177},[],[3179],{"type":44,"value":81},{"type":44,"value":3181},", gateway environment variables are injected automatically into the local process — but only after the site has had at least one production deploy. A brand-new local-only project will see \"API key missing\" or \"model not found\" errors until you deploy.",{"type":39,"tag":51,"props":3183,"children":3184},{},[3185,3187,3192,3194,3199,3201,3207,3209,3215,3217,3222,3224,3229,3231,3236],{"type":44,"value":3186},"Local injection also requires the working directory to be ",{"type":39,"tag":55,"props":3188,"children":3189},{},[3190],{"type":44,"value":3191},"linked",{"type":44,"value":3193}," to the Netlify site. ",{"type":39,"tag":76,"props":3195,"children":3197},{"className":3196},[],[3198],{"type":44,"value":81},{"type":44,"value":3200}," pulls the gateway base URL and placeholder key from the linked site's environment, so an unlinked directory has no site context — nothing is injected and gateway calls fail even when the site has already been deployed to production. Run ",{"type":39,"tag":76,"props":3202,"children":3204},{"className":3203},[],[3205],{"type":44,"value":3206},"netlify link",{"type":44,"value":3208}," (or ",{"type":39,"tag":76,"props":3210,"children":3212},{"className":3211},[],[3213],{"type":44,"value":3214},"netlify init",{"type":44,"value":3216},") in the project first, then start ",{"type":39,"tag":76,"props":3218,"children":3220},{"className":3219},[],[3221],{"type":44,"value":81},{"type":44,"value":3223},". A bare framework dev server started outside ",{"type":39,"tag":76,"props":3225,"children":3227},{"className":3226},[],[3228],{"type":44,"value":81},{"type":44,"value":3230}," \u002F ",{"type":39,"tag":76,"props":3232,"children":3234},{"className":3233},[],[3235],{"type":44,"value":89},{"type":44,"value":3237}," also gets no gateway env vars.",{"type":39,"tag":111,"props":3239,"children":3241},{"id":3240},"usage-metering-and-where-the-gateway-runs",[3242],{"type":44,"value":3243},"Usage metering and where the gateway runs",{"type":39,"tag":51,"props":3245,"children":3246},{},[3247,3252,3254,3259],{"type":39,"tag":55,"props":3248,"children":3249},{},[3250],{"type":44,"value":3251},"Gateway usage is credit-metered.",{"type":44,"value":3253}," Calls draw down your Netlify AI credit\u002Finference allowance; when that limit is reached the gateway ",{"type":39,"tag":55,"props":3255,"children":3256},{},[3257],{"type":44,"value":3258},"pauses",{"type":44,"value":3260}," and returns errors until the allowance resets or is raised. There's no separate provider bill to fall back on — an unbounded loop of gateway calls burns the allowance and then starts failing, so budget for it and don't retry indefinitely.",{"type":39,"tag":51,"props":3262,"children":3263},{},[3264,3269,3271,3275],{"type":39,"tag":55,"props":3265,"children":3266},{},[3267],{"type":44,"value":3268},"Gateway credentials are runtime-only.",{"type":44,"value":3270}," Netlify injects the base URL and placeholder key only into runtime compute — deployed functions, edge functions, and server-rendered routes at request time. They are ",{"type":39,"tag":55,"props":3272,"children":3273},{},[3274],{"type":44,"value":2037},{"type":44,"value":3276}," present during the build: AI calls made at build time, in prerender\u002FSSG, or in a build plugin get no gateway credentials and fail. Do AI work at request time (in a function or server route) and cache the result if you need it to look precomputed (e.g. to Netlify Blobs) — don't call the gateway from build scripts or static-generation hooks.",{"type":39,"tag":111,"props":3278,"children":3280},{"id":3279},"no-browser-callable-gateway-proxy-through-server-code",[3281],{"type":44,"value":3282},"No browser-callable gateway — proxy through server code",{"type":39,"tag":51,"props":3284,"children":3285},{},[3286,3288,3293],{"type":44,"value":3287},"Gateway credentials are injected only into server-side runtime compute (functions, edge functions, server-rendered routes). There is ",{"type":39,"tag":55,"props":3289,"children":3290},{},[3291],{"type":44,"value":3292},"no browser-callable gateway endpoint",{"type":44,"value":3294},": client-side JavaScript has no gateway credentials, and there is no public URL a browser can hit to reach the gateway directly. Client code (React\u002FVue\u002Fvanilla JS running in the browser) that constructs a provider SDK against the gateway will find no key and fail — and \"fixing\" it by hardcoding a real provider key in the client leaks that key to every visitor AND bypasses the gateway (a user-set key disables Netlify's auto-injection).",{"type":39,"tag":51,"props":3296,"children":3297},{},[3298,3300,3305,3307,3312,3314,3320],{"type":44,"value":3299},"The correct pattern is to proxy: put the gateway call in a ",{"type":39,"tag":55,"props":3301,"children":3302},{},[3303],{"type":44,"value":3304},"Netlify Function",{"type":44,"value":3306}," (or edge function \u002F server route), and have the browser ",{"type":39,"tag":76,"props":3308,"children":3310},{"className":3309},[],[3311],{"type":44,"value":159},{"type":44,"value":3313}," your own endpoint (e.g. ",{"type":39,"tag":76,"props":3315,"children":3317},{"className":3316},[],[3318],{"type":44,"value":3319},"\u002Fapi\u002Fchat",{"type":44,"value":3321},"). The function talks to the gateway server-side with the auto-injected credentials and returns the result to the client. Never import a provider SDK into a browser bundle to call the gateway, and never expose a provider API key to the client.",{"type":39,"tag":111,"props":3323,"children":3325},{"id":3324},"long-generations-and-the-function-timeout",[3326],{"type":44,"value":3327},"Long generations and the function timeout",{"type":39,"tag":51,"props":3329,"children":3330},{},[3331,3333,3338],{"type":44,"value":3332},"A gateway call runs inside your function, so it is bound by the ",{"type":39,"tag":55,"props":3334,"children":3335},{},[3336],{"type":44,"value":3337},"60-second synchronous function timeout",{"type":44,"value":3339},". Large completions, reasoning models, and image generations can run longer than that, and a synchronous function that exceeds the ceiling is terminated before it can respond. Two mitigations:",{"type":39,"tag":3341,"props":3342,"children":3343},"ul",{},[3344,3401],{"type":39,"tag":181,"props":3345,"children":3346},{},[3347,3352,3354,3360,3362,3368,3370,3376,3378,3384,3386,3392,3394,3399],{"type":39,"tag":55,"props":3348,"children":3349},{},[3350],{"type":44,"value":3351},"Stream the response.",{"type":44,"value":3353}," Enable streaming on the SDK call and return a ",{"type":39,"tag":76,"props":3355,"children":3357},{"className":3356},[],[3358],{"type":44,"value":3359},"ReadableStream",{"type":44,"value":3361}," (e.g. ",{"type":39,"tag":76,"props":3363,"children":3365},{"className":3364},[],[3366],{"type":44,"value":3367},"Content-Type: text\u002Fevent-stream",{"type":44,"value":3369},"), forwarding the provider's tokens\u002Fchunks as they arrive — for example ",{"type":39,"tag":76,"props":3371,"children":3373},{"className":3372},[],[3374],{"type":44,"value":3375},"stream: true",{"type":44,"value":3377}," on the OpenAI SDK, ",{"type":39,"tag":76,"props":3379,"children":3381},{"className":3380},[],[3382],{"type":44,"value":3383},"client.messages.stream(...)",{"type":44,"value":3385}," on Anthropic, or ",{"type":39,"tag":76,"props":3387,"children":3389},{"className":3388},[],[3390],{"type":44,"value":3391},"generateContentStream(...)",{"type":44,"value":3393}," on ",{"type":39,"tag":76,"props":3395,"children":3397},{"className":3396},[],[3398],{"type":44,"value":236},{"type":44,"value":3400},". Streaming sends bytes to the client incrementally instead of buffering the whole completion inside the sync window, and is the right default for interactive chat and long text.",{"type":39,"tag":181,"props":3402,"children":3403},{},[3404,3409,3411,3417],{"type":39,"tag":55,"props":3405,"children":3406},{},[3407],{"type":44,"value":3408},"Use a background function",{"type":44,"value":3410}," for long, fire-and-forget jobs (batch generation, large image renders). Background functions run up to 15 minutes, but they return a ",{"type":39,"tag":76,"props":3412,"children":3414},{"className":3413},[],[3415],{"type":44,"value":3416},"202",{"type":44,"value":3418}," immediately and their return value is ignored — they cannot hand the result back to the caller. Persist the output (e.g. to Netlify Blobs or a database) and have the client poll or fetch it.",{"type":39,"tag":51,"props":3420,"children":3421},{},[3422,3424,3430],{"type":44,"value":3423},"Don't leave a slow synchronous generation unstreamed and assume it will finish — bound the model and ",{"type":39,"tag":76,"props":3425,"children":3427},{"className":3426},[],[3428],{"type":44,"value":3429},"max_tokens",{"type":44,"value":3431},", and choose streaming or a background function based on how long the job runs.",{"type":39,"tag":111,"props":3433,"children":3435},{"id":3434},"errors-troubleshooting",[3436],{"type":44,"value":3437},"Errors & Troubleshooting",{"type":39,"tag":3341,"props":3439,"children":3440},{},[3441,3451,3467,3484],{"type":39,"tag":181,"props":3442,"children":3443},{},[3444,3449],{"type":39,"tag":55,"props":3445,"children":3446},{},[3447],{"type":44,"value":3448},"Unsupported model:",{"type":44,"value":3450}," the gateway returns an HTTP error. Check the \"Available Models\" list below — the gateway exposes a curated subset, not every model the provider offers.",{"type":39,"tag":181,"props":3452,"children":3453},{},[3454,3465],{"type":39,"tag":55,"props":3455,"children":3456},{},[3457,3463],{"type":39,"tag":76,"props":3458,"children":3460},{"className":3459},[],[3461],{"type":44,"value":3462},"OPENAI_API_KEY missing",{"type":44,"value":3464}," (or equivalent) at runtime:",{"type":44,"value":3466}," AI Features are disabled on the site, or the project has not had a production deploy yet.",{"type":39,"tag":181,"props":3468,"children":3469},{},[3470,3475,3477,3482],{"type":39,"tag":55,"props":3471,"children":3472},{},[3473],{"type":44,"value":3474},"Calls succeed but skip the gateway \u002F aren't tracked:",{"type":44,"value":3476}," check you haven't set your own ",{"type":39,"tag":76,"props":3478,"children":3480},{"className":3479},[],[3481],{"type":44,"value":3111},{"type":44,"value":3483},". Any user-set provider key shadows Netlify's auto-injection and routes directly to the provider.",{"type":39,"tag":181,"props":3485,"children":3486},{},[3487,3492],{"type":39,"tag":55,"props":3488,"children":3489},{},[3490],{"type":44,"value":3491},"Limits:",{"type":44,"value":3493}," 200k-token context window. Batch inference, custom request headers, and OpenAI priority processing are not supported. Anthropic prompt caching is limited to the 5-minute ephemeral cache; Gemini explicit caching is not supported.",{"type":39,"tag":111,"props":3495,"children":3497},{"id":3496},"available-models",[3498],{"type":44,"value":3499},"Available Models",{"type":39,"tag":51,"props":3501,"children":3502},{},[3503],{"type":39,"tag":3120,"props":3504,"children":3505},{},[3506,3508,3516],{"type":44,"value":3507},"Verified 2026-04-30 against the live AI Gateway providers list. The user-facing reference is ",{"type":39,"tag":3509,"props":3510,"children":3514},"a",{"href":3511,"rel":3512},"https:\u002F\u002Fdocs.netlify.com\u002Fbuild\u002Fai-gateway\u002Foverview\u002F",[3513],"nofollow",[3515],{"type":44,"value":3511},{"type":44,"value":3517}," — re-check before pinning a new model.",{"type":39,"tag":2061,"props":3519,"children":3521},{"id":3520},"anthropic-chat",[3522],{"type":44,"value":3523},"Anthropic (chat)",{"type":39,"tag":3341,"props":3525,"children":3526},{},[3527,3543,3579],{"type":39,"tag":181,"props":3528,"children":3529},{},[3530,3536,3537],{"type":39,"tag":76,"props":3531,"children":3533},{"className":3532},[],[3534],{"type":44,"value":3535},"claude-haiku-4-5",{"type":44,"value":83},{"type":39,"tag":76,"props":3538,"children":3540},{"className":3539},[],[3541],{"type":44,"value":3542},"claude-haiku-4-5-20251001",{"type":39,"tag":181,"props":3544,"children":3545},{},[3546,3552,3553,3559,3560,3566,3567,3572,3573],{"type":39,"tag":76,"props":3547,"children":3549},{"className":3548},[],[3550],{"type":44,"value":3551},"claude-sonnet-4-0",{"type":44,"value":83},{"type":39,"tag":76,"props":3554,"children":3556},{"className":3555},[],[3557],{"type":44,"value":3558},"claude-sonnet-4-20250514",{"type":44,"value":83},{"type":39,"tag":76,"props":3561,"children":3563},{"className":3562},[],[3564],{"type":44,"value":3565},"claude-sonnet-4-5",{"type":44,"value":83},{"type":39,"tag":76,"props":3568,"children":3570},{"className":3569},[],[3571],{"type":44,"value":821},{"type":44,"value":83},{"type":39,"tag":76,"props":3574,"children":3576},{"className":3575},[],[3577],{"type":44,"value":3578},"claude-sonnet-4-6",{"type":39,"tag":181,"props":3580,"children":3581},{},[3582,3588,3589,3595,3596,3602,3603,3609,3610,3616,3617],{"type":39,"tag":76,"props":3583,"children":3585},{"className":3584},[],[3586],{"type":44,"value":3587},"claude-opus-4-1-20250805",{"type":44,"value":83},{"type":39,"tag":76,"props":3590,"children":3592},{"className":3591},[],[3593],{"type":44,"value":3594},"claude-opus-4-20250514",{"type":44,"value":83},{"type":39,"tag":76,"props":3597,"children":3599},{"className":3598},[],[3600],{"type":44,"value":3601},"claude-opus-4-5",{"type":44,"value":83},{"type":39,"tag":76,"props":3604,"children":3606},{"className":3605},[],[3607],{"type":44,"value":3608},"claude-opus-4-5-20251101",{"type":44,"value":83},{"type":39,"tag":76,"props":3611,"children":3613},{"className":3612},[],[3614],{"type":44,"value":3615},"claude-opus-4-6",{"type":44,"value":83},{"type":39,"tag":76,"props":3618,"children":3620},{"className":3619},[],[3621],{"type":44,"value":3622},"claude-opus-4-7",{"type":39,"tag":2061,"props":3624,"children":3626},{"id":3625},"openai-chat-reasoning-codex",[3627],{"type":44,"value":3628},"OpenAI (chat \u002F reasoning \u002F Codex)",{"type":39,"tag":3341,"props":3630,"children":3631},{},[3632,3670,3724,3763,3802,3829,3889,3921],{"type":39,"tag":181,"props":3633,"children":3634},{},[3635,3637,3643,3644,3649,3650,3656,3657,3663,3664],{"type":44,"value":3636},"gpt-4 family: ",{"type":39,"tag":76,"props":3638,"children":3640},{"className":3639},[],[3641],{"type":44,"value":3642},"gpt-4o",{"type":44,"value":83},{"type":39,"tag":76,"props":3645,"children":3647},{"className":3646},[],[3648],{"type":44,"value":507},{"type":44,"value":83},{"type":39,"tag":76,"props":3651,"children":3653},{"className":3652},[],[3654],{"type":44,"value":3655},"gpt-4.1",{"type":44,"value":83},{"type":39,"tag":76,"props":3658,"children":3660},{"className":3659},[],[3661],{"type":44,"value":3662},"gpt-4.1-mini",{"type":44,"value":83},{"type":39,"tag":76,"props":3665,"children":3667},{"className":3666},[],[3668],{"type":44,"value":3669},"gpt-4.1-nano",{"type":39,"tag":181,"props":3671,"children":3672},{},[3673,3675,3681,3682,3688,3689,3695,3696,3702,3703,3709,3711,3717,3718],{"type":44,"value":3674},"gpt-5: ",{"type":39,"tag":76,"props":3676,"children":3678},{"className":3677},[],[3679],{"type":44,"value":3680},"gpt-5",{"type":44,"value":83},{"type":39,"tag":76,"props":3683,"children":3685},{"className":3684},[],[3686],{"type":44,"value":3687},"gpt-5-mini",{"type":44,"value":83},{"type":39,"tag":76,"props":3690,"children":3692},{"className":3691},[],[3693],{"type":44,"value":3694},"gpt-5-nano",{"type":44,"value":83},{"type":39,"tag":76,"props":3697,"children":3699},{"className":3698},[],[3700],{"type":44,"value":3701},"gpt-5-pro",{"type":44,"value":83},{"type":39,"tag":76,"props":3704,"children":3706},{"className":3705},[],[3707],{"type":44,"value":3708},"gpt-5-codex",{"type":44,"value":3710},"; dated: ",{"type":39,"tag":76,"props":3712,"children":3714},{"className":3713},[],[3715],{"type":44,"value":3716},"gpt-5-2025-08-07",{"type":44,"value":83},{"type":39,"tag":76,"props":3719,"children":3721},{"className":3720},[],[3722],{"type":44,"value":3723},"gpt-5-mini-2025-08-07",{"type":39,"tag":181,"props":3725,"children":3726},{},[3727,3729,3735,3736,3742,3743,3749,3750,3756,3757],{"type":44,"value":3728},"gpt-5.1: ",{"type":39,"tag":76,"props":3730,"children":3732},{"className":3731},[],[3733],{"type":44,"value":3734},"gpt-5.1",{"type":44,"value":83},{"type":39,"tag":76,"props":3737,"children":3739},{"className":3738},[],[3740],{"type":44,"value":3741},"gpt-5.1-codex",{"type":44,"value":83},{"type":39,"tag":76,"props":3744,"children":3746},{"className":3745},[],[3747],{"type":44,"value":3748},"gpt-5.1-codex-max",{"type":44,"value":83},{"type":39,"tag":76,"props":3751,"children":3753},{"className":3752},[],[3754],{"type":44,"value":3755},"gpt-5.1-codex-mini",{"type":44,"value":3710},{"type":39,"tag":76,"props":3758,"children":3760},{"className":3759},[],[3761],{"type":44,"value":3762},"gpt-5.1-2025-11-13",{"type":39,"tag":181,"props":3764,"children":3765},{},[3766,3768,3774,3775,3781,3782,3788,3789,3795,3796],{"type":44,"value":3767},"gpt-5.2: ",{"type":39,"tag":76,"props":3769,"children":3771},{"className":3770},[],[3772],{"type":44,"value":3773},"gpt-5.2",{"type":44,"value":83},{"type":39,"tag":76,"props":3776,"children":3778},{"className":3777},[],[3779],{"type":44,"value":3780},"gpt-5.2-codex",{"type":44,"value":83},{"type":39,"tag":76,"props":3783,"children":3785},{"className":3784},[],[3786],{"type":44,"value":3787},"gpt-5.2-pro",{"type":44,"value":3710},{"type":39,"tag":76,"props":3790,"children":3792},{"className":3791},[],[3793],{"type":44,"value":3794},"gpt-5.2-2025-12-11",{"type":44,"value":83},{"type":39,"tag":76,"props":3797,"children":3799},{"className":3798},[],[3800],{"type":44,"value":3801},"gpt-5.2-pro-2025-12-11",{"type":39,"tag":181,"props":3803,"children":3804},{},[3805,3807,3813,3814,3820,3822,3828],{"type":44,"value":3806},"gpt-5.3: ",{"type":39,"tag":76,"props":3808,"children":3810},{"className":3809},[],[3811],{"type":44,"value":3812},"gpt-5.3-chat-latest",{"type":44,"value":83},{"type":39,"tag":76,"props":3815,"children":3817},{"className":3816},[],[3818],{"type":44,"value":3819},"gpt-5.3-codex",{"type":44,"value":3821}," (no unversioned ",{"type":39,"tag":76,"props":3823,"children":3825},{"className":3824},[],[3826],{"type":44,"value":3827},"gpt-5.3",{"type":44,"value":616},{"type":39,"tag":181,"props":3830,"children":3831},{},[3832,3834,3840,3841,3847,3848,3854,3855,3861,3862,3868,3869,3875,3876,3882,3883],{"type":44,"value":3833},"gpt-5.4: ",{"type":39,"tag":76,"props":3835,"children":3837},{"className":3836},[],[3838],{"type":44,"value":3839},"gpt-5.4",{"type":44,"value":83},{"type":39,"tag":76,"props":3842,"children":3844},{"className":3843},[],[3845],{"type":44,"value":3846},"gpt-5.4-mini",{"type":44,"value":83},{"type":39,"tag":76,"props":3849,"children":3851},{"className":3850},[],[3852],{"type":44,"value":3853},"gpt-5.4-nano",{"type":44,"value":83},{"type":39,"tag":76,"props":3856,"children":3858},{"className":3857},[],[3859],{"type":44,"value":3860},"gpt-5.4-pro",{"type":44,"value":3710},{"type":39,"tag":76,"props":3863,"children":3865},{"className":3864},[],[3866],{"type":44,"value":3867},"gpt-5.4-2026-03-05",{"type":44,"value":83},{"type":39,"tag":76,"props":3870,"children":3872},{"className":3871},[],[3873],{"type":44,"value":3874},"gpt-5.4-mini-2026-03-17",{"type":44,"value":83},{"type":39,"tag":76,"props":3877,"children":3879},{"className":3878},[],[3880],{"type":44,"value":3881},"gpt-5.4-nano-2026-03-17",{"type":44,"value":83},{"type":39,"tag":76,"props":3884,"children":3886},{"className":3885},[],[3887],{"type":44,"value":3888},"gpt-5.4-pro-2026-03-05",{"type":39,"tag":181,"props":3890,"children":3891},{},[3892,3894,3900,3901,3907,3908,3914,3915],{"type":44,"value":3893},"gpt-5.5: ",{"type":39,"tag":76,"props":3895,"children":3897},{"className":3896},[],[3898],{"type":44,"value":3899},"gpt-5.5",{"type":44,"value":83},{"type":39,"tag":76,"props":3902,"children":3904},{"className":3903},[],[3905],{"type":44,"value":3906},"gpt-5.5-pro",{"type":44,"value":3710},{"type":39,"tag":76,"props":3909,"children":3911},{"className":3910},[],[3912],{"type":44,"value":3913},"gpt-5.5-2026-04-23",{"type":44,"value":83},{"type":39,"tag":76,"props":3916,"children":3918},{"className":3917},[],[3919],{"type":44,"value":3920},"gpt-5.5-pro-2026-04-23",{"type":39,"tag":181,"props":3922,"children":3923},{},[3924,3926,3932,3933,3939,3940],{"type":44,"value":3925},"Reasoning (o-series): ",{"type":39,"tag":76,"props":3927,"children":3929},{"className":3928},[],[3930],{"type":44,"value":3931},"o3",{"type":44,"value":83},{"type":39,"tag":76,"props":3934,"children":3936},{"className":3935},[],[3937],{"type":44,"value":3938},"o3-mini",{"type":44,"value":83},{"type":39,"tag":76,"props":3941,"children":3943},{"className":3942},[],[3944],{"type":44,"value":3945},"o4-mini",{"type":39,"tag":2061,"props":3947,"children":3949},{"id":3948},"google-gemini-chat-image",[3950],{"type":44,"value":3951},"Google Gemini (chat + image)",{"type":39,"tag":3341,"props":3953,"children":3954},{},[3955,4035],{"type":39,"tag":181,"props":3956,"children":3957},{},[3958,3960,3966,3967,3973,3974,3979,3980,3986,3987,3993,3994,4000,4001,4007,4008,4014,4015,4021,4022,4028,4029],{"type":44,"value":3959},"Chat: ",{"type":39,"tag":76,"props":3961,"children":3963},{"className":3962},[],[3964],{"type":44,"value":3965},"gemini-2.0-flash",{"type":44,"value":83},{"type":39,"tag":76,"props":3968,"children":3970},{"className":3969},[],[3971],{"type":44,"value":3972},"gemini-2.0-flash-lite",{"type":44,"value":83},{"type":39,"tag":76,"props":3975,"children":3977},{"className":3976},[],[3978],{"type":44,"value":1190},{"type":44,"value":83},{"type":39,"tag":76,"props":3981,"children":3983},{"className":3982},[],[3984],{"type":44,"value":3985},"gemini-2.5-flash-lite",{"type":44,"value":83},{"type":39,"tag":76,"props":3988,"children":3990},{"className":3989},[],[3991],{"type":44,"value":3992},"gemini-2.5-pro",{"type":44,"value":83},{"type":39,"tag":76,"props":3995,"children":3997},{"className":3996},[],[3998],{"type":44,"value":3999},"gemini-3-flash-preview",{"type":44,"value":83},{"type":39,"tag":76,"props":4002,"children":4004},{"className":4003},[],[4005],{"type":44,"value":4006},"gemini-3.1-flash-lite",{"type":44,"value":83},{"type":39,"tag":76,"props":4009,"children":4011},{"className":4010},[],[4012],{"type":44,"value":4013},"gemini-3.1-pro-preview",{"type":44,"value":83},{"type":39,"tag":76,"props":4016,"children":4018},{"className":4017},[],[4019],{"type":44,"value":4020},"gemini-3.1-pro-preview-customtools",{"type":44,"value":83},{"type":39,"tag":76,"props":4023,"children":4025},{"className":4024},[],[4026],{"type":44,"value":4027},"gemini-flash-latest",{"type":44,"value":83},{"type":39,"tag":76,"props":4030,"children":4032},{"className":4031},[],[4033],{"type":44,"value":4034},"gemini-flash-lite-latest",{"type":39,"tag":181,"props":4036,"children":4037},{},[4038,4040,4045,4046,4051,4052,4057,4058],{"type":44,"value":4039},"Image: ",{"type":39,"tag":76,"props":4041,"children":4043},{"className":4042},[],[4044],{"type":44,"value":1994},{"type":44,"value":83},{"type":39,"tag":76,"props":4047,"children":4049},{"className":4048},[],[4050],{"type":44,"value":2001},{"type":44,"value":83},{"type":39,"tag":76,"props":4053,"children":4055},{"className":4054},[],[4056],{"type":44,"value":2008},{"type":44,"value":83},{"type":39,"tag":76,"props":4059,"children":4061},{"className":4060},[],[4062],{"type":44,"value":2015},{"type":39,"tag":4064,"props":4065,"children":4066},"style",{},[4067],{"type":44,"value":4068},"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":4070,"total":1842},[4071,4090,4102,4119,4132,4139,4156,4173,4183,4198,4211,4226],{"slug":4072,"name":4072,"fn":4073,"description":4074,"org":4075,"tags":4076,"stars":4087,"repoUrl":4088,"updatedAt":4089},"configure-axis","configure AXIS agent evaluation scenarios","Author AXIS (Agent Experience Index Score) scenarios and axis.config.json for a project. Use when the user asks to set up AXIS, add a scenario, write or edit axis.config.json, or evaluate an AI agent with AXIS.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4077,4080,4083,4086],{"name":4078,"slug":4079,"type":15},"Agents","agents",{"name":4081,"slug":4082,"type":15},"Configuration","configuration",{"name":4084,"slug":4085,"type":15},"Evals","evals",{"name":9,"slug":8,"type":15},32,"https:\u002F\u002Fgithub.com\u002Fnetlify\u002Faxis","2026-07-20T05:59:47.468757",{"slug":4091,"name":4091,"fn":4092,"description":4093,"org":4094,"tags":4095,"stars":4087,"repoUrl":4088,"updatedAt":4101},"using-axis","run and interpret AXIS reports","Run AXIS, read its reports, navigate its project layout, and interpret scores. Use when the user asks to run AXIS, invoke the CLI, compare runs, explain a score, find a regression, manage baselines, or understand where AXIS writes its files.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4096,4099,4100],{"name":4097,"slug":4098,"type":15},"CLI","cli",{"name":4084,"slug":4085,"type":15},{"name":9,"slug":8,"type":15},"2026-07-14T05:40:13.443461",{"slug":4103,"name":4103,"fn":4104,"description":4105,"org":4106,"tags":4107,"stars":23,"repoUrl":24,"updatedAt":4118},"netlify-access-control","manage Netlify site access control","Use when the task involves controlling who can reach a Netlify site, or telling Netlify Identity apart from Secure Access. Trigger whenever the user wants to lock a site or deploy to their company\u002Fteam, restrict access to employees only, build an internal or employees-only app, set up password protection, SSO, or SAML, asks \"who can access my site\", or is confused about Netlify Identity vs Secure Access vs team login vs OAuth providers. Routes the request to the right layer — app-level Identity, site-visitor Password Protection, the Auth0 extension, or Team\u002FOrg SAML SSO — and explains the two-layer (perimeter + in-app identity) pattern and its double-login tradeoff. For building the app-level auth itself, use the netlify-identity skill.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4108,4111,4112,4115],{"name":4109,"slug":4110,"type":15},"Access Control","access-control",{"name":9,"slug":8,"type":15},{"name":4113,"slug":4114,"type":15},"Permissions","permissions",{"name":4116,"slug":4117,"type":15},"Security","security","2026-07-14T05:40:29.082149",{"slug":4120,"name":4120,"fn":4121,"description":4122,"org":4123,"tags":4124,"stars":23,"repoUrl":24,"updatedAt":4131},"netlify-agent-runner","run AI agent tasks on Netlify","Run AI agent tasks remotely on Netlify using Claude, Codex, or Gemini. Use when the user wants to run an AI agent on their site, get a second opinion from another model, or delegate development tasks to run remotely against their repo.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4125,4126,4129,4130],{"name":4078,"slug":4079,"type":15},{"name":4127,"slug":4128,"type":15},"Automation","automation",{"name":13,"slug":14,"type":15},{"name":9,"slug":8,"type":15},"2026-07-17T05:30:19.462913",{"slug":4,"name":4,"fn":5,"description":6,"org":4133,"tags":4134,"stars":23,"repoUrl":24,"updatedAt":25},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4135,4136,4137,4138],{"name":18,"slug":19,"type":15},{"name":21,"slug":22,"type":15},{"name":13,"slug":14,"type":15},{"name":9,"slug":8,"type":15},{"slug":4140,"name":4140,"fn":4141,"description":4142,"org":4143,"tags":4144,"stars":23,"repoUrl":24,"updatedAt":4155},"netlify-blobs","manage file storage with Netlify Blobs","Guide for using Netlify Blobs for file and asset storage — images, documents, uploads, exports, cached binary artifacts. Covers getStore(), CRUD operations, metadata, listing, deploy-scoped vs site-scoped stores, and local development. Do NOT use Blobs as a dynamic data store — use Netlify Database for that.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4145,4148,4151,4152],{"name":4146,"slug":4147,"type":15},"Backend","backend",{"name":4149,"slug":4150,"type":15},"File Storage","file-storage",{"name":9,"slug":8,"type":15},{"name":4153,"slug":4154,"type":15},"Storage","storage","2026-07-17T05:30:16.503306",{"slug":4157,"name":4157,"fn":4158,"description":4159,"org":4160,"tags":4161,"stars":23,"repoUrl":24,"updatedAt":4172},"netlify-caching","configure CDN caching on Netlify","Guide for controlling caching on Netlify's CDN. Use when configuring cache headers, setting up stale-while-revalidate, implementing on-demand cache purge, or understanding Netlify's CDN caching behavior. Covers Cache-Control, Netlify-CDN-Cache-Control, cache tags, durable cache, and framework-specific caching patterns.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4162,4165,4168,4169],{"name":4163,"slug":4164,"type":15},"Caching","caching",{"name":4166,"slug":4167,"type":15},"Deployment","deployment",{"name":9,"slug":8,"type":15},{"name":4170,"slug":4171,"type":15},"Performance","performance","2026-07-14T05:40:20.066717",{"slug":4174,"name":4174,"fn":4175,"description":4176,"org":4177,"tags":4178,"stars":23,"repoUrl":24,"updatedAt":4182},"netlify-config","configure Netlify site settings","Reference for netlify.toml configuration and site environment variables. Use when configuring build settings, redirects, rewrites, headers, deploy contexts, the `[dev]` block that controls `netlify dev` (command, port, targetPort, framework), or any site-level configuration — and when managing environment variables or secrets with the Netlify CLI, including scoping values to specific deploy contexts. Covers the complete netlify.toml syntax including redirects with splats\u002Fconditions, headers, deploy contexts, functions config, edge functions config, and the `[dev]` block (including when `framework` must be `\"#custom\"` — required when both a custom `command` and `targetPort` are set).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4179,4180,4181],{"name":4081,"slug":4082,"type":15},{"name":4166,"slug":4167,"type":15},{"name":9,"slug":8,"type":15},"2026-07-17T05:30:21.284801",{"slug":4184,"name":4184,"fn":4185,"description":4186,"org":4187,"tags":4188,"stars":23,"repoUrl":24,"updatedAt":4197},"netlify-database","provision and manage Netlify Database","Guide for using Netlify Database — the GA managed Postgres product built into Netlify. Use when a project needs any kind of dynamic, structured, or relational data. Covers provisioning via @netlify\u002Fdatabase, Drizzle ORM (@beta) setup, migrations, preview branching, and safe production data handling. Blobs is only for file\u002Fasset storage — any dynamic data belongs in the database.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4189,4190,4193,4194],{"name":4146,"slug":4147,"type":15},{"name":4191,"slug":4192,"type":15},"Database","database",{"name":9,"slug":8,"type":15},{"name":4195,"slug":4196,"type":15},"PostgreSQL","postgresql","2026-07-20T05:58:58.934045",{"slug":4199,"name":4199,"fn":4200,"description":4201,"org":4202,"tags":4203,"stars":23,"repoUrl":24,"updatedAt":4210},"netlify-deploy","deploy and host projects on Netlify","Deploy, host, and publish web projects on Netlify with the Netlify CLI. Use when the user wants to deploy a site or repository to Netlify, link a local project to a Netlify site, ship a production or preview\u002Fdraft deploy, set up Git-based continuous deployment, run a manual or local deploy, configure CI deploys, or troubleshoot a failed or misconfigured deploy. Also use to view or tail a deployed site's runtime logs — function and edge-function output, deploy logs — via `netlify logs` when debugging what a live site is doing (recent errors, recent activity, streaming output).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4204,4205,4206,4207],{"name":4097,"slug":4098,"type":15},{"name":4166,"slug":4167,"type":15},{"name":9,"slug":8,"type":15},{"name":4208,"slug":4209,"type":15},"Web Development","web-development","2026-07-17T05:30:14.218977",{"slug":4212,"name":4212,"fn":4213,"description":4214,"org":4215,"tags":4216,"stars":23,"repoUrl":24,"updatedAt":4225},"netlify-edge-functions","write Netlify Edge Functions","Guide for writing Netlify Edge Functions. Use when building middleware, geolocation-based logic, request\u002Fresponse manipulation, authentication checks, A\u002FB testing, or any low-latency edge compute. Covers Deno runtime, context.next() middleware pattern, geolocation, and when to choose edge vs serverless.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4217,4220,4223,4224],{"name":4218,"slug":4219,"type":15},"Edge Functions","edge-functions",{"name":4221,"slug":4222,"type":15},"Middleware","middleware",{"name":9,"slug":8,"type":15},{"name":4170,"slug":4171,"type":15},"2026-07-14T05:40:34.147865",{"slug":4227,"name":4227,"fn":4228,"description":4229,"org":4230,"tags":4231,"stars":23,"repoUrl":24,"updatedAt":4240},"netlify-forms","handle HTML forms with Netlify","Guide for using Netlify Forms for HTML form handling. Use when adding contact forms, feedback forms, file upload forms, or any form that should be collected by Netlify. Covers the data-netlify attribute, spam filtering, AJAX submissions, file uploads, notifications, and the submissions API.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4232,4235,4238,4239],{"name":4233,"slug":4234,"type":15},"Forms","forms",{"name":4236,"slug":4237,"type":15},"HTML","html",{"name":9,"slug":8,"type":15},{"name":4208,"slug":4209,"type":15},"2026-07-14T05:40:16.075367",{"items":4242,"total":1817},[4243,4250,4257,4264,4271,4278,4284],{"slug":4103,"name":4103,"fn":4104,"description":4105,"org":4244,"tags":4245,"stars":23,"repoUrl":24,"updatedAt":4118},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4246,4247,4248,4249],{"name":4109,"slug":4110,"type":15},{"name":9,"slug":8,"type":15},{"name":4113,"slug":4114,"type":15},{"name":4116,"slug":4117,"type":15},{"slug":4120,"name":4120,"fn":4121,"description":4122,"org":4251,"tags":4252,"stars":23,"repoUrl":24,"updatedAt":4131},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4253,4254,4255,4256],{"name":4078,"slug":4079,"type":15},{"name":4127,"slug":4128,"type":15},{"name":13,"slug":14,"type":15},{"name":9,"slug":8,"type":15},{"slug":4,"name":4,"fn":5,"description":6,"org":4258,"tags":4259,"stars":23,"repoUrl":24,"updatedAt":25},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4260,4261,4262,4263],{"name":18,"slug":19,"type":15},{"name":21,"slug":22,"type":15},{"name":13,"slug":14,"type":15},{"name":9,"slug":8,"type":15},{"slug":4140,"name":4140,"fn":4141,"description":4142,"org":4265,"tags":4266,"stars":23,"repoUrl":24,"updatedAt":4155},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4267,4268,4269,4270],{"name":4146,"slug":4147,"type":15},{"name":4149,"slug":4150,"type":15},{"name":9,"slug":8,"type":15},{"name":4153,"slug":4154,"type":15},{"slug":4157,"name":4157,"fn":4158,"description":4159,"org":4272,"tags":4273,"stars":23,"repoUrl":24,"updatedAt":4172},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4274,4275,4276,4277],{"name":4163,"slug":4164,"type":15},{"name":4166,"slug":4167,"type":15},{"name":9,"slug":8,"type":15},{"name":4170,"slug":4171,"type":15},{"slug":4174,"name":4174,"fn":4175,"description":4176,"org":4279,"tags":4280,"stars":23,"repoUrl":24,"updatedAt":4182},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4281,4282,4283],{"name":4081,"slug":4082,"type":15},{"name":4166,"slug":4167,"type":15},{"name":9,"slug":8,"type":15},{"slug":4184,"name":4184,"fn":4185,"description":4186,"org":4285,"tags":4286,"stars":23,"repoUrl":24,"updatedAt":4197},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4287,4288,4289,4290],{"name":4146,"slug":4147,"type":15},{"name":4191,"slug":4192,"type":15},{"name":9,"slug":8,"type":15},{"name":4195,"slug":4196,"type":15}]