InferenceRequestSchema
messages object[]required
Conversation history as an ordered array of messages. Each message has a role and content. For image-to-text models, content may be an array of text and image parts.
Possible values: >= 1
content object[]nullable
The message content. For image-to-text models, pass an array of content parts, each a text part or an image_url part (shown below). For plain text-only messages, you can also pass content as a single string.
The content part type.
The text of this part. Provide when type is text.
image_url object
The image for this part. Provide when type is image_url.
The image as a data URI (base64-encoded) or a publicly reachable URL.
How much detail the model uses when processing the image.
The role of the message author: system, user, or assistant.
Model identifier. Use the model_name from List base models for base models, or the model_name from List owned models for fine-tuned or imported models.
Llama-3.3-70B-InstructWhen true, returns the response as a stream of server-sent events, yielding tokens as they are generated. When false (default), waits for the full completion before returning.
falseOptions that control streaming behaviour, such as whether to include token usage in the final stream chunk.
Maximum number of tokens to generate. Defaults to the model's maximum if omitted.
Sampling temperature controlling randomness. Lower values produce more deterministic output; higher values increase variety.
Nucleus sampling threshold. Only tokens comprising the top top_p probability mass are considered. Set to null to disable.
Limits sampling to the top_k most probable tokens at each step. Set to -1 to disable.
Penalizes tokens that have already appeared in the output, encouraging topic variety.
Multiplier applied to the logit of previously generated tokens to reduce repetition. Values above 1.0 penalize repeats; values below 1.0 encourage them.
{
"model": "Llama-3.3-70B-Instruct",
"messages": [
{
"role": "user",
"content": "Reply with exactly: OK"
}
],
"stream": false
}