Skip to content

About

FLUX 3 Image API (`flux-3-image`): model id, routes, pricing, parameters and async task polling examples with curl, Python and JavaScript.

Resources

Contributing

Security policy

Stars

63 stars

Watchers

0 watching

Forks

Latest commit

 

History

45 Commits

Folders and files

Repository files navigation

FLUX 3 Image API (flux-3-image) — passerelle API (Français)

observed unit price billing model OpenAI-compatible endpoint

Sample render via the APIMart image API

$0.0384 per image at 1k (768sq $0.0328 · 1.5k $0.056 · 2k $0.08 · 4k $0.4856) — one OpenAI-compatible endpoint at https://api.apimart.ai/v1, no monthly plan required. (observed 2026-10-12)

Obtenir une clé API · Tarifs à jour · Page du modèle · ⚡ 60-second quickstart

Why teams call FLUX 3 Image (flux-3-image) through APIMart

  • One key, entire catalog. The same https://api.apimart.ai/v1 base URL and Authorization header reach FLUX 3 Image and 300+ other image, video and language models — switch the model field, not your client.
  • $1 minimum, pay as you go. No subscription and no prepaid plan to size up front: top up from $1 and spend it on calls. There is no free quota to burn through first, so the price in this table is the price you pay.
  • The charge comes back in the response. Every completed task reports the amount billed (cost / credits_cost), so a spend number is read per call instead of guessed at month end. A task marked failed is refunded.
  • Async by design. Submit, take the task_id, poll GET /v1/tasks/{id} — batching and retries are ordinary queue work, not a bespoke integration.

FLUX 3 Image : une seule base_url compatible OpenAI et une seule clé donnent accès à FLUX 3 Image (flux-3-image) et à plus de 300 modèles image, vidéo et langage — facturation en USD, à l'usage, à partir de 1 $.

FLUX 3 Image by Black Forest Labs generates one image per request from text or up to 10 references. Resolution determines the image price; reference images add no separate charge. This is the image model — not the FLUX 3 video model.

Model id and routes

Route model value Billing Images per task Notes
Text-to-image flux-3-image per image, by resolution 1 image grounding is on by default
Editing / multi-reference flux-3-image per image, by resolution 1 image up to 10 references; references add no charge

Endpoint: POST https://api.apimart.ai/v1/images/generations (OpenAI-compatible), then poll GET /v1/tasks/{task_id}. Result links expire 72 hours after completion.

Pricing

Output List price Effective price
default $0.134 $0.02
4K $0.24 $0.03

The token-billed official route bills per million tokens instead: text_input $1.60, cached_text_input free, image_input $1.60, cached_image_input free, text_output $9.60, image_output $96.00.

This is the image model. It is not the FLUX 3 video model. Prices are a snapshot; the Tarifs à jour page and data/model.json are refreshed by CI, and a completed task reports the exact amount in its cost field.

Request parameters

Field Type Default Notes
model string required flux-3-image
prompt string required subject, composition, lighting and style; bounding-box layout and local edits can be described in the prompt
resolution string 1k 768sq, 1k, 1.5k, 2k, 4k
size string auto auto or one of 15 ratios from 21:9 to 9:21
image_urls string[] — up to 10 publicly accessible HTTP(S) URLs or base64 images; adding references makes it an editing task
grounding boolean true allows upstream web or image retrieval before generation; set false to disable
safety_tolerance integer 2 0–4, where 0 is strictest

Reference images. Up to 10 references, no separate charge. auto follows the first reference when editing; text-only generation follows the prompt or defaults to 1:1.

Supported aspect ratios: auto or one of 15 ratios from 21:9 to 9:21.

Quickstart

curl --request POST --url https://api.apimart.ai/v1/images/generations \
  --header "Authorization: Bearer $APIMART_API_KEY" --header 'Content-Type: application/json' \
  -d '{"model":"flux-3-image","prompt":"A bamboo forest path under moonlight","size":"1:1","resolution":"1K"}'
import os, time, requests

BASE = "https://api.apimart.ai/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['APIMART_API_KEY']}", "Content-Type": "application/json"}

created = requests.post(f"{BASE}/images/generations", headers=HEADERS, timeout=60, json={
    "model": "flux-3-image", "prompt": "A bamboo forest path under moonlight",
    "size": "1:1", "resolution": "1K",
}).json()
task_id = created["data"]["id"]

