Create a project API key
Who: someone who can manage credentials for the project Where: API Keys → Projects → Create New Key- Fill in the four fields. Create stays disabled until all are set.
- Click Create. To see the key later, click its row and use the eye icon; the copy icon copies it.
- The ⋮ menu on a key opens Edit Key (“Update credentials here”), where you change the expiry and the budget, or deletes the key (Delete Credential).
- To rotate a key, create a new one, switch your application to it, then delete the old one.
Client users create their own keys in the customer portal (The customer portal). Treat a key like a password: keep it in a secret store, never in client-side code or a repository.
Make a request
Send the key as a bearer token. Themodel is the deployment name, the router name or, for an adapter, the adapter deployment name. Requests up to 100 MB are accepted.
Chat completions
Streaming
Set"stream": true. The reply is a server-sent event stream: one data: line per chunk, ending with data: [DONE]. Add "stream_options": {"include_usage": true} to receive a final chunk with the token usage.
The OpenAI SDK
Embeddings
/v1/messages accepts Anthropic Messages requests. Send the key as Authorization: Bearer; an x-api-key header is not accepted.