Skip to main content
ArtEmotion
Image

FLUX.1 Pro Erase

Credit-based pricing. Supports reference images, batch up to 4.

FLUX.1 Pro Erase preview
Output
image
Max batch
4

Inputs

  • Reference image (required)
  • Batch up to 4 per request
LLM-ready

API & LLM schema

Exact request contract for this model. Agents can fetch it from /api/v1/models?id=fal-ai/flux-pro/v1/erase.

POST/api/v1/generate12 fields · 3 required
FieldTypeRequirementContract
model_idconstantRequiredArtEmotion model identifier.
extraobjectOptionalModel-specific settings may also be nested here.
max_creditsnumberOptionalReject before submission if the estimated list price exceeds this cap. · Range: 1–…
webhook_urlstringOptionalFormat: uri
webhook_secretstringOptionalOptional model input.
folder_idstringOptionalOptional model input.
promptstringOptionalOptional model input.
dilate_pixelsnumberOptionalNumber of pixels to expand the mask edges by. Higher values produce cleaner erase results around the masked region. · Default: 10 · Range: 0–100
output_formatstringOptionalThe format of the generated image. · Allowed: jpeg, png · Default: jpeg
mask_urlstringRequiredThe URL of a black/white mask image where white (255) marks pixels to erase and black (0) marks pixels to keep. Needs to match the dimensions of the i
num_imagesintegerOptionalRange: 1–4
reference_image_urlstringRequiredFormat: uri
Minimal request example
{
  "model_id": "fal-ai/flux-pro/v1/erase",
  "mask_url": "your_mask_url",
  "reference_image_url": "https://example.com/reference_image"
}
Raw JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.artemotion.ai/api/v1/models?id=fal-ai%2Fflux-pro%2Fv1%2Ferase",
  "title": "FLUX.1 Pro Erase generation request",
  "description": "Request body accepted by POST /api/v1/generate for fal-ai/flux-pro/v1/erase.",
  "type": "object",
  "properties": {
    "model_id": {
      "type": "string",
      "const": "fal-ai/flux-pro/v1/erase",
      "description": "ArtEmotion model identifier."
    },
    "extra": {
      "type": "object",
      "additionalProperties": true,
      "description": "Model-specific settings may also be nested here."
    },
    "max_credits": {
      "type": "number",
      "minimum": 1,
      "description": "Reject before submission if the estimated list price exceeds this cap."
    },
    "webhook_url": {
      "type": "string",
      "format": "uri",
      "maxLength": 2048
    },
    "webhook_secret": {
      "type": "string",
      "maxLength": 512
    },
    "folder_id": {
      "type": "string"
    },
    "prompt": {
      "type": "string"
    },
    "dilate_pixels": {
      "title": "Dilate Pixels",
      "description": "Number of pixels to expand the mask edges by. Higher values produce cleaner erase results around the masked region.",
      "default": 10,
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "multipleOf": 1
    },
    "output_format": {
      "title": "Output Format",
      "description": "The format of the generated image.",
      "default": "jpeg",
      "type": "string",
      "enum": [
        "jpeg",
        "png"
      ]
    },
    "mask_url": {
      "title": "Mask Url",
      "description": "The URL of a black/white mask image where white (255) marks pixels to erase and black (0) marks pixels to keep. Needs to match the dimensions of the i",
      "type": "string"
    },
    "num_images": {
      "type": "integer",
      "minimum": 1,
      "maximum": 4
    },
    "reference_image_url": {
      "type": "string",
      "format": "uri"
    }
  },
  "required": [
    "model_id",
    "mask_url",
    "reference_image_url"
  ],
  "additionalProperties": false
}

FAQ

How much does FLUX.1 Pro Erase cost on ArtEmotion?

Credit-based pricing. You pay in ArtEmotion credits — every plan and top-up converts USD to credits at a fixed rate.

Do I get my credits back if FLUX.1 Pro Erase fails?

Yes — failed generations are never charged. The credits are released back to your balance automatically.

Can I call FLUX.1 Pro Erase from the API?

Yes. Use POST /api/v1/generate with model_id: "fal-ai/flux-pro/v1/erase". See the API reference for the full schema.

Where are my generations stored?

Every output is saved to your personal Library. You can export or delete everything any time from Privacy & deletion.

Ready to generate with FLUX.1 Pro Erase?

Start now →

No commitment. New accounts get 50 free credits on signup. See pricing.