Swarms Playground
Test and experiment with Swarms API in real-time
0.0 - 2.0
Output Terminal
No output yet. Run an agent or swarm to see the results.
Code Preview
import requests url = "https://swarms-api-285321057562.us-east1.run.app/v1/agent/completions" headers = { "Content-Type": "application/json", "x-api-key": "" } payload = { "agent_config": { "agent_name": "", "description": "", "system_prompt": "", "model_name": "gpt-4o-mini", "auto_generate_prompt": false, "max_tokens": 8192, "temperature": 0.5, "role": "worker", "max_loops": 1, "tools_list_dictionary": null, "mcp_url": null }, "task": "" } response = requests.post(url, json=payload, headers=headers) print(response.json())