1. Register for an account
First, register for an account to get an API key. New accounts come with $5 to get started. Once you’ve registered, set your account’s API key to an environment variable namedTOGETHER_API_KEY
:
2. Install your preferred library
Together provides an official library for Python:3. Run your first query against a model
Choose a model to query. In this example, we’ll use Meta Llama 3. With your selected model, use your preferred library to query one of Together’s APIs – for example, to run a chat completion with streaming:- python
- Typescript
- HTTP
Python
Next steps
You can choose from any of our many supported models to generate chat, images, language, or code.- Check out the Together AI playground to try out different models.
- Learn how to stream responses back to your applications.
- Explore our examples to learn about various use cases.
- See our integrations with leading LLM frameworks.