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.
Revision 2, checked Nov 9, 2026. Installs exactly together 3.1.1, creates the files and adds the key names to your .env. It shows everything first and asks before changing anything.
Adapt to my stackProShowing the original (Python). Pick your stack to see it rewritten.
Free accounts can open one adapted integration a month. Sign in to try it.
A short Python script that sends one question to MiniMax M3.1 Flash, an open model that Together AI runs on its serverless API, and prints the answer. You pay per token and there is no server to set up.
Prerequisites
Python 3.10 or newer (together 3.1.1 declares requires_python >=3.10).
On Windows PowerShell: $env:TOGETHER_API_KEY="your_api_key"
Save this as main.py (copied from the Together quickstart):
Python
from together import Togetherclient = Together() # reads TOGETHER_API_KEY from environmentresponse = client.chat.completions.create( model="MiniMaxAI/MiniMax-M3.1-Flash", messages=[ { "role": "user", "content": "What are the top 3 things to do in New York?", } ],)print(response.choices[0].message.content)
The client reads TOGETHER_API_KEY on its own. Pass api_key= to Together() if you want to set it in code instead.
Test it
Shell
python main.py
After a few seconds the answer prints in your terminal. A 429 or 503 error means Together is busy: wait and retry with backoff. If calls fail with a working key, check that your credit balance is above zero.
Not confirmed
MiniMax M3.1 Flash is a reasoning model. The quickstart says its thinking comes back in a separate field when streaming; it does not say whether message.content can include thinking text in this non-streaming call.
The SDK README says Python 3.9+, but the PyPI metadata for 3.1.1 says 3.10+. We went with PyPI.
SDK 3.0.0 came out on 22 October 2026 with breaking changes (no /v1 in the base URL, beta paths removed). 3.1.0 (3 November) and 3.1.1 (4 November) only changed clusters, fine-tuning, secrets and RL tools, not chat completions. The quickstart code above is unaffected as far as the docs show, but we have not run it.
Together publishes no fixed rate limits for serverless; it may throttle at high demand.
The version pin is ours; the quickstart's install line is just pip install together.