Published · Updated · AI-generated, automated fact-check against live catalog · 中文版

DeepSeek V3.2 API pricing explained: what a million tokens really

TL;DR: A million tokens, roughly 750,000 words, costs $0.42 for input and $0.63 for output using DeepSeek V3.2 on TokShop. For individual tasks like a 35,500-token analysis, the cost is fractions of a cent, making it highly cost-effective. The total bill depends on your use case, with input-heavy applications like document analysis leaning on the input rate and output-heavy tasks like code generation driven by the output rate.

What does a million tokens look like in practice?

First, a quick refresher: tokens are chunks of text. In English, one token is roughly 0.75 words. A million tokens is about 750,000 words—roughly the length of the entire Harry Potter series (seven books) combined.

But you rarely use a million tokens in a single API call. The DeepSeek V3.2 model on TokShop has a context window of 128,000 tokens. That's the maximum you can send in one request, including both your prompt and the model's generated response.

Here's what fits in one full-context call:

  • A 50-page technical report (~30,000 tokens)
  • Plus a detailed question and instruction (~500 tokens)
  • The model generates a 5,000-token analysis
  • Total: ~35,500 tokens used in that single call

At DeepSeek V3.2's input rate of $0.42 per million tokens, that 30,500-token input costs $0.0128. The 5,000-token output at $0.63 per million costs $0.00315. One thorough analysis: about 1.6 cents.

This is the key insight: for most individual tasks, the cost is fractions of a cent. The million-token price only becomes relevant when you're processing at scale.

Breaking down input vs. output costs

The pricing asymmetry matters. DeepSeek V3.2 charges $0.42 per million input tokens and $0.63 per million output tokens—a 1.5x multiplier on generation.

Why the difference? Generating tokens requires more compute than processing existing text. The model must predict each word sequentially, which is inherently more expensive than the parallel processing of input embeddings.

For a typical chatbot session:

  • Input-heavy use case (e.g., document analysis): You send a 10,000-token document and ask a 200-token question. The model replies with 500 tokens. Total cost: (10,200 × $0.42/M) + (500 × $0.63/M) = $0.00428 + $0.000315 = $0.0046. Almost entirely input cost.

  • Output-heavy use case (e.g., code generation): You send a 500-token prompt asking for a complex function. The model generates 4,000 tokens of code. Total cost: (500 × $0.42/M) + (4,000 × $0.63/M) = $0.00021 + $0.00252 = $0.00273. Now output dominates.

If your application generates long responses (summaries, translations, creative writing), the output rate will be your primary cost driver. For RAG (retrieval-augmented generation) pipelines where you inject large context documents, the input rate matters more.

How to track your actual token spend

TokShop provides exact cost tracking per API call. Every response includes token counts and the precise USD deduction. You can see this in your dashboard or programmatically.

Here's a minimal Python script using the OpenAI SDK to check your balance and log costs per call:

from openai import OpenAI

client = OpenAI(
    base_url="https://tokshop.xyz/v1",
    api_key="sk-tok-your-key-here"
)

# Check remaining balance first
balance = client.balance.retrieve()  # Note: check TokShop docs for exact endpoint
print(f"Remaining credits: ${balance.amount:.2f}")

# Make a call and see the cost
response = client.chat.completions.create(
    model="deepseek-v3.2",
    messages=[
        {"role": "user", "content": "Explain token pricing in two sentences."}
    ],
    max_tokens=100
)

usage = response.usage
input_cost = (usage.prompt_tokens / 1_000_000) * 0.42
output_cost = (usage.completion_tokens / 1_000_000) * 0.63
total_cost = input_cost + output_cost

print(f"Input: {usage.prompt_tokens} tokens → ${input_cost:.6f}")
print(f"Output: {usage.completion_tokens} tokens → ${output_cost:.6f}")
print(f"Total: ${total_cost:.6f}")

The response object from TokShop's OpenAI-compatible API includes usage.prompt_tokens and usage.completion_tokens just like the standard OpenAI format. You can log these to monitor spending in real time.

