Recommended models
We recommend high-performance coding models with expansive context windows:For the most up-to-date model identifiers and context limits, consult the Together AI Models Directory.
Creating an API Key
- Navigate to the Together AI Console.
- Sign in or create an account.
- In the sidebar or dashboard settings, select API Keys.
- Click Create API Key, label it
scandrix-code-review, and copy the secret key.
New Together AI accounts receive $1 in initial credits to test inference endpoints.
Configuration options
You can configure Together AI either via the ScanDrix dashboard, in your repository’s.scandrix.yaml, or in self-hosted backend environment variables.
Option 1: Via the ScanDrix Dashboard (Recommended for SaaS)
- Open the ScanDrix dashboard and navigate to Settings → AI Providers.
- Click Add Provider and select Together AI (or Generic OpenAI-Compatible).
- Set Base URL to
https://api.together.xyz/v1. - Paste your Together AI API Key.
- Select
meta-llama/Llama-3.3-70B-Instruct-Turboas your default review model. - Click Test Connection to send a synthetic health verification ping.
Option 2: Via Repository Config (.scandrix.yaml)
To enforce Together AI as the review engine for a specific repository:
Option 3: Via Self-Hosted Backend (.env)
If deploying the self-hosted ScanDrix Go backend, configure your environment file:Production Reverse Proxy Setup
For self-hosted instances with external Git webhooks, configure Nginx to forward requests to the Next.js frontend (port 3000) and the Go backend API (port 8080):Verifying Together AI integration
Verify that Together AI is successfully processing reviews:Troubleshooting
Invalid API Key (HTTP 401)
Invalid API Key (HTTP 401)
- Verify your API key in the Together AI Console.
- Ensure your billing account or credits are active.
- Check that no whitespace or quotation marks were accidentally appended.
Model Not Found (HTTP 404)
Model Not Found (HTTP 404)
- Ensure you use the exact model namespace (e.g.
meta-llama/Llama-3.3-70B-Instruct-Turborather thanllama-3.3-70b). - Verify that the model is enabled on Together AI’s serverless endpoints.
Rate Limiting (HTTP 429)
Rate Limiting (HTTP 429)
- Together AI provides generous default rate limits (up to several thousand requests per minute depending on tier).
- Review active rate limits on the Together AI dashboard.
