[Integrations](https://spiral.ai/integrations) › [Claude](https://spiral.ai/integrations/claude-desktop) › [HunyuanImage 2.1](https://spiral.ai/integrations/claude-desktop/hunyuanimage-2-1)

# How to Use HunyuanImage 2.1 in Claude

HunyuanImage 2.1 turns detailed text descriptions into 2K images for illustrations, photographic concepts, and poster drafts. It supports Chinese and English prompts, with an optional refiner to improve clarity and reduce artifacts.

|  |  |
| --- | --- |
| Model | HunyuanImage 2.1 |
| Available through | fal |
| Category | Image |
| Price | $0.13 per megapixel. `image_size` presets count as 1 MP; custom sizes round up to whole megapixels. Billed on `num_images`, default 1. |
| Returns | image |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with HunyuanImage 2.1 in Claude

- Use HunyuanImage 2.1 to create a 2048 × 2048 photographic concept of a handmade ceramic teapot on dark linen, soft window light from the left, close framing, and visible clay texture.
- Use HunyuanImage 2.1 for a square poster draft at 2048 × 2048: a small bookstore at dusk, warm windows, dark green storefront, and the words 'OPEN LATE' above the door.
- Use HunyuanImage 2.1 to illustrate this idea at 2048 × 2048: saving time feels like finding an extra hour. Show a gardener resting beside an oversized clock, in a painted editorial style.
- Use HunyuanImage 2.1 to generate 2560 × 1536 landscape artwork of a quiet mountain observatory at dawn. Put the building on the right, leave open sky on the left, and enable refinement.
- Use HunyuanImage 2.1 with this Chinese prompt at 2048 × 2048: 雨后的江南小巷，一位穿黄色雨衣的人站在石桥上，远处是白墙黑瓦，柔和晨光，水彩插画。

## How to set up HunyuanImage 2.1 in Claude

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

### Use the Claude connector

1. **Add Spiral to Claude**: Click Add Spiral in Claude above. Claude opens Add custom connector with Spiral and its URL filled in; check them and click Continue. Without the link: in Claude open Customize › Connectors › Add › Add custom connector and paste this URL:

```text
https://api.spiral.ai/mcp
```

2. **Keep the detected sign-in and click Add**: Claude finds Spiral's sign-in by itself: leave Sign in now and Use Claude's published identity selected.

3. **Click Connect**: The connector page opens. Connect takes you to Spiral in your browser.

### Use the Spiral skill

1. **Send Claude 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 HunyuanImage 2.1**: 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/hunyuan-image/v2.1/text-to-image",
    "input": {
      "prompt": "A cute, cartoon-style anthropomorphic penguin plush toy, standing in a painting studio, wearing a red knitted scarf and beret."
    }
  }'
```

Then paste one of the prompts above: Claude finds HunyuanImage 2.1 on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/claude-desktop

## HunyuanImage 2.1 tools and prices

- [Hunyuan Image](https://spiral.ai/tools/fal/fal-ai/hunyuan-image/v2.1/text-to-image) (fal): $0.13 per megapixel. `image_size` presets count as 1 MP; custom sizes round up to whole megapixels. Billed on `num_images`, default 1.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| negative_prompt |  |  | The negative prompt to guide the image generation away from certain concepts. |
| image_size |  | square_hd | The desired size of the generated image. |
| num_images | 1 to 4 | 1 | The number of images to generate. |
| num_inference_steps | 1 to 50 | 28 | Number of denoising steps. |
| guidance_scale | 1 to 20 | 3.5 | Controls how much the model adheres to the prompt. Higher values mean stricter adherence. |
| seed |  | — | Random seed for reproducible results. If None, a random seed is used. |

## What can you do with HunyuanImage 2.1 in Claude?

Turn a written idea into photographic concepts, illustrations, or poster drafts with HunyuanImage 2.1. Use the conversation to specify composition, lighting, and style before generating 2K artwork.

### Article illustrations

Turn an article's central idea into a 2K illustration. Specify a concrete visual metaphor, the main subject, and space for a headline added during layout.

### Photographic campaign concepts

Explore a proposed scene before arranging a shoot. Describe the setting, camera viewpoint, materials, and light so a reviewer can judge the direction.

### Poster drafts

Develop poster concepts with a short headline integrated into the artwork. Review the generated lettering before using the design.

### Website artwork

Create landscape artwork for a page header from a written design brief. Define the focal point and leave a quiet area for interface text.

### Character concept illustrations

Explore a character's clothing, expression, pose, and setting through detailed descriptions. Use the results as concepts for an illustrator to assess.

### Abstract cover artwork

Develop cover concepts built from geometric shapes, materials, and a specified palette. Generate square artwork at 2048 × 2048.

### Chinese-language creative briefs

Write the scene directly in Chinese to develop illustrations or campaign concepts. Specify visual details in the original brief rather than translating it first.

## Overview

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

## HunyuanImage 2.1 in other agents

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

## More Claude guides

- [HiDream O1 Image Edit](https://spiral.ai/integrations/claude-desktop/hidream-o1-image-edit)
- [HunyuanImage 3.0](https://spiral.ai/integrations/claude-desktop/hunyuanimage-3-0)
- [HiDream O1 Image Dev Edit](https://spiral.ai/integrations/claude-desktop/hidream-o1-image-dev-edit)
- [Ideogram 2.0](https://spiral.ai/integrations/claude-desktop/ideogram-2-0)
- [HiDream O1 Image Dev](https://spiral.ai/integrations/claude-desktop/hidream-o1-image-dev)
- [Ideogram 2.0 Edit](https://spiral.ai/integrations/claude-desktop/ideogram-2-0-edit)

## Questions about HunyuanImage 2.1 in Claude

**Can Claude use HunyuanImage 2.1?**

Yes. Add Spiral to Claude as an MCP server, and Claude can find and run HunyuanImage 2.1 like any built-in tool.

**How much does HunyuanImage 2.1 cost in Claude?**

$0.13 per megapixel. `image_size` presets count as 1 MP; custom sizes round up to whole megapixels. 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 Claude plan is separate.

**Do I need a fal account to use HunyuanImage 2.1 in Claude?**

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

**How long does it take to set up HunyuanImage 2.1 in Claude?**

About two minutes: add Spiral to Claude, then keep the detected sign-in and click Add, then click Connect.

**Does Claude wait while HunyuanImage 2.1 runs?**

HunyuanImage 2.1 runs in the background. Claude starts the run, checks on it and gives you the image when it's ready.

**What is HunyuanImage 2.1 useful for?**

Use it for photographic concepts, digital illustrations, abstract artwork, and poster drafts with text. Tencent demonstrates these styles with prompt enhancement enabled.

**What resolution should I generate?**

Generate at the documented 2K sizes, such as 2048 × 2048 for square artwork or 2560 × 1536 for landscape compositions. Tencent warns that 1K generation produces artifacts.

**Can I write prompts in Chinese?**

Yes. HunyuanImage 2.1 natively supports both Chinese and English prompts.

**How should I write a useful prompt?**

Describe the subject, its appearance, placement, surroundings, lighting, and visual style. Favor a precise scene description over a short string of adjectives.

**When should I enable the refiner?**

Enable it when clarity and artifact reduction matter, such as when preparing a selected concept for review. Tencent describes it as a second stage that improves image quality and clarity.

