---
title: "Code Completions"
method: POST
path: "/api/v1/chat/completions"
tags: ["Llm Chat Resource"]
---

# Code Completions

`POST /api/v1/chat/completions`

## Request

- Base URL: `http://localhost:8080`
- URL: `http://localhost:8080/api/v1/chat/completions`
- Auth: none declared

## Request body

- string

## Response `200`

OK

## Changes

- **2026-06-16** `09cee821fea9`: 1 breaking, 1 info
  - removed the media type `application/json` for the response with the status `200`
  - added the media type `text/plain` for the response with the status `200`
- **2026-04-26** `b55620131397`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/wanaku-ai/apis/wanaku-router-backend-api/changes/api/v1/chat/completions/post.md)

---

[API](https://skmtc.dev/wanaku-ai/apis/wanaku-router-backend-api.md) - [All operations](https://skmtc.dev/wanaku-ai/apis/wanaku-router-backend-api/llms.txt) - [OpenAPI document](https://skmtc.dev/wanaku-ai/apis/wanaku-router-backend-api/revisions/801af2512b23?raw)
