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

# Completions

`POST /api/v1/completions`

## Headers

- `authorization` string, nullable
- `x-api-key` string, nullable
- `X-Prime-Team-Id` string, nullable

## Request body

- CompletionRequest
  - `model` string, required
  - `prompt` union, required
    - string
    - string[]
  - `stream` boolean, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/pinference/apis/pi-inference.md) · [All operations](https://skmtc.dev/pinference/apis/pi-inference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pinference/pi-inference/revisions/707211c46ce9/schema)
