Skip to main content

At a glance

Credentials

Set these per environment. See Connect an integration.
VariableRequiredDescription
TOGETHER_API_KEYYesTogether AI API key from account settings Docs.

Setup

  1. Create a Together AI account: Go to https://api.together.ai and sign up or sign in. New accounts include trial credits for testing.
  2. Create an API key: Open Settings → API Keys at https://api.together.ai/settings/api-keys and create a new key.
  3. Store the key: Copy the key and add it to your .env file as TOGETHER_API_KEY=…
  4. Verify access: Run the List Models tool to confirm the key works. A 401 means the key is wrong or revoked.
  • The official base URL is https://api.together.ai/v1 (the legacy api.together.xyz host also resolves)
  • Inference is billed per token (text) or per image step - check model pricing in the dashboard before large jobs
Provider API reference: https://docs.together.ai/reference/models-1

Tools

ToolAccessDescription
List ModelsReadList the models available on Together AI
Create Chat CompletionWriteGenerate a chat completion from a list of messages
Create EmbeddingWriteCreate an embedding vector for input text
Generate ImageWriteGenerate an image from a text prompt

Example prompts

  • List the models available on Together AI and group them by type.
  • Use Together AI to generate an image from a prompt I provide.