Quickstart
1. Create an API key
Section titled “1. Create an API key”Sign in to the dashboard, open API Keys, and create a key. Store it in an environment variable; never commit it to source control.
2. Choose the protocol
Section titled “2. Choose the protocol”| Client | Base URL | Primary endpoint |
|---|---|---|
| OpenAI-compatible SDKs, Codex, Cline | https://api.nexinfer.com/v1 |
/responses or /chat/completions |
| Claude Code, Anthropic SDK | https://api.nexinfer.com |
/v1/messages |
3. Verify authentication
Section titled “3. Verify authentication”curl https://api.nexinfer.com/v1/models \ -H "Authorization: Bearer $NEXINFER_API_KEY"A 200 response confirms the base URL and key. A 401 means the key or header is wrong. A model missing from the list may be unavailable to that key.
4. Make a request
Section titled “4. Make a request”curl https://api.nexinfer.com/v1/responses \ -H "Authorization: Bearer $NEXINFER_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model":"YOUR_MODEL_ID","input":"Reply with OK."}'Copy the exact model ID from the dashboard. Do not guess aliases.