# Blaschke API documentation

Use an OpenAI-compatible SDK with your Blaschke account, API key, and chosen model.

## Start here.

Make a first request, connect a coding agent, or read the exact API contract.

- [Quickstart](https://beta.blaschkelabs.com/docs/quickstart): Create an API key and make your first request.
- [Models](https://beta.blaschkelabs.com/docs/models): Find model IDs, limits, and preview rates.
- [Agent compatibility](https://beta.blaschkelabs.com/docs/agents): Choose a compatible client and setup path.
- [Tool calling](https://beta.blaschkelabs.com/docs/tools): Carry function calls and their results through the API.
- [Chat completions](https://beta.blaschkelabs.com/docs/api): Read the supported request, response and error formats.
- [Errors](https://beta.blaschkelabs.com/docs/errors): Handle request, authentication and worker failures.

## At a glance.

Use the public API endpoint with your Blaschke API key and an exact model ID.

**Blaschke API defaults**

| Setting | Value |
| --- | --- |
| Base URL | `https://beta.blaschkelabs.com/v1` |
| Authentication | `Authorization: Bearer $BLASCHKE_API_KEY` |
| Model selection | Exact ID from `GET /v1/models`; export as `BLASCHKE_MODEL` |
| Compatibility | OpenAI Chat Completions, JSON and server-sent event streaming |
| Access | Account authentication and API-key authorization |

## How Blaschke works.

Your client sends an OpenAI Chat Completions request. Blaschke authenticates and validates it, then routes it to the selected model.

Your agent still owns tool permissions and execution. Blaschke carries structured calls and results; it does not give a model direct access to your files or shell.

**Account and model selection.** Use an ID returned by `GET /v1/models`. Catalog entries marked Upcoming are not available through the API.

## Endpoints.

The public API has two endpoints. Both require your API key.

**Supported endpoints**

| Method | Path | Purpose |
| --- | --- | --- |
| POST | /v1/chat/completions | Return a completion as JSON or stream tokens and tool deltas. |
| GET | /v1/models | List registered model profiles, limits and supported parameters. |

Discovery does not trigger inference. Blaschke supports Chat Completions, not OpenAI Responses or Anthropic Messages; changing a base URL does not translate between protocols.

## Related guides

- [Quickstart](https://beta.blaschkelabs.com/docs/quickstart): Authenticate and send a bounded first request.
- [Agents](https://beta.blaschkelabs.com/docs/agents): Choose a client and its setup guide.

Source: https://beta.blaschkelabs.com/docs

Markdown: https://beta.blaschkelabs.com/docs/md/overview.md
