chat
llm

Chat Completions

Changed on
post/v1/chat/completions

Request

  • Base URL: https://api.kodik.ru (the document declares no server; this is the origin it was published from)
  • URL: https://api.kodik.ru/v1/chat/completions
  • Auth: HTTP bearer

Headers

X-Task-IDstring nullable
X-Kodik-Turn-IDstring nullable
X-Request-Typestring nullable
X-Kodik-Request-Kindstring nullable
X-Kodik-Versionstring nullable

Request body

modelstring required

Model ID to use for completion

streamboolean
temperaturenumber nullable
top_pnumber nullable
max_tokensinteger
frequency_penaltynumber nullable
presence_penaltynumber nullable
enable_thinkingboolean nullable
stream_optionsobject nullable

Stream options (e.g., include_usage)

include_reasoningboolean nullable

Include reasoning in response

reasoning_effortstring nullable

Semantic reasoning option advertised for the selected model by listModels

reasoning_modestring nullable

Reasoning mode advertised for the selected model by listModels

thinkingobject nullable

Anthropic-style thinking config block

reasoningobject nullable

OpenRouter-style reasoning config block

verbositystring nullable

OpenRouter reasoning verbosity

toolsobject[] nullable

List of tools the model can call

parallel_tool_callsboolean nullable

Whether to enable parallel function calling

functionsobject[] nullable

Deprecated: use tools instead

Response

Successful Response

unknown required

Changes

    • info

      added the new optional header request parameter X-Kodik-Turn-ID

    • info

      added the new optional header request parameter X-Kodik-Version