AIMLAPI · Schema

Message

A single message in a chat conversation

Artificial IntelligenceMachine LearningAI ModelsLLMImage GenerationVideo GenerationSpeechEmbeddingsAPI GatewayDeveloper Tools

Properties

Name Type Description
role string Message role: system, user, assistant, tool
content string Message content text
name string Optional name for the participant
View JSON Schema on GitHub

JSON Schema

aimlapi-message-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/aimlapi/refs/heads/main/json-schema/aimlapi-message-schema.json",
  "title": "Message",
  "description": "A single message in a chat conversation",
  "type": "object",
  "properties": {
    "role": {
      "type": "string",
      "description": "Message role: system, user, assistant, tool",
      "example": "user"
    },
    "content": {
      "type": "string",
      "description": "Message content text",
      "example": "Hello, how can I help you?"
    },
    "name": {
      "type": "string",
      "description": "Optional name for the participant",
      "example": "Alice"
    }
  }
}