> For the complete documentation index, see [llms.txt](https://docs.otari.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.otari.ai/getting-started/quickstart.md).

# Quickstart

This quickstart gets you to your first LLM request as fast as possible. You'll use your default workspace, generate a workspace token, choose a model, send one request, and confirm it appears in the workspace's Sessions.

**Estimated time: 5 minutes.** All you need is an otari.ai account with some [balance](https://docs.otari.ai/guides/organize/billing) or your own [provider key](https://docs.otari.ai/guides/organize/model-providers).

To run Otari on your own machine instead, follow the [Self-hosted quickstart](https://docs.otari.ai/self-hosting).

## 1. Open a workspace

Use your default workspace for the first request.

1. Log in to [otari.ai](https://otari.ai).
2. Open your default workspace in the top-left corner.
3. You will use the **API keys**, Models, and **Sessions** pages in this guide.

## 2. Generate an API token

Generate the credential your app will actually send to otari.ai. This token starts with `otk_`.

1. Open the **API keys** page.
2. Click **Create API key**.
3. Give the key a name and, if needed, set an expiration date. By default, the key inherits your existing model access, but you can limit it to specific models. To customize model access, click **More options** and select the models you want the key to use.
4. Click **Create API key**, then copy the token right away. It is only shown once.

![The Create API key dialog, with a name filled in.](https://224892006-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL5aR8jR73rhXzdmfWHh8%2Fuploads%2Fgit-blob-79a504aa9cc1e1c84b3277a6a7df397218af04eb%2Fapi-keys-create.png?alt=media)

**Keep it secret**. Treat the token like a password. Keep it in your shell or secret store, not in source control:

```bash
export OTARI_API_KEY=otk_...
```

## 3. Send your first request

Pick a model your workspace can use.

1. Open the Models page.
2. Choose a model using the available filters, including modality, provider, vendor, capabilities, and more, to quickly find the option that best fits your needs.
3. After selecting a model, click **Use this model**, and copy the model selector from the panel that opens.

otari.ai exposes an OpenAI-compatible endpoint at `https://api.otari.ai/api/v1`, or `https://eu.api.otari.ai/api/v1` for an account in the European Union. The fastest first check is one cURL request that you can copy. The examples use `deepseek/deepseek-v4-pro-0813`; replace it with the selector you copied.

```bash
curl https://api.otari.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $OTARI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek/deepseek-v4-pro-0813",
    "messages": [{"role": "user", "content": "Say hello in one short sentence."}]
  }'
```

Any OpenAI SDK works too. With Python, after `pip install openai`:

```python
import os

from openai import OpenAI

client = OpenAI(base_url="https://api.otari.ai/api/v1", api_key=os.environ["OTARI_API_KEY"])
response = client.chat.completions.create(
    model="deepseek/deepseek-v4-pro-0813",
    messages=[{"role": "user", "content": "Say hello in one short sentence."}],
)
print(response.choices[0].message.content)
```

## 4. Confirm it worked

1. Open **Sessions** and its **Requests** view.
2. Look for the request you just sent.
3. If it does not appear, double-check the provider key and workspace token first.

![The Requests view of Sessions, listing requests with their user, model, tokens, cost and status.](https://224892006-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL5aR8jR73rhXzdmfWHh8%2Fuploads%2Fgit-blob-2459404f7f63ecf55fd20f72df4eecb4af509b0a%2Fquickstart-requests.png?alt=media)

**Success**: Once the request appears in Requests as successful, your hosted path is working. If it shows an error, open it to see why. From there, you can add budgets, more providers, or an editor integration.

## What's next?

You've sent your first LLM request! Now you can:

* [Manage workspaces](https://docs.otari.ai/guides/organize/manage-workspaces)
* [Model providers](https://docs.otari.ai/guides/organize/model-providers)
* [Set a budget and ceiling](https://docs.otari.ai/guides/control/set-a-budget-and-ceiling)
* [Create a multi-provider routing](https://docs.otari.ai/guides/control/create-a-multi-provider-routing)
* [Configure guardrails](https://docs.otari.ai/guides/control/configure-guardrails)
* [Claude Code](https://docs.otari.ai/guides/integrations/claude-code)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.otari.ai/getting-started/quickstart.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
