Skip to main content

OpenAI Compatibility

The primary way to call Djelia

These endpoints follow the OpenAI convention, so any OpenAI-compatible client reaches Djelia by changing only its base URL, key and model name:

from openai import OpenAI

client = OpenAI(
api_key="YOUR_DJELIA_API_KEY",
base_url="https://api.djelia.cloud/openai/v1",
)

Capabilities with no slot in the OpenAI shape — prompt-steerable TTS voices, telephony audio formats — ride in extra_body={"djelia": {...}}. Parameters we cannot honour are accepted and ignored rather than rejected; each one is listed in the compatibility reference.