chat
llm

Chat Completions

post/v1/chat/completions

Headers

X-Task-IDstring nullable
X-Request-Typestring nullable
X-Kodik-Request-Kindstring 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

{"stackTrail":"paths:/v1/chat/completions:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes

No recorded changes to this endpoint across all 1 revision of this API.