Modelflare
v0.1.2Image 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.
| Parameter | Type | Description |
|---|---|---|
kind | string | Only 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.
| Parameter | Type | Description |
|---|---|---|
model * | string | Image model ID from list_models. |
prompt * | string | |
edit | boolean | Use the edits route (OpenAI-compatible image models only). |
parameters | object | Model-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.
| Parameter | Type | Description |
|---|---|---|
model * | string | Video model ID from list_models. |
request * | object | Request 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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
task_id * | string | |
wait_seconds | integer | Wait up to this many seconds for the task to finish (max 300). |