Skip to main content
We support language vision models from multiple providers: For a limited time we’re also offering a free model endpoint for Llama 3.2 Vision 11B named Llama-Vision-Free. Since this is a free endpoint, it has reduced rate limits compared to the paid Llama 3.2 Vision 11B, named Llama-3.2-11B-Vision-Instruct-Turbo Here’s how to get started with the Together API in a few lines of code.

Quickstart

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 named TOGETHER_API_KEY:

2. Install your preferred library

Together provides an official library for Python:
As well as an official library for TypeScript/JavaScript:
You can also call our HTTP API directly using any language you like.

3. Query the models via our API

In this example, we’re giving it a picture of a trello board and asking the model to describe it to us.

Output

Query models with a local image

If you want to query models with a local image, here is an example:

Output

Query models with video input

Output

Query models with multiple images

Output

Pricing

For vision models images are converted to 1,601 to 6,404 tokens depending on image size. We currently used this formula to calculate the number of tokens in an image:
(T= tokens, H=height, W=width)