seedream-mcp

v0.4.0
io.github.runapi-builder/seedream-mcp Checked 2 days ago Published 4 days ago

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

decompose_layers

Create a Seedream task on RunAPI (decompose layers). Returns a task id, status, and output URLs.

ParameterTypeDescription
image_url *stringExactly one public PNG, JPEG, WebP, BMP, TIFF, or GIF image URL; HEIC and HEIF are unsupported. Maximum 30 MB, 262,144-36,000,000 total pixels, and aspect ratio 1:16-16:1. Declared type: string.
callback_urlstringDeclared type: string.
max_imagesintegerMaximum output images, including the base image. Declared type: integer.
modelstringRunAPI model slug for this model line.
output_formatstringBase image format. Separated layers are PNG. Declared type: string. Known values: "png", "jpeg".
poll_interval_msinteger
promptstringOptional instructions describing which elements to separate. Declared type: string.
sizestringDeclared type: string. Known values: "auto", "1K", "1.5K", "2K".
text_recognitionbooleanRecognize text while separating image layers. Declared type: boolean.
timeout_msinteger
waitbooleanPoll until the task reaches a terminal status.

edit_image

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

ParameterTypeDescription
source_image_urls *arrayDeclared type: array.
aspect_ratiostringDeclared type: string. Known values: "1:1", "4:3", "3:4", "16:9", "9:16", "2:3", "3:2", "21:9", "auto".
backgroundstringKeep the transparent background of the source image. Requires exactly one PNG source image with an alpha channel and output_format png. Declared type: string. Known values: "transparent", "auto", "opa…
callback_urlstringDeclared type: string.
enable_safety_checkerbooleanDeclared type: boolean.
modelstringRunAPI model slug for this model line.
output_countintegerDeclared type: integer.
output_formatstringDeclared type: string.
output_qualitystringDeclared type: string.
output_resolutionstringDeclared type: string.
poll_interval_msinteger
promptstringDeclared type: string.
seedintegerDeclared type: integer.
timeout_msinteger
waitbooleanPoll until the task reaches a terminal status.

text_to_image

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

ParameterTypeDescription
aspect_ratiostringDeclared type: string. Known values: "1:1", "4:3", "3:4", "16:9", "9:16", "2:3", "3:2", "21:9".
backgroundstringOutput background mode. Declared type: string. Known values: "auto", "transparent", "opaque".
callback_urlstringDeclared type: string.
enable_safety_checkerbooleanDeclared type: boolean.
modelstringRunAPI model slug for this model line.
output_countintegerDeclared type: integer.
output_formatstringDeclared type: string.
output_qualitystringDeclared type: string.
output_resolutionstringDeclared type: string.
poll_interval_msinteger
promptstringDeclared type: string.
seedintegerDeclared type: integer.
timeout_msinteger
waitbooleanPoll until the task reaches a terminal status.

get_task

Fetch the current status and latest result payload for a seedream 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 seedream model line.

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