Metadata-Version: 2.5
Name: frutebox
Version: 0.0.1
Summary: Official Frutebox SDK for Python — call the Frutebox network. No third-party AI SDK required.
Project-URL: Homepage, https://frutebox.com
Project-URL: Documentation, https://frutebox.com/docs
Project-URL: Changelog, https://frutebox.com/docs
Author: Frutebox
License: MIT
License-File: LICENSE
Keywords: ai,assistant,frutebox,llm,sdk
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.8
Requires-Dist: requests>=2.25
Description-Content-Type: text/markdown

# frutebox

The official [Frutebox](https://frutebox.com) SDK for Python — call the Frutebox network with no
third-party AI library.

```bash
pip install frutebox
```

```python
from frutebox import Frutebox

frutebox = Frutebox(api_key="sk_live_...")  # or set FRUTEBOX_API_KEY
res = frutebox.chat.completions.create(
    messages=[{"role": "user", "content": "Draft a friendly reminder email."}],
)
print(res["choices"][0]["message"]["content"])
```

Supports chat + streaming, tool calling, images, videos, audio, moderations and models.
HTTPS is enforced, so your key is never sent in plaintext.

- Get an API key: <https://frutebox.com/app/keys>
- Documentation: <https://frutebox.com/docs>

`FRUTEBOX_API_KEY` is read from the environment when no `api_key` is passed. The older
`STEVAI_API_KEY` is still accepted so existing environments keep working; `FRUTEBOX_API_KEY` wins
when both are set.

## Status

**0.0.1 is an early release.** The client is hand-written, and a fully typed client generated from
the published API specification is planned. The surface may change before 1.0.

This release calls the OpenAI-shaped compatibility endpoint (`/api/v1/chat/completions`), which is
being phased out in favour of the native Frutebox API. Your code here is not affected — the move
happens behind this client — but if you are calling the HTTP API directly, prefer the native
endpoint. See <https://frutebox.com/docs>.

## Licence

MIT — see [LICENSE](LICENSE).
