Get started with OpenAI’s GPT-OSS, open-source reasoning model duo.
These flexible open-weight reasoning models are designed for developers, researchers, and enterprises who need transparency, customization while maintaining the advanced reasoning capabilities of chain-of-thought processing.Both GPT-OSS models have been trained to think step-by-step before responding with an answer, excelling at complex reasoning tasks such as coding, mathematics, planning, puzzles, and agent workflows.They feature adjustable reasoning effort levels, allowing you to balance performance with computational cost.
These models are only available to Build Tier 1 or higher users. Since reasoning models produce longer responses with chain-of-thought processing, we recommend streaming tokens for better user experience:
Copy
Ask AI
from together import Togetherclient = Together() # pass in API key to api_key or set a env variablestream = client.chat.completions.create( model="openai/gpt-oss-120b", messages=[ { "role": "user", "content": "Solve this logic puzzle: If all roses are flowers and some flowers are red, can we conclude that some roses are red?", } ], stream=True)for chunk in stream: print(chunk.choices[0].delta.content or "", end="", flush=True)
This will produce an output that contains both the chain-of-thought reasoning and the answer:
Copy
Ask AI
<think>The user is asking about a logical deduction problem. Let me break this down:Given premises:1. All roses are flowers2. Some flowers are redQuestion: Can we conclude that some roses are red?Let me think about this carefully. We know that all roses belong to the set of flowers. We also know that some subset of flowers are red. However, the question is whether the subset of red flowers necessarily overlaps with the subset of roses.The red flowers could be entirely separate from roses - for example, all the red flowers could be tulips, carnations, or other non-rose flowers. There's no logical requirement that the red flowers must include any roses.So we cannot definitively conclude that some roses are red based solely on these premises.</think>**Answer:** No, we cannot definitively conclude that some roses are red based on the given premises alone. While all roses are flowers and some flowers are red, the red flowers could be entirely non-rose flowers (like tulips, carnations, etc.). The premises don't establish any necessary connection between roses and the red subset of flowers.
Current Limitations - The following features are not yet supported, but will be added soon:
GPT-OSS 20B model not supported currently
Some sampling parameters not supported: Repetition penalty