GLM-4-Long 是一款专为处理超长文本和记忆型任务而设计的语言模型,支持 1M 超长输入(150-200 万字)。 > 价格 > > 1 元 / 百万 Tokens > 输入模态 > > 文本 > 输出模态 > > 文本 > 上下文窗口 > > 1M > 最大输出 Tokens > > 4K
curl https://api.yourplatform.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "undefined",
"messages": [
{"role": "user", "content": "Hello!"}
],
"stream": true
}'