Making Your First Request
Complete walkthrough from installation to your first successful AI request. Get started in under 5 minutes.
Step 1: Create Your Account
- Go to cencori.com/dashboard
- Click "Sign Up"
- Sign in with Google, GitHub, or email
- Verify your email (if using email signup)
Step 2: Create a Project
- In your dashboard, click "Create Project"
- Enter a name (e.g., "My First App")
- Add a description (optional)
- Click "Create"
Tip: Create separate projects for development and production environments.
Step 3: Generate an API Key
- Navigate to your project
- Go to "API Keys" in the sidebar
- Click "Generate New Key"
- Choose environment (Test or Production)
- Copy the key immediately - it won't be shown again!
- Store it securely in your
.envfile
.env
Step 4: Install the SDK
JavaScript/TypeScript:
terminal
Python:
terminal
Step 5: Make Your First Request
index.ts
Step 6: Run Your Code
terminal
Expected Output:
output
Step 7: View in Dashboard
- Go back to your Cencori dashboard
- Navigate to "Request Logs"
- See your request with full details:
- Timestamp
- Model and provider used
- Full request and response
- Token usage and cost
- Safety score
Try Different Models
Now try switching providers - just change the model name:
try-models.ts
Try Streaming
Get real-time responses with streaming:
streaming.ts
Troubleshooting
401 Unauthorized Error
Cause: Invalid API key
- Double-check your API key
- Verify it's in your .env file
- Restart your application
403 Forbidden Error
Cause: Tier restriction or security filter
- Free tier only supports Gemini models
- Check if request was blocked for security
- View incident in dashboard
Module Not Found
Cause: SDK not installed
- Run
npm install cencori - Check your package.json

