GET

/v1/schemas/mistral/chat/v1/fim/completions

kind inputactivity chathash 27b094fc…extracted Aug 15, 2026version currentsource upstream spec ↗
fieldrecorded source
schemaSource linked above.

upstream-spec

Source trace
61436a496404607a7c27f7d2d45989bc51bd699d2106690fd6cc76a3a6c9b692
{
  "fetchedAt": 1786771983,
  "extractorVersion": "1",
  "verifiedAt": null
}

Request body

12 properties · 2 required · 0 $defs
propertytypedescriptionconstraints
model*stringID of the model with FIM to use.default: "codestral-2404"
prompt*stringThe text/code to complete.
temperaturenumberWhat sampling temperature to use, we recommend between 0.0 and 0.7. Higher values like 0.7 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. The default value varies depending on the model you are targeting. Call the `/models` endpoint to retrieve the appropriate value.0 ≤ n ≤ 1.5 · nullable
top_pnumberNucleus 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.0 < n ≤ 1 · nullable
max_tokensintegerThe maximum number of tokens to generate in the completion. The token count of your prompt plus `max_tokens` cannot exceed the model's context length.n ≥ 0 · nullable
streambooleanWhether to stream back partial progress. If set, tokens will be sent as data-only server-side events as they become available, with the stream terminated by a data: [DONE] message. Otherwise, the server will hold the request open until the timeout or until com…default: false
stopstring | string[]Stop generation if this token is detected. Or if one of these tokens is detected when providing an arraynullable
random_seedintegerThe seed to use for random sampling. If set, different calls will generate deterministic results.n ≥ 0 · nullable
metadataobjectnullable
suffixstringOptional text/code that adds more context for the model. When given a `prompt` and a `suffix` the model will fill what is between them. When `suffix` is not provided, the model will simply execute completion starting with `prompt`.nullable
min_tokensintegerThe minimum number of tokens to generate in the completion.n ≥ 0 · nullable
prompt_cache_keystringnullable

Validate a payload

before you spend tokens
shell
$ curl -X POST https://modelschemas.com/v1/validate \
    -d '{"provider":"mistral","endpointId":"v1/fim/completions","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}