{"name":"@ai-sdk/gateway","version":"4.0.133","keywords":["ai"],"license":"Apache-2.0","_id":"@ai-sdk/gateway@4.0.133","maintainers":[{"name":"vercel-release-bot","email":"infra+release@vercel.com"},{"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":"0832c514400f2e88d5e9ca9fb49e03e53df225dd","tarball":"http://registry-npm.ywwl.com/@ai-sdk/gateway/download/@ai-sdk/gateway-4.0.133.tgz","fileCount":69,"integrity":"sha512-6DmtrnwvTZG6RFhZscsnUX0XKxA+o2Y/EkZUGWWqFITez/gvOGG/PRKITjwPupUci5vbORThwqkbCj1/066Reg==","signatures":[{"sig":"MEQCIE5oC8hX1Ft9RuRUSVHKIt9HbEHNpBcQIjsXz9gHHlhaAiBIR2AJ8jHRamipjJPSv205s6eC/HRCluo752SsQdP4fQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQCHZaZ9TDFLyvMNNkf6Fk9U10ItROGDsV+CkhKJKyrsZQIgT9jMplYke5TSzCOEoCkVRL4nZBseqGB+T/CgcCyMmDA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ai-sdk%2fgateway@4.0.133","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":991268,"size":207324,"noattachment":false,"key":"/@ai-sdk/gateway/-/@ai-sdk/gateway-4.0.133.tgz"},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./package.json":"./package.json"},"private":false,"scripts":{"test":"pnpm test:node && pnpm test:edge","build":"pnpm clean && tsdown","clean":"del-cli 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 && tsdown --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":"ebe2175f-c55a-4701-a697-0ae165c758d3"}},"repository":{"url":"https://github.com/vercel/ai","type":"git","directory":"packages/gateway"},"directories":{"doc":"./docs"},"sideEffects":false,"dependencies":{"@vercel/oidc":"3.2.0","@ai-sdk/provider":"4.0.35","@ai-sdk/provider-utils":"5.0.72"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"tsx":"4.23.12","zod":"3.25.76","tsdown":"^0.23.0","typescript":"6.0.3","@types/node":"22.19.19","@ai-sdk/test-server":"2.0.4","@vercel/ai-tsconfig":"0.0.0","@vercel/ai-tsdown-config":"0.0.0"},"peerDependencies":{"zod":"^3.25.76 || ^4.1.8"},"_npmOperationalInternal":{"tmp":"tmp/gateway_4.0.133_1793647260012_0.28578403587627965","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\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.\n","publish_time":1793647260182,"_cnpm_publish_time":1793647260182,"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"}}