Skip to main content
The Swarms API is a hosted, model-agnostic multi-agent REST API. Unlike Python-only orchestration frameworks, you call it over HTTP from any language, deploy nothing locally, and pay only for what you run. It handles all agent scheduling, context passing, parallel execution, and retries on its side.

Concept Mapping

The table below maps every major concept from each framework to its Swarms API equivalent.

Agents

Workflows & Orchestration

Tasks & Prompts

Tools


Architecture Selection Guide

Once you know what you were building in your old framework, use this table to pick the right Swarms workflow:

Universal Migration Checklist

Regardless of which framework you are migrating from, follow these steps:
  1. Get your API key at swarms.world/platform/api-keys
  2. Set the environment variable: export SWARMS_API_KEY="your-key"
  3. Install the HTTP client of your choice (requests, httpx, fetch, axios, etc.)
  4. Map each agent in your old workflow to an agent object with agent_name, system_prompt, and model_name
  5. Map the topology — sequential chain, parallel fan-out, or directed graph
  6. Replace task inputs — the top-level task field replaces all invoke(), kickoff(), and initiate_chat() calls
  7. Remove local infrastructure — no more Python environments, LLM SDK imports, or API key plumbing per-library

Migration Guides

Choose your current framework:

Quick Start After Migration

Every Swarms API call follows the same pattern regardless of workflow type:
The base URL is https://api.swarms.world. See the API Reference for all available endpoints.