Quick Start
Get started with 2389 ID in minutes. Create an API key and make your first request.
What is 2389 ID?
2389 ID provides identity and LLM proxy APIs for AI agents. Use our OpenAI-compatible endpoint to access multiple language models through a single API, with built-in usage tracking and rate limiting.
Step 1: Get an API Key
Sign in to the dashboard and navigate to API Keys. Click "Create New Key" to generate your API key.
Your API key will look like: sk-2389-xxxxxxxxxxxx
Important: Copy your API key immediately after creation. For security reasons, you won't be able to see it again.
Step 2: Make Your First Request
Use the OpenAI-compatible /v1/chat/completions endpoint to send messages to language models.
Using curl
curl -X POST https://id.2389.ai/v1/chat/completions \
-H "Authorization: Bearer sk-2389-YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o-mini",
"messages": [
{"role": "user", "content": "Hello!"}
]
}'Using Python
from openai import OpenAI
client = OpenAI(
api_key="sk-2389-YOUR_API_KEY",
base_url="https://id.2389.ai/v1"
)
response = client.chat.completions.create(
model="gpt-4o-mini",
messages=[
{"role": "user", "content": "Hello!"}
]
)
print(response.choices[0].message.content)Using TypeScript
import OpenAI from "openai";
const client = new OpenAI({
apiKey: "sk-2389-YOUR_API_KEY",
baseURL: "https://id.2389.ai/v1",
});
const response = await client.chat.completions.create({
model: "gpt-4o-mini",
messages: [
{ role: "user", content: "Hello!" }
],
});
console.log(response.choices[0].message.content);Step 3: Check Your Usage
Monitor your API usage in the Usage section of the dashboard. You can view usage by API key or by model.
Next Steps
- API Reference - Complete endpoint documentation
- Authentication - Learn about OAuth and OIDC flows