curl -X POST https://generativelanguage.googleapis.com/v1beta/interactions \
-H "x-goog-api-key: $GEMINI_API_KEY" \
-H "Content-Type: application/json" \
-H "Api-Revision: 2026-05-20" \
-d '{
"agent": "deep-research-pro-preview-12-2025",
"input": "Find a cure to cancer",
"background": true
}'
from google import genai
client = genai.Client()
interaction = client.interactions.create(
agent="deep-research-pro-preview-12-2025",
input="find a cure to cancer",
background=True,
)
print(interaction.status)
import {GoogleGenAI} from '@google/genai';
const ai = new GoogleGenAI({});
const interaction = await ai.interactions.create({
agent: 'deep-research-pro-preview-12-2025',
input: 'find a cure to cancer',
background: true,
});
console.log(interaction.status);