Skip to main content
DeepSeek V4 Pro is DeepSeek’s frontier 1.6T-parameter Mixture-of-Experts model (49B active per token), with a hybrid attention architecture built for long-context, low-cost reasoning. On Together AI, it runs in FP4 with a 512K-token context window and supports streaming, function calling, structured outputs, and adjustable reasoning effort. The model ID is deepseek-ai/DeepSeek-V4-Pro. Pricing is $1.74 per 1M input tokens, $3.48 per 1M output tokens, and $0.20 per 1M cached input tokens.

Quickstart

Reasoning is on by default, so most calls work with no extra configuration. Stream the response, since reasoning output can be long.
The response separates the chain of thought from the final answer: reasoning tokens arrive in the reasoning field on each delta, and the answer arrives in content.

Reasoning effort

DeepSeek V4 Pro accepts two effort levels through the reasoning_effort parameter:
  • "high": the default thinking depth. Use for most complex problems.
  • "max": maximum reasoning effort. Use for the hardest math, planning, and multi-step coding agents. Set the context window to at least 384K tokens for Think Max mode, and set max_tokens generously, since "max" mode can produce very long chains of thought.
Together normalizes other values automatically: "low" and "medium" map to "high", and "xhigh" maps to "max".
For broader guidance on reasoning controls and prompting, see Reasoning.

Long-context use

DeepSeek V4 Pro accepts up to 512K input tokens on Together. The model’s hybrid attention combines Compressed Sparse Attention (CSA) with Heavily Compressed Attention (HCA), which keeps the key-value (KV) cache and per-token FLOPs roughly an order of magnitude smaller than DeepSeek V3.2 at long contexts. Use the full context window with care. The model’s ability to retrieve information is not uniform across the window, so refer to the needle-in-a-haystack results from DeepSeek’s paper below. For critical tasks, treat the first 256K of context as more reliable than the next 256K, and so on. DeepSeek V4 Pro context length visualization A few tips for long inputs:
  • Put your instructions at the top of the prompt and your question at the bottom.
  • Set max_tokens explicitly. Long contexts plus reasoning_effort="max" can produce very long completions.
DeepSeek recommends temperature=1.0 and top_p=1.0 for V4 Pro. Lower temperatures can collapse the reasoning trace and degrade answer quality, so prefer to control output length with max_tokens rather than turning down temperature.

Reducing reasoning overhead

V4 Pro is a thinking-by-default hybrid model on Together. For simple turns where reasoning overhead is not needed, disable reasoning with reasoning={"enabled": False}:
When you keep reasoning enabled, use reasoning_effort="high" (the default) and add a short instruction asking the model to keep its thinking concise.

Multi-turn conversations

In each turn of the conversation, the model outputs both a chain-of-thought (reasoning_content) and a final answer (content). The API itself is stateless, so to continue a conversation, you must resend the prior messages for every request. If the assistant’s response included tool calls, pass both the previous answer and the CoT (reasoning_content) back in your next request to maintain the model’s reasoning context. However, if there was no tool call, the prior CoT (reasoning_content) from previous turns is not included in the next turn’s context. Only the usual conversation history carries forward. The diagram for multi-turn reasoning context illustrates this behavior: DeepSeek V4 Pro multi-turn conversation timeline example Code example:

Function calling and interleaved reasoning

DeepSeek V4 Pro supports tool calling. Define tools in the standard OpenAI-compatible schema and pass them via tools.
For multi-turn function calling, pass the assistant message’s reasoning trace back in every later request. This preserves the model’s reasoning across tool calls and user turns. Include the assistant message’s content, reasoning_content, and tool_calls, then append each tool result with the matching tool_call_id, as illustrated in the multi-turn function-calling diagram. Multi-turn function calling timeline example Code example: