Step 1: Get your API key
Go to the Dashboard and create an API key (new to DeepInfra? See Signing In). Copy it when it is shown and export it, so the examples below can read it:Step 2: Make your first API call
That’s it
You’re using the OpenAI Chat Completions API — the same interface you already know. The only changes are:- Base URL:
https://api.deepinfra.com/v1/openai - API key: your DeepInfra token
- Model: any model from our catalog
Install the SDK (optional)
Next steps
Chat Completions
Learn about the full chat completions API.
Streaming
Stream responses token by token.
Tool Calling
Give models access to external functions.
Model Catalog
Browse 100+ available models.