---
title: "Create Chat Completion"
method: POST
path: "/v1/chat/completions"
tags: ["Chat Completions"]
---

# Create Chat Completion

`POST /v1/chat/completions`

## Request body

- ChatCompletionRequest
  - `messages` union[]
    - union
      - unknown
      - unknown
      - unknown
      - unknown
      - unknown
      - unknown
      - unknown
      - unknown
  - `model` 'n1.5-latest' | 'n1.5-20260428'
  - `max_completion_tokens` integer
  - `temperature` number, nullable
  - `top_p` number, nullable
  - `repetition_penalty` number, nullable — Penalizes token repetition. 1.0 = no penalty, >1.0 = less repetition. Only supported by vLLM-backed models.
  - `presence_penalty` number, nullable
  - `frequency_penalty` number, nullable
  - `tools` object[], nullable — Additional tools to extend the default browser action tools. Tools are merged with the built-in browser actions (left_click, scroll, type, etc.).
  - `tool_choice` union — Controls whether tool calls are parsed from the response. Model always decides whether to call a tool. 'none' treats the response as text-only, but tool calls may be present inside `<tool_call>` tags, 'auto' (default) parses tool calls automatically as `tool_calls` list in response.
    - string
    - object
  - `response_format` object, nullable — An object specifying the format that the model must output.
  - `tool_set` string, 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_tools` string[], nullable — List of tool names to remove from the selected tool set (n1.5+ models only).
  - `json_schema` object, nullable — JSON Schema for structured output (n1.5+ models only). Appended to your task message. Model returns JSON in

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/yutori/apis/fastapi.md) · [All operations](https://skmtc.dev/yutori/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/yutori/fastapi/revisions/ef669f82d5bc/schema)
