Getting Started
Quickstart
Create an API key and make your first request in a minute.
1. Create an API key
Open API keys in the console and choose Create key. The full secret is shown once, so copy it somewhere safe. When it is created, the console offers a ready-to-run curl command that confirms the key works.
Keep the key in an environment variable:
export OPENINFER_API_KEY=pk_...2. Pick a model
List the models your key can call:
curl https://api.openinfer.ai/v1/models \
-H "Authorization: Bearer $OPENINFER_API_KEY"Use one of the returned id values as model below. Models with type text_gen accept chat requests.
3. Test a Chat Completion
curl https://api.openinfer.ai/v1/chat/completions \
-H "Authorization: Bearer $OPENINFER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "@oi/Qwen3.5-9B",
"messages": [{ "role": "user", "content": "Say hello in five words." }]
}'Errors
A 401 means the key is wrong or revoked. A 404 on model means your organization cannot call that model; check GET /v1/models. A 429 model_at_capacity means no node could take the request right now, so retry shortly. Every authenticated response carries an x-request-id; quote it when you contact us.