模型与实验室 4.0 · 优秀 2026-06-08 · 文章

Bringing the latest Gemini models to Apple developers

在WWDC上Apple宣布向第三方云模型提供商开放Foundation Models框架从iOS 27macOS 27iPadOS 27visionOS 27和watchOS 27开始,模型提供商可实现新的公共LanguageModel协议提供统一推理接口Google率先接入:Apple开发者可通过Foundation Models框架直接调用云端Gemini模型,Xcode也内置Gemini以加速多步编码任务,无需切换窗口

打开原文回到归档

Bringing the latest Gemini models to Apple developers

Source: Google Blog Original URL: https://blog.google/innovation-and-ai/technology/developers-tools/bringing-gemini-models-to-apple-developers Authors: Nicholas McNamara, Thevi Sundaralingam Published: Jun 08, 2026 Captured: 2026-06-20 20:18 (Asia/Shanghai)

English

Apple's Worldwide Developers Conference (WWDC) kicked off this week, and we're excited to share that Apple developers can now securely call cloud-hosted Gemini models using the Foundation Models framework, and access Gemini in Xcode. This announcement gives Apple developers seamless access to Gemini models to deliver dynamic experiences for their end users and increase their own development velocity.

This provides a fully native development experience — cloud-hosted Gemini models can plug directly into the Foundation Models framework using the same API. That means the on-device Apple model and cloud-hosted Gemini models sit behind a shared API surface, so you can easily swap between local and cloud inference to fit your use case. This flexibility is crucial for enabling optimal agentic app experiences while minimizing costs and reducing latency.

If you're already using Apple's Foundation Models framework, switching to Gemini models is a small code change: swap the model instance.

We worked with Apple to integrate Gemini into Xcode so you can perform complex, multi-step tasks during development without switching tools or windows.

To get started, onboard through the Intelligence settings panel in Xcode. Once configured, Gemini provides an agentic experience, helping you review code, fix bugs and build new features faster.

To support both individual and enterprise developer workflows, you can configure authentication based on your use case.

With seamless integration across Apple's Foundation Models framework and Xcode, you can effortlessly build, secure and scale next-generation, agentic AI experiences using Gemini models. We can't wait to see what you build.

中文

本周苹果全球开发者大会(WWDC)正式揭幕,我们非常高兴地宣布:Apple 开发者现在可以使用 Foundation Models 框架安全地调用云端 Gemini 模型,并可以在 Xcode 中访问 Gemini。这一发布让 Apple 开发者能够无缝接入 Gemini 模型,从而为终端用户带来更丰富的动态体验,并显著提升他们自身的开发效率。

这是一套完全原生的开发体验——云端 Gemini 模型可以直接接入 Foundation Models 框架,复用同一套 API。也就是说,设备端 Apple 模型和云端 Gemini 模型共享同一层 API 接口,你可以按需在本地推理和云端推理之间自由切换。这种灵活性对于打造最优的智能体应用体验、同时控制成本并降低延迟至关重要。

如果你已经在使用 Apple 的 Foundation Models 框架,那么切换到 Gemini 模型的改动非常小:只需替换 model 实例即可。

我们与 Apple 紧密合作,将 Gemini 集成进了 Xcode,让开发者无需在不同工具或窗口之间来回切换,就能在开发过程中执行复杂的多步骤任务。

上手方式也很简单:在 Xcode 的 Intelligence 设置面板中完成接入。配置完成后,Gemini 就会以智能体的形式提供体验,帮助你更快地审阅代码、修复 Bug,并构建新功能。

无论是个人开发者还是企业开发工作流,都可以根据自己的使用场景灵活配置鉴权方式。

借助 Foundation Models 框架与 Xcode 中的无缝集成,开发者可以轻松地用 Gemini 模型构建、保护并规模化部署下一代智能体 AI 体验。我们非常期待看到你打造的作品。

*抓取方式:curl(已通过 opencli 验证可达)* *Entry ID: f498349a*