- Call a model serverless: call open-source models and popular closed-source models (GPT, Claude, Gemini) with just your Inference API key. Usage is billed per token to your credit balance.
- Proxy through Catalyst: route requests to any provider (OpenAI, Anthropic, etc.) through the Catalyst gateway with your own provider API key.
- Call your custom model: hit a model you’ve fine-tuned and deployed on the platform.
Get an API Key
1
Create an account
Visit inference.net and create an account.
2
Create an API key
On the dashboard, go to the API Keys tab in the left sidebar. Create a new key or use the default key.
3
Set the environment variable
1. Call a Model Serverless
Call models with just your Inference API key. No provider API key is needed. This works for two kinds of models:- Open-source models hosted on Inference.net, such as
glm-5.2. - Popular closed-source models, such as
claude-haiku-4-5,gpt-5-mini, andgemini-3.5-flash. Inference.net routes the request to the provider for you and bills the usage per token to your credit balance.
GET https://api.inference.net/v1/models.
model to the model id you want, for example claude-haiku-4-5. This includes our purpose-built Schematron models for structured data extraction.
2. Proxy Through Catalyst
Route requests to any LLM provider (OpenAI, Anthropic, Groq, etc.) through the Catalyst gateway. You keep your existing provider API key, and the provider bills you directly. The gateway adds observability, cost tracking, and eval-readiness with roughly 10ms of added latency. Use this path when you want a model that is not in the serverless catalog, or when you want usage billed to your own provider account. The captured metrics are the same as for serverless calls. Your Inference project API key authenticates with the gateway. Your provider API key is forwarded to the provider via thex-inference-provider-api-key header.
For detailed setup guides per provider (Anthropic, Groq, Cerebras, OpenRouter, and more), see the Integrations docs.
3. Call Your Custom Model
Hit a model you’ve fine-tuned and deployed on Inference.net. The model path is your team slug followed by the deployment name, shown on your deployment’s detail page in the dashboard.Learn more about deploying models in the Deploy docs.
Headers Reference
Supported Request Parameters
The API supports the standard OpenAI chat completions parameters:Need a parameter that isn’t listed here? Contact us and we’ll add it.
Next Steps
Integrations
Set up Catalyst with OpenAI, Anthropic, Groq, and other providers.
Structured Outputs
Get typed JSON responses from your API calls.
Batch Processing
Process up to 50,000 requests in a single batch job.
Browse Models
Explore all models available on Inference.net.