Quickstart
Get started with the INFER API in under 5 minutes.
1. Create an Account
Sign up at inferexchange.com/signup . You can use email/password or Google OAuth.
2. Generate an API Key
Navigate to Dashboard → API Keys and click Create New Key.
- Give your key a descriptive name (e.g., “production-app”)
- Copy the key immediately — it won’t be shown again
- Your key starts with
sk-infer-
3. Add Funds
Go to Dashboard → Add Funds and deposit INFER tokens to your account. New accounts receive a small free credit to get started.
4. Make Your First Request
The INFER API is fully compatible with OpenAI’s chat completions format:
curl -X POST https://inferexchange.com/api/v1/chat/completions \
-H "Authorization: Bearer sk-infer-YOUR_KEY_HERE" \
-H "Content-Type: application/json" \
-d '{
"model": "llama-3.1-8b",
"messages": [
{"role": "user", "content": "Hello, what is INFER?"}
]
}'5. Use with OpenAI SDKs
Since the API is OpenAI-compatible, you can use any OpenAI SDK by changing the base URL:
from openai import OpenAI
client = OpenAI(
api_key="sk-infer-YOUR_KEY_HERE",
base_url="https://inferexchange.com/api/v1"
)
response = client.chat.completions.create(
model="llama-3.1-8b",
messages=[
{"role": "user", "content": "Explain quantum computing in simple terms"}
]
)
print(response.choices[0].message.content)import OpenAI from 'openai';
const client = new OpenAI({
apiKey: 'sk-infer-YOUR_KEY_HERE',
baseURL: 'https://inferexchange.com/api/v1',
});
const response = await client.chat.completions.create({
model: 'llama-3.1-8b',
messages: [{ role: 'user', content: 'What is decentralized AI?' }],
});
console.log(response.choices[0].message.content);Available Models
| Model | Price (per 1M tokens) | Context Window |
|---|---|---|
| Llama 3.1 8B | $0.10 | 128K |
| Llama 3.1 70B | $0.50 | 128K |
| Mixtral 8x22B | $0.60 | 64K |
Next Steps
- API Reference — Explore all endpoints
- Authentication — API key management
- Error Handling — Handle errors gracefully
- Become a Provider — Earn by providing compute