Chat Completions
Run text inference based on the supplied parameters.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
The ID of the model you wish to prompt. May also be a model trait, or a compatibility mapping. See the models endpoint for a list of models available to you.
A list of messages comprising the conversation so far. Depending on the model you use, different message types (modalities) are supported, like text and images.
Unique parameters to Venice's API implementation.
Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
-2 < x < 2
Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
-2 < x < 2
How many chat completion choices to generate for each input message. Note that you will be charged based on the number of generated tokens across all of the choices. Keep n as 1 to minimize costs.
The maximum number of tokens that can be generated in the chat completion. This value can be used to control costs for text generated via API. This value is now deprecated in favor of max_completion_tokens.
An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens.
What 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. We generally recommend altering this or top_p but not both.
0 < x < 2
An 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.
0 < x < 1
Up to 4 sequences where the API will stop generating further tokens. Defaults to null.
Whether to stream back partial progress. Defaults to false.
This field is discarded on the request but is supported in the Venice API for compatibility with OpenAPI clients.
Whether to enable parallel function calling during tool use.
A list of tools the model may call. Currently, only functions are supported as a tool. Use this to provide a list of functions the model may generate JSON inputs for.
Response
The ID of the request.
The type of the object returned.
chat.completion
The time at which the request was created.
The model id used for the request.
A list of chat completion choices. Can be more than one if n is greater than 1.
Log probability information for the prompt.