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

Request Preview

Request preview

post

When the debug_request parameter is enabled, the Infron Gateway returns the message after protocol-compatible conversion; this is particularly useful during debugging.

Header parameters
AuthorizationstringRequiredExample: sk-lZxz
Body
modelstringRequired
debug_requestbooleanRequiredDefault: false
temperaturenumberOptional
top_pnumberOptional
frequency_penaltynumberOptional
presence_penaltynumberOptional
max_completion_tokensintegerOptional
max_tokensintegerOptional
seedintegerOptional
logprobsbooleanOptional
top_logprobsintegerOptional
streambooleanOptional
Responses
200Success
application/json
costnumberRequired
createdintegerRequired
idstringRequired
modelstringRequired
objectstringRequired
providerstringRequired
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: 544

{
  "model": "openai/gpt-5.4",
  "messages": [
    {
      "role": "system",
      "content": "You are a highly capable AI assistant with access to tools. Respond concisely and accurately."
    },
    {
      "role": "user",
      "content": [
        {
          "type": "text",
          "text": "What's the meaning of life?"
        }
      ]
    }
  ],
  "debug_request": true,
  "reasoning": {
    "effort": "none",
    "max_tokens": 1024
  },
  "temperature": 0.7,
  "top_p": 0.9,
  "frequency_penalty": 0.3,
  "presence_penalty": 0.2,
  "max_completion_tokens": 4096,
  "max_tokens": 4096,
  "seed": 42,
  "top_logprobs": 5,
  "stream": false,
  "stream_options": {
    "include_usage": true
  },
  "usage": {
    "include": true
  }
}
200Success
{
  "choices": [
    {
      "finish_reason": "stop",
      "index": 0,
      "logprobs": null,
      "message": {
        "content": "There isn’t a single agreed-upon answer.\n\nA few common ways people answer it:\n\n- **No universal meaning:** Life has no built-in meaning; we create our own.\n- **Relationships:** Meaning comes from love, connection, and helping others.\n- **Growth:** It’s about learning, becoming, and using your abilities well.\n- **Experience:** To live fully—to notice beauty, joy, grief, and wonder.\n- **Service:** To reduce suffering and leave things better than you found them.\n- **Spiritual views:** Meaning comes from aligning with God, dharma, enlightenment, or a higher reality.\n- **Humorous answer:** **42**, from *The Hitchhiker’s Guide to the Galaxy*.\n\nMy practical answer: **the meaning of life is the meaning you can sustain through action—what you care about deeply enough to live for, even on ordinary days.**\n\nIf you want, I can also answer this from a **philosophy**, **religion**, or **science** perspective.",
        "role": "assistant"
      }
    }
  ],
  "cost": 0.003253,
  "cost_details": {
    "audio_cost": 0,
    "byok_cost": 0,
    "completion_cost": 0.003165,
    "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.0000875,
    "reasoning_cost": 0,
    "tools_cost": 0,
    "video_cost": 0
  },
  "created": 1775118987,
  "debug_info": {
    "request": {
      "attempts": [
        {
          "attempt": 1,
          "method": "POST",
          "status_code": 200,
          "timestamp": "2026-04-02T08:36:27.294376519Z"
        }
      ],
      "http": {
        "body": {
          "max_completion_tokens": 4096,
          "messages": [
            {
              "content": "You are a highly capable AI assistant with access to tools. Respond concisely and accurately.",
              "role": "system"
            },
            {
              "content": [
                {
                  "text": "What's the meaning of life?",
                  "type": "text"
                }
              ],
              "role": "user"
            }
          ],
          "model": "gpt-5.4",
          "reasoning_effort": "none",
          "seed": 42,
          "temperature": 0.7,
          "top_p": 0.9
        },
        "body_raw": "{\"model\":\"gpt-5.4\",\"messages\":[{\"role\":\"system\",\"content\":\"You are a highly capable AI assistant with access to tools. Respond concisely and accurately.\"},{\"role\":\"user\",\"content\":[{\"text\":\"What's the meaning of life?\",\"type\":\"text\"}]}],\"max_completion_tokens\":4096,\"reasoning_effort\":\"none\",\"temperature\":0.7,\"top_p\":0.9,\"seed\":42}",
        "headers": {
          "Accept": [
            "*/*"
          ],
          "Api-Key": [
            "[REDACTED]"
          ],
          "Content-Type": [
            "application/json"
          ]
        },
        "method": "POST"
      }
    }
  },
  "id": "chatcmpl-DQ7pLzfemmxHE2Pk0Pl7vuUsA2D1O",
  "model": "openai/gpt-5.4",
  "object": "chat.completion",
  "provider": "azure",
  "request_id": "ad30b9ee74c34933ac30e05008af7d1f",
  "usage": {
    "completion_tokens": 211,
    "completion_tokens_details": {
      "audio_tokens": 0,
      "image_tokens": 0,
      "reasoning_tokens": 0
    },
    "prompt_tokens": 35,
    "prompt_tokens_details": {
      "audio_tokens": 0,
      "cache_write_tokens": 0,
      "cached_tokens": 0,
      "video_tokens": 0
    },
    "total_tokens": 246
  }
}

Last updated