# Use the AI Gateway

The AI Gateway serves language, image, video, audio and speech models of many providers through one API and one
key. A request names a model; the gateway chooses a route of a provider that serves it, and the call is paid from
the team's plan or credits at the price `GET /v1/models` lists.

- The base address is `https://gizstack.com/v1`. Send the key as `Authorization: Bearer KEY`. Make a key on the
  [terminal token page](/token).
- The API follows the OpenAI API, so an OpenAI client works with the base address and the key changed.
- The machine-readable form of this page is [/v1/openapi.json](/v1/openapi.json). The same operations are MCP tools
  at `/v1/mcp`.

```sh
curl https://gizstack.com/v1/chat/completions \
  -H "Authorization: Bearer $GIZSTACK_KEY" -H "Content-Type: application/json" \
  -d '{"model": "MODEL", "messages": [{"role": "user", "content": "Hello"}]}'
```

## Operations

The table and the sections below are made from the table that serves the API.

:::ai-api
:::
