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 tools and models from the aiXplain marketplace using a single API key.

Developer quickstart

Generate an API key. Copy the code snippet to build and deploy your AI agent.

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="You are an agent that uses 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

agent.deploy()