FLUX 3 API

Image generation via Echo, billed by actual USD cost per request

Provider

BFL

Billing

Provider cost

ScalingTensor price

Provider cost USD / image; actual cost from Echo usage API

Playground

Try FLUX 3

Edit the params, add your API key and run the model here. The result plays on this page when the job completes.

Input

Used for this request only and never stored. Get a key

Running a request charges your wallet: Provider cost USD / image; actual cost from Echo usage API.

Output

preview

Request summary

Endpoint
POST /api/media/generate
Model ID
flux-3
n
1
size
1024x1024
prompt
A Shiba Inu walking along the seaside at dusk

Need job lookups or the raw response? Open the full playground.

Pricing

FLUX 3 API pricing

Prices come from the live catalog. There is no subscription; each request is charged to your prepaid wallet.

ScalingTensor price

Provider cost

Live catalog price

Provider cost

USD / image; actual cost from Echo usage API

Compare all model prices

Shared balance

Add credits

Top up

One wallet and one API key for every model in the catalog. Top-ups start at $10 and are paid through Stripe.

Parameters

Input parameters

These parameters belong inside the request body's params object.

Input parameters
nametyperequireddescription
promptstringtrueDescribe the image to generate. Put these fields in params when calling /api/media/generate, with the top-level model set to flux-3.
sizestringfalseDefault: 1024x1024. Use WIDTHxHEIGHT or one of these aspect ratios: 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16. Custom dimensions must match a supported ratio within 1%. Output is approximately 1K: 1536x1024 produces 1248x832 and 16:9 produces 1360x768.
nintegerfalseNumber of images. Only 1 is supported; default: 1.

Output fields

Output fields
nametypedescription
data[0].urlstringURL of the generated PNG image. Download and save it immediately.

API

Call FLUX 3 from your code

Create a key in the console and call the API from your server using the apiKey header. Save data.jobId and poll GET /api/media/result?jobId=... with the same key; a code of 0 means success.

POST /api/media/generate
curl --request POST 'https://restapi.scalingtensor.com/api/media/generate' \
  --header 'apiKey: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "model": "flux-3",
  "params": {
    "n": 1,
    "size": "1024x1024",
    "prompt": "A Shiba Inu walking along the seaside at dusk"
  }
}'
const response = await fetch("https://restapi.scalingtensor.com/api/media/generate", {
  method: "POST",
  headers: {
    apiKey: process.env.SCALINGTENSOR_API_KEY,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "model": "flux-3",
    "params": {
      "n": 1,
      "size": "1024x1024",
      "prompt": "A Shiba Inu walking along the seaside at dusk"
    }
  }),
});

const result = await response.json();
if (!response.ok || result.code !== 0) {
  throw new Error(result.msg || `Request failed: ${response.status}`);
}
console.log(result.data); // Save data.jobId to query /api/media/result
import os
import requests

payload = {
    "model": "flux-3",
    "params": {
        "n": 1,
        "size": "1024x1024",
        "prompt": "A Shiba Inu walking along the seaside at dusk",
    },
}

response = requests.post(
    "https://restapi.scalingtensor.com/api/media/generate",
    headers={"apiKey": os.environ["SCALINGTENSOR_API_KEY"]},
    json=payload,
    timeout=60,
)
result = response.json()
if result["code"] != 0:
    raise RuntimeError(result["msg"])
print(result["data"])  # Save data["jobId"] to query /api/media/result

API documentation · This page as Markdown · Markdown API reference

Related models

FLUX 3 API FAQ

How much does the FLUX 3 API cost?

FLUX 3 is billed at the provider's actual cost for each job (USD / image; actual cost from Echo usage API). The charge is deducted from your prepaid ScalingTensor wallet.

How do I call the FLUX 3 API?

Send POST /api/media/generate with "model": "flux-3" and the parameters in a params object, using your apiKey header. The call returns a jobId. Poll GET /api/media/result?jobId=... until the status is completed, then read the output URL from the result.

Which parameters does FLUX 3 accept?

Required: prompt. Optional: size and n. The parameter table on this page describes each one.

Do I need a BFL account to use FLUX 3?

No. You call FLUX 3 with your ScalingTensor API key and pay from your ScalingTensor wallet. The same key works for every other model in the catalog.