[Integrations](https://spiral.ai/integrations) › [Google Antigravity](https://spiral.ai/integrations/antigravity) › [Z-Image Base LoRA](https://spiral.ai/integrations/antigravity/z-image-base-lora)

# How to Use Z-Image Base LoRA in Google Antigravity

Z-Image Base LoRA generates images from text while applying compatible custom LoRA weights. Unlike Z-Image Base, it lets you bring a trained visual treatment into the generation.

|  |  |
| --- | --- |
| Model | Z-Image Base LoRA |
| Available through | fal |
| Category | Image |
| Price | $0.0156 per megapixel. `image_size` presets count as 1 MP; custom sizes round up to whole megapixels. Billed on `num_images`, default 1. |
| Returns | image |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Z-Image Base LoRA in Google Antigravity

- Read the article draft in this project. Use Z-Image Base LoRA with the compatible style LoRA selected for this project to create a 1024 × 1024 cover illustration of its central idea, excluding text and watermarks.
- Generate a product photo with Z-Image Base LoRA: a matte black water bottle on wet slate, soft morning light, 1:1. Tell me the price first. Save the result in ./assets.
- Make four logo concepts for a coffee brand called "Northline" with Z-Image Base LoRA.
- Create a 16:9 hero image of a quiet mountain cabin at dusk with Z-Image Base LoRA.
- Generate a 9:16 poster with Z-Image Base LoRA for a jazz night called "Blue Hour", deep navy and brass tones.

## How to set up Z-Image Base LoRA in Google Antigravity

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Open the MCP config**: * Antigravity App: click Customizations, then Installed. In the MCP Servers section, click Copy Config File Path and open that file. * Antigravity IDE: click … at the top of the agent side panel, select MCP Servers, then Manage MCP Servers › View raw config. * Antigravity CLI: edit `~/.gemini/config/mcp_config.json`.

2. **Add the server**: Add Spiral under `mcpServers`:

```json
{
  "mcpServers": {
    "spiral": {
      "serverUrl": "https://api.spiral.ai/mcp"
    }
  }
}
```

3. **Sign in**: In the Antigravity App, open Customizations › Installed. Under MCP Servers, click Authenticate next to Spiral. Sign in to Spiral, pick the organization and click Authorize. Copy the authorization code the browser shows, paste it into Enter authorization code and click Submit. No API key.

### Use the Spiral skill

1. **Send Google Antigravity this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Z-Image Base LoRA**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "fal",
    "model": "fal-ai/z-image/base/lora",
    "input": {
      "prompt": "Grandmother knitting by a window, an empty chair by her"
    }
  }'
