Skip to content

Quickstart

Sign in to the dashboard, open API Keys, and create a key. Store it in an environment variable; never commit it to source control.

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
Terminal window
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.

Terminal window
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.