Skip to main content

Welcome to the developer docs

Build and deploy intelligent AI agents and team agents in minutes—no AI expertise required. Instantly access thousands of models and tools from the aiXplain marketplace to power your agents using a single API key. Only pay for what you use—no long-term commitments.

Why aiXplain agents?

High performance
Fast, lightweight agents optimized for efficiency
Self-improving
Benchmarking and feedback built-in
Trusted by design
Guardrails for security and compliance
Integrated marketplace
Thousands of models and tools, one API key

Get started

To start a conversation with your first agent, generate an API key, paste the code snippet into your IDE, and run it.

pip install aixplain
# Create an Agent
import os
os.environ["AIXPLAIN_API_KEY"] = "<KEY>"
from aixplain.factories import AgentFactory

agent = AgentFactory.create(
name="Google Search Agent",
description="A search agent",
instructions="Use Google Search to answer queries.",
tools=[
# Google Search (Serp)
AgentFactory.create_model_tool("65c51c556eb563350f6e1bb1")])

response = agent.run("What's the latest AI news?").data.output
response

agent.deploy()