Skip to main content
POST
/
responses
Create a response
curl --request POST \
  --url https://api.orcarouter.ai/v1/responses \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "gpt-4.1",
  "input": "<string>",
  "instructions": "<string>",
  "tools": [
    {
      "type": "function",
      "function": {
        "name": "<string>",
        "description": "<string>",
        "parameters": {},
        "strict": true
      }
    }
  ],
  "tool_choice": "<string>",
  "temperature": 123,
  "top_p": 123,
  "max_output_tokens": 123,
  "stream": true,
  "reasoning": {
    "effort": "low"
  },
  "metadata": {}
}
'

Authorizations

Authorization
string
header
required

OrcaRouter API keys look like sk-orca-.... Pass them in the Authorization: Bearer sk-orca-... header.

Body

application/json
model
string
required
Example:

"gpt-4.1"

input
required
instructions
string
tools
object[]
tool_choice
string
temperature
number
top_p
number
max_output_tokens
integer
stream
boolean
reasoning
object
metadata
object

Response

200

OK