The base image editing version of FLUX.2 Klein 4B, with unified architecture supporting both text-to-image and image-to-image editing tasks. Precise editing control through text prompts, achieving style transfer, element replacement, and detail enhancement while preserving original subject features, lighting, and composition. 4-step distillation delivers sub-second response, providing designers with efficient visual iteration tools.
Request
Authorization
Header Params
Body Params application/jsonRequired
Example
{"19##image":"example.png","17##text":"make it a real picture","47##select":"8","51##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-image/f-2-klein-4b/edit' \
--header'Authorization: Bearer [Your API KEY]' \
--header'Authorization: Bearer [Your API KEY]' \
--header'Content-Type: application/json' \
--data-raw'{
"19##image": "example.png",
"17##text": "make it a real picture",
"47##select": "8",
"51##file_type": "PNG"
}'