> ## Documentation Index
> Fetch the complete documentation index at: https://platform.atlan.com/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenAI-compatible

> Every published openai-compatible operation, generated from the contract.

3 operations on `client.openai`.

Path parameters come first, positionally; the request body is last, as a plain
object. Method names are `snake_case` in Python and `camelCase` in
TypeScript, and resource names follow the same rule.

<CodeGroup>
  ```python Python theme={null}
  result = client.openai.chat_completions(body)
  ```

  ```typescript TypeScript theme={null}
  const result = await client.openai.chatCompletions(body);
  ```
</CodeGroup>

## Operations

| Call                                   | Route                                    | Does                              |
| -------------------------------------- | ---------------------------------------- | --------------------------------- |
| `client.openai.chat_completions(body)` | `POST /model/v1/openai/chat/completions` | OpenAI-compatible chat completion |
| `client.openai.embeddings(body)`       | `POST /model/v1/openai/embeddings`       | OpenAI-compatible embeddings      |
| `client.openai.list_models()`          | `GET /model/v1/openai/models`            | List available models             |

## Related

<CardGroup cols={2}>
  <Card title="How the client is organised" icon="list" href="/sdk/operations">
    Resources, call shapes, and errors.
  </Card>

  <Card title="Errors and retries" icon="triangle-exclamation" href="/developers/errors-and-retries">
    What the SDK raises, and which calls are safe to retry.
  </Card>
</CardGroup>
