{"name":"@ai-sdk/gateway","version":"2.0.0-beta.80","keywords":["ai"],"license":"Apache-2.0","_id":"@ai-sdk/gateway@2.0.0-beta.80","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":"9ca8c114ce9376839c3b1af27ab9a76b9bf5903b","tarball":"http://registry-npm.ywwl.com/@ai-sdk/gateway/download/@ai-sdk/gateway-2.0.0-beta.80.tgz","fileCount":10,"integrity":"sha512-Kd0iZXMLpNeojS7A1yYaFt1Us+x7nBlrbWth+mN44nDOeU8Mzt+vS5atsRSR9h8Px+2x61Hs8Cpb4vzeyr644Q==","signatures":[{"sig":"MEUCIQDhtPvRkEk8jPL5dNWTSXYlY5LTjoIa6eVNyx1YUn7yWgIgGWMlaVRxHHXMNkvUBM/gXEi+1quNhHTogaQSmrnnEMU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":232765,"size":45234,"noattachment":false,"key":"/@ai-sdk/gateway/-/@ai-sdk/gateway-2.0.0-beta.80.tgz"},"main":"./dist/index.js","_from":"file:ai-sdk-gateway-2.0.0-beta.80.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":{"lint":"eslint \"./**/*.ts*\"","test":"pnpm test:node && pnpm test:edge","build":"pnpm clean && tsup --tsconfig tsconfig.build.json","clean":"del-cli dist *.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","prettier-check":"prettier --check \"./**/*.ts*\""},"_npmUser":{"name":"vercel-release-bot","email":"infra+release@vercel.com"},"_resolved":"/tmp/a55f50a73965583460975ee9ea4e08b6/ai-sdk-gateway-2.0.0-beta.80.tgz","_integrity":"sha512-Kd0iZXMLpNeojS7A1yYaFt1Us+x7nBlrbWth+mN44nDOeU8Mzt+vS5atsRSR9h8Px+2x61Hs8Cpb4vzeyr644Q==","repository":{"url":"git+https://github.com/vercel/ai.git","type":"git"},"_npmVersion":"10.9.4","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":{},"sideEffects":false,"_nodeVersion":"22.21.1","dependencies":{"@vercel/oidc":"3.0.5","@ai-sdk/provider":"3.0.0-beta.26","@ai-sdk/provider-utils":"4.0.0-beta.49"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"zod":"3.25.76","tsup":"^8","typescript":"5.8.3","@types/node":"18.15.11","@ai-sdk/test-server":"1.0.0-beta.1","@vercel/ai-tsconfig":"0.0.0"},"peerDependencies":{"zod":"^3.25.76 || ^4.1.8"},"_npmOperationalInternal":{"tmp":"tmp/gateway_2.0.0-beta.80_1765819591289_0.015008535096951992","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\nThe Gateway provider is available in the `@ai-sdk/gateway` module. You can install it with\n\n```bash\nnpm i @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## Provider Instance\n\nYou can import the default provider instance `gateway` from `@ai-sdk/gateway`:\n\n```ts\nimport { gateway } from '@ai-sdk/gateway';\n```\n\n## Example\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\n## Documentation\n\nPlease check out the [AI SDK documentation](https://ai-sdk.dev/docs) for more information.\n","publish_time":1765819591442,"_cnpm_publish_time":1765819591442,"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"}}