Skip to main content
POST
https://api.naga.ac
/
v1
/
responses
Responses
curl --request POST \
  --url https://api.naga.ac/v1/responses \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "<string>",
  "input": {},
  "instructions": "<string>",
  "max_output_tokens": 123,
  "temperature": 123,
  "top_p": 123,
  "stop": [
    "<string>"
  ],
  "logit_bias": {},
  "tools": [
    {}
  ],
  "tool_choice": {},
  "parallel_tool_calls": true,
  "reasoning": {},
  "text": {},
  "stream": true
}
'
OpenAI-compatible This endpoint follows the OpenAI Responses API shape.

Request Parameters

model
string
required
Target model ID.
input
string | array
required
Text input, or an array of structured input items (official Responses API style).Supported forms:
  • string: plain text input
  • array: list of input items (supported type: message, function_call, function_call_output, reasoning)
instructions
string
A system (or developer) instruction inserted into the model’s context.
max_output_tokens
integer
Maximum number of output tokens to generate (minimum: 1).
temperature
number
Sampling temperature (0..2). Higher values make output more random.
top_p
number
Nucleus sampling probability (0..1). Alternative to temperature.
stop
string | string[]
Stop sequence(s). The model stops generating when any stop string is encountered.
logit_bias
object
Map of token IDs (as strings) to bias values. Provider/model dependent.
tools
array
Tool definitions (Responses API format). Tool availability depends on the model/provider.
tool_choice
string | object
Tool choice strategy.
parallel_tool_calls
boolean
Enable parallel tool calls (if supported by the model/provider).
reasoning
object
Reasoning configuration (gateway subset that maps into Chat Completions).
text
object
Output formatting configuration.
stream
boolean
default:"false"
Whether to stream the response.

Usage examples

from openai import OpenAI

client = OpenAI(
    base_url="https://api.naga.ac/v1",
    api_key="YOUR_API_KEY",
)

resp = client.responses.create(
    model="gpt-4o-mini",
    input="Hello!",
)

print(resp)

Response

Returns an OpenAI-compatible Responses API object.