模型 blf_flux 
- 2025.06.09 本站已经支持 bfl.ai 中 flux 的相关模型
- 支持的模型有 flux-kontext-maxflux-kontext-proflux-pro-1.1-ultraflux-pro-1.1flux-proflux-dev等
价格与计费 
- 价格为 bfl.ai 的汇率 3
- 例如:官网 flux-dev0.025 美刀/张 本站 0.075 人民币/张 就是 750 积分/张
- 官网价格表 https://bfl.ai/pricing/api
BFL_Flux API 
- 约定 header 带上 Authorization: Bearer your-key官网是用x-key
- 将官网的 https://api.bfl.ai/v1替换为https://api.openai-hk.com/bfl/v1
- 官网帮助文档参考
1.生成任务 
shell
curl --request POST \
  --url https://api.openai-hk.com/bfl/v1/flux-dev \
  --header 'Authorization: Bearer hk-your-key' \
  --header 'Content-Type: application/json' \
  --data '{
  "prompt": "Elephant fights tiger",
  "width": 1024,
  "height": 768,
  "steps": 28,
  "prompt_upsampling": false,
  "seed": 42,
  "guidance": 3,
  "safety_tolerance": 2,
  "output_format": "jpeg"
}'curl --request POST \
  --url https://api.openai-hk.com/bfl/v1/flux-dev \
  --header 'Authorization: Bearer hk-your-key' \
  --header 'Content-Type: application/json' \
  --data '{
  "prompt": "Elephant fights tiger",
  "width": 1024,
  "height": 768,
  "steps": 28,
  "prompt_upsampling": false,
  "seed": 42,
  "guidance": 3,
  "safety_tolerance": 2,
  "output_format": "jpeg"
}'返回体
json
{
  "id": "9dd30d68-4995-4c7b-97e5-9d1943bfc727"
}{
  "id": "9dd30d68-4995-4c7b-97e5-9d1943bfc727"
}得到大 id 为 task_id 为下一个获取任务使用
2.获取任务 
get https://api.openai-hk.com/bfl/v1/get_result?id={task_id}
shell
curl --request GET \
  --url 'https://api.openai-hk.com/bfl/v1/get_result?id=f5295e95-191c-4fcd-abfb-236e67226f60' \
  --header 'Authorization: Bearer hk-your-key' \
  --header 'Content-Type: application/json'curl --request GET \
  --url 'https://api.openai-hk.com/bfl/v1/get_result?id=f5295e95-191c-4fcd-abfb-236e67226f60' \
  --header 'Authorization: Bearer hk-your-key' \
  --header 'Content-Type: application/json'返回体
json
{
  "id": "f5295e95-191c-4fcd-abfb-236e67226f60",
  "status": "Ready",
  "result": {
    "sample": "https://delivery-us1.bfl.ai/results/9a/99533669e7979a/69e7979af22842ca9e28a0434285868d/sample.jpeg?se=2025-06-09T14%3A16%3A35Z&sp=r&sv=2024-11-04&sr=b&rsct=image/jpeg&sig=Sk6Gg/sYyC/8ntQzyJaSG6KGZT%2B7HtMz9NyQy1l0608%3D",
    "prompt": "Elephant fights tiger",
    "seed": 42,
    "start_time": 1749477991.4603546,
    "end_time": 1749477995.6950064,
    "duration": 4.234651803970337
  },
  "progress": null,
  "details": null
}{
  "id": "f5295e95-191c-4fcd-abfb-236e67226f60",
  "status": "Ready",
  "result": {
    "sample": "https://delivery-us1.bfl.ai/results/9a/99533669e7979a/69e7979af22842ca9e28a0434285868d/sample.jpeg?se=2025-06-09T14%3A16%3A35Z&sp=r&sv=2024-11-04&sr=b&rsct=image/jpeg&sig=Sk6Gg/sYyC/8ntQzyJaSG6KGZT%2B7HtMz9NyQy1l0608%3D",
    "prompt": "Elephant fights tiger",
    "seed": 42,
    "start_time": 1749477991.4603546,
    "end_time": 1749477995.6950064,
    "duration": 4.234651803970337
  },
  "progress": null,
  "details": null
}- 如果 status 为 Ready则 result.sample 中有图片地址
- 注意 图片地址 result.sample 有时效性
 OpenAi-HK
OpenAi-HK