> ## Documentation Index
> Fetch the complete documentation index at: https://docs.corvex.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# API Reference

> Public OpenAI- and Anthropic-compatible endpoints for Corvex Token Factory.

Corvex Token Factory exposes OpenAI-compatible inference endpoints,
Anthropic-compatible Messages endpoints, a public model catalog, and
account-scoped usage reporting. The endpoint schemas below are generated from
the public OpenAPI 3.1 specification in this repository.

## Base URL

```text theme={null}
https://api.tokenfactory.corvex.cloud
```

OpenAI SDKs normally append `/v1` in their configured base URL. Anthropic SDKs
use the host-level URL shown above.

## Authentication

Inference and usage requests require a Token Factory API key. Send
`Authorization: Bearer sk-corvex-...` to OpenAI-compatible and usage endpoints.
Send `x-api-key: sk-corvex-...` to Anthropic-compatible endpoints.

`GET /v1/models` and its `/openai/v1/models` alias are public. A valid key is
optional on these two list operations.

Create and revoke keys in the [Token Factory
dashboard](https://tokenfactory.corvex.cloud/app/settings/keys). See
[Authentication](https://docs.corvex.cloud/getting-started/authentication.md) for storage and rotation
guidance.

## Endpoint groups

> [card] Chat Completions
>
> `POST /v1/chat/completions` supports OpenAI-compatible streaming and
> non-streaming chat requests.

> [card] Responses
>
> `POST /v1/responses` supports the documented stateless subset of the OpenAI
> Responses API.

> [card] Messages
>
> `POST /v1/messages` and `POST /v1/messages/count_tokens` provide the
> Anthropic-compatible surface used by the Anthropic SDK and Claude Code.

> [card] Models
>
> `GET /v1/models` returns the public live catalog, capabilities, limits, and
> published rates.

> [card] Legacy text completions
>
> `POST /v1/completions` accepts models that advertise text-completion
> support. Use Chat Completions for the current catalog.

> [card] Embeddings
>
> `POST /v1/embeddings` is defined, but no embedding model is currently
> deployed.

> [card] Usage
>
> `GET /api/v1/usage` returns usage scoped to the authenticated account.

## Current models

Call `GET /v1/models` for the live catalog. Currently available:

* `zai-org/GLM-5.3`
* `deepseek-ai/DeepSeek-V4-Flash-0731`

Use the model ID exactly as returned. The [model catalog](https://docs.corvex.cloud/models/overview.md)
compares context windows, image input, capabilities, and pricing.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.