while True:
    task = requests.get(f"{BASE}/tasks/{task_id}", headers=HEADERS, timeout=60).json()["data"]
    if task["status"] in ("completed", "failed"):
        break
    time.sleep(5)
print(task.get("cost"), task["result"]["images"][0]["url"])
const res = await fetch("https://api.apimart.ai/v1/images/generations", {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.APIMART_API_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({ model: "flux-3-image", prompt: "A bamboo forest path under moonlight",
                          size: "1:1", resolution: "1K" }),
});
const { data } = await res.json();      // data.id is the task id — poll /v1/tasks/<id>

Runnable versions: examples/. The task lifecycle is pending → processing → completed | failed.

Sample outputs

Each row is one API call. Costs follow the price table above.

Output Recipe Ratio Cost Prompt
Sample render via the APIMart image API Product / e-commerce 1:1 $0.0384 Studio hero shot of a frosted glass perfume bottle on a wet black stone slab, single softbox from the left, faint mist, deep charcoal background, crisp label text, commercial product photography
Sample render via the APIMart image API Food photography 4:3 $0.0384 Overhead flat lay of a spicy miso ramen bowl with soft boiled egg, nori and scallions, dark ceramic table, chopsticks resting on the rim, natural window light, editorial food photography
Sample render via the APIMart image API Cinematic still 16:9 $0.0384 Rain soaked Kyoto alley at night, paper lantern reflections on wet stone, a lone figure with a transparent umbrella walking away, cinematic 35mm still, shallow depth of field, film grain
Sample render via the APIMart image API Architecture 16:9 $0.0384 Minimalist concrete villa on a cliff at dusk, warm interior light, infinity pool reflecting a violet sky, architectural photography, 24mm perspective, ultra sharp
Sample render via the APIMart image API Fashion portrait 3:4 $0.0384 Editorial fashion portrait of a model in an oversized ivory wool coat, seamless light grey studio backdrop, crisp high key lighting, medium format detail, calm expression
Sample render via the APIMart image API Illustration 1:1 $0.0384 Layered paper cut illustration of a mountain lake at sunrise, five depth layers, soft pastel palette, subtle drop shadows, art print composition, clean vector edges
Sample render via the APIMart image API Design / UI 16:9 $0.0384 Flat vector dashboard panel showing three gauge dials and abstract latency curves, muted blue and sand palette, generous white space, crisp geometric cards, no placeholder text
Sample render via the APIMart image API Macro nature 3:2 $0.0384 Macro photograph of a dew covered dandelion seed head against deep black background, focus stacked detail, iridescent droplets, studio lighting

Sources and costs are also in data/samples.json.

FAQ

What is the FLUX 3 Image model id?

flux-3-image. See the route table above for the exact values this model accepts.

How is a FLUX 3 Image image billed?

Price depends on resolution, not on aspect ratio or the number of references.

How long do result links last?

72 hours after completion — read expires_at and copy the files out.

What happens if a task fails?

A task marked failed is refunded and reports cost = 0. A network error while polling status does not by itself mean the task failed — re-query the task id.

Attributed links (how this repository is measured)

Purpose Attributed link Target
Page du modèle https://go.apimart.ai/k-23f6f6 apimart.ai/fr/model/flux-3-image
Tarifs à jour https://go.apimart.ai/k-0f31f8 apimart.ai/fr/pricing
Obtenir une clé API https://go.apimart.ai/k-1d5dd1 apimart.ai/fr/keys

Outbound APIMart links are minted through the promo link API; hand-made tracking parameters are rejected by tools/check_links.py in CI.

Disclosure

FLUX 3 Image is a third-party model served through APIMart; this repository documents how to call it and publishes model ids and prices, and does not claim official status. Model names, prices and documentation belong to their respective owners. The renders in this README were produced through the APIMart image API and are shown as examples of the API's output.

Repository map

README.md             model id, routes, pricing, parameters, quickstart, samples, FAQ
data/model.json       the pricing record for this model (CI-refreshed)
data/samples.json     prompt recipes used for the sample renders
tools/check_links.py  attribution guard
examples/             curl, Python and JavaScript clients
assets/               sample renders (JPEG, resized for the README)

License

MIT — see LICENSE.

About

FLUX 3 Image API (`flux-3-image`): model id, routes, pricing, parameters and async task polling examples with curl, Python and JavaScript.

Resources

Contributing

Security policy

Stars

63 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages