SDK
Pricing

Pricing

CodeSandbox SDK is priced according to the CodeSandbox plans (opens in a new tab). The SDK follows two main pricing components:

  • VM credits: Credits serve as the unit of measurement for VM runtime. One credit equates to a specific amount of resources used per hour, depending on the specs of the VM you are using. VM credits follow a pay-as-you-go approach and are priced at $0.01486 per credit. Learn more about credits here.

  • VM concurrency: This defines the maximum number of VMs you can run simultaneously with the SDK. As explored below, each CodeSandbox plan has a different VM concurrency limit.

💡
We use minutes as the smallest unit of measurement for VM credits. E.g.: if a VM runs for 3 minutes and 25 seconds, we bill the equivalent of 4 minutes of VM runtime.

VM credit prices by VM size

Below is a summary of how many VM credits are used per hour of runtime in each of our available VM sizes. Note that, by default, we recommend using the Nano VM size, as it should provide enough resources for most simple workflows (Pico is mostly suitable for very simple code execution jobs) .

VM sizeCredits / hourCost / hourCPURAM
Pico5 credits$0.07432 cores1 GB
Nano10 credits$0.14862 cores4 GB
Micro20 credits$0.29724 cores8 GB
Small40 credits$0.59448 cores16 GB
Medium80 credits$1.188816 cores32 GB
Large160 credits$2.377632 cores64 GB
XLarge320 credits$4.755264 cores128 GB

Concurrent VMs

To pick the most suitable plan for your use case, consider how many concurrent VMs you require and pick the corresponding plan:

  • Build (free) plan: 10 concurrent VMs
  • Scale plan: 250 concurrent VMs
  • Enterprise plan: custom concurrent VMs

In case you expect a a high volume of VM runtime, our Enterprise plan also provides special discounts on VM credits.

💡
If you're interested in an Enterprise plan please contact the Together.ai Sales Team (opens in a new tab)

Estimating your bill

To estimate your bill, you must consider:

  • The base price of your CodeSandbox plan.
  • The number of included VM credits on that plan.
  • How many VM credits you expect to require.

As an example, let's say you are planning to run 80 concurrent VMs on average, each running 3 hours per day, every day, on the Nano VM size. Here's the breakdown:

  • You will need a Scale plan (which allows up to 100 concurrent VMs).
  • You will use a total of 72,000 VM credits per month (80 VMs x 3 hours/day x 30 days x 10 credits/hour).
  • Your Scale plan includes 1100 free VM credits each month, so you will purchase 70,900 VM credits (72,000 - 1100).

Based on this, your expected bill for that month is:

  • Base price of Scale plan: $170
  • Total price of VM credits: $1053.57 (70,900 VM credits x $0.01486/credit)
  • Total bill: $1223.57