[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [City Teleport](https://spiral.ai/integrations/opencode/city-teleport)

# How to Use City Teleport in opencode

City Teleport places a person from a photo into a city setting for travel portraits and destination concepts. Use a city name for the setting or supply a background image for a specific scene.

|  |  |
| --- | --- |
| Model | City Teleport |
| 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 City Teleport in opencode

- Use City Teleport with the portrait in assets/portrait.png to create a Paris concept with medium framing at eye level.
- Use City Teleport to combine assets/portrait.png with assets/city-street.jpg for a destination page concept.
- Use City Teleport with assets/portrait.png in Tokyo. Compare medium and long shots while keeping the camera at eye level.
- Use City Teleport with assets/portrait.png in Rome. Create an eye-level view and a low-angle view for review.
- Use City Teleport with assets/speaker.png in Chicago to draft the city portrait for our event page.

## How to set up City Teleport 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 City Teleport**: 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-apps-v2/city-teleport",
    "input": {
      "person_image_url": "https://v3.fal.media/files/kangaroo/qsFWu-bO3FwcTQSym9HeL_e52f70668f2940a3b4ea2cab54fcb65b.png",
      "city_name": "Paris"
    }
  }'
```

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

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

## City Teleport tools and prices

- [City Teleport](https://spiral.ai/tools/fal/fal-ai/image-apps-v2/city-teleport) (fal): $0.052 per image.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| city_image_url |  | — | Optional city background image URL. When provided, the person will be blended into this custom scene. |
| photo_shot | extreme_close_up, close_up, medium_close_up, medium_shot, medium_long_shot, long_shot, extreme_long_shot, full_body | medium_shot | Type of photo shot |
| camera_angle | eye_level, low_angle, high_angle, dutch_angle, birds_eye_view, worms_eye_view, overhead, side_angle | eye_level | Camera angle for the shot |
| aspect_ratio |  | — | Aspect ratio for 4K output |

## What can you do with City Teleport in opencode?

Create city portrait concepts for a project's travel pages or campaign mockups. A coding agent can use project images and organize the results for comparison.

### Destination portrait concepts

Place a portrait in a proposed destination to develop the visual direction for a travel story.

### Travel campaign mockups

Use a spokesperson's photo to draft city campaign images for review before a location shoot.

### Trip wish lists

Turn a personal portrait and a destination list into pictures for a travel wish list.

### Specific location concepts

Combine a person's photo with a supplied city background to explore a particular setting.

### City event artwork drafts

Place a speaker's portrait in the host city for an event artwork concept.

### Portrait composition studies

Keep the person and city fixed while comparing framing and camera viewpoints for a portrait series.

## Overview

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

## City Teleport in other agents

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

## More opencode guides

- [Chromatic Aberration](https://spiral.ai/integrations/opencode/chromatic-aberration)
- [Clarity Upscaler](https://spiral.ai/integrations/opencode/clarity-upscaler)
- [Cartoonify](https://spiral.ai/integrations/opencode/cartoonify)
- [CodeFormer](https://spiral.ai/integrations/opencode/codeformer)
- [Broccoli Haircut](https://spiral.ai/integrations/opencode/broccoli-haircut)
- [Color Tint](https://spiral.ai/integrations/opencode/color-tint)

## Questions about City Teleport in opencode

**Can opencode use City Teleport?**

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

**How much does City Teleport 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 City Teleport in opencode?**

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

**How long does it take to set up City Teleport in opencode?**

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

**Does opencode wait while City Teleport runs?**

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

**What is City Teleport useful for?**

City Teleport places a photographed person into a city setting. Try it for destination portraits, travel campaign concepts, or illustrated trip wish lists.

**Does the city name matter when I supply a background?**

The documentation says the city name is used when no city background image is supplied. For a specific scene, provide the background you want to use.

**What resolution does City Teleport produce?**

The documentation describes 4K output. Check the returned image dimensions before preparing a final layout.

**How should I approach composition?**

Choose the framing and camera angle deliberately. To compare results, keep the portrait and destination fixed while changing one composition choice at a time.

