!!! success "🎉 Get Started with $20 Free Credits!"
New users receive $20 in free credits when they sign up! [Create your account now](https://swarms.world/platform/account) to start building with our powerful multi-agent platform.
The Swarm Agent API provides a powerful platform for managing multi-agent collaboration at scale and orchestrating swarms of LLM agents in the cloud. This document outlines the pricing model, how costs are calculated, and how to purchase and manage your credits.
!!! abstract "Overview"
The Swarm Agent API provides a powerful platform for managing multi-agent collaboration at scale and orchestrating swarms of LLM agents in the cloud. Our pricing model is designed to be transparent and cost-effective, enabling you to harness the full potential of your agents with ease.
Our pricing is designed to be transparent and cost-effective, enabling you to harness the full potential of your agents with ease. Costs are based on:
- Number of agents used
- Input and output token usage
- Execution time
## Credit System
## Credit System
The Swarm API operates on a credit-based system:
The Swarm API operates on a credit-based system with the following characteristics:
- **Credits** are the currency used within the platform
- **Credits** are the currency used within the platform
- 1 credit = $1 USD
- 1 credit = $1 USD
- Credits can be purchased with USD or $swarms Solana tokens
- Credits can be purchased with USD or $swarms Solana tokens
- Two types of credits:
### Credit Types
- **Standard Credits**: Purchased credits that never expire
- **Free Credits**: Promotional credits that may have usage restrictions
| Type | Description | Expiration |
|------|-------------|------------|
| Standard Credits | Purchased credits | Never expires |
| Free Credits | Promotional credits | May have expiration dates |
## Pricing Structure
## Pricing Structure
@ -44,11 +38,12 @@ The Swarm API operates on a credit-based system:
### Night-Time Discount
### Night-Time Discount
To encourage efficient resource usage during off-peak hours, we offer significant discounts for operations performed during California night-time hours:
!!! tip "Off-Peak Hours Discount"
To encourage efficient resource usage during off-peak hours, we offer significant discounts for operations performed during California night-time hours:
| Time Period (Pacific Time) | Discount |
| Time Period (Pacific Time) | Discount |
|----------------------------|----------|
|----------------------------|----------|
| 8:00 PM to 6:00 AM | 75% off token costs |
| 8:00 PM to 6:00 AM | 75% off token costs |
## Cost Calculation
## Cost Calculation
@ -56,14 +51,14 @@ To encourage efficient resource usage during off-peak hours, we offer significan
The total cost for a swarm execution is calculated as follows:
The total cost for a swarm execution is calculated as follows:
```
```math
Total Cost = (Number of Agents × $0.01) +
Total Cost = (Number of Agents × $0.01) +
(Total Input Tokens / 1M × $2.00 × Number of Agents) +
(Total Input Tokens / 1M × $2.00 × Number of Agents) +
(Total Output Tokens / 1M × $4.50 × Number of Agents)
(Total Output Tokens / 1M × $4.50 × Number of Agents)
Credits can be purchased through our platform in two ways:
Credits can be purchased through our platform in two ways:
1. **USD Payment**
### USD Payment
- Available through our [account page](https://swarms.world/platform/account)
- Available through our [account page](https://swarms.world/platform/account)
- Secure payment processing
- Secure payment processing
- Minimum purchase: $10
- Minimum purchase: $10
2. **$swarms Token Payment**
### $swarms Token Payment
- Use Solana-based $swarms tokens
- Use Solana-based $swarms tokens
- Tokens can be purchased on supported exchanges
- Tokens can be purchased on supported exchanges
- Connect your Solana wallet on our [account page](https://swarms.world/platform/account)
- Connect your Solana wallet on our [account page](https://swarms.world/platform/account)
## Free Credits
## Free Credits
We occasionally offer free credits to:
!!! info "Free Credit Program"
We occasionally offer free credits to:
- New users (welcome bonus)
- New users (welcome bonus)
- During promotional periods
- During promotional periods
- For educational and research purposes
- For educational and research purposes
Notes about free credits:
- Used before standard credits
- May have expiration dates
- May have usage restrictions
**Important Notes:**
- Used before standard credits
- May have expiration dates
- May have usage restrictions
## Billing and Usage Tracking
## Billing and Usage Tracking
Track your credit usage through our comprehensive logging and reporting features:
Track your credit usage through our comprehensive logging and reporting features:
1. **API Logs**
### API Logs
- Access detailed logs via the `/v1/swarm/logs` endpoint
- View cost breakdowns for each execution
- Access detailed logs via the `/v1/swarm/logs` endpoint
### Dashboard
- Real-time credit balance display
- View cost breakdowns for each execution
- Historical usage graphs
- Detailed cost analysis
2. **Dashboard**
- Available at [https://swarms.world/platform/dashboard](https://swarms.world/platform/dashboard)
- Real-time credit balance display
- Historical usage graphs
- Detailed cost analysis
- Available at [https://swarms.world/platform/dashboard](https://swarms.world/platform/dashboard)
## FAQ
## FAQ
**Q: Is there a minimum credit purchase?**
??? question "Is there a minimum credit purchase?"
A: Yes, the minimum credit purchase is $10 USD equivalent.
Yes, the minimum credit purchase is $10 USD equivalent.
**Q: Do credits expire?**
??? question "Do credits expire?"
A: Standard credits do not expire. Free promotional credits may have expiration dates.
Standard credits do not expire. Free promotional credits may have expiration dates.
**Q: How is the night-time discount applied?**
??? question "How is the night-time discount applied?"
A: The system automatically detects the execution time based on Pacific Time (America/Los_Angeles) and applies a 75% discount to token costs for executions between 8:00 PM and 6:00 AM.
The system automatically detects the execution time based on Pacific Time (America/Los_Angeles) and applies a 75% discount to token costs for executions between 8:00 PM and 6:00 AM.
**Q: What happens if I run out of credits during execution?**
??? question "What happens if I run out of credits during execution?"
A: Executions will fail with a 402 Payment Required error if sufficient credits are not available. We recommend maintaining a credit balance appropriate for your usage patterns.
Executions will fail with a 402 Payment Required error if sufficient credits are not available. We recommend maintaining a credit balance appropriate for your usage patterns.
**Q: Can I get a refund for unused credits?**
??? question "Can I get a refund for unused credits?"
A: Please contact our support team for refund requests for unused credits.
Please contact our support team for refund requests for unused credits.
**Q: Are there volume discounts available?**
??? question "Are there volume discounts available?"
A: Yes, please contact our sales team for enterprise pricing and volume discounts.
Yes, please contact our sales team for enterprise pricing and volume discounts.
## References
## References
- [Swarm API Documentation](https://docs.swarms.world/en/latest/swarms_cloud/swarms_api/)
- [Swarm API Documentation](https://docs.swarms.world/en/latest/swarms_cloud/swarms_api/)