根据对话内容生成模型响应。
Documentation Index
Fetch the complete documentation index at: https://docs.anyfast.ai/llms.txt
Use this file to discover all available pages before exploring further.
使用 Bearer 令牌进行身份验证。在 Anyfast 控制台创建 API Key 后,以 Bearer YOUR_API_KEY 格式传入 Authorization 请求头。
模型 ID
deepseek-v4-flash "deepseek-v4-flash"
对话消息列表。
1[{ "role": "user", "content": "你好!" }]启用或禁用思考模式。
最大生成 Token 数。
x >= 1设为 {"type": "json_object"} 启用 JSON 模式。
触发停止生成的序列,最多 16 个。
为 true 时通过 SSE 流式返回结果。
流式选项,仅当 stream 为 true 时有效。
采样温度,值越高输出越随机。
0 <= x <= 21
核采样阈值。
0 <= x <= 1模型可调用的工具列表,当前仅支持函数调用。
控制工具调用行为:none、auto、required 或指定函数。
none, auto, required DeepSeek 已弃用,传入无效。
-2 <= x <= 2DeepSeek 已弃用,传入无效。
-2 <= x <= 2自定义用户 ID,用于内容安全处理和 KVCache 缓存隔离。
512^[a-zA-Z0-9\-_]+$