4Z API

Chat 补全

接口: POST https://4zapi.com/pg/chat/completions

OpenAI 兼容 playground 聊天。

请求体 (application/json)

  • messages (array<object>, 必填): 对话消息列表
  • model (string, 必填): 模型名称 / 型号 ID
  • max_tokens (integer): 最大生成 token 数
  • temperature (number): 采样温度;越高越随机