Skip to main content
Connect your application with three values:

1. Create your account and key

Open the console, sign in or sign up, and verify your email. In API keys, create a key and copy it before dismissing the dialog. The full key is shown once. New verified console accounts receive free starting credit once when their billing account is first created; pricing shows the current amount. Existing accounts are not topped up by signing in again. Credit activation can take a few seconds; if a request returns credit_pending, wait and retry. Set the key in your server or development environment:
Keep this value out of frontend bundles and source control. See authentication for key handling and revocation.

2. Send a message

The answer is in choices[0].message.content. Generation may include reasoning before answer text; allow enough output tokens and time for the response. For incremental output, use streaming Chat Completions.

3. Connect your tools

Use OpenAI-compatible clients for Chat Completions or stateless Responses. For Anthropic-format clients, use the root base URL https://api.derestricted.ai; their SDK appends /v1/messages. You can also try the model in the console playground before writing code. Playground and API requests use the same account balance. If your request fails, check errors and troubleshooting.