# 10-minute quickstart

> A 10-minute self-serve walkthrough from sign-up to a first routed AI request on the Agent Router Service: create an account, add an API key, point an OpenAI-compatible client at the endpoint, and verify it in Request Logs.

Ten minutes from sign-up to a first routed AI request on the hosted Agent Router Service. By the end: an account, an API key, the OpenAI-compatible base URL, a working request in at least one language, and a verified entry in Request Logs.

:::info
The Agent Router Service is the self-serve, Tetrate-hosted tier for individual developers. Everything in this guide happens at [router.tetrate.ai](https://router.tetrate.ai); there is no cluster to install. For the same Console walkthrough on a dedicated Agent Router Enterprise tenant, see the [Developer Console quickstart](/agent-router-service/quickstarts/quickstart-console/).
:::

## Step 1: create an account

1. Go to [router.tetrate.ai/sign-in](https://router.tetrate.ai/sign-in).
1. Sign up with a GitHub or Google account. Signing up with a business email grants a small starting credit balance for evaluation.
1. The Console opens, showing the credit balance, recent usage, and the entry points for API keys and the Playground.

## Step 2: understand pricing and credits

The Service is pay-as-you-go. Each request is charged at the underlying model's cost plus a small service fee, drawn down from a prepaid credit balance that can be set to replenish automatically. No commitment or subscription is required to evaluate.

1. Open the billing area from the Console to view the current balance.
1. Optionally, add credits or enable auto-replenishment so an evaluation is not interrupted when the starting balance runs low.

:::info
Costs are itemized per request in Request Logs (Step 6), so the exact spend for each call is visible as it happens.
:::

## Step 3: create an API key

API keys authenticate an application's requests to the gateway. Each key routes through the Service with its own usage tracking and can be pointed at different routing strategies. This quickstart creates a basic key with default settings.

1. In the Console, open the [API Keys](https://router.tetrate.ai/api-keys) page.
1. Click **Add API Key** and enter a name that identifies the application or workload the key serves (for example `my-explore-key`); keys are identified by name in logs and usage reports.
1. Create the key, then copy the generated value immediately. This is the only time the key value is displayed.

:::caution
API keys grant the bearer the ability to route requests through the gateway and consume credit. Store the key securely (a secrets manager or environment variable); do not commit it to source control or include it in logs or error messages.
:::

## Step 4: find the base URL

The Service exposes a single OpenAI-compatible base URL:

```text
https://api.router.tetrate.ai/v1
```

An application calls this base URL instead of calling AI providers directly. The gateway authenticates the request, applies the routing strategy for the key, translates formats when routing to a different provider, and returns a normalized response.

Append the appropriate path for the intended API format:

| Format | Path | Description |
| --- | --- | --- |
| OpenAI Chat Completions | `/v1/chat/completions` | Most widely supported format; compatible with all OpenAI-compatible SDKs and agent frameworks |
| OpenAI Responses | `/v1/responses` | Newer OpenAI Responses API with a simplified interface |
| Anthropic Messages | `/v1/messages` | Anthropic native format for Claude models |

For detailed examples of each format including streaming, see [Gateway APIs](/reference/supported-apis/).

## Step 5: make the first request

Replace `YOUR_API_KEY` with the key created in Step 3. The examples below call `gpt-4o`, but any model available to the account can be substituted. To discover models programmatically for the same key, call `GET /v1/models`; see [Models API](/reference/supported-apis/#models-api-v1models).

The only difference between calling the gateway and calling a provider directly is the `base_url` (or the curl URL). All other parameters, response formats, and SDK behaviors are identical.

### Using curl

```bash
curl https://api.router.tetrate.ai/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-4o",
    "messages": [{"role": "user", "content": "Hello, world!"}]
  }'
```

### Using Python

```python
from openai import OpenAI

client = OpenAI(
    base_url="https://api.router.tetrate.ai/v1",
    api_key="YOUR_API_KEY"
)

response = client.chat.completions.create(
    model="gpt-4o",
    messages=[{"role": "user", "content": "Hello, world!"}]
)

print(response.choices[0].message.content)
```

### Streaming with curl

```bash
curl https://api.router.tetrate.ai/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-4o",
    "messages": [{"role": "user", "content": "Hello, world!"}],
    "stream": true
  }'
```

### Streaming with Python

```python
from openai import OpenAI

client = OpenAI(
    base_url="https://api.router.tetrate.ai/v1",
    api_key="YOUR_API_KEY"
)

stream = client.chat.completions.create(
    model="gpt-4o",
    messages=[{"role": "user", "content": "Hello, world!"}],
    stream=True
)

for chunk in stream:
    content = chunk.choices[0].delta.content
    if content:
        print(content, end="", flush=True)
```

### Using the Playground

The Playground tests model routing interactively without code, for comparing models or verifying routing behavior before integrating into an application.

1. Open the **Playground** from the Console.
1. Select a model from the dropdown. The list shows all models available to the account.
1. Type a message and send it.
1. View the response alongside token usage, latency, and the upstream provider that served the request.

## Step 6: check the request logs

Every request the gateway processes is recorded in Request Logs. This is the primary tool for debugging, auditing, and analyzing cost.

1. Open **Request Logs** from the Console.
1. Confirm the request appears with the model name, upstream provider, token counts, estimated cost, and total latency.
1. Click any row to view the full request and response payloads, including which provider was selected and whether any fallback attempts were made.

## Evaluation checkpoint

- [ ] Created an account on the Agent Router Service
- [ ] Reviewed the credit balance and pricing
- [ ] Created an API key and stored it securely
- [ ] Made a successful request via curl, Python, or the Playground
- [ ] Confirmed the request appears in Request Logs with provider, latency, and token details

Where to go next

  <Link to="/agent-router-service/guides/routing-and-traffic-management/route-requests-across-providers/" className="tare-nav-card">
    Route requests across providers
    Browse the model catalog and configure per-key routing.
  </Link>
  <Link to="/agent-router-service/guides/use-your-own-provider-credentials/" className="tare-nav-card">
    Use your own provider credentials
    Route requests with provider-supplied OpenAI or Anthropic keys instead of centrally managed credentials.
  </Link>
