aiXplain SDK
📖 API Reference
🚀 Overview
The aiXplain SDK is a comprehensive Python library that empowers developers to integrate cutting-edge AI capabilities into their applications with ease. Access thousands of AI models, build custom pipelines, and deploy intelligent solutions at scale.
✨ Key Features
- 🔍 Discover: Access 35,000+ ready-to-use AI models across multiple domains
- ⚡ Benchmark: Compare AI systems using comprehensive datasets and metrics
- 🛠️ Design: Create and deploy custom AI pipelines with our visual designer
- 🎯 FineTune: Enhance pre-trained models with your data for optimal performance
📦 Installation
Basic Installation
pip install aixplain
With Model Building Support
pip install aixplain[model-builder]
🔑 Authentication
Get your API key from the aiXplain platform:
- Visit platform.aixplain.com
- Navigate to your API Keys section
- Generate a new Team API key
Set Your API Key
Linux/macOS:
export TEAM_API_KEY=your_api_key_here
Windows:
set TEAM_API_KEY=your_api_key_here
Jupyter Notebook:
%env TEAM_API_KEY=your_api_key_here
For detailed setup instructions, visit docs.aixplain.com/setup.
🏃♂️ Quick Start
Running Your First Model
from aixplain.factories import ModelFactory
# Get an English to French translation model
model = ModelFactory.get("61dc52976eb5634cf06e97cc")
# Run translation
result = model.run("Hello, how are you today?")
print(result.data) # "Bonjour, comment allez-vous aujourd'hui?"
Building a Pipeline
from aixplain.factories.pipeline_factory import PipelineFactory
from aixplain.modules.pipeline.designer import Input
pipeline = PipelineFactory.init("Multi Input-Output Pipeline")
text_input_node = Input(data="text_input", data_types=["TEXT"], pipeline=pipeline)
TRANSLATION_ASSET_ID = '60ddefbe8d38c51c5885f98a'
translation_node = pipeline.translation(asset_id=TRANSLATION_ASSET_ID)
SENTIMENT_ASSET_ID = '61728750720b09325cbcdc36'
sentiment_node = pipeline.sentiment_analysis(asset_id=SENTIMENT_ASSET_ID)
text_input_node.link(translation_node, 'input', 'text')
translation_node.link(sentiment_node, 'data', 'text')
translated_output_node = translation_node.use_output('data')
sentiment_output_node = sentiment_node.use_output('data')
pipeline.save()
outputs = pipeline.run({
'text_input': 'This is example text to translate.'
})
print(outputs)
Working with Agents
from aixplain.factories import AgentFactory
agent = AgentFactory.create(
name="Google Search Agent",
description="A search agent",
instructions="Use Google Search to answer queries.",
tools=[
AgentFactory.create_model_tool("65c51c556eb563350f6e1bb1")
],
llm_id="669a63646eb56306647e1091"
)
response = agent.run("How can I help you today?")
📊 Core Modules
| Module | Description | Documentation |
|---|---|---|
| Models | Access 35,000+ AI models | docs.aixplain.com/concepts/assets/models |
| Pipelines | Build custom AI workflows | docs.aixplain.com/concepts/assets/pipelines |
| Agents | Deploy intelligent AI assistants | docs.aixplain.com/concepts/assets/agents |
| Datasets | Manage and process data | docs.aixplain.com/concepts/assets/data/overview |
| Benchmarks | Evaluate AI performance | docs.aixplain.com/concepts/services/benchmark/benchmark-models |
| FineTuning | Customize models with your data | docs.aixplain.com/concepts/services/finetune/finetune-llm |
📚 Documentation
Comprehensive documentation and guides are available at docs.aixplain.com:
🎯 Getting Started
- Quick Start Guide - Get up and running in minutes
- API Key Setup - Authentication and configuration
- Tutorials - Build your first AI application
📖 Core Guides
- Discover aiXplain’s ever-expanding catalog of 35,000+ ready-to-use AI models and utilize them.
- Benchmark AI systems by choosing models, datasets and metrics.
- Design their own custom pipelines and run them.
- FineTune pre-trained models by tuning them using your data, enhancing their performance.
🛠️ Advanced Examples
Batch Processing
# Process multiple inputs efficiently
inputs = ["text1", "text2", "text3"]
results = model.run_batch(inputs)
🤝 Community & Support
- 📖 Documentation: docs.aixplain.com
- 💬 Discord Community: discord.gg/aixplain
- 🐛 Issues: GitHub Issues
- 📧 Support: support@aixplain.com
- 🔄 Release Notes: GitHub Releases
🔗 Platform Links
- 🏠 Platform Home: platform.aixplain.com
- 🔍 Model Discovery: platform.aixplain.com/discovery/models
- 📊 Datasets: platform.aixplain.com/discovery/datasets
- 📏 Metrics: platform.aixplain.com/discovery/metrics
📄 License
This project is licensed under the Apache License 2.0. See the LICENSE file for details.
🏢 About aiXplain
aiXplain is the leading AI platform for building, deploying, and managing AI solutions at scale. We democratize AI by making cutting-edge models accessible to developers and enterprises worldwide.
Ready to build the future with AI?
Metadata
Release files for aiXplain 0.2.33
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aixplain-0.2.33.tar.gz | 358.7 kB | Without provenance | Details for aixplain-0.2.33.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aixplain-0.2.33-py3-none-any.whl | Python 3 | none | any | Details for aixplain-0.2.33-py3-none-any.whl |
Total release size: 743.2 kB
Release files / aixplain-0.2.33.tar.gz
| Download URL | aixplain-0.2.33.tar.gz |
|---|---|
| Size | 358.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
85190bcb7bbadb21ccfe74d05135c1ed1e63322524112f87fd63d17445b5b5ff
|
|
BLAKE2b-256 checksum How to use checksums |
01e381a96016c82721f8490b04c2aeeb2f4925e5600a04985613d4368dcf4ac5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.12
|
Release files / aixplain-0.2.33-py3-none-any.whl
| Download URL | aixplain-0.2.33-py3-none-any.whl |
|---|---|
| Size | 384.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a74eb6307c5c335831984b88fc49222b9f6234c4e9c7171abdd96665e7481be5
|
|
BLAKE2b-256 checksum How to use checksums |
cbc804eca4ffb02011b77832bf19ee47cfeb823550e8454ef77928d2ba4ac1f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.12
|
Security for aiXplain 0.2.33
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.