[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-107770":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":12,"contributorsCount":12,"subscribersCount":12,"size":12,"stars1d":12,"stars7d":12,"stars30d":14,"stars90d":12,"forks30d":12,"starsTrendScore":12,"compositeScore":15,"rankGlobal":9,"rankLanguage":9,"license":16,"archived":17,"fork":17,"defaultBranch":18,"hasWiki":19,"hasPages":17,"topics":20,"createdAt":9,"pushedAt":21,"updatedAt":22,"readmeContent":23,"aiSummary":24,"trendingCount":12,"starSnapshotCount":12,"syncStatus":25,"lastSyncTime":26,"discoverSource":27},107770,"flux-3-image-api-fr","apimartcs0wri\u002Fflux-3-image-api-fr","apimartcs0wri","FLUX 3 Image API (`flux-3-image`): model id, routes, pricing, parameters and async task polling examples with curl, Python and JavaScript.",null,"Python",63,0,59,4,40.4,"Other",false,"main",true,[],"2026-11-23 18:16:27","2026-11-12 16:19:42","# FLUX 3 Image API (`flux-3-image`) — passerelle API (Français)\n\n\u003C!-- conv-kit:v1 -->\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"assets\u002Fbadges\u002Fprice.svg\" alt=\"observed unit price\"> \u003Cimg src=\"assets\u002Fbadges\u002Fbilling.svg\" alt=\"billing model\"> \u003Cimg src=\"assets\u002Fbadges\u002Fcompat.svg\" alt=\"OpenAI-compatible endpoint\">\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"assets\u002F01-product-hero-perfume.jpg\" width=\"820\" alt=\"Sample render via the APIMart image API\">\n\u003C\u002Fp>\n\n> **$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:\u002F\u002Fapi.apimart.ai\u002Fv1`, no monthly plan required. *(observed 2026-10-12)*\n\n**[Obtenir une clé API](https:\u002F\u002Fgo.apimart.ai\u002Fk-1d5dd1)** · **[Tarifs à jour](https:\u002F\u002Fgo.apimart.ai\u002Fk-0f31f8)** · **[Page du modèle](https:\u002F\u002Fgo.apimart.ai\u002Fk-23f6f6)** · [⚡ 60-second quickstart](#quickstart)\n\n**Why teams call FLUX 3 Image (`flux-3-image`) through APIMart**\n\n- **One key, entire catalog.** The same `https:\u002F\u002Fapi.apimart.ai\u002Fv1` base URL and `Authorization` header reach FLUX 3 Image and 300+ other image, video and language models — switch the `model` field, not your client.\n- **$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.\n- **The charge comes back in the response.** Every completed task reports the amount billed (`cost` \u002F `credits_cost`), so a spend number is read per call instead of guessed at month end. A task marked `failed` is refunded.\n- **Async by design.** Submit, take the `task_id`, poll `GET \u002Fv1\u002Ftasks\u002F{id}` — batching and retries are ordinary queue work, not a bespoke integration.\n\n\u003C!-- \u002Fconv-kit:v1 -->\n\nFLUX 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 $.\n\nFLUX 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.\n\n## Model id and routes\n\n| Route | `model` value | Billing | Images per task | Notes |\n| --- | --- | --- | --- | --- |\n| Text-to-image | `flux-3-image` | per image, by resolution | 1 image | `grounding` is on by default |\n| Editing \u002F multi-reference | `flux-3-image` | per image, by resolution | 1 image | up to 10 references; references add no charge |\n\nEndpoint: `POST https:\u002F\u002Fapi.apimart.ai\u002Fv1\u002Fimages\u002Fgenerations` (OpenAI-compatible), then poll `GET \u002Fv1\u002Ftasks\u002F{task_id}`.\nResult links expire **72 hours** after completion.\n\n## Pricing\n\n\u003C!-- pricing:model:start -->\n| Output | List price | Effective price |\n| --- | --- | --- |\n| default | $0.0375 | $0.02 |\n| 4K | $0.05 | $0.03 |\n\nThe 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.\n\u003C!-- pricing:model:end -->\n\nThis is the image model. It is **not** the FLUX 3 video model. Prices are a snapshot; the [Tarifs à jour](https:\u002F\u002Fgo.apimart.ai\u002Fk-0f31f8) page and [`data\u002Fmodel.json`](data\u002Fmodel.json) are refreshed by CI, and a completed task reports the exact amount in its `cost` field.\n\n## Request parameters\n\n| Field | Type | Default | Notes |\n| --- | --- | --- | --- |\n| `model` | string | required | `flux-3-image` |\n| `prompt` | string | required | subject, composition, lighting and style; bounding-box layout and local edits can be described in the prompt |\n| `resolution` | string | `1k` | `768sq`, `1k`, `1.5k`, `2k`, `4k` |\n| `size` | string | `auto` | `auto` or one of 15 ratios from `21:9` to `9:21` |\n| `image_urls` | string[] | — | up to 10 publicly accessible HTTP(S) URLs or base64 images; adding references makes it an editing task |\n| `grounding` | boolean | `true` | allows upstream web or image retrieval before generation; set `false` to disable |\n| `safety_tolerance` | integer | `2` | `0`–`4`, where `0` is strictest |\n\n**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`.\n\nSupported aspect ratios: `auto` or one of 15 ratios from `21:9` to `9:21`.\n\n## Quickstart\n\n```bash\ncurl --request POST --url https:\u002F\u002Fapi.apimart.ai\u002Fv1\u002Fimages\u002Fgenerations \\\n  --header \"Authorization: Bearer $APIMART_API_KEY\" --header 'Content-Type: application\u002Fjson' \\\n  -d '{\"model\":\"flux-3-image\",\"prompt\":\"A bamboo forest path under moonlight\",\"size\":\"1:1\",\"resolution\":\"1K\"}'\n```\n\n```python\nimport os, time, requests\n\nBASE = \"https:\u002F\u002Fapi.apimart.ai\u002Fv1\"\nHEADERS = {\"Authorization\": f\"Bearer {os.environ['APIMART_API_KEY']}\", \"Content-Type\": \"application\u002Fjson\"}\n\ncreated = requests.post(f\"{BASE}\u002Fimages\u002Fgenerations\", headers=HEADERS, timeout=60, json={\n    \"model\": \"flux-3-image\", \"prompt\": \"A bamboo forest path under moonlight\",\n    \"size\": \"1:1\", \"resolution\": \"1K\",\n}).json()\ntask_id = created[\"data\"][\"id\"]\n\nwhile True:\n    task = requests.get(f\"{BASE}\u002Ftasks\u002F{task_id}\", headers=HEADERS, timeout=60).json()[\"data\"]\n    if task[\"status\"] in (\"completed\", \"failed\"):\n        break\n    time.sleep(5)\nprint(task.get(\"cost\"), task[\"result\"][\"images\"][0][\"url\"])\n```\n\n```javascript\nconst res = await fetch(\"https:\u002F\u002Fapi.apimart.ai\u002Fv1\u002Fimages\u002Fgenerations\", {\n  method: \"POST\",\n  headers: { Authorization: `Bearer ${process.env.APIMART_API_KEY}`, \"Content-Type\": \"application\u002Fjson\" },\n  body: JSON.stringify({ model: \"flux-3-image\", prompt: \"A bamboo forest path under moonlight\",\n                          size: \"1:1\", resolution: \"1K\" }),\n});\nconst { data } = await res.json();      \u002F\u002F data.id is the task id — poll \u002Fv1\u002Ftasks\u002F\u003Cid>\n```\n\nRunnable versions: [`examples\u002F`](examples). The task lifecycle is `pending → processing → completed | failed`.\n\n## Sample outputs\n\nEach row is one API call. Costs follow the price table above.\n\n| Output | Recipe | Ratio | Cost | Prompt |\n| --- | --- | --- | --- | --- |\n| \u003Cimg src=\"assets\u002F01-product-hero-perfume.jpg\" width=\"220\" alt=\"Sample render via the APIMart image API\"> | Product \u002F 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` |\n| \u003Cimg src=\"assets\u002F02-food-overhead-ramen.jpg\" width=\"220\" alt=\"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` |\n| \u003Cimg src=\"assets\u002F03-cinematic-street-rain.jpg\" width=\"220\" alt=\"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` |\n| \u003Cimg src=\"assets\u002F04-architectural-dusk.jpg\" width=\"220\" alt=\"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` |\n| \u003Cimg src=\"assets\u002F05-fashion-editorial-studio.jpg\" width=\"220\" alt=\"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` |\n| \u003Cimg src=\"assets\u002F06-illustration-layered-paper.jpg\" width=\"220\" alt=\"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` |\n| \u003Cimg src=\"assets\u002F07-infographic-dashboard.jpg\" width=\"220\" alt=\"Sample render via the APIMart image API\"> | Design \u002F 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` |\n| \u003Cimg src=\"assets\u002F08-macro-botanical-detail.jpg\" width=\"220\" alt=\"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` |\n\nSources and costs are also in [`data\u002Fsamples.json`](data\u002Fsamples.json).\n\n## FAQ\n\n**What is the FLUX 3 Image model id?**\n\n`flux-3-image`. See the route table above for the exact values this model accepts.\n\n**How is a FLUX 3 Image image billed?**\n\nPrice depends on resolution, not on aspect ratio or the number of references.\n\n**How long do result links last?**\n\n72 hours after completion — read `expires_at` and copy the files out.\n\n**What happens if a task fails?**\n\nA 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.\n\n## Attributed links (how this repository is measured)\n\n| Purpose | Attributed link | Target |\n| --- | --- | --- |\n| Page du modèle | \u003Chttps:\u002F\u002Fgo.apimart.ai\u002Fk-23f6f6> | `apimart.ai\u002Ffr\u002Fmodel\u002Fflux-3-image` |\n| Tarifs à jour | \u003Chttps:\u002F\u002Fgo.apimart.ai\u002Fk-0f31f8> | `apimart.ai\u002Ffr\u002Fpricing` |\n| Obtenir une clé API | \u003Chttps:\u002F\u002Fgo.apimart.ai\u002Fk-1d5dd1> | `apimart.ai\u002Ffr\u002Fkeys` |\n\nOutbound APIMart links are minted through the promo link API; hand-made tracking parameters are rejected by\n`tools\u002Fcheck_links.py` in CI.\n\n## Disclosure\n\nFLUX 3 Image is a third-party model served through APIMart; this repository documents how to call it and publishes\nmodel ids and prices, and does not claim official status. Model names, prices and documentation belong to their\nrespective owners. The renders in this README were produced through the APIMart image API and are shown as examples\nof the API's output.\n\n## Repository map\n\n```text\nREADME.md             model id, routes, pricing, parameters, quickstart, samples, FAQ\ndata\u002Fmodel.json       the pricing record for this model (CI-refreshed)\ndata\u002Fsamples.json     prompt recipes used for the sample renders\ntools\u002Fcheck_links.py  attribution guard\nexamples\u002F             curl, Python and JavaScript clients\nassets\u002F               sample renders (JPEG, resized for the README)\n```\n\n## License\n\nMIT — see [LICENSE](LICENSE).\n","FLUX 3 Image API 是一个面向开发者的轻量级图像生成服务接口，封装了 Black Forest Labs 的 FLUX-3 图像模型（text-to-image 和多参考图编辑），提供 OpenAI 兼容的 RESTful 接口。核心功能包括：单次请求生成1张图像（支持文本输入或最多10张参考图）、异步任务提交与轮询、按分辨率阶梯计费（最低$0.02\u002F图）、实时返回扣费金额，且与 APIMart 平台内300+多模态模型共用同一认证密钥和基础 URL。适用于需快速集成高质量文生图能力的中小规模应用，如内容创作工具、设计辅助插件或低频图像生成服务，无需订阅制，支持1美元起充、按量付费。",2,"2026-11-24 04:32:52","CREATED_QUERY"]