Wide LabsCompute

FLUX.2 Pro

black-forest-labs/FLUX-2-pro Black Forest LabsText → imageREST
Price$0.036 /image
EndpointPOST /v2/image/flux/generateREST
Example output of FLUX.2 Pro: Studio product photo of a ceramic Turkish coffee cup on a terracotta tile, soft morning window light, steam rising, shal
Example output

Made with FLUX.2 Pro

“Studio product photo of a ceramic Turkish coffee cup on a terracotta tile, soft morning window light, steam rising, shallow depth of field, editorial food magazine style”

width: 1024height: 1024output_format: jpeg

One request to this model through the API, at list price; resized for the web.

Try this prompt

Quick start

Send a JSON request to the endpoint below; the response carries the result.
curl -X POST https://api.widelabs.tr/v2/image/flux/generate \
  -H "Authorization: Bearer $WIDELABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "prompt": "A red fox in autumn forest",
  "model": "black-forest-labs/FLUX-2-pro"
}'
import os
import requests

resp = requests.post(
    "https://api.widelabs.tr/v2/image/flux/generate",
    headers={"Authorization": "Bearer " + os.environ["WIDELABS_API_KEY"]},
    json={
        "prompt": "A red fox in autumn forest",
        "model": "black-forest-labs/FLUX-2-pro"
    },
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.widelabs.tr/v2/image/flux/generate", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.WIDELABS_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    prompt: "A red fox in autumn forest",
    model: "black-forest-labs/FLUX-2-pro"
  }),
});
console.log(await resp.json());

Parameters

NameTypeDescription
store_output"provider" | "wl1d" | "wl7d" | "wl30d"
default "provider"
Where this request's output media is hosted, and for how long. `provider` (default) returns a Wide Labs CDN link that live-proxies the provider for 1 hour — the same hour the task record itself lives. `wl1d` / `wl7d` / `wl30d` copy the output into Wide Labs own storage and keep BOTH the link and the task record for 1, 7 or 30 days,…
prompt requiredstringText description of the image to generate
modelstring
default "black-forest-labs/FLUX-2-pro"
Image generation model. Available: 'black-forest-labs/FLUX-2-pro' (default)
widthinteger
default 1024
Image width in pixels (min 64, must be multiple of 32)
heightinteger
default 1024
Image height in pixels (min 64, must be multiple of 32)
seedintegerRandom seed for reproducible results
safety_toleranceinteger
default 2
Safety tolerance level (0=strictest, 6=least strict)
output_format"png" | "jpeg"
default "png"
Output image format
input_imagestringReference image: base64, a data URI, or a Wide Labs file link from `POST /v2/files` (`https://cdn.widelabs.tr/content/...`, up to 20 MB; the file must still be live when the task runs).
input_image_2stringSecond reference image: base64, a data URI, or a Wide Labs file link from `POST /v2/files` (`https://cdn.widelabs.tr/content/...`, up to 20 MB; the file must still be live when the task runs).
input_image_3stringThird reference image: base64, a data URI, or a Wide Labs file link from `POST /v2/files` (`https://cdn.widelabs.tr/content/...`, up to 20 MB; the file must still be live when the task runs).
input_image_4stringFourth reference image: base64, a data URI, or a Wide Labs file link from `POST /v2/files` (`https://cdn.widelabs.tr/content/...`, up to 20 MB; the file must still be live when the task runs).
webhook_urlstringHTTPS URL to receive a signed completion webhook when the async task reaches a terminal state (requires an API key, "async": true and direct mode; otherwise 422). See the Webhooks section for the delivery payload and events, and GET /v2/customer/webhook-secret for the signing secret + verification.

Start building on Wide Labs Compute

Create an account, add credit and send your first request with the SDK you already use.