惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

B
Blog RSS Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Google Online Security Blog
Google Online Security Blog
Hugging Face - Blog
Hugging Face - Blog
博客园 - Franky
Last Week in AI
Last Week in AI
MongoDB | Blog
MongoDB | Blog
T
Tailwind CSS Blog
云风的 BLOG
云风的 BLOG
Vercel News
Vercel News
博客园 - 三生石上(FineUI控件)
腾讯CDC
The GitHub Blog
The GitHub Blog
V
Visual Studio Blog
N
News | PayPal Newsroom
M
MIT News - Artificial intelligence
C
CERT Recently Published Vulnerability Notes
Apple Machine Learning Research
Apple Machine Learning Research
雷峰网
雷峰网
A
Arctic Wolf
The Cloudflare Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
C
Cyber Attacks, Cyber Crime and Cyber Security
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
AI
AI
S
Security @ Cisco Blogs
aimingoo的专栏
aimingoo的专栏
Cloudbric
Cloudbric
爱范儿
爱范儿
罗磊的独立博客
Y
Y Combinator Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Attack and Defense Labs
Attack and Defense Labs
Webroot Blog
Webroot Blog
T
Threatpost
T
Threat Research - Cisco Blogs
Cisco Talos Blog
Cisco Talos Blog
Recorded Future
Recorded Future
Security Latest
Security Latest
P
Proofpoint News Feed
www.infosecurity-magazine.com
www.infosecurity-magazine.com
I
Intezer
H
Heimdal Security Blog
Blog — PlanetScale
Blog — PlanetScale
S
Securelist
Forbes - Security
Forbes - Security
Application and Cybersecurity Blog
Application and Cybersecurity Blog
WordPress大学
WordPress大学
Engineering at Meta
Engineering at Meta
H
Hackread – Cybersecurity News, Data Breaches, AI and More

Developer tools

We're rolling out AlphaEvolve widely to solve Google Cloud customers' hardest problems. Expanding Managed Agents in Gemini API: background tasks, remote MCP and more The latest AI news we announced in June 2026 Ask an AI expert: What exactly is the full stack? DiffusionGemma: 4x faster text generation See what 3 builders are making with Gemma 4 Bringing the latest Gemini models to Apple developers Gemma 4 QAT models: Optimizing model compression for mobile and laptop efficiency Kaggle is making AI benchmark creation effortless Introducing Gemma 4 12B: a unified, encoder-free multimodal model How we used Gemini to build Google I/O 2026 Take our I/O 2026 quiz, vibe coded in Google AI Studio. Here's what developers can do with the latest Google Play updates. Building the agentic future: Developer highlights from I/O 2026 I/O 2026 Introducing Managed Agents in the Gemini API Bring any idea to life: Google AI Studio at I/O 2026 Gemini API File Search is now multimodal: build efficient, verifiable RAG Accelerating Gemma 4: faster inference with multi-token prediction drafters The latest AI news we announced in April 2026 Reduce friction and latency for long-running jobs with Webhooks in Gemini API Join the new AI Agents Vibe Coding Course from Google and Kaggle Deep Research Max: a step change for autonomous research agents Start vibe coding in AI Studio with your Google AI subscription. Prepay for the Gemini API to get more control over your spend Introducing Learn Mode: your personal coding tutor in Google Colab Gemma 4: Byte for byte, the most capable open models New ways to balance cost and reliability in the Gemini API The latest AI news we announced in March 2026 Improve coding agents’ performance with Gemini API Docs MCP and Agent Skills. Build with Veo 3.1 Lite, our most cost-effective video generation model
Interactions API: our primary interface for Gemini models and agents
Ali Çevik · 2026-06-23 · via Developer tools

A single unified endpoint for Gemini models and agents with server-side state, background execution, tool combination and multimodal generation.

Philipp Schmid

Philipp Schmid

Developer Relations Engineer, Google DeepMind

Interactions API

Your browser does not support the audio element.

Listen to article

This content is generated by Google AI. Generative AI is experimental

[[duration]] minutes

Today we're announcing that the Interactions API has reached general availability and is now our primary API for interacting with Gemini models and agents. We launched its public beta in December 2025, and it has quickly become developers’ favorite way to build applications with Gemini.

With this GA release, the API now has a stable schema and we also added major new capabilities that developers asked for, including Managed Agents, background execution, Gemini Omni (soon) and more. All of our documentation now defaults to Interactions API and we are working with ecosystem partners to make it the default interface across 3P SDKs and Libraries.

The simplest way to build with Gemini

Whether you're calling a model or running an agent, the Interactions API gets you there in a few lines of code. Pass a model ID for inference, an agent ID for autonomous tasks, set background=True for anything long-running.

Key updates since December

  • Managed Agents: A single API call provisions a remote Linux sandbox where an agent can reason, execute code, browse the web and manage files. The Antigravity agent ships as the default, and you can define your own custom agents with instructions, skills and data sources.
  • Background execution: Set background=True on any call. The server runs the interaction asynchronously.
  • Tool improvements: Mix built-in tools , such as Google Search, Google Maps with your own functions in one request. Tool results can now return images alongside text.
  • Deep Research upgrades: Two new agent versions (speed vs. depth), collaborative planning, native charts and infographics, and multimodal grounding with images, PDFs and audio.
  • Media generation: Image generation with Nano Banana 2 and Google Image Search grounding, music with Lyria 3, and expressive speech with multi-speaker TTS.
  • From Roles to Steps: Simplified schema where every action (user_input, thought, function_call, model_output, etc.) is its own typed step, replacing the old role structure.
  • Cost and developer optimizations: Flex and Priority tiers let you optimize for cost or latency (Flex offers 50% cost reduction). Errors now pinpoint the exact field. Past interactions are retrievable with 55-day retention on the paid tier.

The new standard for development

The Interactions API is now the default for Google AI Studio, the Gemini API, and all our documentation, which includes a toggle to switch snippets back to the legacy format. We recommend using the Interactions API for all new projects and applications.

While the legacy generateContent API remains fully supported and will continue to receive new mainline Gemini models for the foreseeable future, we expect frontier capabilities for long-running models and agents to increasingly land exclusively on the Interactions API. This is because it is designed from the ground up for stateful, agentic workflows. We have published a migration guide to help you transition at your own pace.

An agent-first ecosystem

Most developers are now using coding agents (such as Antigravity) to build applications. To make it easier for agents to stay up to date with the latest API patterns, we built the gemini-interactions-api Skill. It injects best-practice patterns for Interactions API development into your agent's context (streaming, function calling, structured output, Deep Research and more).

Get started

The Interactions API is available through the Python and JavaScript SDKs. If you're already building with one of our supported partners, LiteLLM, Eigent or Agno, you can start using their Interactions API integrations today.

Grab your API key from Google AI Studio and follow the Interactions API documentation to get started. If you’re migrating from generateContent, our migration guide maps every field to the new schema. You can also view the full API Reference.

The Interactions API was built based on developer feedback, and that focus won't change with general availability. Tell us what you need on the developer forum.

Related stories