Skip to main content

API Overview

Dria exposes an OpenAI-compatible REST API at:
If you’re already using OpenAI’s API format, switching to Dria requires only changing the base URL and API key.

Base URL

Endpoints

Authentication

All requests (except /v1/auth/wallet) require a Bearer token:
See Authentication for details on obtaining an API key.

Response format

Responses follow the OpenAI format. For example, a chat completion returns:

Errors

Errors return standard HTTP status codes with a text body:

Using with OpenAI SDK

Since the API is OpenAI-compatible, you can use the official OpenAI SDK: