Barrack API Documentation
  1. account
Barrack API Documentation
  • Platform Documentation
    • "Authentication & Access"
    • "Getting Started"
    • "Platform Documentation"
    • "Troubleshooting"
    • vm
      • "Advanced Configuration"
      • "Boot Source Configuration"
      • "GPU Configuration"
      • "Region Selection"
      • "SSH Key Configuration"
      • "VM States & Billing"
    • storage
      • "Managing Volumes"
      • "Storage Management"
    • ssh
      • "Creating SSH Keys"
      • "Importing SSH Keys"
      • "Managing SSH Keys"
    • security
      • "Attaching Firewalls to VMs"
      • "Firewall Management"
      • "Firewall Rules"
    • dashboard
      • "Dashboard Overview"
      • "VM Management"
    • backup
      • "Creating Snapshots"
      • "Custom Images"
      • "Managing Snapshots"
      • "Restoring Snapshots"
      • "Snapshots Management"
    • account
      • "Credits System"
      • "Account Management"
  • Balance
    • Get credit balance
      GET
  • GPU Stocks
    • Get GPU stock availability
      GET
  • GPU Specs
    • Get GPU specifications
      GET
  • Regions
    • List available regions
      GET
  • Pricing
    • Get pricing information
      GET
    • Get pricing information
      POST
  • Deploy Instance
    • Create a new instance
      POST
  • Instance management
    • List instances
      GET
    • Delete instance
      DELETE
    • Get instance billing
      GET
    • Hibernate instance
      POST
    • Reboot instance
      POST
    • Restore hibernated instance
      POST
    • Start instance
      POST
    • Stop instance
      POST
    • Toggle public IP for instance
      POST
    • Get instance details
      GET
    • Get hibernated instances count
      GET
    • Add instance security rule
      POST
    • Remove instance security rule
      DELETE
  • OS Images
    • List OS images
  • SSH Keys
    • List SSH keys
    • Create SSH key
    • Get SSH key
    • Delete SSH key
  • Scripts
    • List all startup scripts
    • Create a startup script
    • Get startup script details
    • Update a startup script
    • Delete a startup script
    • Delete multiple startup scripts
  • Firewalls
    • List firewalls
    • Get firewall details
    • Attach firewall to instances
    • Get firewalls attached to instance
    • Delete firewall
    • Remove firewall rule
    • Add firewall rule
    • Create firewall
    • Get supported protocols
    • List instances available for firewall attachment
    • List instances available for firewall attachment
  • Snapshots
    • List snapshots
    • Get snapshot billing
    • List Instance eligible for snapshot creation
    • Get snapshot details
    • Delete snapshot
    • Restore snapshot
    • Create snapshot
    • Create snapshot
    • Get snapshot billing
  • Images
    • List custom images
    • Get image details
    • Delete custom image
    • Create image from snapshot
    • Get snapshot-image relationship
    • Get snapshot-image relationship list
  • AI Chat
    • Chat with AI
    • Get AI usage summary
    • Get AI usage history
    • Get available AI models
  • Volumes
    • Attach volumes to instance
    • Detach volumes from instance
    • Clone volume
    • Resize volume
    • Get volume billing
    • List available volume types
    • List volumes
    • Create volume
    • Get volume details
    • Delete volume
  • Virtual Machines
    • Get firewalls attached to instance
    • Remove instance security rule
    • List Instance eligible for snapshot creation
  • Schemas
    • AITransaction
    • AddFirewallRuleRequest
    • AddFirewallRuleResponse
    • AddVMSecurityRuleResponse
    • AttachFirewallRequest
    • AggregatedBillingResponse
    • AttachFirewallResponse
    • AttachVolumesRequest
    • AttachVolumesResponse
    • AttachedFirewall
    • BatchSnapshotImageRelationshipResponse
    • Balance
    • Billing
    • ChatCompletionsRequest
    • ChatCompletionsResponse
    • CloneVolumeRequest
    • BillingRecord
    • CloneVolumeResponse
    • BillingSummary
    • CreateFirewallRequest
    • CreateFirewallResponse
    • CreateImageFromSnapshotRequest
    • CreateSSHKeyRequest
    • CreateScriptRequest
    • CreateSnapshotRequest
    • CreateSnapshotResponse
    • CreateSSHKeyResponse
    • CurrencyEnum
    • Data
    • CreditBalanceResponse
    • DeleteFirewallResponse
    • CreateVolumeRequest
    • DeleteSnapshotResponse
    • CreateVolumeResponse
    • DeleteVMResponse
    • DetachVolumesRequest
    • DetachVolumesResponse
    • DeploymentRequest
    • DirectionEnum
    • DeploymentResponse
    • EthertypeEnum
    • ErrorResponse
    • FirewallAttachment
    • DeleteVolumeResponse
    • DeleteSSHKeyResponse
    • FirewallEnvironment
    • FirewallResponse
    • FirewallRule
    • FirewallVM
    • GetBatchSnapshotImageRelationshipsRequest
    • GetFirewallDetailsResponse
    • GPUStockConfiguration
    • GPUSpec
    • GetHibernatedVMsResponse
    • GPUStockItem
    • GPUSpecsResponse
    • GetSupportedProtocolsResponse
    • GPUStocksResponse
    • GetVMAttachedFirewallsResponse
    • GetVolumeTypesResponse
    • HibernateVMResponse
    • HibernationBillingMetrics
    • ListFirewallsResponse
    • ListUserVMsResponse
    • ListVMsResponse
    • ModelsResponse
    • GetSSHKeysResponse
    • Pagination
    • PricingRequest
    • OSImage
    • PricingResponse
    • OSImagesResponse
    • Protocol
    • GpuCountEnum
    • ProtocolEnum
    • Image
    • GpuModelEnum
    • GetVolumeDetailsResponse
    • RebootVMResponse
    • ImageCreateResponse
    • RecentHibernation
    • ImageDeleteResponse
    • GetVolumesWithNextNameResponse
    • RemoveFirewallRuleResponse
    • ImageDetailResponse
    • RemoveVMSecurityRuleResponse
    • Region
    • ImageListResponse
    • ResizeVolumeRequest
    • RegionsResponse
    • Price
    • ResizeVolumeResponse
    • ResourceTypeEnum
    • RestoreSnapshotRequest
    • RestoreSnapshotResponse
    • RestoreVMResponse
    • Snapshot
    • SnapshotImageRelationshipResponse
    • Specs
    • StartVMResponse
    • StopVMResponse
    • TierEnum
    • UpdateScriptRequest
    • UsageHistoryResponse
    • UsageSummaryResponse
    • RegionEnum
    • UserVM
    • VMDetailsResponse
    • VMFlavor
    • VMImage
    • VMInstance
    • VMResponse
    • SpecsMetadata
    • VMSecurityRule
    • VMSecurityRuleRequest
    • VMStatus
    • VMVolumeAttachment
    • Script
    • VolumeTypeEnum
    • SSHKeyResponse
    • ScriptListResponse
    • ToggleVMPublicIPResponse
    • VolumeBillingRecord
    • VolumeBillingSummary
    • VolumeHourlyBillingResponse
    • VolumeResponse
  1. account

"Credits System"

The Credits System allows you to purchase and manage credits to pay for your virtual machine and storage usage on the platform.
The platform provides a simple process for purchasing credits:
1
Access Credits Section
Navigate to your account page and access the credits section
2
Choose Credit Package
Choose from predefined credit packages or specify a custom amount:
Starter Package: Perfect for small projects
Professional Package: Ideal for medium-sized workloads
Enterprise Package: For large compute needs
3
Review Payment Summary
Review the payment summary, which includes:
Base amount
Applicable taxes (GST at 18% is applied for Indian customers)
Total amount
4
Complete Payment
Click "Proceed to Payment" and complete the payment via Razorpay, our secure payment processor
5
Credits Added
After successful payment, credits are instantly added to your account

Credit Purchase Requirements#

Minimum Purchase Amounts#

USD Currency
United States Dollar
Minimum Purchase: $5
Most Countries: Default currency
Payment Methods: Credit card, debit card
EUR Currency
European Euro
Minimum Purchase: €5
European Countries: EU member states
Payment Methods: Credit card, SEPA
INR Currency
Indian Rupee
Minimum Purchase: ₹100
India Only: Indian accounts
Payment Methods: UPI, cards, net banking

Prerequisites for Credit Purchase#

Credit Usage#

Credits are automatically deducted from your account based on your resource consumption:

Compute Resources#

Per-Minute Billing
GPU Cost Calculation
VM State Impact

Storage Resources#

Credits are consumed for storage resources based on provisioned capacity:
Volume Storage
Snapshot Storage
Persistent Storage Billing
Rate: $0.1 per TB per hour (€0.1 per TB per hour | ₹10 per TB per hour)
Billing Method: Hourly based on provisioned capacity
All Volume Types: Standard and bootable volumes
Regional Consistency: Same rates across all regions

GPU Instance Pricing#

Per-Hour Rates#

USD Pricing
EUR Pricing
INR Pricing
GPU ModelUSD per HourUSD per Minute
H100-SXM5-80GB$2.69$0.0448
H100-PCIe-NVLink-80GB$2.29$0.0382
H100-PCIe-80GB$2.25$0.0375
A100-SXM4-80GB-NVLink$1.59$0.0265
A100-PCIe-80GB$1.55$0.0258
L40$1.19$0.0198
RTX-A6000$0.69$0.0115
A40$0.69$0.0115

Cost Calculation Examples#

Single GPU Usage Examples#

Development Workload
Training Workload
Production Service
RTX A6000 for Development
Scenario: 8 hours/day, 5 days/week development work
Active Time: 40 hours/week
Hibernated Time: 128 hours/week
Weekly Cost (USD):
Active: 40 × 0.69=27.60
Hibernated: 128 × 0.01=1.28
Total: $28.88/week
Monthly Cost: ~$115.52

Multi-GPU Configurations#

Dual GPU Setup
2x A100-PCIe-80GB
Hourly Rate: 1.55×2=3.10
Daily Cost (8 hrs active): $24.80
Weekly Cost (40 hrs): $124.00
Use Case: Distributed training, large models
Quad GPU Setup
4x H100-SXM5-80GB
Hourly Rate: 2.69×4=10.76
Daily Cost (8 hrs active): $86.08
Weekly Cost (40 hrs): $430.40
Use Case: Large-scale model training

Credit Management Features#

Balance Monitoring#

Real-time Balance Tracking
Usage Analytics
Budget Alerts

Credit Purchase Packages#

Starter Package
Professional Package
Enterprise Package
Small Projects & Learning
USD: 25−100
EUR: €25 - €100
INR: ₹2,000 - ₹8,000
Best For: Individual developers, learning, prototyping

Payment Processing#

Secure Payment Handling#

Razorpay Integration
Secure Payment Processor
Industry-standard security
Multiple payment methods supported
Instant credit processing
Secure transaction handling
Payment Methods
Flexible Payment Options
Credit and debit cards
UPI (India)
Net banking (India)
SEPA transfers (Europe)

Payment Security#

Credit System FAQ#

How does per-minute billing work?
What happens if I run out of credits?
Can I get a refund for unused credits?
Can I transfer credits between accounts?
How are taxes calculated?
Can I set spending limits?

Cost Optimization Strategies#

Hibernation Benefits#

1
Identify Hibernation Opportunities
Development VMs during non-working hours
Training VMs between experiment runs
Staging environments when not in use
Seasonal or periodic workloads
2
Implement Hibernation Schedule
Hibernate VMs during predictable downtime
Use hibernation for weekend cost savings
Coordinate team hibernation schedules
Automate hibernation for unused resources
3
Monitor Savings
Track hibernation cost savings
Compare costs before and after hibernation strategy
Optimize hibernation timing based on usage patterns
Calculate ROI of hibernation practices

Right-sizing Resources#

GPU Selection Optimization
Storage Optimization
Usage Pattern Analysis
Previous
"Snapshots Management"
Next
"Account Management"
Built with