[Integrations](https://spiral.ai/integrations) › [Devin](https://spiral.ai/integrations/devin) › [PuLID Flux](https://spiral.ai/integrations/devin/pulid-flux)

# How to Use PuLID Flux in Devin

PuLID Flux creates new portraits from a reference face and a text description, including photographic and illustrated treatments. It adds identity preservation to FLUX.1 dev without training a model for each person.

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

## Prompts to try with PuLID Flux in Devin

- Use PuLID Flux with the reference portrait in this project's assets to create a headshot for the speaker page. Match the page's visual direction, use soft window light, and show me the result before replacing the current image.
- Use PuLID Flux with the project's reference face to create a 1280 by 720 banner concept. Place the person on the right, leave the left side uncluttered for HTML text, and use a plain studio background.
- Use PuLID Flux with the reference portrait in the project to create a comic profile image. Frame the head and shoulders centrally and follow the colors described in our design notes.
- Use PuLID Flux to make a portrait lighting study from the project's reference photo: soft daylight, candlelight, and direct studio light. Save each result separately for review.
- Use PuLID Flux with the project's reference portrait to compare ordinary guidance against true CFG for an illustrated avatar. For the true CFG test, set true_cfg to 2 and guidance_scale to 1; record the settings with each image.

## How to set up PuLID Flux in Devin

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

### Use Spiral's MCP server

1. **Add a custom MCP**: Open Customize › MCPs. Click + and choose New MCP. Fill in:

2. **Sign in to Spiral and approve**: In Customize › MCPs, open Spiral and choose Connect. Spiral opens: sign in, pick the organization and click Authorize. No API key.

3. **Check it**: On Spiral's configuration page, click Test tools. Devin lists Spiral's tools.

### Use the Spiral skill

1. **Send Devin 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 PuLID Flux**: 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/flux-pulid",
    "input": {
      "prompt": "a woman holding sign with glowing green text '\''PuLID for FLUX'\''",
      "reference_image_url": "https://storage.googleapis.com/falserverless/gallery/example_inputs_liuyifei.png"
    }
  }'
```

Then paste one of the prompts above: Devin finds PuLID Flux on Spiral, shows the price and runs it.

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

## PuLID Flux tools and prices

- [PuLID Flux](https://spiral.ai/tools/fal/fal-ai/flux-pulid) (fal): $0.04329 per megapixel. `image_size` presets count as 1 MP; custom sizes round up to whole megapixels.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| image_size |  | landscape_4_3 | The size of the generated image. |
| num_inference_steps | 1 to 50 | 20 | The number of inference steps to perform. |
| seed |  | — | The same seed and the same prompt given to the same version of the model will output the same image every time. |
| guidance_scale | 0 to 20 | 4 | 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. |
| negative_prompt |  |  | The prompt to generate an image from. |
| start_step | 0 to 50 | 0 | The number of steps to start the CFG from. |

## What can you do with PuLID Flux in Devin?

Create portrait assets for a project's profile screens, speaker pages, and image previews from reference faces. Use the project's design requirements to guide composition, then review likeness before adding a result.

### Professional headshot concepts

Use a reference portrait to explore studio lighting, wardrobe, and backgrounds. Review facial resemblance before selecting a result.

### Illustrated profile pictures

Turn a reference face into a comic or painted portrait. Specify the medium and framing in the description.

### Speaker banner portraits

Create a wide portrait concept from a speaker's reference photo, with the person to one side and room for event copy.

### Portrait lighting studies

Explore window light, candlelight, and studio lighting using the same reference face. Compare resemblance alongside the lighting treatment.

### Character concept portraits

Use a reference face to explore a character's costume, setting, and visual style for a pitch or storyboard.

### Creator thumbnail concepts

Generate portrait concepts from a creator's reference photo, changing the background and composition to match a video's subject.

## Overview

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

## PuLID Flux in other agents

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

## More Devin guides

- [Professional Photo](https://spiral.ai/integrations/devin/professional-photo)
- [Qwen Image](https://spiral.ai/integrations/devin/qwen-image)
- [Product Photography](https://spiral.ai/integrations/devin/product-photography)
- [Qwen Image 2512](https://spiral.ai/integrations/devin/qwen-image-2512)
- [Product Holding](https://spiral.ai/integrations/devin/product-holding)
- [Qwen Image 2512 LoRA](https://spiral.ai/integrations/devin/qwen-image-2512-lora)

## Questions about PuLID Flux in Devin

**Can Devin use PuLID Flux?**

Yes. Add Spiral to Devin as an MCP server, and Devin can find and run PuLID Flux like any built-in tool.

**How much does PuLID Flux cost in Devin?**

$0.04329 per megapixel. `image_size` presets count as 1 MP; custom sizes round up to whole megapixels. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Devin plan is separate.

**Do I need a fal account to use PuLID Flux in Devin?**

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

**How long does it take to set up PuLID Flux in Devin?**

About two minutes: add a custom MCP, then sign in to Spiral and approve, then check it.

**Does Devin wait while PuLID Flux runs?**

PuLID Flux runs in the background. Devin starts the run, checks on it and gives you the image when it's ready.

**What is PuLID Flux good for?**

Use it to create new portraits that retain a reference person's facial identity. Headshots, illustrated avatars, and portraits with different lighting or settings are practical starting points.

**Does PuLID Flux require training for each person?**

No. It conditions image generation on a reference identity without a separate training run for that person.

**Can PuLID Flux create illustrated portraits?**

Yes. The maker documents stylized generation alongside realistic portraits. Specify the treatment, composition, and lighting you want, then check whether the face remains recognizable.

**Will PuLID Flux preserve the face exactly?**

Treat likeness as something to review, not a guarantee. The maker describes a tradeoff between identity fidelity and editability, so assess both resemblance and the requested changes.

**Why might a negative prompt have no effect?**

The official implementation processes negative prompts only when true CFG is active. The maker recommends ordinary guidance for most work; when testing true CFG above 1, set ordinary guidance to 1.

