Gemini Deep Research Agent API error

"I am currently testing the Gemini Deep Research Agent API. I encountered the following error while running the sample code provided on the API website. Could you explain the cause?

-–error log--------------------------------------------------------------------------------------------------------------------

PS D:\gemini> python .\interactions_api_test.py

D:\gemini\interactions_api_test.py:167: UserWarning: Interactions usage is experimental and may change in future versions.

interaction = client.interactions.create(

Traceback (most recent call last):

File “D:\gemini\interactions_api_test.py”, line 234, in

deep_research3()

File “D:\gemini\interactions_api_test.py”, line 167, in deep_research3

interaction = client.interactions.create(

              ^^^^^^^^^^^^^^^^^^^^^^^^^^^

File “C:\Python\Python312\Lib\site-packages\google\genai\_interactions\_utils\_utils.py”, line 298, in wrapper

return func(\*args, \*\*kwargs)

       ^^^^^^^^^^^^^^^^^^^^^

File “C:\Python\Python312\Lib\site-packages\google\genai\_interactions\resources\interactions.py”, line 416, in create

return self.\_post(

       ^^^^^^^^^^^

File “C:\Python\Python312\Lib\site-packages\google\genai\_interactions\_base_client.py”, line 1301, in post

return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))

                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File “C:\Python\Python312\Lib\site-packages\google\genai\_interactions\_base_client.py”, line 1088, in request

raise self.\_make_status_error_from_response(err.response) from None

google.genai._interactions.BadRequestError: Error code: 400 - {‘error’: {‘message’: ‘There was a problem processing your request. You will not be charged.’, ‘code’: ‘invalid_request’}}

I get the same result using the curl sample from the docs:

curl -X POST "https://generativelanguage.googleapis.com/v1alpha/interactions" \
-H "Content-Type: application/json" \
-H "x-goog-api-key: $GEMINI_API_KEY" \
-d '{
    "input": "Research the history of Google TPUs.",
    "agent": "deep-research-pro-preview-12-2025",
    "background": true
}'

{"error":{"message":"There was a problem processing your request. You will not be charged.","code":"invalid_request"}}% 

Same here! If someone could get back to us on this that would be great!

I have the same problem. If someone solves it, I will be very happy.)

It looks like the api has come to life.

@Taeyoung_Kim1 I tried to reproduce this using the example Python code. It ran fine. If you keep getting the error, my best advice is to update your SDK client.

@amine-3shake I tried the latest rest example code. That also worked fine, but note it now has /v1beta/, whereas your code has /v1alpha/.

I got the same thing today. So creating an interaction returns a 200 OK response. However, pulling the result (v1beta/interactions/{id}) returns a 403 Forbidden (“code”: “permission_denied”). Interestingly, some IDs are possible to get, so something has happened with the newly created researches. Attached the API Errors percent per method.

Edit: I found that the created ID becomes available after 20–30 minutes.

:crown: trying it with a 30min delay. Thanks!

In my case, 3/3 IDs are dead (status code ‘in_progress’). So, if you are experiencing the same issue, it seems it is not only an issue on my side.

Even after a 30min delay it does not work. I hope they fix it soon.

Same 403 error despite legit keys!!

Error details: “There was a problem processing your request. You will not be charged.”

The same, still 403. My favorite company - Google

I am having the same issue - no help from Gemini

Thank you all for reporting and sorry for the inconvenience. Investigating and hoping to report back soon.

Has the schema changed today with the migration?

This should be fixed. If you are still running into issues please ping here.