Modelflare

v0.1.2
io.github.castaly-ai/mcp-server Checked 3 days ago Published 1 month ago

Image and video generation with one Modelflare Smart API Key.

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

list_models List Modelflare models

Lists the models this Modelflare API key can call, with the docs page that holds each media model's exact request contract. Defaults to image and video models.

ParameterTypeDescription
kindstringOnly list models of this kind.

generate_image Generate or edit an image

Generates an image, or edits one with edit=true, using a Modelflare image model, and saves the result to the output directory. Billed to the Modelflare balance by actual usage.

ParameterTypeDescription
model *stringImage model ID from list_models.
prompt *string
editbooleanUse the edits route (OpenAI-compatible image models only).
parametersobjectModel-specific request fields, sent unchanged. Read the model's docs page (from list_models) for the exact fields.

create_video Create a video task

Starts an asynchronous Modelflare video task and returns its task ID. Poll with get_video_status and save with download_video. Billed to the Modelflare balance by actual usage.

ParameterTypeDescription
model *stringVideo model ID from list_models.
request *objectRequest body from the model's docs page (from list_models). The model field is set from the model argument.

get_video_status Get video task status

Returns the status and progress of a Modelflare video task.

ParameterTypeDescription
task_id *string

download_video Download a finished video

Saves a completed Modelflare video to the output directory. Optionally waits for the task first. Result URLs expire, so download soon after completion.

ParameterTypeDescription
task_id *string
wait_secondsintegerWait up to this many seconds for the task to finish (max 300).