# Quickstart

Make your first API call in minutes. Sign in at https://oneover.com/developers/dashboard — a personal org is created automatically.

Send `Idempotency-Key` on POSTs so retries never double-charge.

## 1. Authenticate

```
Authorization: Bearer oo_live_YOUR_KEY

# Optional: attribute spend to a team member
X-Member-User-Id: <uuid>
```

## 2. Your first chat call

```bash
curl -X POST "https://api.oneover.com/functions/v1/api-v1-chat" \
  -H "Authorization: Bearer oo_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-5.6-sol","messages":[{"role":"user","content":"Hello"}]}'
```

## 3. Streaming

Set `"stream": true` for Server-Sent Events. Events: `connection_established`, `content`, `done`, `error`.

## 4. Generate an image

```bash
curl -X POST "https://api.oneover.com/functions/v1/api-v1-images" \
  -H "Authorization: Bearer oo_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"flux-2-pro","prompt":"A minimal logo","aspect_ratio":"1:1"}'
```

## 5. List models and check balance

```bash
curl "https://api.oneover.com/functions/v1/api-v1-models?type=text" \
  -H "Authorization: Bearer oo_live_YOUR_KEY"

curl "https://api.oneover.com/functions/v1/api-v1-usage?view=balance" \
  -H "Authorization: Bearer oo_live_YOUR_KEY"
```
