Korpi API

v0.1.0
io.github.Reksely/korpi-api-mcp Checked 4 days ago Published 1 month ago

MCP server for the Korpi API: every top AI video, image and text model behind one key and one bill.

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

list_models List Korpi models

List the Korpi API models with their ids, type (video, image or text), options and current per-use price in USD. Free; no key needed.

ParameterTypeDescription
typestringOnly return models of this type.

generate_video Generate a video

Start a paid video generation (charged per second from the API balance; see list_models). Returns a job id. Poll get_job_status until status is completed or failed. Do not resubmit after a timeout: the first job may already be running.

ParameterTypeDescription
prompt *stringWhat happens in the video.
aspect_ratiostring
durationintegerLength in seconds.
image_urlstringOptional https URL of a start image.
modelstringVideo model id from list_models.
wait_secondsintegerWait up to this many seconds for the video to finish before returning.

generate_image Generate an image

Generate a paid image (charged per image from the API balance; see list_models). Returns the image URL when done.

ParameterTypeDescription
prompt *stringWhat the image shows.
aspect_ratiostring
image_urlsarrayOptional https reference images.
modelstringImage model id from list_models.

generate_text Generate text

Run a paid chat completion (charged per request from the API balance; see list_models). Pass a prompt, or a full messages array.

ParameterTypeDescription
max_tokensinteger
messagesarray
modelstringText model id from list_models.
promptstringUser message. Ignored when messages is set.
systemstringOptional system message used with prompt.

get_job_status Check a video job

Check a video job started with generate_video. Returns status (queued, in_progress, completed or failed) and the video URL once completed. Free.

ParameterTypeDescription
id *stringJob id returned by generate_video.