---
title: "POST /autogame/openai/chat_completions"
method: POST
path: "/autogame/openai/chat_completions"
tags: ["autogame"]
---

# POST /autogame/openai/chat_completions

`POST /autogame/openai/chat_completions`

## Request

- Base URL: `https://api.versusgame.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.versusgame.com/autogame/openai/chat_completions`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/versusgame/apis/versusgame-api/docs/autogame/openai/chat_completions/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- ChatCompletionsDto
  - `model` string, required
  - `messages` MessageDto[], required
    - `role` object, required
    - `content` string, required
    - `tool_calls` object
    - `tool_call_id` string
    - `name` string
  - `frequency_penalty` number
  - `function_call` object
  - `logit_bias` object
  - `max_tokens` number
  - `n` number
  - `presence_penalty` number
  - `response_format` object
  - `seed` number
  - `stop` object
  - `temperature` number
  - `tool_choice` object
  - `tools` object
  - `top_p` number
  - `user` string

## Response `200`

- object

---

[API](https://skmtc.dev/versusgame/apis/versusgame-api.md) - [All operations](https://skmtc.dev/versusgame/apis/versusgame-api/llms.txt) - [OpenAPI document](https://skmtc.dev/versusgame/apis/versusgame-api/revisions/e86f45ae5f7c?raw)
