DeepSeek V3.2 Speciale

circle-info

This documentation is valid for the following list of our models:

  • deepseek/deepseek-v3.2-speciale

Model Overview

A high-compute variant of DeepSeek-V3.2 that outperforms GPT-5 and matches Gemini-3.0-Pro in reasoning benchmarks, achieving gold-medal-level results at the 2025 International Mathematical Olympiad (IMO) and the International Olympiad in Informatics (IOI).

chevron-rightHow to make the first API callhashtag
circle-check

API Schema

post
Body
modelstring · enumRequiredPossible values:
max_completion_tokensinteger · min: 1Optional

An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens.

max_tokensnumber · min: 1Optional

The maximum number of tokens that can be generated in the chat completion. This value can be used to control costs for text generated via API.

streambooleanOptional

If set to True, the model response data will be streamed to the client as it is generated using server-sent events.

Default: false
temperaturenumber · max: 2Optional

What sampling temperature to use. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. We generally recommend altering this or top_p but not both.

top_pnumber · min: 0.01 · max: 1Optional

An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. We generally recommend altering this or temperature but not both.

stopany ofOptional

Up to 4 sequences where the API will stop generating further tokens. The returned text will not contain the stop sequence.

stringOptional
or
string[]Optional
or
any · nullableOptional
frequency_penaltynumber · min: -2 · max: 2 · nullableOptional

Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.

presence_penaltynumber · min: -2 · max: 2 · nullableOptional

Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.

seedinteger · min: 1Optional

This feature is in Beta. If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result.

echobooleanOptional

If True, the response will contain the prompt. Can be used with logprobs to return prompt logprobs.

min_pnumber · min: 0.001 · max: 0.999Optional

A number between 0.001 and 0.999 that can be used as an alternative to top_p and top_k.

top_knumberOptional

Only sample from the top K options for each subsequent token. Used to remove "long tail" low probability responses. Recommended for advanced use cases only. You usually only need to use temperature.

repetition_penaltynumber · nullableOptional

A number that controls the diversity of generated text by reducing the likelihood of repeated sequences. Higher values decrease repetition.

top_anumber · max: 1Optional

Alternate top sampling parameter.

response_formatone ofOptional

An object specifying the format that the model must output.

or
or
Responses
chevron-right
200Success
post
/v1/chat/completions
200Success

Code Example

chevron-rightResponsehashtag

Last updated

Was this helpful?