Create a chat completion

Supports text, up to eight images, function tools, and streaming. Video and audio inputs are unsupported. With stream=true, consume data-only SSE events until data: [DONE]; reasoning, content, and tool calls arrive as deltas.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
enum
required
Defaults to mistralai/mistral-large-4-1t-a52b
Allowed:
messages
array of objects
required
length ≥ 1

Conversation history. Use content-part arrays for images. After an assistant tool call, include a tool message with its tool_call_id. Preserve assistant reasoning_content when continuing a conversation.

Messages*
string
enum
required
Allowed:
string | null | array
string | null

Assistant reasoning, separate from the final answer.

tool_calls
array of objects
Tool Calls
string

Required on tool-result messages; matches an assistant tool call ID.

string
integer
1 to 262144
Defaults to 4096

Maximum generated tokens, including reasoning and the final answer. Small budgets may end during reasoning with null content and finish_reason=length. Prompt plus output must fit the context window.

boolean
Defaults to false
number
0 to 2
Defaults to 0.5

The sampling temperature to use for text generation. The higher the temperature value is, the less deterministic the output text will be. It is not recommended to modify both temperature and top_p in the same call.

number
≤ 1
Defaults to 1

The 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. It is not recommended to modify both temperature and top_p in the same call.

number
-2 to 2
Defaults to 0

Indicates how much to penalize new tokens based on their existing frequency in the text so far, decreasing model likelihood to repeat the same line verbatim.

number
-2 to 2
Defaults to 0

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

integer
0 to 9007199254740991

Optional sampling seed, limited to JavaScript-safe integers for the interactive examples. Deterministic output is not guaranteed.

string | array | null

Stop string or list of stop strings; omitted from the output.

tools
array of objects

Functions the model may request; the caller executes them.

Tools
string | object

Choose auto, none, required, or force a named function.

string
enum
Defaults to high

Controls reasoning for this request. Set to high, the model reasons first and the response carries reasoning_content separately from the final content; set to none, it answers directly. The playground sends high by default; a request that omits this field is served as none. chat_template_kwargs.enable_thinking is not honored by this recipe.

Allowed:
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

400

Invalid request or unsupported input.

401

Missing or invalid NVIDIA API key.

402

Insufficient API credits.

422

Request validation failed.

429

Request rate limit exceeded.

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
text/event-stream
country_code