---
title: "Create a Message"
method: POST
path: "/v1/messages"
tags: ["Anthropic Compatible"]
---

# Create a Message

`POST /v1/messages`

Send a structured list of input messages with text and/or image content, and the model will generate the next message in the conversation.

The Messages API can be used for either single queries or stateless multi-turn conversations.

Learn more about the Messages API in our [user guide](https://docs.claude.com/en/docs/initial-setup)

## Headers

- `anthropic-version` string — The version of the Claude API you want to use. Read more about versioning and our version history [here](https://docs.claude.com/en/api/versioning).

## Request body

- AnthropicCreateMessageParams
  - `model` unknown
  - `messages` unknown

## Response `200`

Message object.

- unknown

## Other responses

- `400` — Invalid request
- `401` — Authentication failed
- `403` — Permission denied
- `404` — Not found
- `429` — Rate limited
- `5XX` — Server / upstream error

---

[API](https://skmtc.net/aihubmix/apis/aihubmix-gateway-api.md) · [All operations](https://skmtc.net/aihubmix/apis/aihubmix-gateway-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aihubmix/aihubmix-gateway-api/revisions/e7e1a5d99ac2/schema)
