How Together AI works
Together AI serves open-source models, such as DeepSeek, Kimi, GLM and gpt-oss, through an OpenAI-compatible API. Kodus talks to it through the OpenAI-compatible provider, so there are no code changes, only BYOK credentials.Recommended Models
Together’s serverless catalog changes often. See the serverless models list for current model IDs, context lengths and pricing. Use the exact API model string.
Creating API Key
Go directly to Together’s API keys page to create a new API Key. Or, follow these steps:- Create an account at api.together.ai or log in if you have one already
- Open the API keys page
- Click Create key
- Give it a name like ‘Kodus’ or any descriptive name
- Copy your API key. Together shows a new key only once
Configure Together AI in Kodus
Option 1 — AI providers page (recommended)
Follow Connect a provider and choose Custom → OpenAI-compatible. Use these values in the form.
Together publishes the Base URL in its OpenAI compatibility guide.
Click Test & save, then choose the default and fallback under Routing.
Use the base URL without
/chat/completions. Set a model from another provider as the Fallback model so reviews keep running if Together rate-limits you.Option 2 — Self-hosted (environment variables)
To give a self-hosted instance one model through.env:
Troubleshooting
API Key Issues
API Key Issues
- Verify your API key is correct and active on the API keys page
- Check that your Together AI account has a credit balance; API access is suspended at zero
- Make sure there are no trailing spaces or quotes in the
.envvalue
Model Not Found
Model Not Found
- Use the exact API model string from the serverless models list, including capitalization
- Serverless and dedicated endpoints support different models; a model that is not in the serverless list needs a dedicated endpoint
Connection Errors
Connection Errors
- Verify your server has internet access to reach
api.together.ai - Check if there are any firewall restrictions
- Review the API and worker logs for the exact upstream error
Rate Limiting
Rate Limiting
- Together returns HTTP 429 when a limit is exceeded. See Together’s rate limits documentation
- Lower Max concurrent requests on the model, or contact Together about higher limits