Skip to main content
POST
/
responses
Create response
curl --request POST \
  --url https://api.ai-stats.phaseo.app/v1/responses \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "<string>",
  "input": {},
  "input_items": [
    {}
  ],
  "conversation": "<string>",
  "include": [
    "<string>"
  ],
  "instructions": "<string>",
  "max_output_tokens": 2,
  "max_tool_calls": 1,
  "metadata": {},
  "parallel_tool_calls": true,
  "previous_response_id": "<string>",
  "prompt": {
    "id": "<string>",
    "variables": {},
    "version": "<string>"
  },
  "prompt_cache_key": "<string>",
  "prompt_cache_retention": "<string>",
  "reasoning": {
    "effort": "none",
    "summary": "<string>"
  },
  "safety_identifier": "<string>",
  "service_tier": "<string>",
  "store": true,
  "stream": true,
  "stream_options": {},
  "temperature": 1,
  "text": {},
  "tool_choice": "<string>",
  "tools": [
    {}
  ],
  "top_logprobs": 10,
  "top_p": 0.5,
  "truncation": "<string>",
  "background": true,
  "user": "<string>",
  "usage": true,
  "meta": true
}
'
{
  "id": "<string>",
  "object": "<string>",
  "created": 123,
  "model": "<string>",
  "content": [
    {}
  ],
  "role": "<string>",
  "stop_reason": "<string>",
  "type": "<string>",
  "usage": {
    "prompt_tokens": 123,
    "completion_tokens": 123,
    "total_tokens": 123
  }
}

Authorizations

Authorization
string
header
required

Bearer token authentication

Body

application/json
model
string
required
input
object
input_items
object[]
conversation
include
string[]
instructions
string
max_output_tokens
integer
Required range: x >= 1
max_tool_calls
integer
Required range: x >= 0
metadata
object
parallel_tool_calls
boolean
previous_response_id
string
prompt
object
prompt_cache_key
string
prompt_cache_retention
string
reasoning
object
safety_identifier
string
service_tier
string
store
boolean
stream
boolean
stream_options
object
temperature
number
Required range: 0 <= x <= 2
text
object
tool_choice
tools
object[]
top_logprobs
integer
Required range: 0 <= x <= 20
top_p
number
Required range: 0 <= x <= 1
truncation
string
background
boolean
user
string
usage
boolean
meta
boolean

Response

200 - application/json

Response

id
string
object
string
created
integer
model
string
content
object[]
role
string
stop_reason
string
type
string
usage
object