# Google 与 Speakeasy 合作开源 OpenAPI SDK 生成套件

- 来源：Google Developers Blog（RSS）
- 作者：Amir Hardon
- 发布时间：2026-09-18 03:05
- AIHOT 分数：56
- AIHOT 链接：https://aihot.news/items/cmu5whj4t04n6roiqgera0t3j
- 原文链接：https://developers.googleblog.com/why-client-sdk-generation-belongs-in-the-open

## AI 摘要

Google 宣布与 Speakeasy 合作，将其 OpenAPI 客户端代码生成套件以 AGPLv3 许可开源。套件支持 Python、TypeScript、Go 等 7 种语言的 SDK 生成，包含 SSE 流式、重试与分页，还可生成独立 CLI 和将 OpenAPI 规范转为 MCP 服务器的工具。

## 正文

Over the last few months, we worked closely with Speakeasy to ship the new Google GenAI SDKs for our Interactions, Agents, and Webhooks APIs. Today, we're excited to announce that we’ve partnered with Speakeasy to make their OpenAPI code generation suite open source.

from google import genai

client = genai.Client()

interaction = client.interactions.create( model="gemini-3.8-flash", input="Analyze this commit log and find regressions.", )

print(interaction.output_text)

Why client generation needs open tooling

Generating clean, idiomatic SDKs across multiple languages from rapidly evolving OpenAPI specs is an engineering challenge. For years, the frontier AI ecosystem, including Google, relied on specialized tooling to generate client libraries that could handle complex streaming protocols, strict error hierarchies, and rich type unions without feeling machine-generated.

In May 2026, right as we were gearing up for Google I/O and the General Availability of the Interactions API, the SDK generation provider we were using was acquired and abruptly announced its shutdown.

This sudden disruption highlighted that proprietary, closed-source generators create unacceptable platform risk. If the industry relies on OpenAPI to define interfaces, the tooling to compile those interfaces into client libraries, CLIs, and agent tools should be open infrastructure.

Evaluating the path forward

As we were reworking our SDK pipeline on a tight timeline, our top priority was minimizing developer disruption and avoiding breaking changes.

We partnered with Speakeasy to migrate our client libraries in place, with the core commitment to make the generator suite open source. The migration required careful engineering: aligning type definitions across all target languages, preserving strict error hierarchies and streaming behavior, and integrating the generator directly into our internal monorepo and build system.

At Google DeepMind, while we use AI across our development workflows, we believe in choosing the right tool for each layer of the stack. Transforming formal API specifications into multi-language SDKs demands determinism and strict type safety. With Speakeasy, we pair a fast, deterministic generator at the core with Antigravity AI agents accelerating the custom parts of the SDK.

Maintaining previously handcrafted generators used to take multiple engineers. Today, this setup powers our client pipeline across six targets (three released SDKs, with more rolling out shortly) with roughly one engineer to maintain.

What is open sourced today

To help ensure the broader developer ecosystem has access to high-quality, well-maintained SDK generation tooling without the risk of similar disruptions, Speakeasy is open sourcing its full OpenAPI client suite under the AGPLv3 license.

Multi-language SDK generators: Generates client libraries for 7 languages (Python, TypeScript, Go, Java, C#, PHP, Ruby). Each library includes static typing, server-sent events (SSE) streaming, retries, and pagination.

An agent-native CLI generator: Compiles standalone CLI binaries. AI coding agents can run your API directly from terminal sessions without writing throwaway HTTP scripts.

A documentation MCP server generator: Turns your OpenAPI specs and markdown documentation into a Model Context Protocol (MCP) server. Coding agents like Antigravity can query live, verified schemas instead of guessing outdated methods.

The generator is licensed under AGPLv3. This allows you to run it in your development or CI pipeline while keeping complete ownership of your generated code/SDKs under your chosen license (such as MIT or Apache 2.0). If you modify the generator compiler itself, the AGPL guarantees those improvements remain open to the community.

Try it out

You can explore the new Gemini Interactions API today using our updated SDKs. If you want to generate your own client libraries, CLIs, or MCP servers, you can find the Speakeasy generator on GitHub and run it against your OpenAPI specs.

Thanks for reading! Keep on building.
