qwen-image-mcp

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

RunAPI MCP server for Qwen 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.

edit_image

Create a Qwen Image task on RunAPI (edit image). Returns a task id, status, and output URLs.

ParameterTypeDescription
prompt *stringEdit instruction for the source image. Declared type: string.
source_image_url *stringPublic HTTPS source image URL (JPEG, PNG, or WebP; maximum 10 MB). Declared type: string.
aspect_ratiostringOutput aspect ratio. Declared type: string. Known values: "1:1", "3:4", "9:16", "4:3", "16:9".
callback_urlstringWebhook URL for asynchronous task updates. Declared type: string.
modelstringRunAPI model slug for this model line.
output_formatstringOutput image format. Declared type: string. Known values: "png", "jpeg".
poll_interval_msinteger
seedintegerInteger seed for reproducible results. Declared type: integer.
timeout_msinteger
waitbooleanPoll until the task reaches a terminal status.

remix_image

Create a Qwen Image task on RunAPI (remix image). Returns a task id, status, and output URLs.

ParameterTypeDescription
prompt *stringPrompt describing the requested remix. Declared type: string.
source_image_url *stringPublic HTTPS source image URL (JPEG, PNG, or WebP; maximum 10 MB). Declared type: string.
callback_urlstringWebhook URL for asynchronous task updates. Declared type: string.
modelstringRunAPI model slug for this model line.
output_formatstringOutput image format. Declared type: string. Known values: "png", "jpeg".
poll_interval_msinteger
seedintegerInteger seed for reproducible results. Declared type: integer.
strengthnumberCreative deviation from the source image, from 0 (faithful) to 1 (creative). Declared type: number.
timeout_msinteger
waitbooleanPoll until the task reaches a terminal status.

text_to_image

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

ParameterTypeDescription
prompt *stringImage generation prompt. Declared type: string.
aspect_ratiostringOutput aspect ratio. Declared type: string. Known values: "1:1", "3:4", "9:16", "4:3", "16:9".
callback_urlstringWebhook URL for asynchronous task updates. Declared type: string.
modelstringRunAPI model slug for this model line.
output_formatstringOutput image format. Declared type: string. Known values: "png", "jpeg".
poll_interval_msinteger
seedintegerInteger seed for reproducible results. Declared type: integer.
timeout_msinteger
waitbooleanPoll until the task reaches a terminal status.

get_task

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

ParameterTypeDescription
action *stringAsynchronous endpoint the task was created on.
task_id *stringTask id returned when the task was created.

check_pricing

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

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