Search1API
Advanced

Reasoning

API endpoint for AI reasoning with chat completions

POST
/v1/chat/completions

Authorization

AuthorizationRequiredBearer <token>

In: header

Request Body

application/jsonRequired

Chat completion parameters

modelRequiredstring

ID of the model to use

Value in: "deepseek-r1-70b-online" | "deepseek-r1-online" | "deepseek-r1-70b-fast-online" | "deepseek-r1-fast-online"
messagesRequiredarray<object>

A list of messages comprising the conversation so far

streamboolean

Whether to stream back partial progress

Default: false

Response Body

Successful Response

TypeScript Definitions

Use the response body type in TypeScript.

idRequiredstring

Unique identifier for the completion

objectRequiredstring

Object type, always 'chat.completion'

createdRequiredinteger

Unix timestamp of when the completion was created

modelRequiredstring

Model used for the completion

choicesRequiredarray<object>

Array of completion choices

curl -X POST "https://api.search1api.com/v1/chat/completions" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-r1-70b-online",
    "messages": [
      {
        "role": "system",
        "content": "You are a helpful assistant."
      },
      {
        "role": "user",
        "content": "What is the news about OpenAI?"
      }
    ],
    "stream": false
  }'
{
  "id": "string",
  "object": "string",
  "created": 0,
  "model": "string",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "system",
        "content": "string"
      }
    }
  ]
}