Responses
Creates a model response using the OpenAI-compatible Responses format. JoyToken currently supports text input, message input items, instructions, sampling limits, and function tools. Provider-hosted built-in tools (e.g. web_search, file_search) and previous_response_id continuation are not available on this gateway contract. This is unrelated to the client SDKs' local default fallback tools, which run on the caller side.
Authentication
AuthorizationBearer
Use Authorization: Bearer $JOY_TOKEN_API_KEY.
Headers
X-Request-ID
Optional request identifier for log, billing, and debugging correlation.
Request
This endpoint expects an object.
model
Must be auto. Concrete model IDs are not accepted.
input
Text input or an array of message input items.
instructions
Optional system-level instructions.
stream
max_output_tokens
temperature
top_p
tools
Response
Successful Responses result.
id
object
status
model
output
usage
metadata
Errors
400
Bad Request Error
401
Unauthorized Error
402
Payment Required Error
403
Forbidden Error
429
Too Many Requests Error
500
Internal Server Error
