Sand AISand AI MAGI-2MAGI-2 现已上线 SandBase:支持原生音频的 1080p 视频立即试用
图生图BFL

Flux 3.1 Fast Edit

API 文档
bfl/flux-3.1/fast/edit

FLUX 3.1 Fast by Black Forest Labs edits up to 10 reference images from a text instruction, with optional bounding boxes for layout control, at 1K to 4K resolution tiers. Fast mode is tuned for volume at a lower price.

试用该模型

Playground

打开 playground
输入
The prompt to generate an image from.

PNG, JPEG, WebP, or GIF · 20 MiB maximum each · up to 10

Reference image URLs or data URIs, in image 1 through image 10 order. Each must be at least 256 pixels per dimension. Oversized images are automatically downscaled to at most 4 megapixels while preserving aspect ratio. The first controls auto aspect ratio.
Output resolution tier.
The aspect ratio of the generated image.
高级设置
The format of the generated image.
Optional layout, with (0, 0) at the top-left of each image: keep, move, resize or remove objects from the references, or place new ones. Name boxes in the prompt by label, e.g. `<dragon>`.

Fill in prompt, images to run

Per run$0.015
结果
示例
  1. a156b8e9-6fdf-4404-ad16-e5a5d7c93d82.jpg
    打开原始文件

示例

选择一个示例,将其输入和结果加载到 playground 中。

  • 输入
    {
      "aspect_ratio": "16:9",
      "bounding_boxes": [
        {
          "box": {
            "x_max": 0.86,
            "x_min": 0.68,
            "y_max": 0.32,
            "y_min": 0.05
          },
          "description": "a small red and white striped hot-air balloon",
          "label": "balloon"
        }
      ],
      "images": [
        "https://static.sandbase.ai/examples/e2fc191a-4545-4bfa-9027-e7b9488ad209/input/a91295a0-645f-4728-955a-93f564a57a5b.png"
      ],
      "prompt": "Add a small striped hot-air balloon <balloon> in the sky, keep everything else unchanged"
    }
    打开结果 ↗
  • 输入
    {
      "aspect_ratio": "16:9",
      "images": [
        "https://static.sandbase.ai/examples/6caeaea1-6fc9-46d3-8582-55c91675a940/input/553b8c08-6fa1-45b0-bf98-9f22de9f6d4b.png"
      ],
      "prompt": "Turn the scene into a snowy winter evening with warm window light, keep the composition"
    }
    打开结果 ↗

Flux 3.1 Fast Edit

FLUX 3.1 Fast by Black Forest Labs edits up to 10 reference images from a text instruction, with optional bounding boxes for layout control, at 1K to 4K resolution tiers. Fast mode is tuned for volume at a lower price.

Fields

FieldTypeDefaultNotes
promptstring, required—Text instruction.
imagesimage URL[], required—Reference images, Image 1 to Image 10. Each side at least 256 px; images over 4 MP are downscaled.
resolution1k2k4k1kSize tier; sets the per-image rate.
aspect_ratio21:916:93:24:35:41:14:53:42:39:16—Output shape. Follows Image 1 when omitted.
output_formatjpeg / pngjpegOutput file format.
bounding_boxesobject[]—Optional layout boxes, with (0, 0) at the top-left. Keep, move, resize or remove objects from the references, or place new ones. Each box has a description, an optional label, and edges {x_min, y_min, x_max, y_max} as 0-1 fractions; use box for a new object, or source_image_index + source_box / target_box to move, resize or remove one. Write <label> in the prompt to tie it to a box.

Billing

BFL's official per-image price for FLUX 3.1 Image Fast: $0.015 at 1K, $0.04 at 2K, $0.11 at 4K. Reference images are included at no extra charge.

Request1k2k4k
One image$0.015$0.04$0.11

Failed runs are not charged.

Prompting

  • Quote any text that must appear and say where it goes.
  • Name a bounding box in the prompt by its label to control where that object goes.

Limits

  • One output image per request.
  • Maximum output size is 4 MP.

Also on SandBase

Other FLUX 3.1 endpoints: bfl/flux-3.1/text-to-image, bfl/flux-3.1/edit, bfl/flux-3.1/fast/text-to-image. Previous generation: bfl/flux-3/text-to-image, bfl/flux-3/edit.