About this endpoint
What it does
OpenAI-compatible chat completions using Ministral 7B. Send model ("mistral-7b"), a messages array (each item has role and content), and optionally max_tokens and temperature. Supports system, user, and assistant roles in any standard OpenAI conversation shape. Returns a single JSON response with the generated reply — no polling, no task ID.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| model | String | Yes | Must be mistral-7b. |
| messages | Array | Yes | List of {role, content} objects, OpenAI chat format. At least one message. |
| messages[].role | String | Yes | system, user or assistant. |
| messages[].content | String | Yes | The message text. |
| max_tokens | Integer | No | Maximum tokens to generate. Default: 512. Prompt plus max_tokens must fit the 6,144-token context window. |
| temperature | Number | No | Sampling temperature, 0–2. Default: 0.7. |
Response
Returns a standard OpenAI chat completion object with the generated reply in choices[].message.content.
| Field | Type | Description |
|---|---|---|
| id | String | Completion id, e.g. chatcmpl-ae8e9f07da25157e. |
| object | String | Always chat.completion. |
| created | Integer | Unix timestamp (seconds) of the completion. |
| model | String | Model used, mistral-7b. |
| choices | Array | Generated replies (one item). |
| choices[].index | Integer | Position of the choice, 0. |
| choices[].message.role | String | Always assistant. |
| choices[].message.content | String | The generated reply. |
| choices[].message.tool_calls | Array | Always empty; tool calling is not enabled. |
| choices[].finish_reason | String | stop (natural end) or length (hit max_tokens). |
| system_fingerprint | String | Serving-stack build id, e.g. vllm-0.23.0-bfb893d8. |
| usage.prompt_tokens | Integer | Tokens in the prompt. |
| usage.completion_tokens | Integer | Tokens generated. |
| usage.total_tokens | Integer | Sum of the two. |
Notes
Response time is typically 1–3 seconds and scales with max_tokens. No messages history is stored server-side — send the full conversation each time. Context window is 6,144 tokens (prompt + output). Streaming (stream: true) is not supported on this endpoint.



