AIMLAPI · JSON Structure

Aimlapi Chat Completion Response Structure

Response from a chat completion request

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

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

Properties

id object model choices usage created

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-chat-completion-response-structure.json",
  "name": "ChatCompletionResponse",
  "description": "Response from a chat completion request",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique completion ID",
      "example": "chatcmpl-abc123"
    },
    "object": {
      "type": "string",
      "description": "Object type",
      "example": "chat.completion"
    },
    "model": {
      "type": "string",
      "description": "Model used for completion",
      "example": "gpt-4o"
    },
    "choices": {
      "type": "array",
      "description": "List of completion choices",
      "items": {
        "type": "object"
      }
    },
    "usage": {
      "type": "object",
      "description": "Token usage statistics"
    },
    "created": {
      "type": "int32",
      "description": "Unix timestamp of creation",
      "example": 1718153645
    }
  }
}