WaveSpeedAI

Generate Images and Video Inside Google Antigravity with WaveSpeed

Connect the WaveSpeed MCP server to Google Antigravity with one URL, or install the WaveSpeed skill, and the agent can search the live model catalog, quote prices and run image, video, audio and 3D models from the IDE, the app or the agy CLI.

By WaveSpeedAI5 min read

Google Antigravity is Google’s agentic coding product: the Antigravity IDE, the Antigravity App and the agy CLI. All three speak MCP, so connecting WaveSpeed once lets the agent search the live model catalog, check a price and generate an image or a video in the middle of a task, without leaving the session.

There are three ways to set it up. The remote server is the shortest.

Add this to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json in your workspace (one project):

{
  "mcpServers": {
    "wavespeed": {
      "serverUrl": "https://api.wavespeed.ai/mcp"
    }
  }
}

In the IDE you can reach the same file from the agent panel: open the … menu, then MCP Servers → Manage MCP Servers → View raw config.

From the terminal, the CLI does it in one line:

agy mcp add wavespeed https://api.wavespeed.ai/mcp

Adding the server does not open a browser by itself. Sign in once from the MCP manager, and there is no key to copy:

  • Antigravity App: click Customizations → Installed, then Authenticate next to the server under MCP Servers. Approve the connection in your browser, copy the authorization code, paste it into Enter authorization code and click Submit.
  • agy CLI: run /mcp, select the server marked [Auth Needed], choose Authenticate, approve the connection in your browser and paste the code back.

Once authenticated, the server reconnects automatically.

With an API key instead

On a server, in a container or in CI there is no browser to approve the connection. Create a key on the API Keys page and send it as a header:

{
  "mcpServers": {
    "wavespeed": {
      "serverUrl": "https://api.wavespeed.ai/mcp",
      "headers": { "Authorization": "Bearer YOUR_WAVESPEED_API_KEY" }
    }
  }
}
agy mcp add --header "Authorization: Bearer YOUR_WAVESPEED_API_KEY" wavespeed https://api.wavespeed.ai/mcp

Option 2: the local MCP server

The same tools also run on your machine as an npm package. Choose this when the agent should upload files straight from your disk. It needs Node.js 20 or later.

{
  "mcpServers": {
    "wavespeed": {
      "command": "npx",
      "args": ["-y", "@wavespeed/mcp@latest"],
      "env": { "WAVESPEED_API_KEY": "YOUR_WAVESPEED_API_KEY" }
    }
  }
}

If you have already signed in with the WaveSpeed CLI (wavespeed login), leave out the env block; the server reuses that stored login.

Option 3: the skill

Antigravity reads agent skills from .agents/skills/. The WaveSpeed skill teaches the agent to drive the open-source wavespeed CLI from the shell:

npx skills add WaveSpeedAI/agent-skills

The skill uses the CLI, so install it and sign in once with npm install -g @wavespeed/cli and wavespeed login.

What the agent can do

Once connected, the agent picks from these tools as the task needs:

  • Find a model: list_models searches the live catalog by name, description or type, so new models show up without an update.
  • Read its inputs: get_model_schema returns the parameters a model accepts, which are required and their defaults.
  • Quote and check credit: get_price never charges; get_balance shows what is left.
  • Run anything: run_model runs any image, video, audio or 3D model in the catalog.
  • Shortcuts: generate_image, edit_image, generate_video, edit_video and extend_video choose a suitable model and inputs for common jobs.
  • Follow up: get_prediction and list_predictions pick up a long generation later; create_upload gives a temporary address for sending a file.

Usage and billing tools are there too, for questions such as what you spent this week.

One thing that may look unusual: Antigravity loads MCP tools lazily. It lists them by name and calls them through its built-in call_mcp_tool, reading each tool’s schema the first time it is used. A short lookup before the first call is normal.

A real session

Here is a run from the agy CLI with the remote server connected. The prompt:

Use WaveSpeed to generate one image: a red paper airplane on a wooden desk,
morning light. Use the cheapest suitable option, then give me the image URL
and the cost.

The agent worked through four calls on its own:

  1. list_models to find text-to-image models.
  2. get_model_schema for wavespeed-ai/flux-schnell, to read its inputs.
  3. get_price to confirm the cost before running.
  4. run_model to generate the image.

It came back with a 1024×1024 image URL and a cost of $0.003, the list price of FLUX Schnell. The agent chose the model and checked the price itself; the prompt only asked for the cheapest suitable option.

Output links from a run are temporary, so download anything you want to keep, or ask the agent to save it into your project.

Cost control

  • Ask for a quote before a run, especially for video, where cost depends on duration and resolution. get_price never charges.
  • Ask the agent for your balance at any time.
  • With browser sign-in, each connection gets its own API key, named after the app, on your API Keys page. Delete it to disconnect Antigravity immediately.

Sharp edges

  • Files need a public URL with the remote server. Give the agent a link, let it request an upload address with create_upload, or use the local server, which uploads from a path on your computer.
  • Don’t let the agent guess parameters. It should read a model’s schema before running it; the server also checks inputs against the schema and rejects invented ones.
  • A long video is not a stuck chat. A run returns an ID right away; if the session ends, ask the agent to check that prediction instead of submitting the same paid job again.
  • Keep keys out of the chat. Put a key in the config file or use browser sign-in; never paste it into a prompt.

Where things live

FAQ

Which Antigravity products does this work in?

All of them. The Antigravity IDE, the Antigravity App and the agy CLI read the same MCP configuration, so one setup covers every surface.

Remote server, local server or skill — which should I pick?

Start with the remote server: one URL, browser sign-in, nothing to install. Use the local npx server when the agent needs to upload files from your computer. Use the skill if you prefer the agent to drive the open-source wavespeed CLI from the shell. Pick one; installing several just duplicates instructions.

Where does Antigravity keep the MCP configuration?

Globally in ~/.gemini/config/mcp_config.json, or per project in .agents/mcp_config.json inside the workspace. In the IDE, open the agent panel menu, then MCP Servers, Manage MCP Servers, View raw config.

Why does the agent read a tool's schema before using it?

Antigravity loads MCP tools lazily. It lists them by name and fetches a tool's full description the first time it calls it, so a short schema lookup before the first run is expected.

Can I control spend?

Yes. Ask the agent to quote first; the get_price tool never charges, and get_balance shows your credit. Each run is billed at the model's list price.

Share