> Discover all available pages from the documentation index: https://mastra.zisheng.pro/llms.txt # ![Cloudflare AI Gateway 标志](https://models.dev/logos/cloudflare-ai-gateway.svg)Cloudflare AI Gateway Cloudflare AI Gateway 可通过 AI SDK 使用。安装相应的 Provider package 后,即可在 Mastra 中使用其模型。 有关此 Provider 的详细说明,请参阅 [AI SDK Cloudflare AI Gateway Provider 文档](https://ai-sdk.dev/providers/community-providers/cloudflare-ai-gateway)。 如需在 Mastra Agent 中使用此 Provider,请参阅[Agent 概览文档](https://mastra.zisheng.pro/docs/agents/overview)。 ## 安装 **npm**: ```bash npm install ai-gateway-provider ``` **pnpm**: ```bash pnpm add ai-gateway-provider ``` **Yarn**: ```bash yarn add ai-gateway-provider ``` **Bun**: ```bash bun add ai-gateway-provider ```