The AI Model Security Python SDK auto-generates client code from OpenAPI
specifications, providing access to all management and data plane APIs.
The AI Model Security Python SDK provides programmatic access to all public
APIs through auto-generated client code derived from our OpenAPI specifications.
When you use the
AI Model Security Python SDK, you benefit
from automatically generated methods for managing security groups, retrieving scan
results, querying evaluations and violations, and accessing file metadata, all
backed by strongly-typed Pydantic v2 models that provide runtime validation and IDE
autocomplete support.
You should consider using the auto-generated SDK when you need to integrate
AI Model Security capabilities into your existing Python applications, CI/CD
pipelines, or automation workflows. The SDK is particularly valuable when you
require programmatic management of security groups and rules across multiple
environments, need to poll scan results and analyze violations programmatically, or
want to build custom dashboards and reporting tools on top of AI Model Security
data.
The SDK automatically handles OAuth 2.0 authentication by injecting fresh tokens into
every API request, ensuring secure communication with AI Model Security services
without requiring you to manage the token lifecycle manually. With this capability,
you no longer need to repeatedly write authentication code when calling the AI Model
Security API—simply focus on building your business logic.