v1

latestOpenAPI 3.1.02026-07-26194149.1 KB
Chat Completions

Create Chat Completion

post/v1/chat/completions

Request body

model'n1.5-latest' | 'n1.5-20260428'
max_completion_tokensinteger
temperaturenumber nullable
top_pnumber nullable
repetition_penaltynumber nullable

Penalizes token repetition. 1.0 = no penalty, >1.0 = less repetition. Only supported by vLLM-backed models.

presence_penaltynumber nullable
frequency_penaltynumber nullable
toolsobject[] nullable

Additional tools to extend the default browser action tools. Tools are merged with the built-in browser actions (left_click, scroll, type, etc.).

response_formatobject nullable

An object specifying the format that the model must output.

tool_setstring nullable

Named tool set (n1.5+ models only). 'browser_tools_core-20260403' (default): coordinate-based tools. 'browser_tools_expanded-20260403': adds extract_elements, find, set_element_value, execute_js.

disable_toolsstring[] nullable

List of tool names to remove from the selected tool set (n1.5+ models only).

json_schemaobject nullable

JSON Schema for structured output (n1.5+ models only). Appended to your task message. Model returns JSON in

Response

Successful Response

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