Chat & Responses

Create Response

Creates a response using the OpenAI Responses format, including instructions, reasoning, and tools.

POST/v1/responses

Parameters

ParameterType / locationDescription
modelRequiredstringbody

Exact model ID.

inputRequiredstring | arraybody

Text or structured input items.

instructionsOptionalstringbody

System-level instructions for the response.

max_output_tokensOptionalintegerbody

Maximum number of output tokens.

reasoningOptionalobjectbody

Reasoning configuration for supported models.

streamOptionalbooleanbody

Streams response events when true.

toolsOptionalarraybody

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