基础 URL、请求方法和必需请求头均按当前模型的协议模板渲染。
POSThttps://api.gate.ai/openai/v1/chat/completions
字段
值
Authorization
认证请求头,使用 Bearer {API_KEY} 格式传递 API Key
Content-Type
请求内容类型,固定为 application/json
model
Model ID; the current model is lfm-2.5-1.2b-instruct:free
messages
Ordered array of conversation messages
stream
Whether to return the result as an SSE stream
