DeepSeek V3.1 is the latest, state-of-the-art hybrid-inference AI model from DeepSeek, blending “Think” and “Non-Think” modes within a single architecture. It’s the newer version of the DeepSeek V3 model with effecient hybrid reasoning.
Get started with this model in 10 lines of code! The model ID is deepseek-ai/DeepSeek-V3.1 and the pricing is $0.60 for input tokens and $1.70 for output tokens.
Copy
Ask AI
from together import Togetherclient = Together()resp = client.chat.completions.create(model="deepseek-ai/DeepSeek-V3.1",messages=[{"role":"user","content":"What are some fun things to do in New York?"}],stream=True,)for tok in resp:print(tok.choices[0].delta.content, end="", flush=True)
Current Limitations. The following features are not yet supported, but
will be added soon: Function calling and JSON mode.
from together import Togetherclient = Together()stream = client.chat.completions.create(model="deepseek-ai/DeepSeek-V3.1",messages=[{"role": "user", "content": "What are some fun things to do in New York?"}],chat_template_kwargs={"thinking": True},stream=True,)for chunk in stream:delta = chunk.choices[0].delta # Show reasoning tokens if present if hasattr(delta, "reasoning") and delta.reasoning: print(delta.reasoning, end="", flush=True) # Show content tokens if present if hasattr(delta, "content") and delta.content: print(delta.content, end="", flush=True)