Docs
Quickstart
Quickstart
Get started with Elyxir in 5 minutes. Create an account, generate an API key, and make your first request.
This guide gets you from zero to your first AI response in under 5 minutes.
Step 1: Create Your Account
- Go to studio.elyxir.ai
- Click Sign Up
- Enter your email address and create a password, or sign in with Google
- Verify your email address
- Complete the onboarding flow to set up your organization
Your organization is your workspace for managing team members, API keys, and billing. You can invite team members later from the settings.
Step 2: Generate an API Key
- From the Studio dashboard, navigate to Settings > API Keys
- Click Create API Key
- Give your key a descriptive name (e.g., "Development" or "Production")
- Copy your API key immediately - it's only shown once
Your API key looks like this: elyxir_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Store your API key securely. Never commit it to version control or expose it in client-side code.
Step 3: Make Your First Request
Choose your preferred method:
curl -X POST https://api.elyxir.ai/v1/chat/completions \
-H "Authorization: Bearer elyxir_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o-mini",
"messages": [
{"role": "user", "content": "Hello! What can you help me with?"}
]
}'Step 4: Explore the Studio
Now that you've made your first API request, try the Studio chat interface:
- Go to your organization dashboard in Studio
- Click Studio in the navigation
- Type a message and press Enter
- Watch as Alvin automatically routes your request to the optimal model
Using OpenAI SDKs
Elyxir is OpenAI-compatible, so you can use the official OpenAI SDKs with minimal changes:
from openai import OpenAI
client = OpenAI(
api_key="elyxir_your_api_key",
base_url="https://api.elyxir.ai/v1"
)
response = client.chat.completions.create(
model="gpt-4o-mini",
messages=[
{"role": "user", "content": "Hello!"}
]
)
print(response.choices[0].message.content)