Skip to main content

Overview

This example demonstrates how to set up the Swarms API client and perform basic operations like checking health, models, and rate limits.

Step 1: Installation

Install the required package:

Step 2: API Key Setup

Set your API key in a .env file:

Step 3: Code Example

Run the script to see available models, API health, swarm logs, rate limits, and swarm availability.