Log10 · Example Payload

Create Completion

Log an LLM chat completion to the Log10 platform.

LLMLoggingObservabilityEvaluationFeedbackDebuggingLLMOpsArtificial IntelligenceMachine Learning

Create Completion is an example object payload from Log10, with 4 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

exampledescriptionrequestresponse

Example Payload

Raw ↑
{
  "example": "Create a Completion",
  "description": "Log an LLM chat completion to the Log10 platform.",
  "request": {
    "method": "POST",
    "url": "https://log10.io/api/v1/completions",
    "headers": {
      "X-Log10-Token": "YOUR_API_TOKEN",
      "X-Log10-Organization": "YOUR_ORGANIZATION_ID",
      "Content-Type": "application/json"
    },
    "body": {
      "organization_id": "org_abc123",
      "kind": "chat",
      "status": "finished",
      "tags": ["production", "customer-support"],
      "session_id": "sess_xyz789",
      "duration": 1.34,
      "request": {
        "model": "gpt-4o",
        "messages": [
          {"role": "system", "content": "You are a helpful assistant."},
          {"role": "user", "content": "What is the capital of France?"}
        ]
      },
      "response": {
        "id": "chatcmpl-example123",
        "object": "chat.completion",
        "model": "gpt-4o",
        "choices": [
          {
            "index": 0,
            "message": {
              "role": "assistant",
              "content": "The capital of France is Paris."
            },
            "finish_reason": "stop"
          }
        ],
        "usage": {
          "prompt_tokens": 28,
          "completion_tokens": 9,
          "total_tokens": 37
        }
      }
    }
  },
  "response": {
    "status": 201,
    "body": {
      "id": "cmpl_def456",
      "organization_id": "org_abc123",
      "kind": "chat",
      "status": "finished",
      "tags": ["production", "customer-support"],
      "session_id": "sess_xyz789",
      "duration": 1.34
    }
  }
}