TensaHub › Kilo AI Gateway

OpenRouter Free Models Router

Kilo AI Gateway 提供的 openrouter/free 模型 API,免费且无需密钥,上下文 200,000 token,中位响应 1814 毫秒。提供 curl、Python、JavaScript 示例及在线测试。

在目录中测试并评分

The simplest way to get free inference. openrouter/free is a router that selects free models at random from the models available on OpenRouter. The router smartly filters for models that...

类型
模型
服务商
Kilo AI Gateway
模型 ID
openrouter/free
价格
免费
无需密钥访问
是
Base URL(兼容 OpenAI)
https://ai-gateway.kilo.ai/api/v1
上下文
200,000 token
输入
文本, 图像
功能
推理, JSON 输出, 工具调用
响应时间
中位数 1814 ms · p95 12565 ms · 首个 token 933 ms · 成功率 100%(30 次测试)· 最近 2026-12-04T23:11:25.228Z
开发者评分
暂无评分
文档
https://kilo.ai
最近检查
2026-12-04T23:11:25.228Z

代码示例

cURL

curl https://ai-gateway.kilo.ai/api/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{"model":"openrouter/free","messages":[{"role":"user","content":"你好,请用一句话介绍你自己。"}]}'

Python

# pip install openai
import os
from openai import OpenAI

client = OpenAI(base_url="https://ai-gateway.kilo.ai/api/v1", api_key="unused")
r = client.chat.completions.create(
    model="openrouter/free",
    messages=[{"role": "user", "content": "你好,请用一句话介绍你自己。"}],
)
print(r.choices[0].message.content)

JavaScript

// npm install openai
import OpenAI from 'openai'

const client = new OpenAI({ baseURL: 'https://ai-gateway.kilo.ai/api/v1', apiKey: 'unused' })
const r = await client.chat.completions.create({
  model: 'openrouter/free',
  messages: [{ role: 'user', content: '你好,请用一句话介绍你自己。' }],
})
console.log(r.choices[0].message.content)

生成集成代码 →

热门搜索

常见问题

OpenRouter Free Models Router API 免费吗?

是的:OpenRouter Free Models Router 可免费使用且无需 API 密钥,但受服务商的速率限制。

如何在代码中调用 OpenRouter Free Models Router?

OpenRouter Free Models Router 在 https://ai-gateway.kilo.ai/api/v1 提供兼容 OpenAI 的 API:使用任意 OpenAI SDK(Python、JavaScript 等)并设置该基础 URL 即可。 模型标识:openrouter/free。 开发者工具箱中提供了即用代码(流式输出、JSON、重试)。

OpenRouter Free Models Router 的速度如何?

TensaHub 实测:中位响应时间 1,814 毫秒,首个令牌 933 毫秒,最近 30 次检测成功率 100%。

OpenRouter Free Models Router 的上下文窗口有多大?

OpenRouter Free Models Router 最多支持 200,000 个令牌的上下文(提示词和历史记录)。

OpenRouter Free Models Router 有哪些替代方案?

目录中的类似 API:Auto Free, Free Models Router, Auto Router, Auto Code, Auto Router (Beta)。

替代方案