Skip to main content
Together AI enables engineering teams to run top open-source coding models using an OpenAI-compatible API. The platform provides fast token generation, competitive per-token pricing, and access to leading architectures such as Llama 3.3, DeepSeek V3, and Qwen 2.5 Coder. 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

A verified Together AI account is required to generate API credentials.
  1. Navigate to the Together AI Console.
  2. Sign in or create an account.
  3. In the sidebar or dashboard settings, select API Keys.
  4. 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.
  1. Open the ScanDrix dashboard and navigate to Settings → AI Providers.
  2. Click Add Provider and select Together AI (or Generic OpenAI-Compatible).
  3. Set Base URL to https://api.together.xyz/v1.
  4. Paste your Together AI API Key.
  5. Select meta-llama/Llama-3.3-70B-Instruct-Turbo as your default review model.
  6. 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:
Expected log output:

Troubleshooting

  • 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.
  • Ensure you use the exact model namespace (e.g. meta-llama/Llama-3.3-70B-Instruct-Turbo rather than llama-3.3-70b).
  • Verify that the model is enabled on Together AI’s serverless endpoints.
  • 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.