For heavy usage, consider batching requests or caching common responses. With DeepSeek V3.2 at these rates, a million tokens of input costs $0.42—that's about 13 full-context (128k token) requests before you hit $0.42 in input costs.

DeepSeek V3.2 vs. other models on TokShop

TokShop offers several open-source models alongside DeepSeek V3.2. The pricing differences reflect model architecture, training data, and inference optimization. Here's a direct comparison using the TokShop pricing page as a reference:

Model Input ($/M tokens) Output ($/M tokens) Context Window
DeepSeek V3.2 $0.42 $0.63 128k
GLM 4.6 $0.90 $3.30 200k
Kimi K2 $0.855 $3.45 131k
Qwen3 Coder $2.25 $11.25 262k

DeepSeek V3.2 is the cheapest model on the platform by a significant margin—roughly half the input cost of the next cheapest (Kimi K2) and one-fifth the output cost.

But price isn't everything. Qwen3 Coder, at $2.25/$11.25 per million tokens, targets code generation specifically and offers a 262k context window. If you're processing entire codebases, the larger context might justify the premium. GLM 4.6 and Kimi K2 sit in the middle, with Kimi K2 being a strong general-purpose model.

For cost-sensitive applications—chatbots, content summarization, data extraction—DeepSeek V3.2's pricing is hard to beat. The 128k context covers most documents and conversations comfortably.

Billing mechanics: prepaid credits and HTTP 402

TokShop uses a prepaid credit system. You add USD to your account, and each API call deducts from that balance. If your balance hits zero, the API returns an HTTP 402 Payment Required error with an insufficient_balance status.

This is different from post-paid billing (monthly invoices) that some providers offer. The advantage is no surprise bills—you can only spend what you've deposited. The trade-off is you need to monitor your balance and top up before it runs dry.

For a small project, $10 in credits goes a long way with DeepSeek V3.2. At $0.42 per million input tokens, $10 buys you about 23.8 million input tokens—enough to process roughly 186 full-context (128k token) inputs. If you're generating output at the same ratio, expect about 15.9 million output tokens for $10.

A practical tip: set up a low-balance alert by checking your balance periodically via the API. TokShop's dashboard shows your remaining credits, and you can programmatically check before making expensive batch calls.

Conclusion

DeepSeek V3.2's pricing of $0.42 per million input tokens and $0.63 per million output tokens is remarkably cost-effective for an open-weight model with a 128k context window. A single complex query costs fractions of a cent, and a million tokens translates to roughly 750,000 words of processing.

The real cost depends on your use pattern: input-heavy applications (RAG, document analysis) are dominated by the $0.42 rate, while output-heavy tasks (code generation, long-form content) shift the balance toward the $0.63 output rate. Either way, DeepSeek V3.2 is currently the most affordable model on TokShop's platform.

For detailed pricing across all available models, check the TokShop pricing page. If you're ready to start, sign up at TokShop, generate an API key, and point your OpenAI-compatible client at https://tokshop.xyz/v1. The token math is straightforward—and at these rates, you might be surprised how far a few dollars can go.

FAQ

How much does a typical API call with DeepSeek V3.2 cost?

A typical call, such as analyzing a 30,500-token document and generating a 5,000-token response, costs about 1.6 cents. Costs are fractions of a cent for most individual tasks, with the million-token pricing becoming relevant mainly at scale.

Why is output more expensive than input for DeepSeek V3.2?

Output costs more ($0.63 per million tokens vs. $0.42 for input) because generating tokens requires more computational power. The model must predict each word sequentially, which is inherently more expensive than the parallel processing used for input embeddings.

How does TokShop's billing system work?

TokShop uses a prepaid credit system where you deposit USD and each API call deducts from that balance. If your balance reaches zero, the API returns an HTTP 402 Payment Required error. This prevents surprise bills but requires you to monitor your balance and top up as needed.

Try it now

All models discussed are live on our OpenAI-compatible API with transparent per-token pricing. See pricing and get a key →

Related articles