DCAI MODEL GATEWAY
One gateway.
Your AI infrastructure.
Connect your applications to the models you use. Bring your own Microsoft Foundry or Google Vertex AI, and build with a familiar API.
OpenAI-compatible · Streaming · Tenant controls
POST
bash
curl https://ai-gateway-east-us1.azure-api.net/gateway/openai/v1/chat/completions \
-H "api-key: $DCA_GATEWAY_KEY" \
-H "Content-Type: application/json" \
-d '{"messages":[{"role":"user","content":"Hello, DCAI."}]}'python
import os
from openai import OpenAI
key = os.environ["DCA_GATEWAY_KEY"]
client = OpenAI(
base_url="https://ai-gateway-east-us1.azure-api.net/gateway/openai/v1",
api_key=key,
default_headers={"api-key": key},
)
response = client.chat.completions.create(
model=os.environ["DCA_DEPLOYMENT"],
messages=[{"role": "user", "content": "Hello, DCAI."}],
)
print(response.choices[0].message.content)javascript
// Run on your server (Node.js), with the key in your environment.
const response = await fetch(
"https://ai-gateway-east-us1.azure-api.net/gateway/openai/v1/chat/completions",
{
method: "POST",
headers: {
"api-key": process.env.DCA_GATEWAY_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({
messages: [{ role: "user", content: "Hello, DCAI." }],
}),
},
);
if (!response.ok) throw new Error(await response.text());
console.log(await response.json()); Your provider. Your deployment. One DCAI key.
01 Your application→
DCAI Model Gateway→03 Your connected provider
FROM SETUP TO FIRST REQUEST
Build your first integration
Three steps from your provider account to a working request.
01
Activate your account ↗
Activate your Marketplace subscription and open the DCAI console.
Getting started →02Connect your provider ↗
Authorize your Foundry resource or connect your Vertex AI project.
Connection guides →03Make your first call ↗
Create a tenant key and use a Python, JavaScript or curl example.
Code examples →THE API AT A GLANCE
Familiar endpoints. Clear controls.
Support depends on your connected provider and deployed models.
POST
/openai/v1/chat/completionsChat & streaming↗POST/openai/v1/responsesResponses↗POST/openai/v1/embeddingsText embeddings↗POST/anthropic/v1/messagesAnthropic messages↗Using Google Vertex AI? Check its supported operations before choosing an endpoint.
BUILT FOR YOUR APPLICATIONS
Manage tenant keys →Keep tenants and usage under control.
Issue separate keys, set per-key token budgets, and export usage for your own reporting.