Black Forest Labs
bflBlack Forest Labs provides hosted FLUX models for generating and editing images and videos, polling asynchronous results, managing fine-tunes, and checking project credits.
Acciones disponibles (14)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Deblur ImageBFL_DEBLUR_IMAGEAcciónSubmit a paid asynchronous deblurring of an authorized image. Returns the task ID, exact polling URL, and quoted cost without waiting.
BFL_DEBLUR_IMAGEAcciónSubmit a paid asynchronous deblurring of an authorized image. Returns the task ID, exact polling URL, and quoted cost without waiting.
Parámetros de entrada
seedintegerOptional deterministic seed for reproducibility.
userstringOptional opaque end-user identifier for provider-side attribution; do not send personal data.
imagestringObligatorioAuthorized base64 image or HTTP(S) image URL to restore. Use only media you own or are authorized to process.
output_formatstringenumGenerated image format.
jpegpngwebpsafety_toleranceintegerModeration tolerance from 0 (strictest) to 5 (least strict). Keep the default unless authorized and policy-compliant.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Edit VideoBFL_EDIT_VIDEOAcciónSubmit a paid asynchronous prompt-directed edit of an authorized source video. Returns the task ID, exact polling URL, and quoted per-second cost without waiting for or downloading the result.
BFL_EDIT_VIDEOAcciónSubmit a paid asynchronous prompt-directed edit of an authorized source video. Returns the task ID, exact polling URL, and quoted per-second cost without waiting for or downloading the result.
Parámetros de entrada
userstringOptional opaque end-user identifier for provider-side attribution; do not send personal data.
videostringObligatorioAuthorized HTTP(S) video URL or base64 MP4 to edit. Use only media you own or are authorized to transform.
promptstringObligatorioSpecific edit instruction for the source video.
safety_toleranceintegerModeration tolerance from 0 (strictest) to 4, subject to stricter provider harm-class caps.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Erase Image ObjectBFL_ERASE_IMAGE_OBJECTAcciónSubmit a paid asynchronous removal of a masked object from an authorized image. Returns the task ID, exact polling URL, and quoted cost without waiting for or downloading the result.
BFL_ERASE_IMAGE_OBJECTAcciónSubmit a paid asynchronous removal of a masked object from an authorized image. Returns the task ID, exact polling URL, and quoted cost without waiting for or downloading the result.
Parámetros de entrada
maskstringObligatorioSame-size authorized black-and-white mask as base64 or an HTTP(S) image URL. White selects removal and black preserves pixels.
seedintegerOptional deterministic seed for reproducible output.
userstringOptional opaque end-user identifier for provider-side attribution; do not send personal data.
imagestringObligatorioAuthorized base64 image or HTTP(S) image URL to edit. Use only media you own or are authorized to transform.
dilate_pixelsintegerPixels by which to expand the white mask to cover object edges.
output_formatstringenumGenerated image format.
jpegpngwebpsafety_toleranceintegerModeration tolerance from 0 (strictest) to 5 (least strict). Keep the default unless authorized and policy-compliant.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Generate Fine-Tuned ImageBFL_GENERATE_FINETUNED_IMAGEAcciónSubmit a paid asynchronous FLUX fine-tuned image generation using an existing LoRA. Returns the task ID, exact polling URL, and quoted cost; it does not wait for or download the result.
BFL_GENERATE_FINETUNED_IMAGEAcciónSubmit a paid asynchronous FLUX fine-tuned image generation using an existing LoRA. Returns the task ID, exact polling URL, and quoted cost; it does not wait for or download the result.
Parámetros de entrada
seedintegerOptional deterministic seed; omit for a random seed.
promptstringText description of the image to generate.
finetune_idstringObligatorioLoRA name to use; for a shared LoRA use org-id/lora-name.
aspect_ratiostringOutput aspect ratio between 21:9 and 9:21.
image_promptstringOptional authorized image as base64 used to guide or remix the result. Use only media you own or are authorized to process.
output_formatstringenumGenerated image format.
jpegpngwebpsafety_toleranceintegerModeration tolerance from 0 (strictest) to 6 (least strict). Keep the default unless the use case is authorized and policy-compliant.
finetune_strengthnumberLoRA influence from 0 (none) to 2; 1 represents full influence.
prompt_upsamplingbooleanAllow BFL to expand the prompt for more creative output.
image_prompt_strengthnumberBlend strength of image_prompt relative to the text prompt.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Generate or Edit FLUX.2 Klein ImageBFL_GENERATE_OR_EDIT_FLUX_2_KLEIN_IMAGEAcciónSubmit a paid asynchronous FLUX.2 Klein image generation or authorized reference-image edit with the stable 4B or 9B model. Returns the task ID, exact polling URL, and quoted cost without waiting for or downloading the result.
BFL_GENERATE_OR_EDIT_FLUX_2_KLEIN_IMAGEAcciónSubmit a paid asynchronous FLUX.2 Klein image generation or authorized reference-image edit with the stable 4B or 9B model. Returns the task ID, exact polling URL, and quoted cost without waiting for or downloading the result.
Parámetros de entrada
seedintegerOptional deterministic seed; omit for a random seed.
userstringOptional opaque end-user identifier for provider-side attribution; do not send personal data.
modelstringenumKlein model size. Use klein_4b for lower cost and latency, or klein_9b when higher model capacity is needed.
klein_4bklein_9bwidthintegerOutput width in pixels; 0 lets BFL choose, otherwise use at least 64.
heightintegerOutput height in pixels; 0 lets BFL choose, otherwise use at least 64.
promptstringObligatorioText description of the image or requested edits.
input_imagesstring[]Optional ordered authorized reference images, each an HTTP(S) URL or base64 image. Omit for text-only generation. Use only media you own or are authorized to process.
output_formatstringenumGenerated image format.
jpegpngwebpsafety_toleranceintegerModeration tolerance from 0 (strictest) to 5 (least strict). Keep the default unless the use case is authorized and policy-compliant.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Generate or Edit ImageBFL_GENERATE_OR_EDIT_IMAGEAcciónSubmit a paid asynchronous FLUX 3 image generation or authorized reference-image edit. Returns a task ID, exact polling URL, and quoted cost without waiting for or downloading the result. Moderation may end the task without media. Result URLs expire quickly; download promptly and preserve the original bytes and C2PA provenance metadata.
BFL_GENERATE_OR_EDIT_IMAGEAcciónSubmit a paid asynchronous FLUX 3 image generation or authorized reference-image edit. Returns a task ID, exact polling URL, and quoted cost without waiting for or downloading the result. Moderation may end the task without media. Result URLs expire quickly; download promptly and preserve the original bytes and C2PA provenance metadata.
Parámetros de entrada
imagesstring[]Optional authorized reference images, each an HTTP(S) URL or base64 image. Omit for text-only generation. Use only media you own or are authorized to process.
promptstringObligatorioFree-form description of the image or edits to make.
groundingbooleanAllow external web and image search grounding. Set false when the request must not use external research.
resolutionstringenumEqual-pixel-area output resolution tier; exact dimensions depend on the aspect ratio, and higher tiers generally cost more.
768sq1k1.5k2k4kaspect_ratiostringenumOutput aspect ratio. auto follows prompt or reference-image framing when possible.
auto21:92:116:93:27:54:35:41:14:53:45:7+4safety_toleranceintegerModeration tolerance from 0 (strictest) to 4 (least strict). Keep the default unless the use case is authorized and policy-compliant.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Generate VideoBFL_GENERATE_VIDEOAcciónSubmit a paid asynchronous FLUX 3 video task from text, authorized keyframes, a source video, or a prior draft cache. Video is charged by duration and resolution. Returns a task ID and exact polling URL without waiting for or downloading outputs.
BFL_GENERATE_VIDEOAcciónSubmit a paid asynchronous FLUX 3 video task from text, authorized keyframes, a source video, or a prior draft cache. Video is charged by duration and resolution. Returns a task ID and exact polling URL without waiting for or downloading outputs.
Parámetros de entrada
modestringenumVideo workflow: generate from text, animate keyframes, continue a source clip, or render a saved draft cache at full quality.
text_to_videoimage_to_videocontinue_videoenhance_draftuserstringOptional opaque end-user identifier for provider-side attribution; do not send personal data.
draftbooleanGenerate a faster preview whose result includes a short-lived draft_cache URL for later full-quality enhancement. Requires resolution hd.
promptstringVideo description. Required except in enhance_draft mode.
durationanyWhole output seconds or auto. Text/image modes allow 5-20; continue_video allows 5-15. Not used for enhance_draft.
keyframesarrayOne to ten authorized image URLs/base64 values. Use either all plain images or all [seconds, image] pairs in strictly increasing order from 0 to 20 seconds. Three or more plain images require an integer duration. Required for image_to_video. Use only media you own or are authorized to animate.
resolutionstringenumOutput resolution tier. Higher tiers use an upscaling finish and generally cost more; enhance_draft defaults to fhd.
hdfhdqhduhddraft_cachestringBase64 .bin bundle downloaded from a prior draft result, or its still-valid HTTPS URL. Required for enhance_draft; preserve this provider-generated bundle unchanged.
start_videostringAuthorized HTTP(S) URL or base64 MP4 to continue from its final frames. Required for continue_video.
aspect_ratiostringenumOutput aspect ratio for text/image/continue modes.
auto21:92:116:94:31:13:49:169:21generate_audiobooleanGenerate synchronized audio in text/image/continue modes.
safety_toleranceintegerModeration tolerance from 0 (strictest) to 4 (least strict); BFL caps some harm classes below this value. Keep the default unless authorized and policy-compliant.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Credit BalanceBFL_GET_CREDITSAcciónReturn the connected BFL project's current credit balance so funds can be checked before a paid generation or editing request.
BFL_GET_CREDITSAcciónReturn the connected BFL project's current credit balance so funds can be checked before a paid generation or editing request.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Fine-TuneBFL_GET_FINETUNEAcciónReturn details for one BFL fine-tune by ID; an absent or inaccessible fine-tune is reported as not found without distinguishing access denial.
BFL_GET_FINETUNEAcciónReturn details for one BFL fine-tune by ID; an absent or inaccessible fine-tune is reported as not found without distinguishing access denial.
Parámetros de entrada
finetune_idstringObligatorioFine-tune name or ID returned by List Fine-Tunes.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Generation ResultBFL_GET_GENERATION_RESULTAcciónFetch one status update for an asynchronous BFL task using its exact returned polling URL or task ID. Returns pending, moderation, error, not-found, and ready states without looping, downloading media, or incurring a new generation charge.
BFL_GET_GENERATION_RESULTAcciónFetch one status update for an asynchronous BFL task using its exact returned polling URL or task ID. Returns pending, moderation, error, not-found, and ready states without looping, downloading media, or incurring a new generation charge.
Parámetros de entrada
task_idstringA polling target is required. Set task_id only when polling_url is omitted. This ID is polled on the configured BFL API origin; use it only when the exact polling_url is unavailable.
polling_urlstringA polling target is required. Set polling_url only when task_id is omitted. Use the exact polling_url returned by a BFL submission; it is preferred because regional tasks may not resolve on the global host. Only an HTTPS BFL API polling URL with the fixed /v1/get_result path is accepted.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Fine-TunesBFL_LIST_FINETUNESAcciónReturn all fine-tunes accessible to the connected BFL project in one unpaginated response.
BFL_LIST_FINETUNESAcciónReturn all fine-tunes accessible to the connected BFL project in one unpaginated response.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Outpaint ImageBFL_OUTPAINT_IMAGEAcciónSubmit a paid asynchronous expansion of an authorized image onto a larger canvas of at most 4,194,304 pixels. Fast mode requires a base64 source; high mode also accepts HTTP(S) URLs. Returns the task ID, exact polling URL, and quoted cost without waiting for or downloading the result.
BFL_OUTPAINT_IMAGEAcciónSubmit a paid asynchronous expansion of an authorized image onto a larger canvas of at most 4,194,304 pixels. Fast mode requires a base64 source; high mode also accepts HTTP(S) URLs. Returns the task ID, exact polling URL, and quoted cost without waiting for or downloading the result.
Parámetros de entrada
modestringenumQuality and speed trade-off: high favors fidelity and accepts base64 or HTTP(S) input images; fast reduces latency for simpler backgrounds and textures but requires a base64 input image.
highfastuserstringOptional opaque end-user identifier for provider-side attribution; do not send personal data.
widthintegerObligatorioTarget canvas width in pixels. Width multiplied by height must not exceed 4,194,304 pixels.
heightintegerObligatorioTarget canvas height in pixels. Width multiplied by height must not exceed 4,194,304 pixels.
promptstringExperimental text guidance for the expanded region; the source image remains the primary signal.
auto_cropbooleanCrop source pixels outside the canvas instead of failing.
input_imagestringObligatorioAuthorized source image to expand. Use base64 for either mode; HTTP(S) URLs are supported only in high mode. Use only media you own or are authorized to transform.
output_formatstringenumGenerated image format.
jpegpngwebpsafety_toleranceintegerModeration tolerance from 0 (strictest) to 5 (least strict). Keep the default unless authorized and policy-compliant.
reference_offset_xintegerLeft offset of the source on the target canvas; negative values are allowed. Omit to center horizontally.
reference_offset_yintegerTop offset of the source on the target canvas; negative values are allowed. Omit to center vertically.
disable_prompt_upsamplingbooleanSkip image-aware prompt expansion for lower latency, potentially reducing quality.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Upscale VideoBFL_UPSCALE_VIDEOAcciónSubmit a paid asynchronous upscale for the first 20 seconds of an authorized video, with an optional content prompt and 1.5x-3x scale target. Returns the task ID, exact polling URL, and quoted cost without waiting. BFL charges video upscaling per output megapixel-second.
BFL_UPSCALE_VIDEOAcciónSubmit a paid asynchronous upscale for the first 20 seconds of an authorized video, with an optional content prompt and 1.5x-3x scale target. Returns the task ID, exact polling URL, and quoted cost without waiting. BFL charges video upscaling per output megapixel-second.
Parámetros de entrada
userstringOptional opaque end-user identifier; do not send personal data.
promptstringOptional content description that steers enhanced detail; leave empty for neutral upscaling.
creativityintegerenum0 preserves the source closely; 1 permits creative detail enhancement.
01input_videostringObligatorioAuthorized base64 MP4 up to 50 MB or HTTP(S) video URL, at most 2560x1440 per frame. Only the first 20 seconds are upscaled. Use only media you own or are authorized to process.
upscale_factornumberRequested scale factor from 1.5 to 3. Output preserves the source aspect ratio and is capped at 13.75 megapixels per frame.
safety_toleranceintegerModeration tolerance from 0 (strictest) to 4, subject to stricter provider harm-class caps.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Virtual Try-OnBFL_VIRTUAL_TRY_ONAcciónSubmit a paid asynchronous virtual try-on using authorized person and garment images. Returns the task ID, exact polling URL, and quoted cost without waiting.
BFL_VIRTUAL_TRY_ONAcciónSubmit a paid asynchronous virtual try-on using authorized person and garment images. Returns the task ID, exact polling URL, and quoted cost without waiting.
Parámetros de entrada
seedintegerOptional deterministic seed.
userstringOptional opaque end-user identifier for provider-side attribution; do not send personal data.
promptstringObligatorioTry-on instruction. For a direct garment transfer, use 'TRY-ON: The person of image 1 wearing the garments of image 2.'; add only non-deceptive styling context.
person_imagestringObligatorioAuthorized image of the person, as an HTTP(S) URL or base64. Obtain consent from the depicted person and do not use for deceptive impersonation or sensitive decisions.
garment_imagestringObligatorioAuthorized garment image as an HTTP(S) URL or base64.
output_formatstringenumGenerated image format.
jpegpngwebpsafety_toleranceintegerModeration tolerance from 0 (strictest) to 5. Keep the default unless authorized and policy-compliant.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not