The HTTP 400 Bad Request (INVALID_MEDIA, error #2011) happens when a corrupted, truncated, or unsupported image or media file (such as an incomplete screenshot or recording) is attached to a prompt or read by the agent. Once that file is in the conversation history, every follow-up message in that same thread will continue to fail with this error.
To resolve this:
Start a new conversation so the invalid media file is no longer included in the conversation history, and remove or replace the affected image or media file in your workspace before asking the agent to read it again.
Update to the latest version of Antigravity (v2.28.1 for the Antigravity App, v2.6.0 for Antigravity IDE, or v1.4.10 for the CLI — see the Changelog), as recent releases include fixes that validate and reject incomplete media files before they can lock up a conversation.
If you still run into this error in a fresh conversation, please let us know which Antigravity surface and version you are using, your OS, and what type of file the agent was reading when it occurred.