{"name":"@ai-sdk/gateway","version":"3.0.236","keywords":["ai"],"license":"Apache-2.0","_id":"@ai-sdk/gateway@3.0.236","maintainers":[{"name":"matheuss","email":"matheus.frndes@gmail.com"},{"name":"matt.straka","email":"matt.j.straka@gmail.com"}],"homepage":"https://ai-sdk.dev/docs","bugs":{"url":"https://github.com/vercel/ai/issues"},"dist":{"shasum":"0a6472a2cc62715f8656215b68fe5f5f82f78447","tarball":"http://registry-npm.ywwl.com/@ai-sdk/gateway/download/@ai-sdk/gateway-3.0.236.tgz","fileCount":61,"integrity":"sha512-ng0HofoeM794Q4J1+j3I3FFDA7Mj84mM9rn1q0SAe2rPGUXNW7gNmbkLITsZUoOr+/BbePsknwe1pMykiOrv2A==","signatures":[{"sig":"MEUCIA5/2jroLC29apmAwujBiECHcwow5iGKYJlAF8Y60SEfAiEAicHpkIoLCr2R3R8o2vhfHQjf9mN6js+nsiPzMKPs8sM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQCg6YCFairmMOVk5nmgXLMXd3HbU2E2++4UIkuH+r7+xgIhAMob2xU2Sr+wxqNA9ejGu3LyrplsjWzOES4biOVD5liR","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ai-sdk%2fgateway@3.0.236","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1087121,"size":205239,"noattachment":false,"key":"/@ai-sdk/gateway/-/@ai-sdk/gateway-3.0.236.tgz"},"main":"./dist/index.js","_from":"file:ai-sdk-gateway-3.0.236.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"./package.json":"./package.json"},"private":false,"scripts":{"test":"pnpm test:node && pnpm test:edge","build":"pnpm clean && tsup --tsconfig tsconfig.build.json","clean":"del-cli dist docs *.tsbuildinfo","test:edge":"vitest --config vitest.edge.config.js --run","test:node":"vitest --config vitest.node.config.js --run","test:watch":"vitest --config vitest.node.config.js","type-check":"tsc --build","build:watch":"pnpm clean && tsup --watch","test:update":"pnpm test:node -u","generate-model-settings":"tsx scripts/generate-model-settings.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"8d9ddc60-9c24-46c0-8b62-678f4a8b0af1"}},"_resolved":"/tmp/1cb068234997bc0cdaed90598b39cc3e/ai-sdk-gateway-3.0.236.tgz","_integrity":"sha512-ng0HofoeM794Q4J1+j3I3FFDA7Mj84mM9rn1q0SAe2rPGUXNW7gNmbkLITsZUoOr+/BbePsknwe1pMykiOrv2A==","repository":{"url":"git+https://github.com/vercel/ai.git","type":"git","directory":"packages/gateway"},"_npmVersion":"11.19.1","description":"The Gateway provider for the [AI SDK](https://ai-sdk.dev/docs) allows the use of a wide variety of AI models and providers.","directories":{"doc":"./docs"},"sideEffects":false,"_nodeVersion":"24.22.2","dependencies":{"@vercel/oidc":"3.2.0","@ai-sdk/provider":"3.0.19","@ai-sdk/provider-utils":"4.0.66"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tsx":"4.19.2","zod":"3.25.76","tsup":"^8","typescript":"5.8.3","@types/node":"18.15.11","@ai-sdk/test-server":"1.0.6","@vercel/ai-tsconfig":"0.0.0"},"peerDependencies":{"zod":"^3.25.76 || ^4.1.8"},"_npmOperationalInternal":{"tmp":"tmp/gateway_3.0.236_1794514648560_0.7667701091586935","host":"s3://npm-registry-packages-npm-production"},"readme":"# AI SDK - Gateway Provider\n\nThe Gateway provider for the [AI SDK](https://ai-sdk.dev/docs) allows the use of a wide variety of AI models and providers.\n\n## Setup\n\n```bash\nnpm i ai @ai-sdk/gateway\n```\n\n## Skill for Coding Agents\n\nIf you use coding agents such as Claude Code or Cursor, we highly recommend adding the AI SDK skill to your repository:\n\n```shell\nnpx skills add vercel/ai\n```\n\n## Usage\n\n```ts\nimport { gateway } from '@ai-sdk/gateway';\nimport { generateText } from 'ai';\n\n// Auth: a non-empty `AI_GATEWAY_API_KEY`, otherwise the Vercel OIDC token\n// (automatic on Vercel deployments; `vercel env pull` for local development).\nconst { text } = await generateText({\n  model: gateway('spacexai/grok-4.7'),\n  prompt:\n    'Tell me about the history of the San Francisco Mission-style burrito.',\n});\n```\n\nSee the [Gateway Provider documentation](https://ai-sdk.dev/providers/ai-sdk-providers/ai-gateway) for more information, including [authentication](https://ai-sdk.dev/providers/ai-sdk-providers/ai-gateway#authentication).\n","publish_time":1794514648697,"_cnpm_publish_time":1794514648697,"dist-tags":{"ai-v5":"2.0.181","ai-v6":"3.0.237","alpha":"1.0.0-alpha.6","beta":"4.0.0-beta.114","canary":"4.0.0-canary.107","latest":"4.0.146","snapshot":"0.0.0-f1630544-20260811180950"}}