Prerequisites
- A workspace API key with the
sk-corvex-prefix. If you don’t have one yet, see Authentication or ask your workspace admin. curl7.x or newer.
Set your API key
Export the key once so the rest of this page is copy-paste runnable:Send your first chat completion
https://api.corvex.ai/v1 is the only thing
that changes.
What you’ll get back
A successful call returns HTTP 200 and a JSON body shaped like this:For the full request and response schemas — including streaming, tool calls,
and every optional parameter — see the API
Reference.
When something goes wrong
If theAuthorization header is missing, malformed, or the key is unknown to
the workspace, the gateway returns HTTP 401 with this body:
CORVEX_API_KEYis unset in the shell that rancurl(check withecho "${CORVEX_API_KEY:0:12}…").- The key was copied with whitespace or a trailing newline.
- The key belongs to a different workspace than the model you’re calling.
What’s next
- Quickstart → — same flow, but with Python and TypeScript SDK examples.
- Authentication → — key types, scopes, and how to mint or revoke keys.
- API Reference → — every endpoint, full schemas, and error codes.
Embeddings (
/v1/embeddings) ship in Alpha alongside REQ-023; a curl example
will land on this page once the endpoint is generally available.