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

Reasoning Configuration

Reasoning configuration

post
Header parameters
AuthorizationstringRequiredExample: sk-lZxz
Body
modelstringRequired
streambooleanRequired
Responses
200Success
application/json
costnumberRequired
idstringRequired
modelstringRequired
rolestringRequired
stop_reasonstringRequired
stop_sequencenullRequired
typestringRequired
post/v1/messages
POST /v1/messages HTTP/1.1
Host: llm.onerouter.pro
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 252

{
  "model": "anthropic/claude-opus-4.6",
  "messages": [
    {
      "role": "user",
      "content": "What is the weather like in San Francisco?"
    }
  ],
  "thinking": {
    "type": "enabled",
    "budget_tokens": 2048
  },
  "stream": false,
  "stream_options": {
    "include_usage": true
  },
  "usage": {
    "include": true
  }
}
200Success
{
  "content": [
    {
      "signature": "EpsDCkgIDBABGAIqQLEpMwUOha59rb0ikG6W8wUOc4T0SI1+CN/ebq0SzApo2vHzNPNJJqiBPrV6f9oE9r2x6lK2dDVPXbTEFD5IWX0SDOqUewVU/GU73kHpOBoMGuX/0rpewRHDuCooIjDGcJi1tmC8o6iSSvFqfUryX/wzsu0mEIc+vL65TLLhVO4KSEQfJ8Rk+dEVwGTq/xQqgAKqlMXmlUu95ocB1ne8hEIZXljAlkO+ZXMJFYDo729PiGliArQXnmQdgBuR1fJwy7wjDkwH2Br+cN3kvyBmecz59olyeBzj6GyIU895UBgjh81YZYtOKgyas5iaoDP47qccEuOAxkp1OSh87s7aU3vQMCuaPEap7+0WyAqejx9I8ROv4wNU3r7p9tfboIRuz9Bt326W4tzHQk+rn6/yU+xFfYA6ACL3fAWGLx2TrPfx8E3erbiopSjgjI18D86kv92e+giUcc8i70zSChdGaNRutsbUUnceKCEFfjobhi3iRbcVSKAd6iFG6xiBmLohisTDCdrRwEq9kw2JdsJ+OIbOGAE=",
      "thinking": "The user is asking about the current weather in San Francisco. I don't have access to real-time weather data, so I can't provide the current weather conditions. I should let them know this and suggest ways they can find the current weather.",
      "type": "thinking"
    },
    {
      "text": "I don't have access to real-time weather data, so I can't tell you the current conditions in San Francisco. I'd suggest checking:\n\n- **Weather websites** like weather.com, accuweather.com, or wunderground.com\n- **A search engine** – just type \"San Francisco weather\"\n- **A weather app** on your phone\n\n**In general**, San Francisco is known for:\n- Cool, mild temperatures year-round (50s–70s°F / 10–24°C)\n- Summer fog (especially June–August), often called \"Karl the Fog\"\n- Dry summers and wet winters\n- Microclimates that vary significantly by neighborhood\n\nIs there anything else I can help with?",
      "type": "text"
    }
  ],
  "cost": 0.005825,
  "cost_details": {
    "audio_cost": 0,
    "byok_cost": 0,
    "completion_cost": 0.0056,
    "discount_rate": 1,
    "image_cost": 0,
    "is_byok": false,
    "native_web_search_cost": 0,
    "plugin_web_search_cost": 0,
    "prompt_cache_read_cost": 0,
    "prompt_cache_write_1_h": 0,
    "prompt_cache_write_5_min": 0,
    "prompt_cache_write_cost": 0,
    "prompt_cost": 0.000225,
    "reasoning_cost": 0,
    "tools_cost": 0,
    "video_cost": 0
  },
  "id": "msg_bdrk_0141KwVY9hq2TC19Y9dSx53b",
  "model": "anthropic/claude-opus-4.6",
  "role": "assistant",
  "stop_reason": "end_turn",
  "stop_sequence": null,
  "type": "message",
  "usage": {
    "cache_creation": {
      "ephemeral_1h_input_tokens": 0,
      "ephemeral_5m_input_tokens": 0
    },
    "cache_creation_input_tokens": 0,
    "cache_read_input_tokens": 0,
    "input_tokens": 45,
    "output_tokens": 224
  }
}

Last updated