text
silvamux/
gpt-5.4价格
以单次请求的输入上下文长度判定档位,Tune 与 Pro 采用相同的阶梯价格。
| 输入上下文 | 输入 | 输出 | 缓存读取 | 缓存写入 |
|---|---|---|---|---|
| ≤ 270K tokens | $2.5 | $15 | $0.25 | $2.5 |
| > 270K tokens | $5 | $22.5 | $0.5 | $5 |
模型能力
评测数据暂未可用
服务表现
暂未提供服务表现数据
Gpt 5.4 的示例代码和 API
Pro
gpt-5.4/api/v0/chat/completions/api/v1/responsescurl https://silvamux.io/api/v1/chat/completions \
-H "Authorization: Bearer 你的API密钥" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.4",
"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="gpt-5.4",
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\":\"gpt-5.4\",\"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: 'gpt-5.4',
messages: [{ role: 'user', content: '你好,请介绍一下自己' }],
})
console.log(response.choices[0].message.content)