---
title: "Anthropic Messages"
method: POST
path: "/api/v1/messages"
tags: ["anthropic"]
---

# Anthropic Messages

`POST /api/v1/messages`

## Headers

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

## Request body

- AnthropicMessagesRequest — Anthropic Messages API request. This is intentionally permissive because Anthropic clients may send beta fields and provider-specific controls. The route translates the supported Anthropic fields to the existing OpenAI-compatible chat-completions path.
  - `model` string, required
  - `max_tokens` integer, required
  - `messages` object[], required
  - `stream` boolean, nullable
  - `system` unknown

## 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)
