Google's Interactions API reaches GA as the new primary Gemini interface

googlegoogle-deepmindgeminigemini-apiinteractions-apimanaged-agents+16
Google blog post 'Interactions API: our primary interface for Gemini models and agents' on 2026-07-12, showing the bylines (Ali Çevik, Group PM, Google DeepMind; Philipp Schmid, Developer Relations Engineer, Google DeepMind), the Interactions_API_GA_final hero illustration, and the opening paragraph announcing general availability and a stable schema.
Source: blog.google/innovation-and-ai/technology/developers-tools/interactions-api-general-availability/ (Google's developer blog, post bylines: Ali Çevik and Philipp Schmid, Google DeepMind; datePublished 2026-06-22T17:15:00+00:00) · Captured 2026-07-12 via Playwright Chromium with @sparticuz/chromium (the ai-newsroom scripts/browser.mjs helper) · Google-hosted page used editorially as the primary source for the GA post · Desktop 1280×900, mobile 390×844 (rendered at 2× device pixel ratio).

On 2026-06-22, Google published “Interactions API: our primary interface for Gemini models and agents” — the GA post for the Gemini Interactions API, with a stable schema, Managed Agents, background execution, and a “From Roles to Steps” schema migration (Google blog, 2026-06-22). The legacy generateContent API is not going away, but every Google AI Studio surface, the Gemini API docs, and the Google AI docs now default to the Interactions API, and frontier agent features “will increasingly land exclusively on the Interactions API.”

![Google blog post ‘Interactions API: our primary interface for Gemini models and agents’ on 2026-07-12, showing the bylines (Ali Çevik, Group PM, Google DeepMind; Philipp Schmid, Developer Relations Engineer, Google DeepMind) and the Interactions_API_GA_final hero illustration.]({{ ‘/images/articles/google-interactions-api-ga-primary-gemini-interface/hero-blog-desktop.png’ | url }})

What happened

The Interactions API was first launched in public beta in December 2025. On 2026-06-22 it reached general availability with a stable schema and four new capabilities: Managed Agents (with Antigravity as the default), background execution (background=True), Gemini Omni (soon), and a new tool-combination surface that mixes built-in tools (Google Search, Google Maps) with custom functions in one request (GA post, 2026-06-22).

The Google team’s wording on the legacy API: “the legacy generateContent API remains fully supported and will continue to receive new mainline Gemini models for the foreseeable future,” but “frontier capabilities for long-running models and agents will increasingly land exclusively on the Interactions API.” The docs still ship a toggle to switch snippets back to the legacy format. The July 7 Managed Agents expansion post adds background execution for async interactions, remote MCP server integration, custom function calling, and credential refresh.

Why it matters

What’s new in the API

CapabilityWhat it doesSource
Managed AgentsOne call provisions a remote Linux sandbox; agent can reason, execute code, browse the web, and manage files. Antigravity is the default agent.GA post
Background executionbackground=True runs the interaction asynchronously; server returns an ID, client can poll, stream, or reconnect later.GA post; background-execution docs
Tool combinationMix built-in tools (Google Search, Google Maps) with custom functions in one request; tool results can return images alongside text.GA post; tool-combination docs
From Roles to StepsReplaces the role-based contents array with typed step entries. The breaking change is documented per-feature.breaking-changes doc
Flex / Priority tiersFlex offers 50% cost reduction vs the default tier; Priority is the latency-optimized tier.GA post; flex-inference docs
55-day retentionPast interactions retrievable for 55 days on the paid tier.GA post
Field-level error messagesErrors now pinpoint the exact field.GA post
Deep Research upgradesSpeed vs depth agent variants, collaborative planning, native charts and infographics, multimodal grounding with images / PDFs / audio.GA post; deep-research docs
Media generationImage generation with Nano Banana 2 and Google Image Search grounding; Lyria 3 music; multi-speaker TTS speech.GA post; image-generation docs

Managed Agents in one breath

One call to interactions.create with an agent= ID provisions a remote Linux sandbox where the agent can reason, execute code, browse the web, and manage files. The default agent is Antigravity (antigravity-preview-05-2026). Custom agents can be defined via /v1beta/agents with a display_name, system_instruction, and a tools list. The Jul 7 Managed Agents expansion adds background execution, remote MCP server integration, custom function calling, and credential refresh.

A short code snippet

One Interactions API call, paraphrased from the official docs. Install the SDK first.

pip install google-genai
from google import genai

client = genai.Client(api_key="GEMINI_API_KEY")

# Stateful conversation, server-side state via previous_interaction_id.
turn_1 = client.interactions.create(
    model="gemini-3.5-flash",
    input="Hi, my name is Amir.",
)
turn_2 = client.interactions.create(
    model="gemini-3.5-flash",
    input="What is my name?",
    previous_interaction_id=turn_1.id,
)
print(turn_2.outputs[-1].text)

# Long-running agent — run in the background, poll for status.
research = client.interactions.create(
    agent="deep-research-pro-preview-12-2025",
    input="Research the history of Google TPUs in 2025 and 2026.",
    background=True,
)

The same call shape is available in the JavaScript SDK via @google/genai 2.11.0 and in the REST API reference.

Migration entry points

Practical implications for builders

Risks and caveats

What to watch

Sources

  1. Google — “Interactions API: our primary interface for Gemini models and agents” (2026-06-22)
  2. Google — “Expanding Managed Agents in Gemini API: background tasks, remote MCP and more” (2026-07-07)
  3. Google — Interactions API documentation (2026-07-12)
  4. Google — Interactions API migration guide (2026-07-12)
  5. Google — Antigravity default agent docs (2026-07-12)
  6. Google — Interactions API breaking changes (May 2026): From Roles to Steps (2026-07-12)
  7. Google — Coding-agents Skills (gemini-interactions-api) (2026-07-12)
  8. Google — Flex inference docs (2026-07-12)
  9. Google — Interactions API reference and OpenAPI spec (2026-07-12)
  10. PyPI — google-genai 2.11.0 (2026-07-09, Apache-2.0)
  11. npm — @google/genai 2.11.0 (Apache-2.0)
  12. LiteLLM — Interactions API integration (2026-07-12)
  13. Eigent — Audit ML CI Failures with Gemini 3.5 Flash (2026-05-19)
  14. Agno — Gemini Interactions provider (2026-07-12)
  15. AIN-381 — NewsScout radar 2026-07-12
  16. AIN-382 — EditorInChief candidate brief (2026-07-12)