图像Black Forest Labs新增

FLUX.1 Dev

具有精细控制的高质量图像生成

model: "flux-dev"

API 文档代理文档

模式

一个模型ID,支持下列所有模式。您发送的字段决定模式,价格随模式而定。

模式选择方式典型价格
文本生成图像prompt
请求示例
{
  "model": "flux-dev",
  "input": {
    "prompt": "a lighthouse at dusk"
  }
}
$0.025
图像编辑image_url
请求示例
{
  "model": "flux-dev",
  "input": {
    "prompt": "a lighthouse at dusk",
    "image_url": "https://example.com/image.jpg"
  }
}
$0.030
结构控制modecontrol_lora_image_url
请求示例
{
  "model": "flux-dev",
  "input": {
    "prompt": "a lighthouse at dusk",
    "mode": "structure",
    "control_lora_image_url": "https://example.com/image.jpg"
  }
}
$0.040

输入

必需

Prompt

可选

Image Size

可选
1

Number of Images

可选

Source image to edit or vary (https URL, or an upload URL from POST /v1/uploads). Leave it out to generate from the prompt alone.

可选

Control image (https URL), with mode "structure".

可选
3.5

Guidance Scale

可选
28

Steps

可选

Seed

可选

Selects a mode that the other fields cannot: "structure" follows the edges or depth of a control image.

可选

Follow the control image's edges (canny) or its depth.

高级选项 (2)

主要控件之外的提供商设置。保持为空可使用模型的默认值。

可选

Faster inference at a small cost in detail.

可选

File format of the result.

结果

FLUX.1 Dev示例输出

该模型的真实结果。运行它可在此处查看您的输出。

curl https://arteza.ai/api/v1/generations \
  -H "Authorization: Bearer $ARTEZA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "flux-dev",
  "input": {
    "prompt": "Professional portrait of a woman, soft natural lighting, shallow depth of field, photorealistic"
  }
}'
FLUX.1 Dev 1FLUX.1 Dev 2FLUX.1 Dev 3FLUX.1 Dev 4FLUX.1 Dev 5FLUX.1 Dev 6