# Create chat completion

`POST /v1/chat/completions`

Runs one RavChat agent turn. OpenAI-compatible request and response, plus the `x_ravchat` extension and `usage.cost` in RavChat credits.

Stateless by default — each call starts a fresh conversation in your key's project and auto-creates any missing project/session (ids returned in `x_ravchat`). Pass `metadata.ravchat.session_id` to continue a live session.

Requires the `chat:write` scope.


## Authentication

Bearer `sk-rav-...` API key in the `Authorization` header.

Full request/response schemas: https://docs.rav.chat/api-reference/chat/create-chat-completion