
# Quickstart

This quickstart reaches a first success on the Model Workspace and Gateway, which are in **Preview**: usable by invited or gated users, with no public sign-up on this site. It does not claim general availability or payment collection.

## 1. Open the Model Workspace

Sign in and open the Model Workspace (canonical console routes include `/` and `/console`). Select a project — project scope is the authorization boundary.

## 2. Create a Gateway API key

Create a project-scoped key in Gateway API Keys. Treat it like a secret.

:::warning
Keys authorize model spend against upstream providers when configured. Store them in environment variables such as `ETHEN_GATEWAY_KEY`, never in source control.
:::

## 3. Discover models (no key)

```bash
curl -sS https://your-project.ethen.dev/api/gateway/v1/models
```

## 4. Route a chat completion

```bash
curl -X POST https://your-project.ethen.dev/api/gateway/v1/chat/completions \
  -H "Authorization: Bearer $ETHEN_GATEWAY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-4o-mini",
    "messages": [{"role": "user", "content": "Say hello in one sentence."}]
  }'
```

Use a model that has a current price record and certification path when billing accuracy matters. Without a key, the same request must fail closed with JSON **401/403**.

## 5. Response fields

| Field | Meaning |
|---|---|
| `id` | Completion id |
| `model` | Model that served the request |
| `choices` | Assistant message(s) |
| `usage` | Token counts |
| `ethen` | Trace / provider metadata |

## Next steps

- [Concepts](/docs/get-started/concepts)
- [Gateway overview](/docs/gateway/overview)
- [Gateway quickstart](/docs/gateway/quickstart)
- [Lifecycle map](/docs/resources/public-beta-lifecycle)
