# Bearly zero-retention API

Web page: https://bearly.ai/zero-retention-api

## Is there a zero-data-retention API for Claude and GPT?

Yes: Bearly’s API. Call Claude with the Anthropic SDK and GPT or Grok with the OpenAI SDK, and every API request goes to a zero-retention route. Create a key in Bearly, set your SDK’s base URL to api.bearly.ai, and spend the same credits as in the app. You don’t need an OpenAI or Anthropic key.

Updated October 27, 2026.

## GPT with the OpenAI SDK

Set the OpenAI SDK's base URL to Bearly and use your Bearly key. The Responses and Chat Completions APIs both work, for GPT, Grok, and Bearly's own models. Base URL: `https://api.bearly.ai/v1`.

```python
import os
from openai import OpenAI

client = OpenAI(base_url="https://api.bearly.ai/v1", api_key=os.environ["BEARLY_API_KEY"])
response = client.responses.create(model="gpt-6.1-sol", input="Hello", max_output_tokens=1000)
print(response.output_text)
```

## Claude with the Anthropic SDK

Set the Anthropic SDK's base URL to Bearly and use the same key. Claude models use the Messages API. Base URL: `https://api.bearly.ai`.

```python
import os
from anthropic import Anthropic

client = Anthropic(base_url="https://api.bearly.ai", api_key=os.environ["BEARLY_API_KEY"])
message = client.messages.create(model="claude-sonnet-5-5", max_tokens=200,
                                 messages=[{"role": "user", "content": "Hello"}])
print(message.content[0].text)
```

## What stays the same

- The official OpenAI or Anthropic SDK, and the request and response format your code already uses.

## What's different

- Your key comes from Bearly, and requests spend your Bearly credits. You don't need an OpenAI or Anthropic key.
- Find models at https://api.bearly.ai/v1/models, no key needed, and use each ID exactly as listed.
- Responses aren't stored, so send the conversation history with each call.
- Provider-hosted tools, such as built-in web search, aren't available. Neither are Gemini models.
- Up to 10 requests can run at once per account.

Quickstart with Python and TypeScript examples, model discovery, and errors: [Call Bearly's zero-retention API](https://bearly.ai/docs/api-quickstart.md).

## More about Bearly

- [What is Bearly?](https://bearly.ai/product.md)
- [What’s the most private AI assistant?](https://bearly.ai/private-ai.md)
- [How much does Bearly cost?](https://bearly.ai/pricing.md)
- [What’s the best AI for companies?](https://bearly.ai/enterprise.md)
- [What’s the best ChatGPT alternative?](https://bearly.ai/chatgpt-alternatives.md)
- [Which is better, Bearly or ChatGPT?](https://bearly.ai/compare/bearly-vs-chatgpt.md)
- [Which is better, Bearly or Claude?](https://bearly.ai/compare/bearly-vs-claude.md)
- [Which is better, Bearly or Gemini?](https://bearly.ai/compare/bearly-vs-gemini.md)
- [Which is better, Bearly or Microsoft Copilot?](https://bearly.ai/compare/bearly-vs-microsoft-copilot.md)
- [Which is better, Bearly or Microsoft 365 Copilot?](https://bearly.ai/compare/bearly-vs-microsoft-365-copilot.md)
- [Which is better, Bearly or Perplexity?](https://bearly.ai/compare/bearly-vs-perplexity.md)
- [Which is better, Bearly or Grok?](https://bearly.ai/compare/bearly-vs-grok.md)
- [Which is better, Bearly or Lumo by Proton?](https://bearly.ai/compare/bearly-vs-proton-lumo.md)
- [Which is better, Bearly or TypingMind?](https://bearly.ai/compare/bearly-vs-typingmind.md)
- [Which is better, Bearly or Magai?](https://bearly.ai/compare/bearly-vs-magai.md)
- [Which is better, Bearly or Poe?](https://bearly.ai/compare/bearly-vs-poe.md)
- [Which is better, Bearly or Duck.ai?](https://bearly.ai/compare/bearly-vs-duck-ai.md)
- [Which is better, Bearly or LibreChat?](https://bearly.ai/compare/bearly-vs-librechat.md)
- [Which is better, Bearly or Venice?](https://bearly.ai/compare/bearly-vs-venice.md)
- [Which is better, Bearly or Confer?](https://bearly.ai/compare/bearly-vs-confer.md)
- [Which is better, Bearly or Maple?](https://bearly.ai/compare/bearly-vs-maple.md)
- [Which is better, Bearly or Kagi Assistant?](https://bearly.ai/compare/bearly-vs-kagi-assistant.md)
- [All guides and pages](https://bearly.ai/llms.txt)
