TenZenTenzen AI
API ReferenceAI Model APIChatOpenai

Responses Format

OpenAI Responses API, used to create model responses. Supports multi-turn conversations, tool calling, reasoning, and other features.

POST/v1/responses

以下为根据 OpenAPI Schema 自动生成的模拟请求参数,用于对照下方参数说明与右侧示例;不会发起真实请求。

{
  "method": "POST",
  "url": "https://api.tenzen.ai/v1/responses",
  "headers": {
    "Content-Type": "application/json"
  },
  "body": {
    "model": "string"
  }
}

Authorization

BearerAuth

AuthorizationBearer <token>

使用 Bearer Token 认证。 格式: Authorization: Bearer sk-xxxxxx

In: header

Request Body

application/json

model*string
input?string|

输入内容,可以是字符串或消息数组

instructions?string
max_output_tokens?integer
temperature?number
top_p?number
stream?boolean
tools?
tool_choice?string|
reasoning?
previous_response_id?string
truncation?string
Value in"auto" | "disabled"

Response Body

application/json

curl -X POST "https://api.tenzen.ai/v1/responses" \  -H "Content-Type: application/json" \  -d '{    "model": "string"  }'
{
  "id": "string",
  "object": "response",
  "created_at": 0,
  "status": "completed",
  "model": "string",
  "output": [
    {
      "type": "string",
      "id": "string",
      "status": "string",
      "role": "string",
      "content": [
        {
          "type": "string",
          "text": "string"
        }
      ]
    }
  ],
  "usage": {
    "prompt_tokens": 0,
    "completion_tokens": 0,
    "total_tokens": 0,
    "prompt_tokens_details": {
      "cached_tokens": 0,
      "text_tokens": 0,
      "audio_tokens": 0,
      "image_tokens": 0
    },
    "completion_tokens_details": {
      "text_tokens": 0,
      "audio_tokens": 0,
      "reasoning_tokens": 0
    }
  }
}