Flux-dev-lora

black-forest-labs/flux-dev-lora

flux-dev 的一个版本,文本到图像模型,支持快速微调 lora 推理

输入 / 输出模态
公开起步价格
¥0.224/图
收录时间
2025年10月15日

在线推理

输入配置

控件、可选项与默认值均直接来自当前模型的 API Schema。

可以先配置当前模型的全部参数,真正提交任务时再登录。登录后生成

任务结果

登录前也可以完整配置模型当前参数均可直接调整,只有提交生成任务时需要登录。
Flux-dev-lora
进度—
耗时—
请求 ID—

历史任务

任务历史

仅支持查看最近七个自然日的生成记录。

生成详情

API 调用

Flux-dev-lora 的示例代码与 API 说明

Modelmesh 会帮你在不同服务提供商之间规范化处理请求和响应,为你统一接口。

Modelmesh 提供了兼容 OpenAI 的 Completion API,可连接 300 多款模型与服务提供商,既可直接调用,也可通过 OpenAI SDK 调用。此外,还提供了一些第三方 SDK。

在以下示例中,Modelmesh 专用的请求头属于可选项。若你配置了这些请求头,你的应用就能出现在 Modelmesh 的排行榜上。

#!/usr/bin/env bash set -euo pipefail API_KEY="$SSY_API_KEY" curl --fail-with-body --silent --show-error --location \ --request POST \ "https://router.shengsuanyun.com/api/v1/tasks/generations" \ --header "Content-Type: application/json" \ --header "Authorization: Bearer ${API_KEY}" \ --data '{ "model": "black-forest-labs/flux-dev-lora", "aspect_ratio": "1:1", "disable_safety_checker": false, "extra_lora_scale": 1, "go_fast": true, "guidance": 3, "lora_scale": 1, "lora_weights": "huggingface.co/alvdansen/softserve_anime", "megapixels": "1", "num_inference_steps": 28, "num_outputs": 1, "output_format": "jpg", "output_quality": 80, "prompt": "a girl wearing a duck themed raincaot, sftsrv style" }'
                  
                    
                        
                        #!/usr/bin/env bash
                      
                        
                        set -euo pipefail
                      
                        
                        ​
                      
                        
                        API_KEY="$SSY_API_KEY"
                      
                        
                        ​
                      
                        
                        curl --fail-with-body --silent --show-error --location \
                      
                        
                          --request POST \
                      
                        
                          "https://router.shengsuanyun.com/api/v1/tasks/generations" \
                      
                        
                          --header "Content-Type: application/json" \
                      
                        
                          --header "Authorization: Bearer ${API_KEY}" \
                      
                        
                          --data '{
                      
                        
                          "model": "black-forest-labs/flux-dev-lora",
                      
                        
                          "aspect_ratio": "1:1",
                      
                        
                          "disable_safety_checker": false,
                      
                        
                          "extra_lora_scale": 1,
                      
                        
                          "go_fast": true,
                      
                        
                          "guidance": 3,
                      
                        
                          "lora_scale": 1,
                      
                        
                          "lora_weights": "huggingface.co/alvdansen/softserve_anime",
                      
                        
                          "megapixels": "1",
                      
                        
                          "num_inference_steps": 28,
                      
                        
                          "num_outputs": 1,
                      
                        
                          "output_format": "jpg",
                      
                        
                          "output_quality": 80,
                      
                        
                          "prompt": "a girl wearing a duck themed raincaot, sftsrv style"
                      
                        
                        }'
                      
                  
                
#!/usr/bin/env bash set -euo pipefail API_KEY="$SSY_API_KEY" REQUEST_ID="${SSY_REQUEST_ID:?Set SSY_REQUEST_ID to the ID returned by task submission}" curl --fail-with-body --silent --show-error --location \ --request GET \ "https://router.shengsuanyun.com/api/v1/tasks/generations/${REQUEST_ID}" \ --header "Authorization: Bearer ${API_KEY}"
                  
                    
                        
                        #!/usr/bin/env bash
                      
                        
                        set -euo pipefail
                      
                        
                        ​
                      
                        
                        API_KEY="$SSY_API_KEY"
                      
                        
                        REQUEST_ID="${SSY_REQUEST_ID:?Set SSY_REQUEST_ID to the ID returned by task submission}"
                      
                        
                        ​
                      
                        
                        curl --fail-with-body --silent --show-error --location \
                      
                        
                          --request GET \
                      
                        
                          "https://router.shengsuanyun.com/api/v1/tasks/generations/${REQUEST_ID}" \
                      
                        
                          --header "Authorization: Bearer ${API_KEY}"
                      
                  
                

价格

价格明细

统一按人民币展示
每张图片
¥0.224/每张图片