GET
/v1/schemas/mistral/moderation/v1/chat/moderations
Accept:
kind inputactivity moderationhash 51b6d29d…extracted Oct 13, 2026version currentsource upstream spec ↗
| field | recorded source |
|---|---|
| schema | Source linked above. upstream-spec Source trace6c349f3bdef67bbbe43b49973f15825c92e7fcc1ff4fadbcc2d87564ef277a03{
"fetchedAt": 1791869458,
"extractorVersion": "1",
"verifiedAt": null
} |
Request body
2 properties · 2 required · 22 $defs| property | type | description | constraints |
|---|---|---|---|
| input* | SystemMessage | UserMessage | AssistantMessage[] | SystemMessage | UserMessage | AssistantMessage[][] | Chat to classify | |
| model* | string |
Types
22 $defsAssistantMessageobject
| role | const | "assistant" · default: "assistant" | |
| content | string | ContentChunk[] | nullable | |
| tool_calls | ToolCall[] | nullable | |
| prefix | boolean | Set this to `true` when adding an assistant message as prefix to condition the model response. The role of the prefix message is to force the model to start its answer by the content of the message. | default: false |
AudioChunkobject
| type | const | "input_audio" · default: "input_audio" | |
| input_audio* | string | string |
BuiltInConnectorsenum
web_search | web_search_premium | code_interpreter | image_generation | document_library | mistral_mcp
ContentChunkTextChunk | ImageURLChunk | DocumentURLChunk | …
DocumentURLChunkobject
| type | const | "document_url" · default: "document_url" | |
| document_url* | string | ||
| document_name | string | The filename of the document | nullable |
FileChunkobject
| type | const | "file" · default: "file" | |
| file_id* | string | format: uuid |
FunctionCallobject
| name* | string | ||
| arguments* | object | string |
ImageDetailenum
low | auto | high
ImageURLobject
| url* | string | ||
| detail | enum | low | auto | high · nullable |
ImageURLChunkobject
{"type":"image_url","image_url":"data:image/png;base64,iVBORw0"}
| type | const | "image_url" · default: "image_url" | |
| image_url* | ImageURL | string |
ReferenceChunkobject
| type | const | "reference" · default: "reference" | |
| reference_ids* | integer | string[] |
ResourceChunkobject
| type | const | "resource" · default: "resource" | |
| uri* | string | ||
| content* | TextChunk | ImageURLChunk |
ResourceLinkChunkobject
| type | const | "resource_link" · default: "resource_link" | |
| uri* | string | ||
| metadata | object | nullable |
SystemMessageobject
| role | const | "system" · default: "system" | |
| content* | string | SystemMessageContentChunks[] |
SystemMessageContentChunksTextChunk | ThinkChunk
TextChunkobject
| type | const | "text" · default: "text" | |
| text* | string |
ThinkChunkobject
| type | const | "thinking" · default: "thinking" | |
| thinking* | TextChunk | ToolReferenceChunk | ReferenceChunk[] | ||
| signature | string | Signature to replay some reasoning blocks across turns. | nullable |
| closed | boolean | Whether the thinking chunk is closed or not. Currently only used for prefixing. | default: true |
ToolCallobject
| id | string | default: "null" | |
| type | enum | function | |
| function* | FunctionCall | ||
| index | integer | default: 0 |
ToolMessageobject
| role | const | "tool" · default: "tool" | |
| content* | string | ContentChunk[] | nullable | |
| tool_call_id | string | nullable | |
| name | string | nullable |
ToolReferenceChunkobject
| type | const | "tool_reference" · default: "tool_reference" | |
| tool* | enum | string | ||
| title* | string | ||
| url | string | nullable | |
| favicon | string | nullable | |
| description | string | nullable |
ToolTypesenum
function
UserMessageobject
| role | const | "user" · default: "user" | |
| content* | string | ContentChunk[] | nullable |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"mistral","endpointId":"v1/chat/moderations","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}