Spiral gives your agent every tool with one account. Browse the tools →

opencode · Image

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.

Prompts to try with City Teleport in opencode

Copy an example into opencode, or ask in your own words.

Use City Teleport with the portrait in assets/portrait.png to create a Paris concept with medium framing at eye level.

City Teleportopencode
Try asking
  • 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.

    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.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    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.

    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.

    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.

City Teleport providers and prices

Spiral runs City Teleport through fal. Open a card for today's price, with every fee included.

falImage
City Teleport
fal-ai/image-apps-v2/city-teleport

Settings you can ask for

Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Photo shotextreme_close_up, close_up, medium_close_up, medium_shot, medium_long_shot, long_shot, extreme_long_shot, or full_bodymedium_shot

Type of photo shot

Camera angleeye_level, low_angle, high_angle, dutch_angle, birds_eye_view, worms_eye_view, overhead, or side_angleeye_level

Camera angle for the shot

Every API field of City Teleport is on its tool page: open its card above.

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.

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.

Get started

Start using City Teleport in opencode

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into opencode:

Set up opencode

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options