GET

/v1/schemas/nvidia/chat/meta/llama-guard-4-12b

kind inputactivity chathash d2a0c9cb…extracted Oct 9, 2026version currentsource upstream spec ↗
fieldrecorded source
schemaSource linked above.

upstream-spec

Source trace
876b01a02db8cf38d07edb6020fc7e7f2ce1d437fbcba3c82b515cdd1e54ddea
{
  "fetchedAt": 1791535404,
  "extractorVersion": "1",
  "verifiedAt": null
}

Request body

7 properties · 2 required · 5 $defs
propertytypedescriptionconstraints
messages*NIMLLMChatCompletionMessage[]A list of messages comprising the conversation so far.items ≥ 1
model*stringThe model to use.default: "meta/llama-guard-4-12b"
max_tokensintegerThe maximum number of tokens that can be generated.1 ≤ n ≤ 30 · nullable
seedintegerChanging the seed will produce a different response with similar characteristics. Fixing the seed will reproduce the same results if all other parameters are also kept constant.-9223372036854776000 ≤ n ≤ 9223372036854776000 · nullable
streambooleanIf set, partial message deltas will be sent, like in ChatGPT. Tokens will be sent as data-only [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format) as they become available, with the stream terminated by a `data: [DONE]`nullable
temperaturenumberWhat sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.0 ≤ n ≤ 2 · nullable
top_pnumberAn alternative to sampling with temperature, called nucleus 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

Types

5 $defs

ImageURLobject

url*string

NIMLLMChatCompletionMessageobject

role*enumThe role of the message's author.assistant | user
content*string | NIMVLMChatCompletionContentPartImage | NIMVLMChatCompletionContentPartText[]The contents of the message. <br>To pass media (only with role=`user`): <br> - Use content parts. Text is passed with `type`=`text`. <br> - Images are passed with `type`=`image_url`; set `image_url.url` to an image URL or a base64 data URI like `data:image/{fo…

NIMVLMChatCompletionContentPartImageobject

image_url*ImageURL
type*enumimage_url

NIMVLMChatCompletionContentPartTextobject

text*string
type*enumtext

Roleenum

assistant | user

Validate a payload

before you spend tokens
shell
$ curl -X POST https://modelschemas.com/v1/validate \
    -d '{"provider":"nvidia","endpointId":"meta/llama-guard-4-12b","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}