Execute tasks using multiple AI agents(BLACKBOX, Claude Code, Codex, Gemini) simultaneously to compare approaches, validate solutions, and get diverse perspectives.
bb_xxxxxxxxxxxxxxxxxxxxxx
Bearer <api_key>.Example: Bearer bb_b41b647ffbfed27f61656049d3eaeef3d903cc503345d9eb80080d98bc0application/json.agent (string, required): The agent typemodel (string, required): The specific model to useclaude - Anthropic’s Claude modelsblackbox - BLACKBOX AI modelscodex - OpenAI’s GPT modelsgemini - Google’s Gemini modelshttps://github.com/username/repository.gitmain if not specified.Example: main, master, develop, feature/new-featureblackboxai/anthropic/claude-sonnet-4.5 - Latest Sonnet (Recommended)blackboxai/anthropic/claude-sonnet-4 - Sonnet 4blackboxai/anthropic/claude-opus-4.5 - Most capable Claude modelblackboxai/blackbox-pro - BLACKBOX PRO (Recommended)blackboxai/anthropic/claude-sonnet-4.5 - Claude via BLACKBOXblackboxai/openai/gpt-5.2-codex - GPT-5.2 Codex via BLACKBOXblackboxai/anthropic/claude-opus-4.5 - Claude Opus via BLACKBOXblackboxai/x-ai/grok-code-fast-1:free - Grok Code (Free)blackboxai/google/gemini-2.5-pro - Gemini via BLACKBOXgpt-5.2-codex - GPT-5.2 Codex (Recommended)openai/gpt-5 - GPT-5openai/gpt-5-mini - GPT-5 Miniopenai/gpt-5-nano - GPT-5 Nanoopenai/gpt-4.1 - GPT-4.1gemini-2.0-flash-exp - Gemini 2.0 Flash (Recommended)gemini-2.5-pro - Gemini 2.5 Progemini-2.5-flash - Gemini 2.5 FlashagentExecutions arrayselectedAgents: Array of agent configurations used (always present when multi-agent task is created)multiLaunch: Initially false, becomes true when agents start executingagentExecutions: Initially null, populated when agents start executing. Once populated, contains:
agent: The agent typemodel: The model usedstatus: Current status (pending, in_progress, completed, failed)executionId: Unique identifier for this agent’s executionresult: The agent’s output (when completed)commits: Array of commits made by this agenterror: Error message (if failed)agentExecutions will be null and multiLaunch will be false. You need to poll the task status to see when agents start executing and agentExecutions gets populated.
| Status Code | Error | Description |
|---|---|---|
| 200 | Success | Multi-agent task created successfully |
| 400 | Bad Request | Invalid request (missing prompt, invalid agents, less than 2 agents) |
| 401 | Unauthorized | Invalid or missing API key |
| 402 | Payment Required | Insufficient credits to create task |
| 403 | Forbidden | User is not a member of the selected team |
| 404 | Not Found | GitHub token not found or user not found |
| 500 | Internal Server Error | Task creation failed or database error |
| 502 | Bad Gateway | GitHub API error or file upload failed |