For the complete documentation index, see llms.txt. This page is also available as Markdown.

Reasoning Configuration

Reasoning configuration

post
Header parameters
AuthorizationstringRequiredExample: sk-lZxz8
Body
modelstringRequired
Responses
200Success
application/json
idstringRequired
modelstringRequired
objectstringRequired
createdintegerRequired
request_idstringRequired
post/v1/chat/completions
POST /v1/chat/completions HTTP/1.1
Host: llm.onerouter.pro
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 150

{
  "model": "openai/gpt-5.4",
  "messages": [
    {
      "role": "user",
      "content": "What's the weather like in London?"
    }
  ],
  "reasoning": {
    "effort": "high",
    "max_tokens": 2000
  }
}
200Success
{
  "id": "chatcmpl-DL2HWD379cMteYSFHunLdHHDZrgP4",
  "model": "openai/gpt-5.4",
  "object": "chat.completion",
  "created": 1773906030,
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "I don’t have live weather data in this chat, so I can’t tell you the current weather in London right now.\n\nIf you mean London, UK, you can check quickly in:\n- a weather app\n- Google: “London weather”\n- the Met Office or BBC Weather\n\nIf you want, I can still help with:\n- a typical March weather overview for London\n- what to pack\n- how to read a forecast once you paste it here\n\nIf you meant a different London, tell me which one."
      },
      "finish_reason": "stop",
      "logprobs": null
    }
  ],
  "request_id": "270db749c98f459aa8d2312dbdaf264f",
  "usage": {
    "prompt_tokens": 13,
    "completion_tokens": 185,
    "total_tokens": 198,
    "prompt_tokens_details": {
      "cached_tokens": 0,
      "cache_write_tokens": 0,
      "audio_tokens": 0,
      "video_tokens": 0
    },
    "completion_tokens_details": {
      "reasoning_tokens": 70,
      "image_tokens": 0,
      "audio_tokens": 0
    }
  }
}

Last updated