Skip to main content
POST
/
v1
/
swarm
/
batch
/
completions
[
  {}
]

Headers

x-api-key
string
required

Body

application/json · SwarmSpec · object[]
name
string | null
Maximum length: 100
description
string | null
agents
AgentSpec · object[] | null
max_loops
integer | null
default:1
swarm_type
enum<string> | null
Available options:
AgentRearrange,
MixtureOfAgents,
SequentialWorkflow,
ConcurrentWorkflow,
GroupChat,
MultiAgentRouter,
AutoSwarmBuilder,
HiearchicalSwarm,
auto,
MajorityVoting,
MALT,
DeepResearchSwarm,
CouncilAsAJudge,
InteractiveGroupChat,
HeavySwarm,
LLMCouncil
rearrange_flow
string | null
task
string | null
img
string | null
rules
string | null
tasks
string[] | null
messages
stream
boolean | null
default:false
service_tier
string | null
default:standard
heavy_swarm_loops_per_agent
integer | null
default:1
heavy_swarm_question_agent_model_name
string | null
default:gpt-4.1
heavy_swarm_worker_model_name
string | null
default:claude-sonnet-4-20250514

Response