```

Then paste one of the prompts above: Google Antigravity finds Z-Image Base LoRA on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/antigravity

## Z-Image Base LoRA tools and prices

- [Z Image Base Lora · Text to Image](https://spiral.ai/tools/fal/fal-ai/z-image/base/lora) (fal): $0.0156 per megapixel. `image_size` presets count as 1 MP; custom sizes round up to whole megapixels. Billed on `num_images`, default 1.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| image_size |  | landscape_4_3 | The size of the generated image. |
| num_inference_steps | 1 to 50 | 28 | The number of inference steps to perform. |
| guidance_scale | 1 to 20 | 4 | The guidance scale to use for the image generation. |
| seed |  | — | The same seed and the same prompt given to the same version of the model will output the same image every time. |
| num_images | 1 to 4 | 1 | The number of images to generate. |
| output_format | jpeg, png, webp | png | The format of the generated image. |

## What can you do with Z-Image Base LoRA in Google Antigravity?

Create artwork that fits the product you are building, from editorial images to onboarding illustrations. A coding agent can turn project copy and layout requirements into concrete image briefs and compare the results.

### Article illustrations

Turn an article's central idea into a photographic scene or stylized illustration. Specify one clear subject and leave space for a headline added during layout.

### Product concept images

Explore an imagined product's materials, lighting, and setting before arranging a photo shoot. Describe the object from text and compare several compositions.

### Character design exploration

Compare fictional characters with different clothing, poses, and visual treatments. Use the results to choose an art direction.

### Environment concept art

Develop settings for a game or story by specifying architecture, weather, viewpoint, and time of day. Compare photographic and illustrated treatments.

### Campaign mood boards

Explore a campaign brief through scenes with different compositions, lighting, and artistic styles. Select a direction before producing finished campaign assets.

### Website artwork

Generate editorial images for landing pages, onboarding screens, or empty states. Describe the required composition and keep interface text separate.

### Presentation cover art

Create a visual metaphor for a presentation, such as a bridge for collaboration or a greenhouse for growth. Reserve an uncluttered area for the slide title.

### Artwork with a trained style

Apply a compatible style LoRA to new scenes described in text. Use this when you already have trained weights for the visual treatment you want.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All Google Antigravity guides](https://spiral.ai/integrations/antigravity)

## Z-Image Base LoRA in other agents

- [Amp](https://spiral.ai/integrations/amp/z-image-base-lora)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/z-image-base-lora)
- [Claude](https://spiral.ai/integrations/claude-desktop/z-image-base-lora)
- [Claude Code](https://spiral.ai/integrations/claude-code/z-image-base-lora)
- [Cline](https://spiral.ai/integrations/cline/z-image-base-lora)
- [Codex](https://spiral.ai/integrations/codex/z-image-base-lora)
- [Cursor](https://spiral.ai/integrations/cursor/z-image-base-lora)
- [Devin](https://spiral.ai/integrations/devin/z-image-base-lora)
- [dots](https://spiral.ai/integrations/dots/z-image-base-lora)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/z-image-base-lora)
- [Gemini](https://spiral.ai/integrations/gemini/z-image-base-lora)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/z-image-base-lora)
- [goose](https://spiral.ai/integrations/goose/z-image-base-lora)
- [Grok](https://spiral.ai/integrations/grok/z-image-base-lora)
- [Grok Build](https://spiral.ai/integrations/grok-build/z-image-base-lora)
- [Hermes](https://spiral.ai/integrations/hermes/z-image-base-lora)
- [Instinct](https://spiral.ai/integrations/instinct/z-image-base-lora)
- [Manus](https://spiral.ai/integrations/manus/z-image-base-lora)
- [Muse](https://spiral.ai/integrations/muse/z-image-base-lora)
- [Muse Code](https://spiral.ai/integrations/muse-code/z-image-base-lora)
- [n8n](https://spiral.ai/integrations/n8n/z-image-base-lora)
- [Notion](https://spiral.ai/integrations/notion/z-image-base-lora)
- [OpenClaw](https://spiral.ai/integrations/openclaw/z-image-base-lora)
- [opencode](https://spiral.ai/integrations/opencode/z-image-base-lora)
- [Perplexity](https://spiral.ai/integrations/perplexity/z-image-base-lora)
- [Raycast](https://spiral.ai/integrations/raycast/z-image-base-lora)
- [VS Code](https://spiral.ai/integrations/vscode/z-image-base-lora)
- [Windsurf](https://spiral.ai/integrations/windsurf/z-image-base-lora)
- [Zapier](https://spiral.ai/integrations/zapier/z-image-base-lora)

## More Google Antigravity guides

- [Z-Image Base](https://spiral.ai/integrations/antigravity/z-image-base)
- [Z-Image Turbo](https://spiral.ai/integrations/antigravity/z-image-turbo)
- [YouTube Thumbnails](https://spiral.ai/integrations/antigravity/youtube-thumbnails)
- [Z-Image Turbo LoRA](https://spiral.ai/integrations/antigravity/z-image-turbo-lora)
- [Wojak Style](https://spiral.ai/integrations/antigravity/wojak-style)
- [fal Blur](https://spiral.ai/integrations/antigravity/fal-blur)

## Questions about Z-Image Base LoRA in Google Antigravity

**Can Google Antigravity use Z-Image Base LoRA?**

Yes. Add Spiral to Google Antigravity as an MCP server, and Google Antigravity can find and run Z-Image Base LoRA like any built-in tool.

**How much does Z-Image Base LoRA cost in Google Antigravity?**

$0.0156 per megapixel. `image_size` presets count as 1 MP; custom sizes round up to whole megapixels. Billed on `num_images`, default 1. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Google Antigravity plan is separate.

**Do I need a fal account to use Z-Image Base LoRA in Google Antigravity?**

No. Spiral runs Z-Image Base LoRA on its own fal account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Z-Image Base LoRA in Google Antigravity?**

About two minutes: open the MCP config, then add the server, then sign in.

**Does Google Antigravity wait while Z-Image Base LoRA runs?**

Z-Image Base LoRA runs in the background. Google Antigravity starts the run, checks on it and gives you the image when it's ready.

**What is Z-Image Base good at?**

Z-Image Base suits photographic scenes, stylized artwork, and exploring different compositions. Use it when you want several visual directions from a written brief.

**What image resolution should I use?**

The maker recommends total image areas equivalent to 512 × 512 through 2048 × 2048 pixels, with any aspect ratio. A 1024 × 1024 image is a practical starting point within that range.

**Which guidance and step settings should I start with?**

Start with guidance 4 and 28 steps, then compare the result with 50 steps. Both sit within the maker's recommended ranges of guidance 3 to 5 and 28 to 50 steps.

**How should I use negative prompts?**

Describe the scene you want in the main prompt and put unwanted elements in the negative prompt. For a clean product concept, try excluding text, watermarks, and background clutter.

**Should I turn guidance up when the image misses my brief?**

Try making the subject, placement, and lighting more explicit first. Higher guidance can strengthen prompt adherence, but it can also reduce image quality; start within the recommended 3 to 5 range.

