深圳市专企云算科技有限公司 API 文档
    • 平台介绍
    • 快速开始
    • 模型列表与选择
    • 国内模型接入方式
    • 错误处理
    • 视频与异步任务说明
    • 模型
      • 获取可用模型
    • 文本与多模态
      • 创建对话响应
    • 向量
      • 创建文本向量
    • 重排序
      • 重排序候选文档
    • 图片
      • 生成图片
    • 音频
      • 创建语音
      • 创建语音转写
    • 视频
      • 创建视频任务
      • 查询视频状态和实际Tokens
      • 下载已成功的视频
    • 数据模型
      • ErrorResponse
      • ZQVideoTaskEnvelope
      • Model
      • ZQVideoUsage
      • ModelList
      • ZQVideoAPIError
      • ChatContentPart
      • ZQVideoCreateVideoRequest
      • ChatMessage
      • ZQVideoTask
      • ChatCompletionRequest
      • ZQVideoCreatedVideo
      • Usage
      • ZQVideoContentItem
      • ChatChoice
      • ZQVideoVideoOptions
      • ChatCompletionResponse
      • EmbeddingRequest
      • EmbeddingData
      • EmbeddingResponse
      • RerankRequest
      • RerankResult
      • RerankResponse
      • ImageGenerationRequest
      • ImageData
      • ImageGenerationResponse
      • SpeechRequest
      • TranscriptionRequest
      • TranscriptionResponse

    ChatCompletionRequest

    {
        "model": "MODEL_ID",
        "messages": [
            {
                "role": "system",
                "content": "string",
                "name": "string",
                "tool_call_id": "string",
                "reasoning_content": "string",
                "tool_calls": [
                    {
                        "id": "string",
                        "type": "function",
                        "function": {
                            "name": "string",
                            "arguments": "string"
                        }
                    }
                ]
            }
        ],
        "temperature": 0,
        "top_p": 0,
        "max_tokens": 1,
        "stream": false,
        "stop": "string",
        "thinking": {
            "type": "enabled"
        },
        "response_format": {
            "type": "json_object"
        },
        "tools": [
            {
                "type": "function",
                "function": {
                    "name": "string",
                    "description": "string",
                    "parameters": {
                        "property1": "string",
                        "property2": "string"
                    }
                }
            }
        ],
        "tool_choice": "auto",
        "stream_options": {
            "include_usage": true
        }
    }
    Built with