runapi-mcp

v0.18.0
io.github.runapi-builder/runapi-mcp Checked 3 days ago Published 4 days ago

130+ AI models for image, video, music, and audio — 18 model families, one RunAPI account.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_models

List RunAPI models from the embedded catalog. Optional filters: modality, service, or action.

ParameterTypeDescription
actionstring
modalitystring
servicestring

get_model_info

Get supported endpoint, current runtime pricing, and input constraints for a RunAPI model slug. Add service and action when the model supports multiple endpoints.

ParameterTypeDescription
model *stringRunAPI model slug returned by list_models
actionstringRunAPI endpoint name returned by list_models; use with service to disambiguate multi-endpoint models
servicestringRunAPI service slug returned by list_models; use with action to disambiguate multi-endpoint models

list_actions

List RunAPI endpoint names grouped by output modality.

check_pricing

Return current runtime pricing for a RunAPI model/action pair.

ParameterTypeDescription
action *stringRunAPI endpoint name, for example text_to_image or text_to_music
service *stringRunAPI service slug returned by list_models
modelstringRunAPI model slug

search_prompts

Search RunAPI prompt examples by natural-language idea (across languages, default relevance ranking when q is set), modality, category slug or deprecated legacy value, tags, approved example image availability (has_image), or target runnable model (runnable_by). Each result includes resolved prompt text ready to send to a model, the original template, ordered name/default variables for editing, grouped categories (use, style, subject), approved example images in media, and endpoints with ready-to-call request_example bodies. Example videos and reference images are not returned. Free with rate…

ParameterTypeDescription
categorystring
has_imagebooleanFilter by whether the prompt has an approved public example image.
modalitystringPrompt modality: image, video, music, or audio.
modelstringCompatibility alias for runnable_by.
pagenumberPage number; 1–20 (values below 1 clamp to 1).
per_pagenumberPage size; max 10 anonymous, max 50 with a free API key, max 100 for topped-up accounts.
qstringNatural-language search query matched semantically across languages and via full-text search across title, description, categories, tags, and prompt text.
runnable_bystringRunAPI model slug (for example flux-kontext-pro or suno-v6) to filter runnable prompts and narrow returned endpoints.
sortstringSort order: relevance (default when q is set) or newest.
tagsarrayTags to match. All provided tags must be present.

check_balance

Return the authenticated RunAPI account balance and spending metrics.

create_task

Run a RunAPI operation with a caller-generated idempotency key. Asynchronous operations can optionally poll until completion.

ParameterTypeDescription
action *stringRunAPI endpoint name, for example text_to_image
idempotency_key *stringOpaque caller-generated key for safely replaying one logical task creation.
service *stringRunAPI service slug returned by list_models
modelstringRunAPI model value sent to the server without local validation.
paramsobjectEndpoint parameters sent to RunAPI for server-side validation.
poll_interval_msintegerStatus check interval while waiting for completion.
timeout_msintegerRequested completion deadline in milliseconds; values above the endpoint limit are capped.
waitbooleanWait for the completed result when the endpoint requires durable processing.

get_task

Fetch the current status and latest payload for an existing RunAPI task.

ParameterTypeDescription
service *string
task_id *string
actionstringRunAPI endpoint name. Provide this when using media task routes.

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.