关于 FLUX 3 Klein LoRA
FLUX 3 Klein 出图和改图,最多挂三个你自己的 LoRA。
在 POST /jobs/createTask 里把模型名写成 black-forest-labs/flux-3-klein-lora/edit 即可调用,US$0.0252 起。
请求参数
| 参数 | 必填 | 说明 |
|---|---|---|
aspect_ratio | 否 | 画面形状:横版、方形或竖版。 auto · 1:1 · 16:9 · 9:16 · 4:3 · 3:4 · 3:2 · 2:3 · 4:5 · 5:4 · 21:9 · 9:21 · 2:1 · 1:2 · 3:1 · 1:3 · 默认值: auto |
image_urls | 是 | 要编辑或合成的照片。在提示词里说明每张的作用。 |
loras | 否 | 加载你自己的 LoRA,锁定风格或角色。 默认值: [] |
output_format | 否 | 结果的文件格式。 jpeg · png · webp · 默认值: jpeg |
prompt | 是 | Say what to change and what must stay the same; name each source as <ref_image_1>, <ref_image_2>. Put a LoRA trigger word first. |
resolution | 否 | 输出尺寸。越大越清晰,价格也越高。 1k · 2k · 默认值: 1k |
seed | 否 | 用同一个数字,结果就能复现。 ≥ 0 · ≤ 2147483647 |
价格
价格以美元计。API 使用独立的美元余额。网站积分不能用于 API,也不能转入 API 余额;API 余额同样不能转为网站积分。 任务受理时,从 API 余额中冻结报价的最高金额;完成后按实际用量结算,实扣不超过冻结额,并释放剩余金额。任务失败则释放冻结额。
| 选项 | USD /张 |
|---|---|
| resolution 1K | US$0.0252 |
| resolution 2K | US$0.0828 |
运行前,将相同请求体发送到 POST /jobs/quote,可查看预计费用和最高费用,单位为美元。报价不会运行任务或扣款。
API 快速上手
三步调用 FLUX 3 Klein LoRA API
- 创建 API 密钥. 登录 PopNow,在 API 控制台创建密钥。密钥以 sk-popnow- 开头,API 调用使用独立的美元余额。
- 发送请求. 向 POST /jobs/createTask 发请求,model 填 black-forest-labs/flux-3-klein-lora/edit,input 按参数表填写。响应会立刻返回任务 ID。
- 取回结果. 用任务 ID 轮询 GET /jobs/recordInfo,或者传 callBackUrl,结果会推送到这个地址。任务成功后下载输出链接。
# 1. Create the task. Keep the Idempotency-Key if you retry after a network error.
export IDEMPOTENCY_KEY="$(uuidgen)"
curl -X POST https://api.popnow.ai/api/v1/jobs/createTask \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-d '{
"model": "black-forest-labs/flux-3-klein-lora/edit",
"input": {
"prompt": "A ceramic teapot on a linen cloth, soft window light, muted palette",
"image_urls": [
"https://media.popnow.ai/influencer/examples/marco.webp"
],
"aspect_ratio": "auto",
"resolution": "1k",
"output_format": "jpeg"
}
}'
# 2. Copy data.taskId from the response, then poll until state is succeeded, failed, canceled or expired.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
-H "Authorization: Bearer $POPNOW_API_KEY"请把提示词和链接换成你自己的。API 页签里有响应、轮询和回调的参考。
FLUX 3 Klein LoRA API 常见问题
FLUX 3 Klein LoRA API 怎么收费?
FLUX 3 Klein LoRA:最便宜的任务是编辑图片,US$0.0252/张起。各选项价格:1K US$0.0252/张、2K US$0.0828/张。API 使用独立的美元余额。网站积分不能用于 API,也不能转入 API 余额;API 余额同样不能转为网站积分。 任务受理时,从 API 余额中冻结报价的最高金额;完成后按实际用量结算,实扣不超过冻结额,并释放剩余金额。任务失败则释放冻结额。
FLUX 3 Klein LoRA · 编辑图片 API 有哪些限制?
分辨率:1K · 2K;画面比例:auto · 1:1 · 16:9 · 9:16 · 4:3 · 3:4 +10;参考图:3;提示词长度(字符):5,000;单个上传上限:10 MB。超出这些限制的请求会在扣费之前被拒绝。