# Completions (retired)

Source: https://aiand-docs-staging.pages.dev/api/completions/

<Aside type="caution" title="Retired">
  `POST /v1/completions` has been removed. Requests to it return `410` with the error code [`endpoint_removed`](/errors/#common-error-codes).
</Aside>

It was the legacy text-completion endpoint, which OpenAI also lists as legacy in its [Completions API reference](https://platform.openai.com/docs/api-reference/completions). Send the prompt as a user message to [Chat Completions](/api/chat-completions/) instead:

```diff
- POST /v1/completions       {"model": "...", "prompt": "Say hello"}
+ POST /v1/chat/completions  {"model": "...", "messages": [{"role": "user", "content": "Say hello"}]}
```

[Responses](/api/responses/) and [Messages](/api/messages/) accept the same models if your client speaks those APIs.
