Learning resourcesReviewed · Together AI

GPT-OSS 120B quickstart on Together AI

This is Together AI's developer quickstart for calling OpenAI's open-weight GPT-OSS 120B reasoning model through Together's hosted API. Its main catch is that reasoning tokens share the output budget and are billed as output, so a tight max_tokens can leave you with a truncated or empty answer. The page gives the model ID (openai/gpt-oss-120b), a stated price of $0.15 per 1M input tokens and $0.60 per 1M output tokens, and a 128K-token context window. It has Python and TypeScript examples for five patterns: a basic call, reasoning_effort (low, medium, high), streaming of the reasoning trace and answer, a tool-calling loop, and JSON-schema constrained output. Its cURL example covers only the basic call.

Researched 13 Nov 2026

In short.

This is Together AI's quickstart page for calling the open-weight GPT-OSS 120B reasoning model through Together's hosted chat API, written for developers. Its main catch is that the thinking trace shares the completion budget with the answer and is billed as output tokens, so a low max_tokens can return an empty or cut-off answer. The page states the model ID openai/gpt-oss-120b, a price of $0.15 per 1M input tokens and $0.60 per 1M output tokens, and a 128K-token context window. It shows how to make a basic call, set reasoning_effort to low, medium (the default) or high, stream the reasoning and the answer separately, run a tool-calling loop, and constrain the final answer to a JSON schema. Python and TypeScript examples cover all five patterns, and the cURL example covers only the basic call. The page gives no benchmarks, rate limits, model licence or measured results, and none of its code was run for this report.

Researched and written by an AI model and checked by a second AI model. How it works

