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

opencode · ImageReleased 2025-03-16

How to Use Sana 1.5 1.6B in opencode

Sana 1.5 1.6B turns written briefs into illustrations and image concepts, with outputs up to 4K. It uses 1.6 billion parameters, compared with Sana 1.5 4.8B's 4.8 billion.

Prompts to try with Sana 1.5 1.6B in opencode

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

Read the homepage copy and design tokens, then use Sana 1.5 1.6B to create a hero illustration of a small greenhouse at dawn. Match the project's colors, place the greenhouse on the right, and leave the left side empty for HTML text.

Sana 1.5 1.6Bopencode
Try asking
  • Use Sana 1.5 1.6B to generate a 1024 by 1024 illustration for this app's empty library screen: a wooden shelf with one closed book, soft side lighting, muted green and brown colors, no lettering. Add it to the existing empty state.

  • Read the game's location brief and use Sana 1.5 1.6B to create a Digital Art concept of its abandoned mountain observatory. Describe the stone walls, copper telescope, snow, and doorway placement explicitly.

  • Use Sana 1.5 1.6B to create cover artwork for the sample story in this repository: a red canoe beside a misty pine forest lake. Keep the upper third clear and render the title separately in the page.

  • Use Sana 1.5 1.6B to generate a square concept image of an invented desk lamp with a ribbed ceramic base and a linen shade. Save the prompt with the asset so we can compare future design changes.

How to set up Sana 1.5 1.6B 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 Sana 1.5 1.6B

    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/sana/v1.5/1.6b",
        "input": {
          "prompt": "Underwater coral reef ecosystem during peak bioluminescent activity, multiple layers of marine life - from microscopic plankton to massive coral structures,…"
        }
      }'

Then paste one of the prompts above: opencode finds Sana 1.5 1.6B on Spiral, shows the price and runs it.

Sana 1.5 1.6B providers and prices

Spiral runs Sana 1.5 1.6B through fal. Open a card for today's price, with every fee included.

falImage
Sana v1.5 1.6B · Text to Image
fal-ai/sana/v1.5/1.6b

Settings you can ask for

Sana 1.5 1.6B works from your prompt. Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Negative promptwhat to leave out, in words

The negative prompt to use. Use it to address details that you don't want

in the image. This could be colors, objects, scenery and even the small details

(e.g. moustache, blurry, low resolution).

Number of inference steps1 to 5018

The number of inference steps to perform.

Seeda whole number

The same seed and the same prompt given to the same version of the model

will output the same image every time.

Guidance scale (CFG)0 to 205

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.

Number of images1 to 41

The number of images to generate.

Output formatjpeg or pngjpeg

The format of the generated image.

Style name(No style), Cinematic, Photographic, Anime, Manga, Digital Art, Pixel art, Fantasy art and 2 more(No style)

The style to generate the image in.

Every API field of Sana v1.5 1.6B · Text to Image is on its tool page: open its card above.

What can you do with Sana 1.5 1.6B in opencode?

Create illustrations and concept images while building a website or app. A coding agent can turn the project's design notes into visual briefs and place selected artwork in the interface.

Website hero artwork

Generate a scene from a written brief, placing the subject to one side and leaving room for a headline added during layout.

Editorial illustration

Turn an article's central idea into a visual metaphor, such as a greenhouse representing steady business growth.

Game environment concepts

Explore written descriptions of locations, including their architecture, weather, lighting, and materials.

Fictional product concepts

Sketch ideas for an invented lamp, chair, or vessel by describing its shape, surface, color, and setting.

Book cover artwork

Create an illustrated setting or symbolic object from a story brief. Reserve space for the title and add the lettering separately.

Classroom story illustrations

Illustrate fictional scenes for writing exercises, then have students describe the setting or invent what happens next.

Campaign art direction

Explore different materials, palettes, and compositions for a campaign before selecting a direction for production.

Questions about Sana 1.5 1.6B in opencode

Can opencode use Sana 1.5 1.6B?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Sana 1.5 1.6B like any built-in tool.

How much does Sana 1.5 1.6B cost in opencode?

$0.00975 per megapixel. `image_size` presets count as 1 MP; custom sizes round up to whole megapixels. Default 8 MP per image. Billed on `num_images`, default 1. 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 Sana 1.5 1.6B in opencode?

No. Spiral runs Sana 1.5 1.6B on its own fal account. You sign in to Spiral once and never paste a key.

How long does it take to set up Sana 1.5 1.6B in opencode?

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

Does opencode wait while Sana 1.5 1.6B runs?

Sana 1.5 1.6B runs in the background. opencode starts the run, checks on it and gives you the image when it's ready.

What image resolution can Sana 1.5 1.6B produce?

Sana 1.5 1.6B supports output up to 4K. Start with a smaller draft to judge the composition before requesting the final image.

Can Sana 1.5 1.6B generate readable text inside an image?

Complex readable text is a documented weakness. Generate the artwork with space for a headline, then add the lettering in your layout tool.

How reliable are realistic people and hands?

The maker documents imperfect photorealism and errors in fingers. Inspect portraits and visible hands before using an image.

How should I write a Sana 1.5 prompt?

Describe the subject, colors, materials, and where objects sit relative to each other. Use concrete visual details, such as a small red ceramic bowl beside a tall clear glass.

Should I increase guidance when the image misses my prompt?

Higher guidance encourages closer prompt adherence, but it can reduce image quality. Try a small increase and compare the result before pushing it further.

Get started

Start using Sana 1.5 1.6B 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