Letta · Example Payload

Letta Voice Chat Completion Beta Example

AIAgentsStateful AgentsMemoryMemGPTContinual LearningMCPMulti-AgentRAGOpen Source

Letta Voice Chat Completion Beta Example is an example object payload from Letta, with 6 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationmethodpathauthrequestresponse

Example Payload

Raw ↑
{
  "operation": "Voice Chat Completion (Beta)",
  "method": "POST",
  "path": "/v1/voice-beta/{agent_id}/chat/completions",
  "auth": "Bearer token (LETTA_API_KEY)",
  "request": {
    "method": "POST",
    "path": "/v1/voice-beta/agent-2f6d4a13/chat/completions",
    "headers": {
      "Authorization": "Bearer $LETTA_API_KEY",
      "Content-Type": "application/json"
    },
    "body": {
      "messages": [
        {
          "role": "user",
          "content": "Hello."
        }
      ],
      "voice": "alloy",
      "stream": true
    }
  },
  "response": {
    "status": 200,
    "headers": {
      "Content-Type": "text/event-stream"
    },
    "body_excerpt": "event: audio_chunk\ndata: {\"audio\":\"<base64>\"}\n\nevent: done\ndata: [DONE]\n"
  }
}