flux-2-mcp
v0.3.3RunAPI MCP server for Flux 2: 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. |
remix_image
Create a Flux 2 task on RunAPI (remix image). Returns a task id, status, and output URLs.
| Parameter | Type | Description |
|---|---|---|
prompt * | string | Image editing instruction. Declared type: string. |
source_image_urls * | array | Public source image URLs. Declared type: array. |
aspect_ratio | string | Output aspect ratio. Declared type: string. Known values: "1:1", "4:3", "3:4", "16:9", "9:16", "3:2", "2:3", "auto". |
callback_url | string | Webhook URL for async notifications. Declared type: string. |
enable_safety_checker | boolean | Enable the safety checker. Declared type: boolean. |
model | string | RunAPI model slug for this model line. |
output_count | integer | Number of images to generate. Declared type: integer. Known values: 1. |
output_resolution | string | Output resolution. Declared type: string. Known values: "1k", "2k". |
poll_interval_ms | integer | |
timeout_ms | integer | |
wait | boolean | Poll until the task reaches a terminal status. |
text_to_image
Create a Flux 2 task on RunAPI (text to image). Returns a task id, status, and output URLs.
| Parameter | Type | Description |
|---|---|---|
prompt * | string | Image description. Declared type: string. |
aspect_ratio | string | Output aspect ratio. Declared type: string. Known values: "1:1", "4:3", "3:4", "16:9", "9:16", "3:2", "2:3". |
callback_url | string | Webhook URL for async notifications. Declared type: string. |
enable_safety_checker | boolean | Enable the safety checker. Declared type: boolean. |
model | string | RunAPI model slug for this model line. |
output_count | integer | Number of images to generate. Declared type: integer. Known values: 1. |
output_resolution | string | Output resolution. Declared type: string. Known values: "1k", "2k". |
poll_interval_ms | integer | |
timeout_ms | integer | |
wait | boolean | Poll until the task reaches a terminal status. |
get_task
Fetch the current status and latest result payload for a flux-2 task.
| Parameter | Type | Description |
|---|---|---|
action * | string | Asynchronous endpoint the task was created on. |
task_id * | string | Task id returned when the task was created. |
check_pricing
Look up RunAPI pricing for the flux-2 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. |