Pay As You Go with a Google Cloud project
Section titled “Pay As You Go with a Google Cloud project”With the Pay As You Go billing model, Antigravity sends requests to Gemini Enterprise Agent Platform in your own Google Cloud project. You pay only for the tokens you use, billed to the project’s Cloud Billing account at Agent Platform generative AI pricing. You don’t need a Gemini Enterprise license.
You sign in with the Google Account that has access to the project, such as your Google Workspace account.
What to expect
Section titled “What to expect”- Pricing: You pay API pricing for every request instead of a flat subscription, and there are no included quotas.
- Terms: Usage is covered by the Google Cloud Terms of Service, and Antigravity doesn’t collect telemetry.
- Models: Anthropic Claude models are available only if they’re enabled for your project. Antigravity hides partner models that your project can’t access.
Set up your Google Cloud project
Section titled “Set up your Google Cloud project”A project owner or administrator completes these steps once. You can sign in to the Google Cloud console with the same account you use for Antigravity.
- Select or create a project: Choose an existing Google Cloud project or create a new one.
- Turn on billing: Make sure the project is linked to an active Cloud Billing account.
- Enable the API: Enable the
Gemini Enterprise API
(
aiplatform.googleapis.com) in the project. - Grant access: Grant each developer the Agent Platform User
(
roles/aiplatform.user) IAM role on the project, or another role that includes theaiplatform.endpoints.predictpermission. - Enable partner models (optional): To use Anthropic Claude models, enable them in Model Garden for your project.
Sign in with your project
Section titled “Sign in with your project”Use Antigravity App v2.31.0 or later, or Antigravity CLI v1.4.11 or later.
Antigravity App
Section titled “Antigravity App”- Launch the Antigravity App and select Use Business Account. If you’ve signed in before, select Other sign-in options first.
- Select Continue with Google Cloud and sign in with your account in the browser.
- In Select Billing Model, select Pay As You Go.
- In Provide Google Cloud Project, enter your project ID.
- In Choose Region, select Global, United States, or Europe.
Antigravity CLI
Section titled “Antigravity CLI”- Run
agy. If you’re already signed in, run/logoutfirst. - In Select login method, select Use a Google Cloud project.
- Select Continue with Google Cloud and sign in with your account in the browser.
- In Select billing model, select Pay As You Go.
- Enter your project ID, then choose a region:
global,us, oreu.
To switch to a different project or region later, sign out and sign in again. For headless environments, you can authenticate with Application Default Credentials instead.
Troubleshooting
Section titled “Troubleshooting”- Permission
aiplatform.endpoints.predictdenied: Your account doesn’t have access to Agent Platform in the project. Ask a project administrator to grant you the Agent Platform User (roles/aiplatform.user) role, and check that billing and the Gemini Enterprise API are turned on. Refer to Set up your Google Cloud project. - Selected model is not supported in the selected location: Some models aren’t available in every region. Sign out and sign in again with a different region, or choose another model. Refer to Regional endpoints.
- A Claude model is missing: Antigravity only shows partner models that your project can access. Enable the model for your project in Model Garden.