z-image-mcp

v0.2.2
io.github.runapi-builder/z-image-mcp Checked 2 days ago Published 4 days ago

RunAPI MCP server for Z Image: 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.

ParameterTypeDescription
forcebooleanRe-run browser login when the current credential comes from the local config file.

text_to_image

Create a Z Image task on RunAPI (text to image). Returns a task id, status, and output URLs.

ParameterTypeDescription
aspect_ratio *stringDeclared type: string. Known values: "1:1", "4:3", "3:4", "16:9", "9:16".
prompt *stringDeclared type: string.
callback_urlstringDeclared type: string.
enable_safety_checkerbooleanDeclared type: boolean.
modelstringRunAPI model slug for this model line.
poll_interval_msinteger
timeout_msinteger
waitbooleanPoll until the task reaches a terminal status.

get_task

Fetch the current status and latest result payload for a z-image task.

ParameterTypeDescription
task_id *stringTask id returned when the task was created.
actionstringAsynchronous endpoint the task was created on. Defaults to the line's only asynchronous endpoint.

check_pricing

Look up RunAPI pricing for the z-image model line.

ParameterTypeDescription
actionstringEndpoint name. Defaults to the endpoint that offers the model.
modelstringModel slug. Defaults to the line's primary model.