AIMLAPI · Schema

ChatCompletionRequest

Request body for creating a chat completion via AIMLAPI

Artificial IntelligenceMachine LearningAI ModelsLLMImage GenerationVideo GenerationSpeechEmbeddingsAPI GatewayDeveloper Tools

Properties

Name Type Description
model string Model ID to use for completion
messages array List of messages in the conversation
temperature number Sampling temperature 0-2
max_tokens integer Maximum tokens to generate
stream boolean Stream response tokens
top_p number Nucleus sampling parameter
frequency_penalty number Frequency penalty -2 to 2
presence_penalty number Presence penalty -2 to 2
View JSON Schema on GitHub