AIMLAPI · JSON Structure

Aimlapi Message Structure

A single message in a chat conversation

Type: object Properties: 3
Artificial IntelligenceMachine LearningAI ModelsLLMImage GenerationVideo GenerationSpeechEmbeddingsAPI GatewayDeveloper Tools

Message is a JSON Structure definition published by AIMLAPI, describing 3 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

role content name

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/aimlapi/refs/heads/main/json-structure/aimlapi-message-structure.json",
  "name": "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"
    }
  }
}