APIKO

v0.1.1
io.github.tong0619453646-dev/apiko-mcp Checked 4 days ago Published 1 month ago

Look up APIKO image and video models, quote prices, generate media and track spend.

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

search_models Search APIKO models

List the APIKO models this API key can use, with category (image / video / chat), list prices and generation modes. Free. Use it before get_model; never guess model ids. Text models are listed for reference: call them with the OpenAI-compatible API, not through this server.

ParameterTypeDescription
categorystringDefault "all".
limitintegerDefault 20.
querystringWords that must all appear in the id, name or provider, e.g. "seedance" or "banana 2.1".

get_model Get APIKO model details

Read one model's request fields (input_schema: types, enums, defaults, required fields), endpoints, async/sync modes and price tiers. Free. Send only fields from input_schema to estimate_cost and the generate tools.

ParameterTypeDescription
model *stringExact model id from search_models.

estimate_cost Estimate generation cost

Validate a planned input against the model schema and quote its list price without submitting anything. Free. status "estimated" gives a number; "needs_input" names what is missing (e.g. reference_video_seconds); "token_billed" and "unknown" mean no reliable number exists, so never present them as a price. Show the user the model, input and estimate and wait for explicit approval before calling generate_image or generate_video.

ParameterTypeDescription
model *string
inputobjectModel request fields exactly as listed in get_model input_schema (e.g. {"prompt": "...", "resolution": "2k"}). Leave out model and async.
reference_video_secondsnumberTotal length in seconds of all reference_videos, when the input has any; used only for the estimate.

generate_image Generate or edit an image (billable)

BILLABLE: creates a paid image task charged to the user's APIKO balance. Only call after estimate_cost on the same input and the user's explicit approval of the model and cost. With reference images in input.images it edits (POST /v1/images/edits), otherwise it generates. The input is validated against the model schema first. Runs async when the model supports it and waits up to wait_seconds; if not done, poll with get_task. Never call again to check progress.

ParameterTypeDescription
model *stringExact image model id.
client_request_idstringYour id for this one approved request (8-96 chars of letters, digits, . _ -). Reusing it with the same input returns the earlier task instead of charging twice.
inputobjectModel request fields exactly as listed in get_model input_schema (e.g. {"prompt": "...", "resolution": "2k"}). Leave out model and async.
max_cost_usdnumberBudget the user approved; the call is refused if the estimate (or its upper bound) is higher or cannot be computed.
promptstringShortcut for input.prompt; give the prompt once.
wait_secondsintegerSeconds to wait for the result (default 30).

generate_video Generate a video (billable)

BILLABLE: creates a paid video task (POST /v1/videos) charged per second to the user's APIKO balance. Only call after estimate_cost on the same input and the user's explicit approval of the model, duration, resolution and cost. Reference videos add billed seconds. Returns a task_id at once; poll with get_task (videos take minutes). Never call again to check progress.

ParameterTypeDescription
model *stringExact video model id.
client_request_idstringYour id for this one approved request (8-96 chars of letters, digits, . _ -). Reusing it with the same input returns the earlier task instead of charging twice.
inputobjectModel request fields exactly as listed in get_model input_schema (e.g. {"prompt": "...", "resolution": "2k"}). Leave out model and async.
max_cost_usdnumberBudget the user approved; the call is refused if the estimate (or its upper bound) is higher or cannot be computed.
promptstringShortcut for input.prompt; give the prompt once.
reference_video_secondsnumberTotal reference video length, for the cost check only; not sent.
wait_secondsintegerSeconds to wait (default 0; videos take minutes, use get_task).

get_task Get task status and results

Read an image or video task: status (queued, in_progress, completed, failed), progress, result_urls and fail_reason. Free. wait_seconds (0-45, default 30) keeps polling until the task finishes or the time runs out. Failed tasks are refunded automatically. Result links last 24 hours.

ParameterTypeDescription
task_id *stringtask_id returned by generate_image or generate_video.
wait_secondsinteger

check_balance Check key limit and usage

Show what this API key has spent and its own spending limit, if it has one. Free. Keys without a limit draw on the account balance, which API keys cannot read; the user sees it at https://apiko.app/dashboard/billing.

upload_image Upload a reference image

Upload a JPEG, PNG or WebP (up to 10 MB) and get a public https://img.apiko.app URL for reference fields such as images, first_image_url or reference_image_urls. Free (per key: 60 per minute, 1,000 per day). Give exactly one of path (a local file the user named) or url. The uploaded copy is public to anyone with the link and deleted after 72 hours, so only upload files the user asked to use.

ParameterTypeDescription
pathstringLocal file path (absolute, ~/..., or relative to the server's working directory).
urlstringPublic http(s) image URL to copy.