flux-3-image-klein API 价格
所有价格均以 USD 计。对比 APISea 费率与相同计费单位的官方标价。
| 选项 | APISea | 官方 | 节省 |
|---|---|---|---|
| 默认默认 | $0.00792 | $0.009 | −12% |
| 1.5K | $0.00968 | $0.011 | −12% |
| 1K | $0.00792 | $0.009 | −12% |
| 2K | $0.01232 | $0.014 | −12% |
| 4K | $0.03168 | $0.036 | −12% |
| 768SQ | $0.00704 | $0.008 | −12% |
价格单位为 每张图像。
flux-3-image-klein 是什么?
flux-3-image-klein 是 Black Forest Labs FLUX 系列中的图像模型,可通过 APISea 用于文生图、单图编辑和多图参考工作流。您可以提供场景描述或编辑说明,并可选择通过公开可访问的 HTTP(S) URL 或 Base64 输入最多 10 张参考图。输出控制项包括多种宽高比、最高 4K 的分辨率档位、JPEG 或 PNG 格式、随机种子和生成步数。提示词还可以包含标签和边界框 JSON,用于指定布局或局部编辑区域。
使用 APISea API key,通过 APISea 的图像生成 endpoint 调用该模型。请求以异步方式处理:提交后会返回 task_id,查询任务即可获取状态和图像。每个请求生成一张图像。APISea 采用按量付费模式,仅对成功的请求收费;价格档位由 resolution 参数决定。默认的 1K 配置每张 $0.00792,比服务提供商每张 $0.009 的标价低约 12%。
flux-3-image-klein 的亮点
图像生成与编辑
根据文本生成图像,或提供一张参考图像并附上编辑指令。这两种工作流使用同一个图像生成 endpoint。
多张参考图像
通过公开可访问的 HTTP(S) URL 或 Base64 输入最多 10 张参考图。在提示词中按顺序引用图像。
分辨率与宽高比控制
可选择 768SQ、1K、1.5K、2K 和 4K 分辨率档位,并支持多种纵向、横向和正方形宽高比。分辨率决定计费档位。
局部编辑指令
在提示词中使用标签和边界框 JSON 来指定布局或局部编辑区域。边界框属于提示词内容,而不是单独的请求参数。
分 4 步调用 flux-3-image-klein API
- 01
获取 API 密钥
登录 APISea,充值 $50 起,并在控制台创建一个 sk-sea 密钥。
- 02
设置 base URL
在 SDK 或 HTTP 客户端中将 https://api.apisea.ai/v1 设置为 base URL。
- 03
发送请求
调用 POST /v1/images/generations,并传入 "model": "flux-3-image-klein" 及以下参数。
- 04
处理响应
响应中包含 task_id。轮询 GET /v1/tasks/{task_id},直到状态变为 completed,然后下载结果 URL。
curl --request POST \
--url https://api.apisea.ai/v1/images/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "flux-3-image-klein",
"prompt": "Ultra-wide cinematic shot of a fog-drenched coastal highway at dawn, a single vintage car with headlights on",
"aspect_ratio": "21:9",
"resolution": "2k"
}'参数
| 参数 | 类型 | 必填 | 默认 | 说明 |
|---|---|---|---|---|
model | string | 必填 | — | Must be `flux-3-image-klein`. |
nsfw_check | boolean | 可选 | false | Whether to run content moderation before submitting the image task. |
prompt | string | 必填 | — | A scene description for text-to-image, or image editing instructions. Negative prompts are not supported; describe what you want to see instead. |
image_urls | string[] | 可选 | — | Reference image list, up to 10 images. Supports publicly accessible HTTP(S) URLs or Base64 input. |
aspect_ratio | string | 可选 | auto | Output aspect ratio. Supported values: |
size | string | 可选 | — | Compatibility parameter for the aspect ratio. Can replace `aspect_ratio` and accepts the same values. Use only one of these fields. |
resolution | string | 可选 | 1k | Output resolution tier. Supports `768sq`, `1k`, `1.5k`, `2k`, and `4k`, case-insensitively. `768` is equivalent to `768sq`. |
safety_tolerance | integer | 可选 | 2 | Content safety tolerance, from 0–4. 0 is the strictest. |
seed | integer | 可选 | — | Random seed, from 0 to 4294967295. |
steps | integer | 可选 | 16 | Generation steps, from 1 to 16; default: 16. Fewer steps can speed up generation but may reduce image quality. Steps do not affect pricing. |
output_format | string | 可选 | jpeg | Image file format: `jpeg` (default) or `png`; `jpg` is equivalent to `jpeg`. `webp` is not supported and returns HTTP 400. |
n | integer | 可选 | 1 | Each request generates 1 image; only `1` is supported. Submit separate tasks for multiple images. Values above 1 return HTTP 400. |
flux-3-image-klein 的应用场景
创意素材生成
构建一款根据场景描述生成图像的工具,并为纵向、横向或正方形版式提供宽高比选项。
图像修改工作流
允许用户上传参考图并用自然语言描述修改内容,包括通过边界框指定的局部编辑。
多参考图创作
构建支持输入多张参考图的图像创作工作流,并允许用户指定提示词的各个部分应参考哪张图。
按分辨率导出
提供从 768SQ 到 4K 的可选输出档位,支持交付 JPEG 或 PNG,并根据所选分辨率计费。
获得更好结果的技巧
- 01
描述想要的效果
描述您希望看到的内容,而不要使用否定提示词。negative_prompt 参数不受支持,使用时会返回 HTTP 400。
- 02
分别设置宽高比和分辨率
使用 aspect_ratio 或 size 设置输出宽高比,但不要同时使用两者。使用 resolution 选择计费和输出档位;size 不支持 1024x1024 这类像素尺寸。
- 03
按分辨率规划预算
省略 resolution 时,将使用 1K,每张 $0.00792;768SQ 每张 $0.00704。减少步数可能会加快生成,但不会降低价格。
- 04
轮询直至任务结束
查询返回的 task_id,并在状态为 completed 或 failed 时停止轮询。4K 生成可能需要几分钟,文档建议将总等待超时时间设为 10 分钟。
限制与须知
每个请求生成一张图像;n 值大于 1 时会返回 HTTP 400。
每个请求最多可输入 10 张参考图像。
不支持 WebP 输出,也不支持 mask_url、guidance、width 和 height 等参数。
flux-3-image-klein API 常见问题
在 APISea 上使用 flux-3-image-klein 需要多少钱?
APISea 默认配置和 1K 分辨率每张图片收费 $0.00792;768SQ 每张图片收费 $0.00704;1.5K 每张图片收费 $0.00968;2K 每张图片收费 $0.01232;4K 每张图片收费 $0.03168。默认配置的价格比提供商的标价低约 12%,且 APISea 仅对成功的请求计费。
如何通过 API 调用 flux-3-image-klein?
向 https://api.apisea.ai/v1/images/generations 发送 POST 请求,并使用你的 APISea API key 进行 Bearer 身份验证。将 model 设为 flux-3-image-klein 并提供 prompt;异步响应会返回 task_id,供你查询状态并获取图片。
flux-3-image-klein 支持图片编辑和参考图吗?
支持。单图编辑时,在 image_urls 中提供一张图片;多图参考工作流最多可提供 10 张图片。图片可使用可公开访问的 HTTP(S) URL 或 Base64 输入。
可以控制哪些输出参数?
你可以设置 aspect_ratio、resolution、seed、steps 和 output_format,也可以使用文档中说明的安全控制选项。resolution 支持 768sq、1k、1.5k、2k 和 4k;output_format 支持 JPEG 和 PNG。
可以在一次请求中生成多张图像吗?
不支持。n 只能设为 1,设置更高的值会返回 HTTP 400。如需生成多张图片,请分别提交多个任务。
我可以将 flux-3-image-klein 用于商业用途吗?
商业用途须遵守提供商的条款。请根据你的预期用途查阅 Black Forest Labs 适用的条款;所提供的 API 文档未说明商业授权权利。