Chat & Responses
Create Response
Creates a response using the OpenAI Responses format, including instructions, reasoning, and tools.
POST
/v1/responsesParameters
| Parameter | Type / location | Description |
|---|---|---|
modelRequired | stringbody | Exact model ID. |
inputRequired | string | arraybody | Text or structured input items. |
instructionsOptional | stringbody | System-level instructions for the response. |
max_output_tokensOptional | integerbody | Maximum number of output tokens. |
reasoningOptional | objectbody | Reasoning configuration for supported models. |
streamOptional | booleanbody | Streams response events when true. |
toolsOptional | arraybody | Tools available during the response. |
Request examples
cURL
curl --request POST \
--url 'https://api.juhenextvip.com/v1/responses' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--data '{
"model": "gpt-5.6-luna",
"instructions": "Answer clearly and briefly.",
"input": "Explain what an API gateway does."
}'Response examples
JSON
{
"id": "resp_...",
"object": "response",
"status": "completed",
"output": [
{
"type": "message",
"role": "assistant",
"content": [
{
"type": "output_text",
"text": "An API gateway is a single entry point..."
}
]
}
]
}