API Documentation

OpenAI-compatible API. Change one line of code.

Quick Start

cURL
curl https://api.oriai.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-your-api-key" \
  -d '{
    "model": "deepseek-r1",
    "messages": [
      {"role": "user", "content": "Hello!"}
    ],
    "stream": true
  }'

Python (OpenAI SDK)

Python
from openai import OpenAI

client = OpenAI(
    api_key="sk-your-oriai-key",
    base_url="https://api.oriai.com/v1"
)

response = client.chat.completions.create(
    model="deepseek-r1",
    messages=[
        {"role": "user", "content": "Explain quantum computing"}
    ],
    stream=True
)

for chunk in response:
    print(chunk.choices[0].delta.content or "", end="")

Available Models

Model IDNameContext
deepseek-v4-proDeepSeek V4 Pro256K
deepseek-v4-flashDeepSeek V4 Flash128K
deepseek-r1DeepSeek R1128K
deepseek-coderDeepSeek-Coder128K
glm-5.2GLM-5.2256K
glm-5-turboGLM-5 Turbo128K
glm-5v-turboGLM-5V Turbo128K
qwen3.7-maxQwen3.7 Max128K
qwen3.7-plusQwen3.7 Plus128K
qwen3.6-flashQwen3.6 Flash128K
kimi-k2.7-codeKimi K2.7 Code128K
kimi-k2.6Kimi K2.6128K
minimax-m3MiniMax M3128K
minimax-m2.7MiniMax M2.7128K

API Pricing

Pay-as-you-go. 30% markup over upstream costs.

ModelInput ($/M tok)Output ($/M tok)
deepseek-v4-pro$0.57$1.13
deepseek-v4-flash$0.12$0.23
deepseek-r1$0.72$2.85
deepseek-coder$0.57$1.13
glm-5.2$1.17$4.00
glm-5-turbo$1.56$5.20
glm-5v-turbo$1.56$5.20
qwen3.7-max$1.63$4.88
qwen3.7-plus$0.42$1.66
qwen3.6-flash$0.24$1.46
kimi-k2.7-code$0.96$4.55
kimi-k2.6$0.85$4.43
minimax-m3$0.39$1.56
minimax-m2.7$0.23$0.94

Ready to build?

Get your API key and start building in minutes.

Get API Key