curl -X POST https://aiplatform.googleapis.com/v1beta1/projects/{project}/locations/global/interactions \
-H "Authorization: Bearer $(gcloud auth print-access-token)" \
-H "Content-Type: application/json" \
-H "Api-Revision: 2026-05-20" \
-d '{
"agent": "deep-research-preview-04-2026",
"input": "Write an investment memo about the luxury retail industry over the last 3 years.",
"background": true
}'
from google import genai
client = genai.Client(vertexai=True, location='global')
interaction = client.interactions.create(
agent="deep-research-preview-04-2026",
input="Write an investment memo about the luxury retail industry over the last 3 years.",
background=True,
)
print(interaction.status)
import {GoogleGenAI} from '@google/genai';
const ai = new GoogleGenAI({vertexai: true, location: 'global'});
const interaction = await ai.interactions.create({
agent: 'deep-research-preview-04-2026',
input: 'Write an investment memo about the luxury retail industry over the last 3 years.',
background: true,
});
console.log(interaction.status);