How to Use Age Modify in opencode
Age Modify makes a portrait look younger or older while aiming to keep the person recognizable. Use it for character age studies, casting concepts, and imagined portraits at different ages.
Prompts to try with Age Modify in opencode
Copy an example into opencode, or ask in your own words.
Use Age Modify on assets/character.png at ages 25, 45, and 65, with identity preservation enabled. Build a labeled comparison page beside the original.
Use Age Modify on assets/actor.jpg at age 70 for a casting concept. Keep identity preservation enabled and save the result with the source portrait.
Use Age Modify on assets/test-portrait.png at ages 30 and 60. Add both results to the photo editor's demo gallery with age labels.
Use Age Modify on assets/performer.jpg at age 75. Create a review page where I can compare the edit with the original for makeup planning.
Use Age Modify on assets/avatar.png at age 50. Inspect the returned image dimensions and size the preview to fit without stretching.
How to set up Age Modify in opencode
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- 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.
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
- 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.
opencode mcp auth spiral
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run Age Modify
One request; the result comes back by polling or a webhook.
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-apps-v2/age-modify", "input": { "image_url": "https://v3.fal.media/files/lion/s2GShUC7AB9i-ypYV0DbI_1b5ca4fe5d7e477fb4501acf9a1c43bc.png" } }'
Then paste one of the prompts above: opencode finds Age Modify on Spiral, shows the price and runs it.
Age Modify providers and prices
Spiral runs Age Modify through fal. Open a card for today's price, with every fee included.
Settings you can ask for
Age Modify works from your image URL. Ask opencode for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Target age | 6 to 100 | 30 | |
| Preserve identity | on or off | on |
Every API field of Age Modify is on its tool page: open its card above.
What can you do with Age Modify in opencode?
Create portrait age studies for character references and photo-editing prototypes. A coding agent can use project images and organize the results into a comparison page.
Character age studies
Use Age Modify on a character portrait to explore appearances at 25, 45, and 65 for a story spanning decades.
Casting concepts
Use Age Modify on an actor's portrait to sketch an older or younger appearance for a role.
Makeup planning
Use Age Modify on a performer's portrait to create an age reference for discussion with a makeup artist.
Imagined future portraits
Use Age Modify on your portrait to explore an imagined appearance at 60 or 80.
Portrait comparison posts
Use Age Modify to create younger and older edits from one portrait, then arrange them beside the original.
Age-editing app prototypes
Use Age Modify with a test portrait to demonstrate age choices in a photo-editing product.
More on Age Modify and opencode
Overview
Age Modify in other agents
Questions about Age Modify in opencode
Can opencode use Age Modify?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Age Modify like any built-in tool.
How much does Age Modify 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 Modify in opencode?
No. Spiral runs Age Modify 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 Modify in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while Age Modify runs?
Age Modify runs in the background. opencode starts the run, checks on it and gives you the image when it's ready.
Can Age Modify make someone look younger and older?
Yes. It edits a portrait toward a target age in either direction.
What should I start with?
Start with a portrait of the person you want to age. The documented task is portrait editing.
Will the person still look recognizable?
Keeping identity realistic is a stated aim, and identity preservation is available. Review the result against the original before choosing an edit.
What resolution does Age Modify produce?
The documentation describes 4K output but does not give exact pixel dimensions. Check the returned image before planning a layout that needs a specific size.
Can Age Modify show exactly how I will look in the future?
Treat the result as an imagined appearance. That recommendation follows from the maker's description of a visual age edit.
Start using Age Modify in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


