cli
v0.3.1Unified CLI & MCP Server for LumenKey Multi-Modal AI (Video, Image & LLMs)
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
lumenkey_list_models
读取光钥模型目录,包含视频、图片、文本、音频的参数结构与价格。
| Parameter | Type | Description |
|---|---|---|
type | string | 按模型类型筛选 |
lumenkey_generate_video
获取光钥视频报价;未提供的目录标量默认值会显式写入 input;只有 confirm 为 true 时才提交计费生成。参数别名冲突在本地拒绝。
| Parameter | Type | Description |
|---|---|---|
modelId * | string | 模型 ID |
prompt * | string | 发给模型的提示词 |
confirm | boolean | 确认提交这次计费生成;否则只报价 |
count | number | string | 数量,仅当目录声明了该字段;按目录类型校验 |
downloadPath | string | 把第一个结果保存到该文件路径(绝对路径或 ~/ 开头);省略则只返回地址 |
duration | number | 视频时长(秒);省略时会显式发送目录中的标量默认值 |
idempotencyKey | string | 可选,省略时自动生成。只在提交结果未知时复用,记录的请求体会原样重发 |
imageUrl | string | 图生视频的源图地址,仅当目录声明了该字段 |
intervalMs | number | 轮询间隔;默认 5 秒 |
maxCredits | integer | 报价超过该花费上限时拒绝(非负整数) |
projectId | string | 请留空,由客户端填入。 |
ratio | string | 宽高比,仅当目录声明了 aspect_ratio 或 ratio |
resolution | string | 分辨率,仅当目录声明了该字段 |
set | 模型参数结构声明的额外 key=value,可重复 | |
timeoutMs | number | 等待超时;默认 1800 秒,超时不取消任务 |
lumenkey_generate_image
获取光钥图片报价;未提供的目录标量默认值会显式写入 input;只有 confirm 为 true 时才提交计费生成。参数别名冲突在本地拒绝。
| Parameter | Type | Description |
|---|---|---|
modelId * | string | 模型 ID |
prompt * | string | 发给模型的提示词 |
confirm | boolean | 确认提交这次计费生成;否则只报价 |
count | number | string | 数量,仅当目录声明了该字段;按目录类型校验 |
downloadPath | string | 把第一个结果保存到该文件路径(绝对路径或 ~/ 开头);省略则只返回地址 |
idempotencyKey | string | 可选,省略时自动生成。只在提交结果未知时复用,记录的请求体会原样重发 |
imageUrl | string | 参考图地址,仅当目录声明了该字段 |
intervalMs | number | 轮询间隔;默认 5 秒 |
maxCredits | integer | 报价超过该花费上限时拒绝(非负整数) |
projectId | string | 请留空,由客户端填入。 |
ratio | string | 宽高比,仅当目录声明了 aspect_ratio 或 ratio |
resolution | string | 分辨率,仅当目录声明了该字段 |
set | 模型参数结构声明的额外 key=value,可重复 | |
size | string | 旧版尺寸参数,仅用于目录声明了 size 的模型 |
timeoutMs | number | 等待超时;默认 1800 秒,超时不取消任务 |
lumenkey_query_job
按任务 ID 查询已有异步生成任务的状态。
| Parameter | Type | Description |
|---|---|---|
jobId * | string | 要查询的任务 ID |
lumenkey_check_balance
查询光钥账户的可用算力点、冻结算力点和更新时间。
lumenkey_chat
发起计费文本推理;成功调用可能消耗算力点,仅为同一次相同请求复用幂等键。
| Parameter | Type | Description |
|---|---|---|
prompt * | string | 发送给模型的用户消息 |
idempotencyKey | string | 仅为同一次相同请求复用;超时后用结果里报告的键原样重试 |
maxCredits | integer | 所需预授权超过该花费上限时在推理前拒绝(非负整数) |
modelId | string | 模型 ID(例如 qwen3.7-flash、qwen3.8-max、grok-4.6) |
systemPrompt | string | 可选的系统指令;空白时不发送 |
lumenkey_explain_model
说明指定模型的参数、必填字段与允许的值。
| Parameter | Type | Description |
|---|---|---|
modelId * | string | 要解释的模型 ID |
lumenkey_tasks_progress
读取一条已有生成任务的进度。
| Parameter | Type | Description |
|---|---|---|
jobId * | string | 要查询的任务 ID |
lumenkey_tasks_wait
等待已有生成任务,不创建新任务。
| Parameter | Type | Description |
|---|---|---|
jobId * | string | 要等待的已有任务 ID |
intervalMs | number | 轮询间隔;默认 5 秒 |
timeoutMs | number | 等待超时;默认 1800 秒,超时不取消任务 |
lumenkey_resume_submission
按幂等键原样重发一次已记录的提交(结果未知后的恢复)。网关会回放之前的任务或只创建一次;不会重新报价,也不接受任何生成参数。
| Parameter | Type | Description |
|---|---|---|
idempotencyKey * | string | 要原样重发的已记录提交的幂等键 |
downloadPath | string | 把第一个结果保存到该文件路径(绝对路径或 ~/ 开头);省略则只返回地址 |
intervalMs | number | 轮询间隔;默认 5 秒 |
timeoutMs | number | 等待超时;默认 1800 秒,超时不取消任务 |
lumenkey_tasks_cancel
取消已有任务必须传 yes: true。取消不等于退款;冻结算力点是否释放或扣除由网关最终结算决定。
| Parameter | Type | Description |
|---|---|---|
jobId * | string | 要取消的任务 ID |
yes | boolean | 必须为 true 才授权取消;取消不等于退款 |