Skip to main content
This quickstart calls the Corvex Token Factory OpenAI-compatible Chat Completions API with curl. The same API key works with the SDK and developer-tool integrations documented on this site.
1

Create an API key

Sign in to the Token Factory dashboard, select Create API key, and copy the value when it appears. New keys start with sk-corvex- and are shown only once.
2

Store the key in your shell

Keep the key server-side. Do not commit it, paste it into a screenshot, or include it in browser code.
3

Send a chat completion

4

Check the response

A successful request returns HTTP 200 and an OpenAI-compatible response:

Choose a model

Model IDs use the model publisher’s repository ID in namespace/model format. List the live public catalog before hard-coding an ID:
Legacy IDs with a corvex/ prefix are not supported. See Models and pricing for context windows, input types, and rates.

Use an SDK or developer tool

OpenAI SDK

Configure the official OpenAI Python or TypeScript client.

Claude Code

Connect through the Anthropic-compatible Messages API.

OpenCode

Add Token Factory as an OpenAI-compatible provider.

API reference

Review request fields, response schemas, and supported endpoints.

Troubleshoot the first request

An invalid or missing key returns HTTP 401:
Check that CORVEX_API_KEY is set in the shell running curl and does not contain spaces or a trailing newline. For other status codes, see the error reference.
Last modified on September 15, 2026