Loading...
Loading...
通过OpenRouter,使用inference.sh CLI访问Claude、Gemini、Kimi、GLM及100+大语言模型(LLMs)。 支持模型:Claude Opus 4.5、Claude Sonnet 4.5、Claude Haiku 4.5、Gemini 3 Pro、Kimi K2、GLM-4.6、Intellect 3。 统一API接入所有模型,具备自动降级和成本优化功能。 适用场景:AI助手、代码生成、推理、Agent、聊天、内容生成。 相关关键词:claude api、openrouter、llm api、claude sonnet、claude opus、gemini api、kimi、大语言模型、gpt替代方案、anthropic api、ai模型api、llm访问、chat api、claude替代方案、openai替代方案
npx skill4agent add inference-sh/skills llm-modelscurl -fsSL https://cli.inference.sh | sh && infsh login
# 调用Claude Sonnet
infsh app run openrouter/claude-sonnet-45 --input '{"prompt": "Explain quantum computing"}'| 模型 | App ID | 适用场景 |
|---|---|---|
| Claude Opus 4.5 | | 复杂推理、代码生成 |
| Claude Sonnet 4.5 | | 性能均衡 |
| Claude Haiku 4.5 | | 快速、经济 |
| Gemini 3 Pro | | Google最新模型 |
| Kimi K2 Thinking | | 多步骤推理 |
| GLM-4.6 | | 开源、代码生成 |
| Intellect 3 | | 通用场景 |
| 任意模型 | | 自动选择最优模型 |
infsh app list --search "openrouter"
infsh app list --search "claude"infsh app run openrouter/claude-opus-45 --input '{
"prompt": "Write a Python function to detect palindromes with comprehensive tests"
}'infsh app run openrouter/claude-sonnet-45 --input '{
"prompt": "Summarize the key concepts of machine learning"
}'infsh app run openrouter/claude-haiku-45 --input '{
"prompt": "Translate this to French: Hello, how are you?"
}'infsh app run openrouter/kimi-k2-thinking --input '{
"prompt": "Plan a step-by-step approach to build a web scraper"
}'# 自动选择最具成本效益的模型
infsh app run openrouter/any-model --input '{
"prompt": "What is the capital of France?"
}'infsh app sample openrouter/claude-sonnet-45 --save input.json
# 编辑input.json:
# {
# "system": "You are a helpful coding assistant",
# "prompt": "How do I read a file in Python?"
# }
infsh app run openrouter/claude-sonnet-45 --input input.json# 全平台技能(包含150+应用)
npx skills add inference-sh/skills@inference-sh
# 网页搜索(与LLM结合实现RAG)
npx skills add inference-sh/skills@web-search
# 图像生成
npx skills add inference-sh/skills@ai-image-generation
# 视频生成
npx skills add inference-sh/skills@ai-video-generationinfsh app list