This report covers only the complete GPT-OSS quickstart page at [https://docs.together.ai/docs/gpt-oss.md], as captured on 2026-11-13. The pages it links to (deprecations, fine-tuning supported models, dedicated endpoint models, Recommended models, Reasoning, Function calling, Structured outputs and Serverless models) were not read, so their contents are unknown here. The page does not cover the model licence, Together's terms of service, rate limits, benchmarks or real-world behaviour. Nothing was executed and no API call was made, so none of the code samples, prices or outputs have been tested.

The overview

What this resource is

This is a single page on Together AI's documentation site, titled GPT-OSS quickstart, at [https://docs.together.ai/docs/gpt-oss.md]. Its subtitle reads: Call OpenAI's GPT-OSS 120B open-weight reasoning model on Together. It is a how-to guide for using one model through Together AI's hosted API. It is not a model download, a library or a standalone application.

The page describes GPT-OSS 120B as OpenAI's open-weight mixture-of-experts (MoE) reasoning model. It says the model thinks step by step before answering and has an adjustable reasoning effort. Every example uses the model ID openai/gpt-oss-120b.

The page footer says the documentation is built and hosted on Mintlify. The captured text names no author and gives no last-updated date.

Overall assessment

For a developer who wants to call GPT-OSS 120B on Together, this page is a short, practical starting point. It covers the five things most people need first: a plain call, control over reasoning depth, streaming, tool calling and structured output. It also states the main pitfalls up front: the shared token budget, parsing only the content field, and the silent acceptance of invalid reasoning_effort values.

Its limits are those of a quickstart. It makes no claims about answer quality, speed, reliability, rate limits or data handling, and it does not compare the model with other models or providers. Everything here comes from reading the page. Nothing was executed, so the examples have not been checked in practice.

Who it is for

The page suits developers who want to add a reasoning model to an application through an HTTP chat API, whether they use Python, TypeScript or plain cURL. A beginner who can already run a short script and set an environment variable should be able to follow the examples, because each one is short and complete.

It is less suitable for anyone who wants to run the model weights on their own hardware, since the page covers only Together's hosted service. It is also not the right page for the smaller openai/gpt-oss-20b on serverless. The page says that model was removed from serverless inference on September 15, 2026. It adds that the 20B model is still available for fine-tuning and dedicated endpoints, but it gives no instructions for either.

What it shows you how to do

Basic call: send a chat message to openai/gpt-oss-120b with temperature 1.0, top_p 1.0 and a large max_tokens, then read the answer from choices[0].message.content.

Reasoning effort: set reasoning_effort to low, medium or high. Low gives shallow reasoning for short, high-volume calls. Medium is the default and suits most work. High gives deep reasoning for hard multi-step problems and needs a generous max_tokens, because the trace can run to tens of thousands of tokens. The page says reasoning cannot be turned off entirely.

Streaming: set stream to true, read the thinking from delta.reasoning and the answer from delta.content, and skip chunks whose choices list is empty, because Together sends a final usage-only chunk.

Tool calling: declare functions in tools. When the model returns tool_calls, append the assistant message, then append one tool message per call with the matching tool_call_id, and call the model again. The example stops the loop after five rounds.

Structured output: pass a JSON schema through response_format with strict set to true to constrain the final content.

The page states a 128K-token context window. It does not mention other capabilities such as image input, or say whether the model supports them.

Using it

What you need

You need a Together AI account and API key. The cURL example reads the key from the TOGETHER_API_KEY environment variable and sends it as a Bearer token. The Python and TypeScript examples create the client with no arguments (Together() and new Together()). The page does not say how those SDKs find the key, so check Together's SDK documentation for that.

The Python examples import the together package and the TypeScript examples import together-ai. The page gives no install commands, no minimum language or SDK versions and no operating-system notes. It also does not say whether new accounts need credit, a payment method or approval to call this model.

For the tool-calling example you also supply your own function. The page uses a placeholder get_weather function that returns fixed values, so a real tool needs your own code.

How it works

The cURL example sends a POST request with a JSON body to [https://api.together.ai/v1/chat/completions]. The body holds a model name and a list of messages, each with a role and content. The SDK calls (client.chat.completions.create and together.chat.completions.create) take the same shape.

The model reasons before it answers. The thinking trace comes back in a field called reasoning and the final answer in content. Both draw on the same max_tokens budget. The page warns that a tight cap spends the allowance on reasoning and returns an empty or truncated answer. It tells you to parse content only and never run JSON parsing over the reasoning field.

With a JSON schema and strict set to true, the page says the whole thinking trace is used up before the first schema-constrained token is produced. That is why it advises a generous max_tokens even for small structured outputs. Its example uses 4096 tokens to pull out a name and an age.

The page says reasoning_effort values other than low, medium and high are accepted silently instead of returning an error, so your own code should check the value. It does not describe how the model implements reasoning effort internally.

Setup steps the page implies

The page has no separate setup section. Going by the examples, the steps are: get a Together API key, make it available to your program (the cURL example uses the TOGETHER_API_KEY environment variable), install the Python or TypeScript client, create the client, and call chat.completions.create with model openai/gpt-oss-120b.

Start with the basic call, then add reasoning_effort, streaming, tools or response_format as needed. The page does not cover account creation, billing setup, key management, regions or network requirements, so those details are unknown from this evidence.

Example from the page

The simplest Python example creates a Together client and calls client.chat.completions.create with model openai/gpt-oss-120b, temperature 1.0, top_p 1.0 and max_tokens 8192. It sends one user message: if all roses are flowers and some flowers are red, can we conclude that some roses are red? It then prints completion.choices[0].message.content.

A harder example sets reasoning_effort to high and max_tokens to 32768 and asks the model to plan a migration from REST to gRPC for a payments service. For the structured-output example, the input is Ada Lovelace was 36 years old, and the page shows the expected result as a dictionary with name Ada Lovelace and age 36. These are the page's own illustrations. No output from running them was captured, and none was produced for this report.

Assessment & evidence

Limitations and risks

Token budget trap: reasoning and the answer share max_tokens, so a low cap can leave the content field empty or truncated. The page repeats this warning in several places.

Silent input acceptance: invalid reasoning_effort values do not raise an error, so a typo may go unnoticed unless you check the value yourself.

No way to turn reasoning off: the page says reasoning cannot be disabled, so even simple calls are likely to pay for some reasoning tokens, which are billed as output tokens.

Variable cost and latency: at high effort on hard prompts the trace can run to tens of thousands of tokens. The page gives no latency figures.

Model availability changes: the 20B sibling was removed from serverless inference on September 15, 2026, which shows that hosted model availability can change. The page does not say whether any change is planned for the 120B model.

Malformed tool arguments: this comes from reading the sample code, not running it. The two languages handle invalid JSON in tool arguments differently. In Python, the except branch sets args to {}. The next line, get_weather(**args), would then raise a TypeError because city is a required parameter, and the loop has nothing to catch that error. In TypeScript, the fallback sets args to { city: "" }. getWeather is then called with an empty city, and the placeholder still returns its fixed weather values, which are sent back to the model as the tool result. Neither path is fit for production without your own error handling.

Not covered or not stated: answer quality, benchmarks, safety behaviour, performance near the 128K-token context limit, rate limits, uptime, data retention and privacy, and supported regions.

Why this assessment

The assessment rests on what the page states directly: the model ID, the price, the context window, the reasoning_effort values and default, the field names for reasoning and content, and the code for each pattern. Those facts are specific and consistent across the Python, TypeScript and cURL samples, which supports treating the page as a usable quickstart.

The warnings about token budgets, parsing content only and unchecked reasoning_effort values come from the page itself. They are the most useful practical points for a new user.

The report makes no claims about quality, speed or reliability, because the page offers no measurements and nothing was run. The cost bound above is simple arithmetic on the page's stated rates.

Alternatives and related options

The page names one alternative directly: Qwen/Qwen3.5-9B, listed as the replacement for the removed openai/gpt-oss-20b on serverless. It also links to other Together pages: Recommended models (Together's current picks by use case), Serverless models (every model, context length and price), deprecations, fine-tuning supported models and dedicated endpoint models. Those pages were not read for this report, so their contents are unknown here.

The page does not compare GPT-OSS 120B with other models or hosting providers, and it does not say whether you can run the open weights elsewhere. If you need a smaller model, a different price or self-hosting, you will need to look beyond this page.

Evidence base

The only evidence is the captured text of [https://docs.together.ai/docs/gpt-oss.md] (evidence_452bbeb5-be6b-4c2e-8c0e-ab246aed11f7). It covers the whole page: the introduction, the model ID and price, the removal notice for the 20B model, the code samples, the reasoning_effort explanation, the usage tips table and the next-step cards.

Everything above traces back to that text. Nothing was executed and no API call was made, so no behaviour, price, output or timing has been confirmed outside the page.

Access & freshness

Costs

The page states pricing of $0.15 per 1M input tokens and $0.60 per 1M output tokens. It also says reasoning tokens are billed as output tokens, so higher reasoning effort and longer traces raise the output cost.

As a rough upper bound from those rates, a request capped at max_tokens 32768 (as in the high-effort example) could cost at most about $0.02 in output tokens, plus input charges. That is arithmetic on the stated rates, not a measured cost.

The page does not state any free credits or free tier, rate limits, minimum spend, batch or cached-token pricing, or prices for dedicated endpoints or fine-tuning. Those remain unknown. Prices on a hosted service can change, so check Together's current serverless models page before relying on them.

Rights and licence

The page calls the model open-weight but does not state the model's licence, any usage policy or any terms for outputs. It does not state a licence for the documentation or the code samples either. No licence text was captured, so this evidence does not establish any right to reuse the examples, redistribute the page or use the model weights outside Together's service.

Use of the hosted API is likely subject to Together's own terms of service, which the page does not include or describe. Read those terms, and the model's licence from the original publisher, before commercial use.

Freshness

The captured text has no publication or last-updated date. The only dated item is the notice that openai/gpt-oss-20b was removed from serverless inference on September 15, 2026. The page was captured on 2026-11-13, and the notice uses the past tense, which suggests the page was edited on or after September 15, 2026. That is an inference, not a stated update date.

Prices, the model list, SDK behaviour and field names such as reasoning can change on a hosted API. These values were stated in the page captured on 2026-11-13; actual service pricing and limits remain independently unverified.

What to do next

If you want to try the model: get a Together API key, set TOGETHER_API_KEY, and start with the basic call at medium effort with a generous max_tokens, such as the 8192 the page uses. Read content only, and keep an eye on token usage to see how quickly your budget is used. The page mentions that a stream ends with a usage-only chunk, but it does not document whether usage figures show reasoning tokens separately.

Before building on it: check reasoning_effort values in your own code, handle errors in tool-call arguments, and check Together's current serverless models page for price and availability.

Before commercial use: read the model's licence and Together's terms, because this page covers neither. If you need a smaller or cheaper model, follow the page's links to Recommended models and Serverless models.

Evidence for this report

selected-page.txtselected · checked 2026-11-13