[Integrations](https://spiral.ai/integrations) › [Gemini](https://spiral.ai/integrations/gemini) › [ACE-Step Audio Outpaint](https://spiral.ai/integrations/gemini/ace-step-audio-outpaint)

# How to Use ACE-Step Audio Outpaint in Gemini

ACE-Step Audio Outpaint adds an intro, outro, or continuation to existing music using style instructions and optional lyrics. Use it to lengthen a cue or develop a song sketch, then audition the join for abrupt transitions.

|  |  |
| --- | --- |
| Model | ACE-Step Audio Outpaint |
| Available through | fal |
| Category | Audio |
| Price | Up to $0.0156 per run at the default inputs for 60 seconds of input. |
| Returns | audio |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with ACE-Step Audio Outpaint in Gemini

- Use ACE-Step Audio Outpaint to add 20 seconds to the end of the attached instrumental clip. Request mellow jazz with brushed drums, upright bass, and soft piano for a cooking video.
- Use ACE-Step Audio Outpaint to add a 10-second instrumental opening before the attached podcast theme. Request warm acoustic guitar and light percussion.
- Use ACE-Step Audio Outpaint to add a 15-second ending to the attached documentary cue. Request sparse piano and quiet strings with no singing.
- Use ACE-Step Audio Outpaint to continue the attached song demo for 20 seconds. Request gentle acoustic folk and sing this chorus: We follow the river / We carry the light.
- Use ACE-Step Audio Outpaint to make three 20-second endings for the attached ambient clip. Keep the same soft synth and piano description, change the random seed for each attempt, and present the results for comparison.

## How to set up ACE-Step Audio Outpaint in Gemini

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

### Use the Gemini connector

1. **Open Connected Apps**: On your computer, go to gemini.google.com. At the bottom, click Settings › Connected Apps. If you don't see Connected Apps, click Personal Intelligence first, then Connected Apps.

2. **Add Spiral as a custom app**: Under Custom apps, click Add a custom app and paste this MCP server URL:

```text
https://api.spiral.ai/mcp
```

3. **Sign in to Spiral and approve**: Follow the on-screen instructions. Spiral opens: sign in, pick the organization and click Authorize. No API key.

### Use the Spiral skill

1. **Send Gemini 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 ACE-Step Audio Outpaint**: 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/ace-step/audio-outpaint",
    "input": {
      "audio_url": "https://storage.googleapis.com/falserverless/example_inputs/ace-step-audio-to-audio.wav",
      "tags": "lofi, hiphop, drum and bass, trap, chill"
    }
  }'
```

Then paste one of the prompts above: Gemini finds ACE-Step Audio Outpaint on Spiral, shows the price and runs it.

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

## ACE-Step Audio Outpaint tools and prices

- [ACE Step Extend · Audio Outpaint](https://spiral.ai/tools/fal/fal-ai/ace-step/audio-outpaint) (fal): $0.00026 per second.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| extend_before_duration | 0 to 107 | 0 | Duration in seconds to extend the audio from the start. |
| extend_after_duration | 0 to 107 | 30 | Duration in seconds to extend the audio from the end. |
| lyrics |  |  | Lyrics to be sung in the audio. If not provided or if [inst] or [instrumental] is the content of this field, no lyrics will be sung. Use control structures like [verse], [chorus] and [bridge] to control the structure of the song. |
| number_of_steps | 3 to 60 | 27 | Number of steps to generate the audio. |
| seed |  | — | Random seed for reproducibility. If not provided, a random seed will be used. |
| scheduler | euler, heun | euler | Scheduler to use for the generation process. |

## What can you do with ACE-Step Audio Outpaint in Gemini?

Turn an existing music clip into a longer cue or a song demo with another section. A chat app can translate your description of the scene into musical instructions and help you compare the results.

### Longer video music cues

Extend an existing instrumental cue to cover an extra scene. Describe the instruments and mood you want in the added section.

### Podcast opening music

Add a short instrumental lead-in before an existing theme so the host has room for an opening line.

### Closing credits music

Add an outro to an existing score sketch. Request a quieter arrangement for the credits and review the result against the edit.

### Songwriting continuations

Continue a recorded song sketch with a proposed verse or chorus. Supply the new lyrics and audition the musical direction.

### Game scene music drafts

Lengthen an existing ambient cue for a menu, exploration scene, or dialogue sequence. Review the continuation in the game before accepting it.

### Presentation background music

Extend an existing instrumental bed to cover another slide sequence or a longer product demonstration.

### Alternate musical endings

Generate several continuations from the same source and brief, changing the random seed between attempts. Compare the endings before choosing one.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All Gemini guides](https://spiral.ai/integrations/gemini)

## ACE-Step Audio Outpaint in other agents

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

## More Gemini guides

- [ACE-Step Audio Inpaint](https://spiral.ai/integrations/gemini/ace-step-audio-inpaint)
- [ACE-Step Audio to Audio](https://spiral.ai/integrations/gemini/ace-step-audio-to-audio)
- [xAI](https://spiral.ai/integrations/gemini/xai)
- [ACE-Step Lyrics to Audio](https://spiral.ai/integrations/gemini/ace-step-lyrics-to-audio)
- [Vizard](https://spiral.ai/integrations/gemini/vizard)
- [ACE-Step Prompt to Audio](https://spiral.ai/integrations/gemini/ace-step-prompt-to-audio)

## Questions about ACE-Step Audio Outpaint in Gemini

**Can Gemini use ACE-Step Audio Outpaint?**

Yes. Add Spiral to Gemini as an MCP server, and Gemini can find and run ACE-Step Audio Outpaint like any built-in tool.

**How much does ACE-Step Audio Outpaint cost in Gemini?**

Up to $0.0156 per run at the default inputs for 60 seconds of input. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Gemini plan is separate.

**Do I need a fal account to use ACE-Step Audio Outpaint in Gemini?**

No. Spiral runs ACE-Step Audio Outpaint on its own fal account. You sign in to Spiral once and never paste a key.

**How long does it take to set up ACE-Step Audio Outpaint in Gemini?**

About two minutes: open Connected Apps, then add Spiral as a custom app, then sign in to Spiral and approve.

**Does Gemini wait while ACE-Step Audio Outpaint runs?**

ACE-Step Audio Outpaint runs in the background. Gemini starts the run, checks on it and gives you the audio when it's ready.

**What is ACE-Step Audio Outpaint useful for?**

It adds music before or after an existing recording. Useful starting points include a longer video cue, a podcast intro, or another section of a song demo.

**How should I describe the extension?**

Give a focused musical description: genre, instruments, mood, and intended use. For example, try “ambient, soft piano, warm pads, quiet documentary ending.”

**Can I request instrumental music or sung lyrics?**

Yes. Use [inst] or [instrumental] for instrumental music, or supply lyrics with section markers such as [verse] and [chorus].

**Which languages should I try first?**

The maker lists English, Chinese, Russian, Spanish, Japanese, German, French, Portuguese, Italian, and Korean among its better-performing languages. Audition pronunciation and lyric delivery before using a vocal extension.

**Why do some attempts sound better than others?**

The model card warns that results are sensitive to random seeds and input duration. Compare a few attempts before rewriting the whole musical brief.

