Create a chat completion
Creates a chat completion for the provided messages and parameters.
Request
- Base URL: https://api.aiand.com
- URL: https://api.aiand.com/v1/chat/completions
- Auth: HTTP bearer
Request body
ID of the model to use for the chat completion.
If true, partial message deltas will be sent as server-sent events.
Sampling temperature between 0 and 2. Higher values make output more random.
Nucleus sampling: consider tokens with top_p probability mass. Greater than 0 and at most 1.
How many chat completion choices to generate.
Maximum number of tokens to generate. Deprecated in favor of max_completion_tokens.
Upper bound for tokens that can be generated, including visible output and reasoning tokens.
Number between -2.0 and 2.0. Positive values penalize tokens based on existing frequency.
Number between -2.0 and 2.0. Positive values penalize tokens based on whether they appear in the text so far.
Whether to return log probabilities of the output tokens.
Number of most likely tokens to return at each position (0-20). Requires logprobs=true.
Map of token IDs to bias values (-100 to 100) to modify likelihood of specified tokens.
If specified, the system will attempt deterministic sampling. Determinism is not guaranteed.
Whether to enable parallel function calling during tool use.
Constrains reasoning effort for reasoning models. The accepted values are per-model — read reasoning_efforts from GET /v1/models. A value outside that model's set is rejected.
Number of highest probability tokens to keep for top-k sampling. -1 to disable.
Minimum probability threshold relative to the top token. Tokens below this are filtered out. 0.0 to disable.
Penalizes new tokens based on whether they appear in the generated text so far. Values > 1.0 penalize repetitions.
Minimum number of tokens to generate before allowing a stop condition.
If true, the prompt is prepended to the generated output.
A unique identifier representing your end-user.
Response
OK
Changes
No recorded changes to this operation across all 1 revision of this API.