GPT 5.6 Terra 经济版
GPT-5.6 Terra 是 OpenAI GPT-5.6 系列中的均衡型模型,定位介于旗舰级 Sol 和高性价比 Luna 之间。它非常适合日常编程、推理和智能体工作流,在通用生产环境中实现了质量、延迟和成本之间的良好平衡。
gpt-5.6-terra
1 身份验证
该 API 使用 API Key 进行身份验证。
获取你的 API Key
从 https://icreat.ai/hub/keys 获取你的 API key。
2 调用 API
该模型提供与 OpenAI 的 /chat/completions API 兼容的 HTTP API。你可以使用任何与此 API 兼容的 SDK 来调用该 llm。
2.1 curl
curl --fail-with-body --connect-timeout 10 --max-time 60 \
-X POST https://api.icreat.ai/llm/openai/v1/chat/completions \
-H "Authorization: Bearer ${ICREAT_API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.6-terra",
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Coffee or tea ? Which is healthier? "}
],
"thinking": {"type": "enabled"},
"reasoning_effort": "low",
"stream": false
}'2.2 python
import os
from openai import OpenAI
client = OpenAI(
api_key="ICREAT_API_KEY",
base_url="https://api.icreat.ai/llm/openai",
)
completion = client.chat.completions.create(
model="gpt-5.6-terra",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Coffee or tea ? Which is healthier? "}
]
)
print(completion.choices[0].message.content)2.3 node.js
const OpenAI = require("openai");
const client = new OpenAI({
apiKey: "ICREAT_API_KEY",
baseURL: "https://api.icreat.ai/llm/openai",
});
async function main() {
const completion = await client.chat.completions.create({
model: "gpt-5.6-terra",
messages: [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Coffee or tea ? Which is healthier? "}
]
});
console.log(completion.choices[0].message.content);
}
main();3 API 协议
3.1 流式输出
将 stream 参数设置为 true 以请求流式输出。
{
"model": "gpt-5.6-terra",
"messages": [
{
"role": "user",
"content": "Please explain what recursion is and give a Python example."
}
],
"stream": true
}