Get Started
If you're new to Lumyx AI, start here to learn the essentials and make your first API call.
Follow these steps to get up and running with Lumyx AI in minutes.
Step 1: Create an API Key
API keys are used to authenticate your requests to Lumyx AI. Each key can be customized with specific permissions and rate limits.
Never share your API keys publicly or store them in client-side code. Use environment variables to keep them secure.
Create your first API key
- Go to the API Keys dashboard
- Click the "Create New API Key" button
- Give your key a descriptive name (e.g., "My First API Key")
- Set appropriate rate limits for your use case
- Click "Create API Key"
- Copy the generated key and store it securely
Step 2: Make Your First Request
Once you have an API key, you can start making requests to Lumyx AI. Here's a simple example using curl:
curl -X POST https://api.lumyx-ai.site/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "nova_1_1",
"messages": [
{
"role": "user",
"content": "Hello, Lumyx AI! How are you today?"
}
],
"max_tokens": 2000,
"temperature": 0.7
}'
Example Response
{
"id": "chatcmpl-abc123",
"object": "chat.completion",
"created": 1699896516,
"model": "nova_1_1",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! I'm doing well, thank you for asking..."
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 12,
"completion_tokens": 31,
"total_tokens": 43
}
}
Want to test this without writing code? Use our API Playground to make requests interactively.
Step 3: Explore Advanced Features
🤖 Custom Agents
Create specialized AI personas with custom instructions and behavior patterns.
Learn about agents →🎯 Different Models
Explore different AI models optimized for various tasks and use cases.
View models →Need Help?
If you run into any issues or have questions, here are some resources: