Programmatic control over everything.
The aixplain Python SDK, REST API, CLI, and MCP give developers full programmatic access to the platform. Build agents in code, connect to the Marketplace, run governance policies, and deploy to any environment — all from your existing development workflow.
pip install aixplain
1from aixplain import Agent23# Build a governed agent in code4agent = Agent(5 name="claims-processor",6 model="gpt-4o",7 tools=["web-search", "pdf-reader"],8 governance={9 "pii_redaction": True,10 "audit_trail": True,11 }12)1314# Run it15result = agent.run("Process this claim: ...")16print(result.output)
What the SDK gives you
Python SDK
Build, configure, and deploy agents programmatically. Full access to models, tools, pipelines, and governance controls from your codebase.
REST API
Language-agnostic API access to every platform capability. Run agents, retrieve assets, manage workspaces, and stream outputs over HTTP.
CLI
Command-line interface for automation, CI/CD integration, and agent deployment from your terminal or build pipeline.
MCP support
Model Context Protocol support for integrating aixplain agents into MCP-compatible development environments and toolchains.
Streaming responses
Server-sent events for real-time streaming output. Build responsive interfaces without polling.
Webhook integrations
Event-driven triggers for agent execution. Connect to your existing infrastructure with standard webhook patterns.
Full control starts here.
Install the SDK and build your first governed agent in minutes.