flux-kontext-mcp
v0.2.3RunAPI MCP server for Flux Kontext: create tasks, poll status, check pricing.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
login
Authenticate RunAPI by opening a browser PKCE login flow and saving the API key to ~/.config/runapi/config.json.
| Parameter | Type | Description |
|---|---|---|
force | boolean | Re-run browser login when the current credential comes from the local config file. |
text_to_image
Create a Flux Kontext task on RunAPI (text to image). Returns a task id, status, and output URLs.
| Parameter | Type | Description |
|---|---|---|
prompt * | string | Image description (English only). Declared type: string. |
aspect_ratio | string | Output aspect ratio. Default: 16:9. Declared type: string. Known values: "21:9", "16:9", "4:3", "1:1", "3:4", "9:16". |
callback_url | string | Webhook URL for async notifications. Declared type: string. |
enable_prompt_expansion | boolean | Expand the prompt with more detail. Default: false. Declared type: boolean. |
enable_translation | boolean | Auto-translate non-English prompts. Default: true. Declared type: boolean. |
model | string | RunAPI model slug for this model line. |
output_format | string | Output format. Default: jpeg. Declared type: string. Known values: "jpeg", "png". |
poll_interval_ms | integer | |
safety_tolerance | integer | Content safety threshold. 0-6 for generation, 0-2 for editing. Default: 2. Declared type: integer. |
source_image_url | string | Source image URL for editing mode. Declared type: string. |
timeout_ms | integer | |
wait | boolean | Poll until the task reaches a terminal status. |
watermark | string | Watermark identifier. Declared type: string. |
get_task
Fetch the current status and latest result payload for a flux-kontext task.
| Parameter | Type | Description |
|---|---|---|
task_id * | string | Task id returned when the task was created. |
action | string | Asynchronous endpoint the task was created on. Defaults to the line's only asynchronous endpoint. |
check_pricing
Look up RunAPI pricing for the flux-kontext model line.
| Parameter | Type | Description |
|---|---|---|
action | string | Endpoint name. Defaults to the endpoint that offers the model. |
model | string | Model slug. Defaults to the line's primary model. |