An open-source image editing model developed by Black Forest Labs specifically for developers, researchers, and advanced users, supporting LoRA adapters. Kontext can handle both text and image inputs. Using rectified flow architecture, it enables precise editing of existing images through natural language instructions while maintaining character and object consistency across multiple rounds without fine-tuning. Supports style transfer, background replacement, and inpainting.
Request
Authorization
Header Params
Body Params application/jsonRequired
Example
{"15##image":"ab854ed22f727aeb736fde53cf1def2e77b7e26b0824c8cf979882ee8ad08dd3.jpg","41##select":"1","44##value":1024,"45##value":1024,"13##lora_name":"Kontextsouldrawing2_15.safetensors","13##strength_model":0,"4##text":"Turn the image into oil painting style","16##file_type":"PNG"}
Request Code Samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST 'https://www.runninghub.ai/openapi/v2/rhart-video/f-kontext/dev-lora' \
--header'Authorization: Bearer [Your API KEY]' \
--header'Authorization: Bearer [Your API KEY]' \
--header'Content-Type: application/json' \
--data-raw'{
"15##image": "ab854ed22f727aeb736fde53cf1def2e77b7e26b0824c8cf979882ee8ad08dd3.jpg",
"41##select": "1",
"44##value": 1024,
"45##value": 1024,
"13##lora_name": "Kontextsouldrawing2_15.safetensors",
"13##strength_model": 0,
"4##text": "Turn the image into oil painting style",
"16##file_type": "PNG"
}'