runapi-mcp
v0.18.0130+ 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.
| Parameter | Type | Description |
|---|---|---|
action | string | |
modality | string | |
service | string |
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.
| Parameter | Type | Description |
|---|---|---|
model * | string | RunAPI model slug returned by list_models |
action | string | RunAPI endpoint name returned by list_models; use with service to disambiguate multi-endpoint models |
service | string | RunAPI 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.
| Parameter | Type | Description |
|---|---|---|
action * | string | RunAPI endpoint name, for example text_to_image or text_to_music |
service * | string | RunAPI service slug returned by list_models |
model | string | RunAPI 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…
| Parameter | Type | Description |
|---|---|---|
category | string | |
has_image | boolean | Filter by whether the prompt has an approved public example image. |
modality | string | Prompt modality: image, video, music, or audio. |
model | string | Compatibility alias for runnable_by. |
page | number | Page number; 1–20 (values below 1 clamp to 1). |
per_page | number | Page size; max 10 anonymous, max 50 with a free API key, max 100 for topped-up accounts. |
q | string | Natural-language search query matched semantically across languages and via full-text search across title, description, categories, tags, and prompt text. |
runnable_by | string | RunAPI model slug (for example flux-kontext-pro or suno-v6) to filter runnable prompts and narrow returned endpoints. |
sort | string | Sort order: relevance (default when q is set) or newest. |
tags | array | Tags 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.
| Parameter | Type | Description |
|---|---|---|
action * | string | RunAPI endpoint name, for example text_to_image |
idempotency_key * | string | Opaque caller-generated key for safely replaying one logical task creation. |
service * | string | RunAPI service slug returned by list_models |
model | string | RunAPI model value sent to the server without local validation. |
params | object | Endpoint parameters sent to RunAPI for server-side validation. |
poll_interval_ms | integer | Status check interval while waiting for completion. |
timeout_ms | integer | Requested completion deadline in milliseconds; values above the endpoint limit are capped. |
wait | boolean | Wait for the completed result when the endpoint requires durable processing. |
get_task
Fetch the current status and latest payload for an existing RunAPI task.
| Parameter | Type | Description |
|---|---|---|
service * | string | |
task_id * | string | |
action | string | RunAPI 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.
| Parameter | Type | Description |
|---|---|---|
force | boolean | Re-run browser login when the current credential comes from the local config file. |