Skip to content
WRAITHERIXDocsENRU

Create response

POST
/v1/responses
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.

Media typeapplication/json
object
model
required
string
input
required
One of:
string
instructions
string
stream
boolean
max_output_tokens
integer
tools
Array<object>
object
reasoning
object
effort
string
Allowed values: minimal low medium high
text

Output format, e.g. {"format":{"type":"json_schema",...}}

object

Example

{
"model": "gpt-5.6-luna",
"input": "Explain recursion in one sentence."
}

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"
}
}