Skip to main content

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.
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.
Together lists these serverless chat models with function calling and structured outputs:

Creating API Key

A Together AI account is required to create an API key. Together is prepaid: you must buy credits before you can create keys, and API access is suspended when the balance reaches zero. See Together’s billing docs.
Go directly to Together’s API keys page to create a new API Key. Or, follow these steps:
  1. Create an account at api.together.ai or log in if you have one already
  2. Open the API keys page
  3. Click Create key
  4. Give it a name like ‘Kodus’ or any descriptive name
  5. Copy your API key. Together shows a new key only once

Configure Together AI in Kodus

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:
Follow the installation guide to apply the model change.

Troubleshooting

  • 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 .env value
  • 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
  • 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
  • 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