Web Search & Thinking

Enable special features like web search, deep thinking, and deep research through request parameters or headers.

Overview

Chat2API supports special features that enhance AI capabilities. These features can be enabled through request parameters or HTTP headers.

Available Features

FeatureParameterHeaderDescription
Web Searchweb_searchX-Web-SearchEnable internet search capability
Deep Thinkingreasoning_effortX-Reasoning-EffortEnable extended reasoning mode
Deep Researchdeep_researchX-Deep-ResearchEnable comprehensive research mode

Enable AI to search the internet for up-to-date information.

Supported Providers

ProviderSupportNotes
DeepSeekFully supported
GLMFully supported
KimiFully supported
QwenFully supported

Deep Thinking

Enable extended reasoning for complex problems. The model thinks longer and provides more detailed analysis.

Effort Levels

LevelDescription
lowQuick thinking, faster response
mediumBalanced thinking depth and speed
highDeep thinking, comprehensive analysis

Supported Providers

ProviderSupportNotes
DeepSeekFully supported, outputs reasoning process
GLMFully supported
QwenFully supported, thinking mode
Qwen AIFully supported, outputs reasoning process

Deep Research

Enable comprehensive research mode for in-depth analysis and information gathering.

Supported Providers

ProviderSupportNotes
GLMFully supported

Client Configuration

Cline

Configure in VS Code Cline plugin:

  1. Open Cline settings
  2. Set API Base URL to http://localhost:8080/v1
  3. Enter API Key
  4. When setting up model, add in Custom Headers:
ParameterTypeValue
web_searchbooleantrue
reasoningEffortstringlow / medium / high

Roo Code / Kilo

Configure in VS Code Roo Code or Kilo plugin:

  1. Open settings
  2. Set Base URL to http://localhost:8080/v1
  3. Enter API Key
  4. When setting up model, add in Custom Headers:
ParameterTypeValue
web_searchbooleantrue
  1. Enable reasoning effort and set model reasoning intensity

Cherry Studio

Configure in Cherry Studio:

  1. Open Assistant settings
  2. Add in custom parameters:
ParameterTypeValue
web_searchbooleantrue
reasoningEffortstringlow / medium / high

API Examples

curl http://localhost:8080/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer your-api-key" \
  -d '{
    "model": "DeepSeek-V3.2",
    "messages": [
      {"role": "user", "content": "What are the latest AI news today?"}
    ],
    "web_search": true
  }'

Enable Deep Thinking

curl http://localhost:8080/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer your-api-key" \
  -d '{
    "model": "DeepSeek-V3.2",
    "messages": [
      {"role": "user", "content": "Solve this complex math problem step by step..."}
    ],
    "reasoning_effort": "high"
  }'

Combine Features

curl http://localhost:8080/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer your-api-key" \
  -H "X-Web-Search: true" \
  -H "X-Reasoning-Effort: high" \
  -d '{
    "model": "DeepSeek-V3.2",
    "messages": [
      {"role": "user", "content": "Research and analyze the current state of quantum computing..."}
    ]
  }'

Notes

Feature availability depends on provider support, model support, and account status. Verify provider support before using.

Deep thinking and research modes increase response time. Use as needed. Combining features adds further latency.

FAQ

IssueSolution
Feature not workingVerify provider support, check parameter/header format
Increased response timeDeep thinking and research modes take longer, use lower effort levels
Unexpected resultsFeatures may change model behavior, test with simple queries first

On this page