> ## Documentation Index
> Fetch the complete documentation index at: https://docs.deepinfra.com/llms.txt
> Use this file to discover all available pages before exploring further.

# API Reference

> Complete reference for the DeepInfra REST API

The DeepInfra API is available at `https://api.deepinfra.com`. It offers two sets of endpoints:

1. **OpenAI-compatible endpoints** at `/v1/openai` — drop-in replacement for OpenAI chat completions, embeddings, and image generation. Use these with any OpenAI SDK.

2. **DeepInfra native endpoints** at `/v1/inference/{model_name}` — direct access to all model types including speech recognition, object detection, image classification, and more.

## Authentication

All endpoints require a Bearer token in the `Authorization` header:

```
Authorization: Bearer $DEEPINFRA_TOKEN
```

Get your API key from the [Dashboard](https://deepinfra.com/dash/api_keys).

## Interactive reference

Use the tabs above to browse and try all available endpoints, generated from our live OpenAPI specification.
