Select a model manually for the Antigravity Agent Preview(antigravity-preview-09-2026) agent, then click the “Get code” button, AI Studio will build a code like this:
interaction = client.interactions.create(
agent='antigravity-preview-09-2026',
input="""INSERT_INPUT_HERE""",
background=True,
tools=tools,
agent_config={
'type': 'antigravity',
'model': 'models/gemini-4-argon',
},
environment={
'type': 'remote',
'network': 'disabled',
},
)
In this generated Python code, the agent_config.model is assigned as models/gemini-4-argon incorrectly, which should be gemini-4-argon without the models/ prefix. Running the code directly will receive the error response {"error":{"message":"Requested entity was not found.","code":"not_found"}}