Together AI now serves the Anthropic Messages API and the OpenAI Responses API (November 3, 2026)
Run apps built on Anthropic's Messages API or OpenAI's Responses API on Together's GLM-5.3 and GLM-5.2 by changing key, base URL and model.
Your keys
0 of 1 ready
Create each key on its own page, paste it below, then copy the finished lines into your project's .env file. What you paste stays in this tab. It is never sent to Wirestack or saved.
- Together AI API keyTOGETHER_API_KEYGet key
Select Create key on your project's API keys page. The key is shown only once.
What you get
On November 3, 2026 Together AI added the Anthropic Messages API at POST /v1/messages and the OpenAI Responses API at POST /v1/responses. An app built on either one can run on Together by changing its API key, base URL and model, and keep using the official Anthropic or OpenAI SDK.
- Supported models:
zai-org/GLM-5.3andzai-org/GLM-5.2on serverless inference;zai-org/GLM-5.3-Flashandzai-org/GLM-5.2on dedicated model inference. Other serverless models accept the requests but aren't supported and may return malformed output. - Messages API:
messages.create,messages.streamandmessages.count_tokenswork.messages.batchesandmodels.listdon't (use Together's own batch API and model list instead). - Responses API: only
responses.createworks. Together doesn't store responses, so send the full conversation with each request.
Prerequisites
- A Together AI API key in
TOGETHER_API_KEY - The Anthropic SDK (
pip install anthropicornpm install @anthropic-ai/sdk) or the OpenAI SDK (pip install openaiornpm install openai)
Steps
- Messages API: point the Anthropic SDK at
https://api.together.ai:
