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
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 innamespace/model format.
List the live public catalog before hard-coding an ID:
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 HTTP401:
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.