Create response
POST
/v1/responses
const url = 'https://api.wraitherix.com/v1/responses';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"model":"gpt-5.6-luna","input":"Explain recursion in one sentence."}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.wraitherix.com/v1/responses \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "gpt-5.6-luna", "input": "Explain recursion in one sentence." }'OpenAI Responses API. Accepts a string or an array of input items. Supports stream.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
model
required
string
input
required
One of:
string
Array<object>
object
instructions
string
stream
boolean
max_output_tokens
integer
tools
Array<object>
object
reasoning
object
effort
string
text
Output format, e.g. {"format":{"type":"json_schema",...}}
object
Example
{ "model": "gpt-5.6-luna", "input": "Explain recursion in one sentence."}Responses
Section titled “Responses”Response object, or SSE events (response.created, response.output_text.delta, response.completed, …) when streaming.
Media typeapplication/json
object
id
string
object
string
status
string
model
string
output
Array<object>
object
usage
object
input_tokens
integer
output_tokens
integer
total_tokens
integer
Example
{ "object": "response", "status": "completed"}The request is malformed or a parameter is invalid.
Media typeapplication/json
object
error
object
message
string
type
string
param
string
code
string
Example
{ "error": { "message": "Invalid request body", "type": "invalid_request_error", "param": "", "code": "invalid_request" }}Missing or invalid API key.
Media typeapplication/json
object
error
object
message
string
type
string
param
string
code
string
Example
{ "error": { "message": "Invalid API key", "type": "api_error", "param": "", "code": "" }}Not enough credits on the account, or the key has reached its own credit limit.
Media typeapplication/json
object
error
object
message
string
type
string
param
string
code
string
Example
{ "error": { "message": "Insufficient balance", "type": "api_error", "param": "", "code": "insufficient_user_quota" }}