BETA

LLM Models

OpenAI-compatible chat completions and responses. Use Saudi-hosted and global models through one interface.

Path
/v1/chat/completions
Key scope
models

OpenAI Compatible Use the official OpenAI SDK with our base URL. Drop-in replacement for existing applications.

POSTStreaming Responses

Server-Sent Events (SSE)

Stream responses token by token for real-time output

SSE

How it works: Set stream: true in your request. The response will be sent as Server-Sent Events, with each chunk containing a delta of the response content.

Code Examples:

main.py
from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://alapi.deep.sa/v1"
)

stream = client.chat.completions.create(
    model="llama-3.3-70b-versatile",
    messages=[
        {"role": "user", "content": "Write a short poem about coding"}
    ],
    stream=True
)

for chunk in stream:
    if chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="", flush=True)

Ready to Get Started?

Generate an API key from your dashboard and start building

Activate account?

Activate this account?