← 返回
未分类 Key

Kimi Use

Kimi Use provides conversation, image understanding, translation, and web search via Kimi AI tools using Node.js and Kimi For Coding APIs.
Kimi Use 利用 Node.js 与 Kimi For Coding API,提供对话、图像理解、翻译及网络搜索等 Kimi AI 工具服务。
cnlangzi cnlangzi 来源
未分类 clawhub v0.1.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 422
下载
💾 0
安装
1
版本
#latest

概述

Kimi Use

Kimi AI 工具集,提供对话、图像理解、翻译等功能。使用 Node.js 实现。

环境变量

export KIMI_API_KEY="sk-kimi-xxxx"                              # 必填(Kimi For Coding 格式)
export KIMI_API_HOST="https://api.kimi.com/coding"               # Kimi For Coding 端点
export KIMI_MODEL="kimi-for-coding"                              # 可选,默认 kimi-for-coding
export KIMI_VISION_MODEL="kimi-vl-flash"                         # 可选,默认 kimi-vl-flash

获取 API Key: https://www.kimi.com/code/user-center/basic-information/interface-key

安装依赖

cd ~/workspace/skills/kimi-use
npm install

CLI 命令

# 对话
node scripts/index.js chat "你好,介绍一下你自己"

# 图像理解(支持本地路径或 URL)
node scripts/index.js image "这张图片里有什么?" /path/to/image.jpg

# 翻译
node scripts/index.js translate "hello world" --to 中文

# 网络搜索(依赖模型知识库)
node scripts/index.js search "今日新闻"

# 流式输出
node scripts/index.js chat "讲一个故事" --stream

Node.js 模块调用

import { chat, understandImage, translate, webSearch } from './scripts/index.js';

// 对话
const r = await chat('你好');
console.log(r.result.content);

// 图像理解
const r = await understandImage('这张图里字幕在什么位置?用JSON返回', '/path/to/image.jpg');
console.log(r.result.content);

// 翻译
const r = await translate('hello', { to: 'Chinese' });
console.log(r.result.content);

API 详情

  • API 地址: https://api.kimi.com/coding/v1
  • 模型: kimi-for-coding, kimi-vl-flash (视觉)
  • 视觉: 支持本地 base64 图片和 URL
  • 兼容: OpenAI SDK 风格

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-05-03 07:21 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 677 📥 327,160
dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 195 📥 67,622
ai-agent

Minimax Use

cnlangzi
{ "answer": "MiniMax AI工具提供网页搜索、图像分析、大模型对话和语言翻译功能。适用于搜索网页、分析图像、生成文本等场景。" }
★ 0 📥 457