Welcome to Smallest AI! This guide will help you get up and running in just a few minutes, with examples in both Python and TypeScript. Let’s get started! ✨

1. Installation πŸ“¦

pip install smallestai

View Python SDK on GitHub

2. Get Your API Key πŸ”‘

  1. Go to the Smallest AI Console and sign up or log in.
  2. Navigate to the API Keys tab in your dashboard.
  3. Create a new API key and copy it.
    For security, store your key in an environment variable (e.g., SMALLEST_API_KEY).

3. Make a simple request

Let’s authenticate and fetch your agents list!

from smallestai import Configuration, AtomsClient

config = Configuration(
    access_token="your-api-key"
)
atoms_client = AtomsClient(config)

# Fetch your agents
agents = atoms_client.get_agents()
print(agents)

4. Run Your Code ▢️

  • Save your script to a file (e.g., quickstart.py or quickstart.ts).
  • Run it from your terminal:
    • Python:
      python quickstart.py
      
    • TypeScript (Node):
      npx ts-node quickstart.ts
      
  • You should see your agents printed in the console! πŸŽ‰

5. Next Steps πŸš€

Need help? Join our Discord or reach out to support! πŸ’¬