Create Chat Completion (legacy reasoning_content)

Changed on

Same request/response shape as /v1/chat/completions, but reasoning output is delivered in the legacy reasoning_content field instead of reasoning. Use this for clients that only understand reasoning_content (e.g. older DeepSeek SDKs).

post/v1legacy/chat/completions

Request

  • Base URL
    https://api.electronhub.ai/v1
  • URL
    https://api.electronhub.ai/v1/v1legacy/chat/completions
  • Auth
    HTTP bearer

Request body

modelstring required

Model to use for completion

streamboolean

Enable streaming

max_tokensinteger

Maximum tokens to generate

temperaturenumber

Sampling temperature

top_pnumber

Nucleus sampling

top_kinteger

Top-k sampling

frequency_penaltynumber
presence_penaltynumber
web_searchboolean

Enable web search

reasoning_effort'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh'

Reasoning effort level. Silently ignored for models that do not support reasoning_effort, so clients can send a single shared request across providers.

reasoning_delta_field'reasoning' | 'reasoning_content'

Shorthand for reasoning.delta_field.

reasoning_content_compatboolean

Shorthand: set to true to force the legacy reasoning_content field, equivalent to reasoning.delta_field = "reasoning_content".

Example request

{
  "model": "gpt-4o"
}

Response

Success

idstring required
objectstring required
createdinteger required
modelstring required

Changes