hiddenlayer-sdk
The official Python library for the hiddenlayer API
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained (released 4 days ago), has no known vulnerabilities, low install friction, and is the official SDK for HiddenLayer's API. Use it if you need to integrate HiddenLayer's security analysis into a Python application. The permissive Apache-2.0 license and broad Python version support make adoption straightforward.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires HIDDENLAYER_TOKEN environment variable or explicit bearer_token; Python 3.9 or later.
- Low friction: pure Python wheel with no compiled dependencies.
- Active maintenance—last commit 2026-08-13, released 4 days ago.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most projects.
last release 2026-08-10 (4 days) · last repo commit 2026-08-13 · 4 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 96,097 downloads/mo, #13,231 on PyPI
Alternatives
Verify before relying
pip install hiddenlayer-sdk
from hiddenlayer import HiddenLayer
client = HiddenLayer(environment="prod-eu")
response = client.interactions.analyze(
metadata={"model": "gpt-4", "requester_id": "user-id"},
input={"messages": [{"role": "user", "content": "hello"}]}
)
print(response.analysis)- Whether the monthly downloads reflect active production use or test/CI installations.
- What specific HiddenLayer API endpoints and features are covered by this SDK version.
- Whether Beta APIs marked in the documentation carry breaking-change risk for production deployments.
What it is and what it does
hiddenlayer-sdk is an official Python client library for the HiddenLayer REST API, generated using Stainless. It wraps HiddenLayer's security and AI analysis endpoints with full type hints, Pydantic models for responses, and TypedDict for request parameters. The library ships both synchronous (HiddenLayer) and asynchronous (AsyncHiddenLayer) clients, both backed by httpx for HTTP transport.
It is designed for developers integrating HiddenLayer's security analysis into Python applications. The package handles authentication via bearer token, supports multiple environments (prod-us, prod-eu), and includes auto-paginating iterators for list endpoints. Error handling distinguishes between connection failures (APIConnectionError), rate limits (RateLimitError), and HTTP status errors (APIStatusError). Type definitions enable IDE autocomplete and early error detection.
Use it for
- Integrate HiddenLayer's model interaction analysis into a Python application to detect security risks in LLM inputs and outputs.
- Build a monitoring service that periodically calls HiddenLayer's API to analyze model behavior and log results.
- Implement async batch analysis of multiple model interactions using AsyncHiddenLayer for concurrent API requests.
- Fetch and iterate through paginated lists of model cards or analysis results without manual page-handling logic.
- Catch and handle API errors (rate limits, auth failures, connection issues) with specific exception types in production workflows.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained (released 4 days ago), has no known vulnerabilities, low install friction, and is the official SDK for HiddenLayer's API. Use it if you need to integrate HiddenLayer's security analysis into a Python application. The permissive Apache-2.0 license and broad Python version support make adoption straightforward.
Install
hiddenlayer-sdk on PyPI
Before you install
Low friction: pure Python wheel with no compiled dependencies. Active maintenance—last commit 2026-08-13, released 4 days ago. Supports Python 3.9 through 3.14.
Requires HIDDENLAYER_TOKEN environment variable or explicit bearer_token; Python 3.9 or later.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most projects.
Quickstart
pip install hiddenlayer-sdk
from hiddenlayer import HiddenLayer
client = HiddenLayer(environment="prod-eu")
response = client.interactions.analyze(
metadata={"model": "gpt-4", "requester_id": "user-id"},
input={"messages": [{"role": "user", "content": "hello"}]}
)
print(response.analysis)
Verify before relying
- Whether the monthly downloads reflect active production use or test/CI installations.
- What specific HiddenLayer API endpoints and features are covered by this SDK version.
- Whether Beta APIs marked in the documentation carry breaking-change risk for production deployments.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 9 packagesanyiodistrohttpxpydanticrequests-authrequestssniffiotypes-requeststyping-extensions |
| Maintenance | Actively maintained 4 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 96,097 / month, #13,231 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: OS IndependentOperating System :: POSIXOperating System :: POSIX :: LinuxProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python ModulesTyping :: Typed |
Evidence: hiddenlayer_sdk-3.9.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “hiddenlayer api client”
- hiddenlayer-sdkProvides a typed Python client for the HiddenLayer REST API, with…
- codewords-clientA Python client library for the Codewords API with built-in FastAPI…
- twentyc.rpcA client library for consuming 20c's RESTful API, built on top of the…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also bilibili-api-python · lithic · opencode-ai · agentex-client · composio-client · groq · llama-api-client · socketdev · steel-sdk · simple-rest-client