> ## Documentation Index
> Fetch the complete documentation index at: https://kmerhosting.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# AI Agent API

> Send messages and manage KmerHosting AI Agent conversations through the SDK or REST API.

KmerHosting AI Agent can be used inside the console or through an API key with the required permission.

<Frame caption="Saved conversations belong to the authenticated account or API-key owner.">
  <img src="https://mintcdn.com/kmerhosting-a736a8a9/qmzUGdL1AajWuhXn/images/screenshots/ai-agent-conversations.png?fit=max&auto=format&n=qmzUGdL1AajWuhXn&q=85&s=2e11c51fcb15c11a33148b97903c518f" alt="Saved conversations belong to the authenticated account or API-key owner." width="1600" height="900" data-path="images/screenshots/ai-agent-conversations.png" />
</Frame>

## Conversation operations

* List saved conversations.
* Save a conversation with messages, model, and optional title.
* Delete a conversation by ID.
* Stream an assistant response for a message request.

## Delete a conversation with the SDK

```ts theme={null}
await client.aiAgent.conversations.delete(conversationId)
```

The platform verifies ownership before deletion. The operation is permanent.

## Safe prompts

Use sanitized infrastructure context. Remove API keys, credentials, customer data, KYC documents, and confidential source code before sending a prompt.
