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

# OpenAI protocol

> Call Chat Completions and Responses through Tikway's OpenAI-compatible API.

The OpenAI-compatible API uses `Authorization: Bearer <API Key>`. Set your SDK base URL to `https://api.tikway.ai/v1` and pass a Tikway model ID in the `model` field.

| API | Path | Best for |
| - | - | - |
| Chat Completions | `POST /v1/chat/completions` | Chat messages, tool calls, and streaming with the `messages` array. |
| Responses | `POST /v1/responses` | Multi-turn, tool, and multimodal workflows built around `input` and response items. |

> **[Chat Completions](https://docs.tikway.ai/en/protocols/openai/chat-completions)**
>
> Learn the message format, tool calls, streaming, and request examples.

> **[Responses](https://docs.tikway.ai/en/protocols/openai/responses)**
>
> Learn about input items, tools, conversation state, and response fields.

Model capabilities vary. Check that the target model supports your parameters before switching models. See [Gateway and authentication](https://docs.tikway.ai/en/guides/authentication.md) for credentials and [Status codes and responses](https://docs.tikway.ai/en/guides/status-codes.md) for errors.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.