Enhance a photo by sending its Base 64 encoded image data to Black Forest Lab's Flux API. Retrieve an enhanced image according to prompted specifications.
See Black Forest Labs docs for more details.
curl -X POST \
'https://api.bfl.ai/v1/flux-kontext-pro' \
-H 'accept: application/json' \
-H "x-key: <BFL_API_KEY>" \
-H 'Content-Type: application/json' \
-d '{
"prompt": "Remove the reflections in the glasses in the attached image, sharpen the people in the foreground, remove the image noise, and brighten the image slightly.",
"input_image": "BASE64_ENCODED_IMAGE_STRING",
"denoise": 0.7,
"steps": 30
}'Get the <BFL_API_KEY> at Black Forest Labs.
You can encode images to Base 64 data online.