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

falImageAvailable nowReleased 2024-09-12

PuLID Flux

fal-ai/flux-pulid

Generate images from text with PuLID Flux from fal through one Spiral API key. It runs in the background and returns images. Pay as you go, with no subscription.

Pricing

$0.04329 per megapixel. image_size presets count as 1 MP; custom sizes round up to whole megapixels.

Limits

Runs
In the background
Returns
image
Longest queue wait
1 hour
Run deadline
30 minutes
Longest run, end to end
225 minutes
Largest inline input
1 MB
Largest input file
2 GB
Largest output
5 GB

Input

FieldKindDefaultDescription
prompt requiredtext—

The prompt to generate an image from.

reference_image_url requiredtext—

URL of image to use for inpainting.

image_sizeJSONlandscape_4_3

The size of the generated image.

num_inference_stepsnumber (whole)
1 to 50
20

The number of inference steps to perform.

seednumber (whole)—

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

will output the same image every time.

guidance_scalenumber
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_prompttext

The prompt to generate an image from.

start_stepnumber (whole)
0 to 50
0

The number of steps to start the CFG from.

true_cfgnumber
1 to 10
1

The weight of the CFG loss.

id_weightnumber
0 to 1
1

The weight of the ID loss.

max_sequence_lengthone of
128, 256, 512
128

The maximum sequence length for the model.

Same request in code

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"
    }
  }'

Frequently asked questions

How much does PuLID Flux cost?

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

How do I use PuLID Flux through an API?

Send `POST /v1/runs` with `"provider": "fal"`, `"model": "fal-ai/flux-pulid"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.

Do I need an account with fal to use PuLID Flux?

No. Spiral runs it on its own fal account and charges your Spiral balance.

Can my AI agent use PuLID Flux?

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.