[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Age Progression](https://spiral.ai/integrations/opencode/age-progression)

# How to Use Age Progression in opencode

Age Progression edits portraits to suggest an older or younger appearance. It focuses on changing apparent age while preserving core facial features.

|  |  |
| --- | --- |
| Model | Age Progression |
| Available through | fal |
| Category | Image |
| Price | $0.052 per image. |
| Returns | image |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Age Progression in opencode

- Use Age Progression on the protagonist portrait in this project with the instruction '20 years older.' Save the result beside the original for review.
- Use Age Progression on the project's adult character portrait to request an appearance 10 years younger. Add both portraits to a comparison page.
- Use Age Progression on the original character portrait for separate requests of 10, 20, and 30 years older. Build a labeled timeline for review.
- Use Age Progression on the project's portrait with '20 years older.' Compare two guidance settings while keeping the image and instruction unchanged.
- Use Age Progression on the adult antagonist portrait to explore a younger flashback appearance. Place the result in the storyboard for my review.

## How to set up Age Progression in opencode

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

### Use Spiral's MCP server

1. **Add the server**: Leave out `--global` to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

```bash
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
```

2. **Sign in**: Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, `/mcps` starts the same sign-in.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode 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 Age Progression**: 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/image-editing/age-progression",
    "input": {
      "image_url": "https://v3.fal.media/files/zebra/hAjCkcyly4gsS9-cptD3Y_image%20(20).png"
    }
  }'
```

Then paste one of the prompts above: opencode finds Age Progression on Spiral, shows the price and runs it.

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

## Age Progression tools and prices

- [Image Editing Age Progression](https://spiral.ai/tools/fal/fal-ai/image-editing/age-progression) (fal): $0.052 per image.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| guidance_scale | 0 to 20 | 3.5 | The CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt when looking for a related image to show you. |
| num_inference_steps | 1 to 50 | 30 | Number of inference steps for sampling. |
| safety_tolerance | 1, 2, 3, 4, 5, 6 | 2 | The safety tolerance level for the generated image. 1 being the most strict and 6 being the most permissive. |
| output_format | jpeg, png | jpeg | The format of the generated image. |
| aspect_ratio | 21:9, 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16, 9:21 | — | The aspect ratio of the generated image. |
| seed |  | — | The same seed and the same prompt given to the same version of the model will output the same image every time. |

## What can you do with Age Progression in opencode?

Create age studies for characters using portraits in your project. Organize the results beside the originals for review in a character sheet or storyboard.

### Film character aging

Use Age Progression on a character portrait to explore an older appearance for scenes set decades later.

### Flashback portrait concepts

Request a younger appearance with Age Progression to help plan a character's look in a flashback.

### Game character timelines

Apply separate age changes to a character portrait with Age Progression, then compare the results for a story spanning several decades.

### Makeup reference exploration

Use an older portrait interpretation from Age Progression as a starting point for discussing aging makeup with an artist.

### Personal portrait experiments

Explore a younger or older interpretation of your portrait with Age Progression and compare it with the original.

### Graphic novel character planning

Use Age Progression to explore how a portrait-based character could appear at different points in a graphic novel.

## Overview

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

## Age Progression in other agents

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

## More opencode guides

- [Age Modify](https://spiral.ai/integrations/opencode/age-modify)
- [BEN v2](https://spiral.ai/integrations/opencode/ben-v2)
- [851 Labs Background Remover](https://spiral.ai/integrations/opencode/851-labs-background-remover)
- [Baby Version](https://spiral.ai/integrations/opencode/baby-version)
- [gnomAD gene variation search](https://spiral.ai/integrations/opencode/gnomad-gene-variation-search)
- [Background Change](https://spiral.ai/integrations/opencode/background-change)

## Questions about Age Progression in opencode

**Can opencode use Age Progression?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Age Progression like any built-in tool.

**How much does Age Progression cost in opencode?**

$0.052 per image. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

**Do I need a fal account to use Age Progression in opencode?**

No. Spiral runs Age Progression on its own fal account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Age Progression in opencode?**

About two minutes: add the server, then sign in, then check it.

**Does opencode wait while Age Progression runs?**

Age Progression runs in the background. opencode starts the run, checks on it and gives you the image when it's ready.

**Can Age Progression make someone look younger?**

Yes. Age Progression supports both younger and older appearances.

**Will the person still look recognizable?**

Preserving core facial features is part of the stated purpose. Compare the result with the original before choosing an edit.

**How should I describe the age change?**

Start with a short, relative instruction such as '20 years older,' the documented example. Change the age instruction first when comparing results.

**Which setting affects how closely it follows my instruction?**

Guidance controls adherence to the prompt. Compare guidance settings while keeping the portrait and age instruction unchanged.

**Does Age Progression predict someone's actual future appearance?**

The maker describes how someone might look at another age. Treat the result as a visual interpretation when planning a character or exploring a portrait concept.

