switching

What your sandboxes would have cost at a rival: the same vCPUs, memory and running time at its published rates.

Prices this key's settled sandbox usage over the last days (default 30, at most 90) at the rates each sandbox was quoted (a sandbox free usage paid for at the standard rates, since it charged nothing; usage.trialSandboxes counts them), and the identical sandboxes at the rival's published list rates, which come from the same table the comparison pages use and name the date they were checked. Returns both costs, the saving and a 30-day projection. With no usage yet it prices a stated example workload and says so (basis: example); quote a saving to the owner only after the project's real job has run (basis: usage). Compute only: storage, network, plan fees and free allowances are left out. Also returns the switch on record and the welcome match's state. Money is integer microdollars in strings.

get/v1/usage/compare

Request

  • Base URL: https://api.withruntime.com
  • URL: https://api.withruntime.com/v1/usage/compare
  • Auth: HTTP bearer

Query parameters

provider'e2b' | 'daytona' | 'vercel' | 'modal' | 'cloudflare' | 'fly-sprites' | 'fly-machines' | 'blaxel' | 'codesandbox' | 'morph' | 'northflank' | 'runloop' | 'lambda-microvms' | 'freestyle' | 'prime' | 'fly'

The rival to price against. fly is Sprites; fly-machines is Machines.

daysinteger

The window, in days. Default 30.

Response

Success

provider'e2b' | 'daytona' | 'vercel' | 'modal' | 'cloudflare' | 'fly-sprites' | 'fly-machines' | 'blaxel' | 'codesandbox' | 'morph' | 'northflank' | 'runloop' | 'lambda-microvms' | 'freestyle' | 'prime' | 'fly' required
basis'usage' | 'example' required

usage: your settled sandboxes in the window. example: none yet, so a stated example workload is priced instead.

runtimeMicrosstring required

What the usage costs on Runtime on paid credit: each paid sandbox at the rates it was quoted, and a sandbox free usage paid for at the standard rates, not zero. Integer microdollars, as a string (1,000,000 = $1).

rivalMicrosstring required

What the same sandboxes cost at the rival's published list rates. Integer microdollars, as a string (1,000,000 = $1).

savingMicrosstring required

Rival less Runtime; negative when the rival costs less. Integer microdollars, as a string (1,000,000 = $1).

savingPercentnumber nullable required

The saving as a percentage of the rival's cost.

notestring required

What was compared, at which rates, and what was left out.

Changes

No recorded changes to this operation across all 1 revision of this API.