Flux-kontext-dev-lora

black-forest-labs/flux-kontext-dev-lora

FLUX.1 Kontext[dev] 用于运行 lora finetunes 的图像编辑模型

Modalities
Public starting price
¥0.224/image
Added to catalog
Oct 14, 2025

Online Inference

Configure input

Controls and defaults come directly from this model’s API schema.

Configure the model first, then sign in when you are ready to generate.Sign in to generate

Task result

Preview the model before signing inAll controls are available now. Sign in only when you submit the task.
Flux-kontext-dev-lora
Progress—
Elapsed—
Request ID—

Task History

Task history

Only generation records from the last seven days are available.

Generation details

API Call

Flux-kontext-dev-lora code examples and API guide

Modelmesh normalizes requests and responses across service providers behind one consistent API.

Modelmesh provides an OpenAI-compatible Completion API for more than 300 models and service providers. Call it directly, through the OpenAI SDK, or with supported third-party SDKs.

Modelmesh-specific request headers in these examples are optional. When supplied, your application can appear on the Modelmesh rankings.

#!/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-kontext-dev-lora", "aspect_ratio": "match_input_image", "disable_safety_checker": false, "go_fast": true, "guidance": 2.5, "input_image": "https://oss.shengsuanyun.com/example/modelinfo/199/2025-10-14_15:49:37_input_2.png", "lora_strength": 1, "lora_weights": "https://civitai.com/api/download/models/1962383?type=Model&format=SafeTensor", "megapixels": "1", "num_inference_steps": 30, "output_format": "jpg", "output_quality": 80, "prompt": "make this object fluffy" }'
                  
                    
                        
                        #!/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-kontext-dev-lora",
                      
                        
                          "aspect_ratio": "match_input_image",
                      
                        
                          "disable_safety_checker": false,
                      
                        
                          "go_fast": true,
                      
                        
                          "guidance": 2.5,
                      
                        
                          "input_image": "https://oss.shengsuanyun.com/example/modelinfo/199/2025-10-14_15:49:37_input_2.png",
                      
                        
                          "lora_strength": 1,
                      
                        
                          "lora_weights": "https://civitai.com/api/download/models/1962383?type=Model&format=SafeTensor",
                      
                        
                          "megapixels": "1",
                      
                        
                          "num_inference_steps": 30,
                      
                        
                          "output_format": "jpg",
                      
                        
                          "output_quality": 80,
                      
                        
                          "prompt": "make this object fluffy"
                      
                        
                        }'
                      
                  
                
#!/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}"
                      
                  
                

Pricing

Pricing Details

All prices shown in CNY
每张图片
¥0.224/每张图片