[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-114936":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":13,"contributorsCount":13,"subscribersCount":13,"size":13,"stars1d":13,"stars7d":13,"stars30d":13,"stars90d":13,"forks30d":13,"starsTrendScore":13,"compositeScore":15,"rankGlobal":10,"rankLanguage":10,"license":16,"archived":17,"fork":17,"defaultBranch":18,"hasWiki":19,"hasPages":17,"topics":20,"createdAt":10,"pushedAt":30,"updatedAt":31,"readmeContent":32,"aiSummary":33,"trendingCount":13,"starSnapshotCount":13,"syncStatus":34,"lastSyncTime":35,"discoverSource":36},114936,"flux-kontext-pro-api-ja","c4tv6mo\u002Fflux-kontext-pro-api-ja","c4tv6mo","フラックス — FLUX.1 Kontext Pro API (`flux-kontext-pro`): model id, pricing, parameters and copy-paste examples for the OpenAI-compatible APIMart endpoint.","https:\u002F\u002Fgo.apimart.ai\u002Fk-249c7b",null,"Python",75,0,63,40,"Other",false,"main",true,[21,22,23,24,25,26,27,28,29],"ai-api-gateway","ai-image-api","apimart","flux-kontext-pro","flux-kontext-pro-api","image-api","image-editing","image-generation","text-to-image","2026-10-18 12:18:37","2026-11-16 03:28:40","# FLUX.1 Kontext Pro API (`flux-kontext-pro`)\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> **from $0.032 per image** — `https:\u002F\u002Fapi.apimart.ai\u002Fv1` の OpenAI 互換エンドポイント1つだけ、月額プランは不要です。*(2026-10-12 時点)*\n\n**[APIキー](https:\u002F\u002Fgo.apimart.ai\u002Fk-b21a3b)** · **[料金](https:\u002F\u002Fgo.apimart.ai\u002Fk-a341a8)** · **[モデルページ](https:\u002F\u002Fgo.apimart.ai\u002Fk-249c7b)** · [⚡ 60秒クイックスタート](#quickstart)\n\n**チームが APIMart 経由で FLUX.1 Kontext Pro（`flux-kontext-pro`）を使う理由**\n\n- **キー1つでカタログ全体。**同じ `https:\u002F\u002Fapi.apimart.ai\u002Fv1` の base URL と `Authorization` ヘッダーで FLUX.1 Kontext Pro（`flux-kontext-pro`）と画像・動画・言語モデルなど 300+ のモデルにアクセスできます。切り替えるのは `model` フィールドだけで、クライアント側の変更は不要です。\n- **最低 $1 から、従量課金。**サブスクリプションも、事前に規模を見積もるプリペイドプランもありません。$1 からチャージして、呼び出した分だけ使えます。\n- **課金内容はレスポンスで返ります。**完了したタスクはすべて請求額（`cost` \u002F `credits_cost`）を報告し、`failed` になったタスクは返金されます。\n- **非同期前提の設計。**送信して `task_id` を受け取り、`GET \u002Fv1\u002Ftasks\u002F{id}` をポーリングするだけ。バッチ処理もリトライも特別な統合ではなく、普通のキュー処理です。\n\n\u003C!-- \u002Fconv-kit:v1 -->\n\n**別名:** フラックス\n\nFLUX.1 Kontext Pro API on APIMart: context-aware image editing and text-to-image with up to 4 image references. Save 20% or more with membership.\n\n## Model id and routes\n\n| Route | `model` value | Billing | Notes |\n| --- | --- | --- | --- |\n| Per-image | `flux-kontext-pro` | per delivered image, by resolution | see the [model page](https:\u002F\u002Fgo.apimart.ai\u002Fk-249c7b) for the exact tiers |\n\nEndpoint: `POST https:\u002F\u002Fapi.apimart.ai\u002Fv1\u002Fimages\u002Fgenerations`, then poll `GET \u002Fv1\u002Ftasks\u002F{task_id}`.\n\n## Pricing\n\n\u003C!-- pricing:model:start -->\n| Output | List price | Effective price |\n| --- | --- | --- |\n| default | 0.04 | 0.032 |\n\n\n\u003C!-- pricing:model:end -->\n\nPrices are a snapshot; the [pricing page](https:\u002F\u002Fgo.apimart.ai\u002Fk-a341a8) 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 | the model id shown in the route table above |\n| `prompt` | string | required | what to generate, or what to change when editing |\n| `size` | string | `auto` \u002F `1:1` | aspect ratio, or `auto` where the route supports it |\n| `resolution` | string | `1K` | output resolution tier — cost scales with it |\n| `n` | integer | `1` | number of images per task, where the route allows more than one |\n| `image_urls` | string[] | — | reference images as public HTTP(S) URLs or base64 data URLs |\n| `nsfw_check` | boolean | `false` | runs `omni-moderation-latest` before submitting |\n\nThe table lists the fields accepted by the APIMart `images\u002Fgenerations` endpoint. Check the [model page](https:\u002F\u002Fgo.apimart.ai\u002Fk-249c7b) for anything this model adds on top.\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-kontext-pro\",\"prompt\":\"A bamboo forest at sunrise, slow push-in\",\"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-kontext-pro\", \"prompt\": \"A bamboo forest at sunrise, slow push-in\",\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\nRunnable versions: [`examples\u002F`](examples). The task lifecycle is `pending → processing → completed | failed`.\n\n## FAQ\n\n**FLUX.1 Kontext Pro のモデル id は何ですか？**\n\n`flux-kontext-pro` です。上のルート表を参照してください。\n\n**課金方法は？**\n\n**from $0.032 per image**。完了したタスクは `cost` フィールドに正確な金額を報告し、失敗したタスクは返金されます。\n\n**How do I get a key?**\n\nUse the [Get an API key](https:\u002F\u002Fgo.apimart.ai\u002Fk-b21a3b) link — $1 minimum top-up, no plan required.\n\n\u003C!-- related-repos:auto -->\n## Related repositories\n\n- **Same model, this language** — the other half of this pair: [flux-kontext-pro-prompts-ja](https:\u002F\u002Fgithub.com\u002Fc4tv6mo\u002Fflux-kontext-pro-prompts-ja)\n- **Same model, other languages** — 10 more language builds: English [flux-kontext-pro-api](https:\u002F\u002Fgithub.com\u002Fo1qr4k0yi1\u002Fflux-kontext-pro-api) · 中文 `flux-kontext-pro-api-cn` · Deutsch [flux-kontext-pro-api-de](https:\u002F\u002Fgithub.com\u002Fiad6zyjftfeaa3\u002Fflux-kontext-pro-api-de) · Español `flux-kontext-pro-api-es` · Français `flux-kontext-pro-api-fr` · Relay\u002Fgateway `flux-kontext-pro-api-gateway` · Bahasa [flux-kontext-pro-api-id](https:\u002F\u002Fgithub.com\u002Fofvl42haami3b\u002Fflux-kontext-pro-api-id) · 한국어 [flux-kontext-pro-api-ko](https:\u002F\u002Fgithub.com\u002Fbuyjici8y9\u002Fflux-kontext-pro-api-ko) · Português [flux-kontext-pro-api-pt](https:\u002F\u002Fgithub.com\u002Fa41fx2qbyb41bb\u002Fflux-kontext-pro-api-pt) · Русский `flux-kontext-pro-api-ru`\n- **More models in this language** — [midjourney-api-ja](https:\u002F\u002Fgithub.com\u002Fapimartt1q\u002Fmidjourney-api-ja) · [gemini-2-5-flash-image-preview-api-ja](https:\u002F\u002Fgithub.com\u002Fic7skkh\u002Fgemini-2-5-flash-image-preview-api-ja) · [nano-banana-api-ja](https:\u002F\u002Fgithub.com\u002Fe4ylndl3g-v\u002Fnano-banana-api-ja) · [gemini-3-1-flash-image-preview-api-ja](https:\u002F\u002Fgithub.com\u002Fgv4ju\u002Fgemini-3-1-flash-image-preview-api-ja) · [nano-banana-2-api-ja](https:\u002F\u002Fgithub.com\u002Flpbxkrzbfel\u002Fnano-banana-2-api-ja) · [gemini-3-pro-image-preview-api-ja](https:\u002F\u002Fgithub.com\u002Fzzsxs8r\u002Fgemini-3-pro-image-preview-api-ja)\n- **Topic hubs** — every build of this model, all languages: [flux-kontext-pro](https:\u002F\u002Fgithub.com\u002Ftopics\u002Fflux-kontext-pro) · [flux-kontext-pro-api](https:\u002F\u002Fgithub.com\u002Ftopics\u002Fflux-kontext-pro-api)\n\nThis repository is one build in a cross-linked set of API guides for the same model family; each language build links back to the others.\n\u003C!-- \u002Frelated-repos:auto -->\n\n## Attributed links (how this repository is measured)\n\n| Purpose | Attributed link | Target |\n| --- | --- | --- |\n| Model page | \u003Chttps:\u002F\u002Fgo.apimart.ai\u002Fk-249c7b> | `apimart.ai\u002Fja\u002Fmodel\u002Fflux-kontext-pro` |\n| Live pricing | \u003Chttps:\u002F\u002Fgo.apimart.ai\u002Fk-a341a8> | `apimart.ai\u002Fja\u002Fpricing` |\n| Get an API key | \u003Chttps:\u002F\u002Fgo.apimart.ai\u002Fk-b21a3b> | `apimart.ai\u002Fja\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.1 Kontext Pro 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.\n\n## License\n\nMIT — see [LICENSE](LICENSE).\n","这是一个面向 FLUX.1 Kontext Pro 模型的 OpenAI 兼容图像生成与编辑 API 客户端接口封装，提供模型 ID、实时定价、请求参数说明及开箱即用的调用示例。核心支持上下文感知的文生图与图像编辑（最多 4 张参考图），采用统一 APIMart 网关（单 endpoint + 单 API Key），按实际交付图像分辨率计费（最低 $0.032\u002F图），支持异步任务轮询与精确成本反馈。适用于需要灵活接入高性能 AI 图像服务、避免订阅绑定、强调成本透明与多模型快速切换的开发者与中小团队。",2,"2026-11-24 04:49:48","CREATED_QUERY"]