TokPort
Generate images and videos (GPT Image, Seedance, Kling, Wan, Qwen) with one API key.
我该使用它吗
质量与安全性
发现(1)
- LOW在 get_pricing 中
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"tokport": {
"url": "https://tokport.io/api/mcp"
}
}
}远程端点
https://tokport.io/api/mcpstreamable-http它能做什么
工具清单
工具(8)
🟡search_models(q, modality, task, available)
Search the model catalog. Returns ids, modality, tasks, pricing and links. Use before calling run_model or submit_job to pick a model id.
输入模式
{
"type": "object",
"properties": {
"q": {
"type": "string",
"description": "Free-text query over id, name, vendor and tags"
},
"modality": {
"type": "string",
"description": "image or video",
"enum": [
"image",
"video"
]
},
"task": {
"type": "string",
"description": "text-to-image | image-to-image | text-to-video | image-to-video"
},
"available": {
"type": "boolean",
"description": "Only models live on the gateway"
}
}
}🟢get_model_schema(model)
Input parameters (name, type, allowed values, defaults) and output shape for every task a model supports.
输入模式
{
"type": "object",
"properties": {
"model": {
"type": "string",
"description": "Model id, e.g. gpt-image-2"
}
},
"required": [
"model"
]
}🟢get_pricing(model)
Live price per image or per video clip for one model or all models.
输入模式
{
"type": "object",
"properties": {
"model": {
"type": "string",
"description": "Model id; omit for all models"
}
}
}⚪run_model(model, input, task)
Run a model synchronously with the caller's API key. Images return URLs; videos are queued and this waits up to 60 s before returning the queue status instead.
输入模式
{
"type": "object",
"properties": {
"model": {
"type": "string",
"description": "Model id"
},
"input": {
"type": "object",
"description": "Model input: prompt, size, n, image, seconds …",
"additionalProperties": true
},
"task": {
"type": "string",
"description": "Force the task kind (inferred otherwise)"
}
},
"required": [
"model",
"input"
]
}🟡submit_job(model, input, task, webhook, priority)
Queue a request and return its request_id immediately. Follow with check_job / get_job_result.
输入模式
{
"type": "object",
"properties": {
"model": {
"type": "string",
"description": "Model id"
},
"input": {
"type": "object",
"additionalProperties": true
},
"task": {
"type": "string",
"description": "Force the task kind (inferred otherwise)"
},
"webhook": {
"type": "string",
"description": "Public http(s) URL to POST the result to"
},
"priority": {
"type": "string",
"description": "normal or low",
"enum": [
"normal",
"low"
]
}
},
"required": [
"model",
"input"
]
}🟢check_job(model, request_id, logs)
Status of a queued request (IN_QUEUE / IN_PROGRESS / COMPLETED / FAILED / CANCELLED) with position, logs and metrics.
输入模式
{
"type": "object",
"properties": {
"model": {
"type": "string",
"description": "Model id"
},
"request_id": {
"type": "string",
"description": "req_… id"
},
"logs": {
"type": "boolean"
}
},
"required": [
"model",
"request_id"
]
}🟢get_job_result(model, request_id, timeout)
Result of a completed request; waits up to `timeout` seconds (max 60) when still running.
输入模式
{
"type": "object",
"properties": {
"model": {
"type": "string",
"description": "Model id"
},
"request_id": {
"type": "string",
"description": "req_… id"
},
"timeout": {
"type": "integer",
"minimum": 0,
"maximum": 60
}
},
"required": [
"model",
"request_id"
]
}🔴cancel_job(model, request_id)
Cancel a request while it is still queued.
输入模式
{
"type": "object",
"properties": {
"model": {
"type": "string",
"description": "Model id"
},
"request_id": {
"type": "string",
"description": "req_… id"
}
},
"required": [
"model",
"request_id"
]
}社区
证据