TensaHub › Kilo AI Gateway

Google: Lyria 3 Pro Preview

Kilo AI Gateway 提供的 google/lyria-3-pro-preview 模型 API,免费,上下文 1,048,576 token。提供 curl、Python、JavaScript 示例及在线测试。

在目录中测试并评分

Full-length songs are priced at $0.08 per song. Lyria 3 is Google's family of music generation models, available through the Gemini API. With Lyria 3, you can generate high-quality, 48kHz...

类型
模型
服务商
Kilo AI Gateway
模型 ID
google/lyria-3-pro-preview
价格
免费
无需密钥访问
否
密钥环境变量
KILO_API_KEY
Base URL(兼容 OpenAI)
https://ai-gateway.kilo.ai/api/v1
上下文
1,048,576 token
输入
文本, 图像
功能
JSON 输出
响应时间
中位数 — ms · p95 — ms · 首个 token — ms · 成功率 —%(3 次测试)· 最近 2026-12-04T01:21:05.116Z
开发者评分
暂无评分
文档
https://kilo.ai
最近检查
2026-12-04T01:21:05.116Z

代码示例

cURL

curl https://ai-gateway.kilo.ai/api/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $KILO_API_KEY" \
  -d '{"model":"google/lyria-3-pro-preview","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=os.environ["KILO_API_KEY"])
r = client.chat.completions.create(
    model="google/lyria-3-pro-preview",
    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: process.env.KILO_API_KEY })
const r = await client.chat.completions.create({
  model: 'google/lyria-3-pro-preview',
  messages: [{ role: 'user', content: '你好,请用一句话介绍你自己。' }],
})
console.log(r.choices[0].message.content)

生成集成代码 →

热门搜索

常见问题

Google: Lyria 3 Pro Preview API 免费吗?

是的:Google: Lyria 3 Pro Preview 可凭 API 密钥免费使用,但受服务商的速率限制。

如何在代码中调用 Google: Lyria 3 Pro Preview?

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

Google: Lyria 3 Pro Preview 的上下文窗口有多大?

Google: Lyria 3 Pro Preview 最多支持 1,048,576 个令牌的上下文(提示词和历史记录)。

Google: Lyria 3 Pro Preview 有哪些替代方案?

目录中的类似 API:gemma-4-26B-A4B-it · AkashML, gemma-4-26B-A4B-it · Cloudflare, gemma-4-26B-A4B-it · DeepInfra, gemma-4-26B-A4B-it · Google, gemma-4-26B-A4B-it · Makora。

替代方案