text
silvamux/
claude-haiku-5-5价格
以单次请求的输入上下文长度判定档位,Tune 与 Pro 采用相同的阶梯价格。
| 输入上下文 | 输入 | 输出 | 缓存读取 | 缓存写入 |
|---|---|---|---|---|
| ≤ 100K tokens | $0.1 | $0.5 | $0.01 | $0.125 |
| > 100K tokens | $0.5 | $2.5 | $0.05 | $0.625 |
模型能力
评测数据暂未可用
服务表现
暂未提供服务表现数据
Claude Haiku 5.5 的示例代码和 API
Pro
claude-haiku-5-5/api/v0/chat/completions/api/v1/chat/completions/api/anthropic/v1/messagescurl https://silvamux.io/api/v1/chat/completions \
-H "Authorization: Bearer 你的API密钥" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-haiku-5-5",
"messages": [{"role": "user", "content": "你好,请介绍一下自己"}]
}'# pip install openai
from openai import OpenAI
client = OpenAI(
base_url="https://silvamux.io/api/v1",
api_key="你的API密钥",
)
response = client.chat.completions.create(
model="claude-haiku-5-5",
messages=[
{"role": "user", "content": "你好,请介绍一下自己"}
],
)
print(response.choices[0].message.content)// Gradle: implementation(__HL_SLOT_0__)
import okhttp3.*;
OkHttpClient client = new OkHttpClient();
MediaType json = MediaType.get("application/json");
String payload = "{\"model\":\"claude-haiku-5-5\",\"messages\":[{\"role\":\"user\",\"content\":\"你好,请介绍一下自己\"}]}";
Request request = new Request.Builder()
.url("https://silvamux.io/api/v1/chat/completions")
.header("Authorization", "Bearer 你的API密钥")
.post(RequestBody.create(payload, json))
.build();
try (Response response = client.newCall(request).execute()) {
System.out.println(response.body().string());
}// npm install openai
import OpenAI from 'openai'
const client = new OpenAI({
baseURL: 'https://silvamux.io/api/v1',
apiKey: '你的API密钥',
})
const response = await client.chat.completions.create({
model: 'claude-haiku-5-5',
messages: [{ role: 'user', content: '你好,请介绍一下自己' }],
})
console.log(response.choices[0].message.content)