Skip to main content
POST
Compact conversation (OpenAI Responses API)

承認

Authorization
string
header
必須

Authenticate with a Bearer Token. Format: Authorization: Bearer sk-xxxxxx

ボディ

application/json
model
string
必須
input

Input content, either a string or an array of messages

instructions
string
previous_response_id
string

レスポンス

200 - application/json

Conversation compacted successfully

id
string
object
string
:

"response.compaction"

created_at
integer
output
object[]
usage
object
error
object