1. Register for an account
First, register for an account to get an API key. 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.