Together AI makes it easy to run leading open-source models using only a few lines of code.Documentation Index
Fetch the complete documentation index at: https://togetherai-migration.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
1. Register for an account
First, register for an account to get an API key. New accounts come with $1 to get started. Once you’ve registered, set your account’s API key to an environment variable namedTOGETHER_API_KEY:
Shell
2. Install your preferred library
Together provides an official library for Python and TypeScript, or you can call our HTTP API in any language you want:3. Run your first query against a model
Choose a model to query. In this example, we’ll do a chat completion on Llama 3.1 8B with streaming:Next steps
- Explore our cookbook for Python recipes with Together AI
- Explore our demos for full-stack open source example apps.
- Check out the Together AI playground to try out different models.
- See our integrations with leading LLM frameworks.