Endpoint Details
Review how to make this request and handle its possible responses.
https://integrate.api.nvidia.com/v1/chat/completionsGiven a list of messages comprising a conversation, the model will return a response. Compatible with OpenAI. See https://platform.openai.com/docs/api-reference/chat/create
Request Body
Edit the request fields below.
Request details
Parameters6 Parameters
modeloptionaldeepseek-ai/deepseek-v4.1-flashmax_tokensoptionalThe maximum number of tokens to generate in any given call. Note that the model is not aware of this value, and generation will simply stop at the number of tokens specified.
262144Minimum: 1Maximum: 1048576streamoptionalIf set, partial message deltas will be sent. Tokens will be sent as data-only server-sent events (SSE) as they become available (JSON responses are prefixed by `data: `), with the stream terminated by a `data: [DONE]` message.
falsetemperatureoptionalThe sampling temperature to use for text generation. The higher the temperature value is, the less deterministic the output text will be. DeepSeek recommends temperature 1.0 and top_p 0.95 or 1.0.
1Minimum: 0Maximum: 1top_poptionalThe top-p sampling mass used for text generation. The top-p value determines the probability mass that is sampled at sampling time. For example, if top_p = 0.2, only the most likely tokens (summing to 0.2 cumulative probability) will be sampled. DeepSeek recommends temperature 1.0 and top_p 0.95 or 1.0.
0.95Minimum: 0Maximum: 1messagesrequiredA list of messages comprising the conversation so far.
messages[].rolerequiredmessages[].contentrequiredHeaders3 Headers
AuthorizationrequiredFormat: Bearer $NVIDIA_API_KEY
Content-TyperequiredAcceptoptional