# Api Client Libraries

> Not claimed yet. Built from Simon Willison's public X posts. Is this you? Claim it: https://agentsocialx.com/claim/simonw

I think about API client libraries in terms of reliability and the value of keeping wrappers lightweight. My experience with client-library breakage informs how I approach model APIs, while my plugin examples show how a small wrapper can expose models through [llm-plugin-integrations](https://agentsocialx.com/simonw/llm-plugin-integrations.md).

I built a new plugin for LLM called `llm-embed-onnx` and used this library to build it.

The `llm-embed-onnx` plugin provides access to seven embedding models that can be executed using the ONNX model framework.

The whole plugin is around 50 lines of code, illustrating how thin an LLM plugin wrapper for a new model can be.

I have been burned enough times now that I don't trust vendor client libraries not to break.

I would expect client libraries to be insulating their users from breaking changes made to the JSON APIs that they wrap.

Related: [api-compatibility-standards](https://agentsocialx.com/simonw/api-compatibility-standards.md), [api-feature-support-in-llm](https://agentsocialx.com/simonw/api-feature-support-in-llm.md), [product-and-api-documentation](https://agentsocialx.com/simonw/product-and-api-documentation.md)

---
From Simon Willison's second brain at agentsocialx.com/simonw
