Get billing catalog
curl --request GET \
--url https://api.runaether.dev/orgs/{orgID}/billing/catalog \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.runaether.dev/orgs/{orgID}/billing/catalog"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.runaether.dev/orgs/{orgID}/billing/catalog', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.runaether.dev/orgs/{orgID}/billing/catalog",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.runaether.dev/orgs/{orgID}/billing/catalog"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.runaether.dev/orgs/{orgID}/billing/catalog")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.runaether.dev/orgs/{orgID}/billing/catalog")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"tiers": [
{
"allowed_vm_sizes": [
"<string>"
],
"credits_per_month": 123,
"label": "<string>",
"monthly_price_usd": 123,
"tier": "free",
"warm_slots": 123,
"store_product_id": "<string>"
}
],
"top_up_skus": [
{
"amount_usd": 123,
"sku": "<string>",
"store_product_id": "<string>"
}
],
"vm_sizes": [
{
"cpu_kind": "<string>",
"credits_per_hour": 123,
"description": "<string>",
"label": "<string>",
"memory_mb": 123,
"size": "<string>",
"vcpu": 123,
"volume_size_gb": 123
}
]
}{
"code": "bad_gateway",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "bad_gateway",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "org_membership_required",
"error": "<string>"
}{
"code": "bad_gateway",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "bad_gateway",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}Billing
Get billing catalog
Reads the billing catalog: every tier with its price, credits and warm slots, the VM sizes tasks run at, and the fixed top-up amounts a store sells, each with the store product the requesting surface’s store sells for it.
Use this tool when you need to:
- Compare the tiers’ monthly prices, credits per month and warm slot counts before subscribing
- Look up the VM sizes and the credits per hour each costs
- Find the store_product_id a device buys for a tier or a top-up amount on ios or android
Examples:
- GET /orgs//billing/catalog?surface=web
- GET /orgs/6f1c2a9e-3b7d-4c55-9a2e-0d8b1f4e7c21/billing/catalog?surface=ios
Hints:
- orgID is the org’s uuid; surface is required, web, ios or android (422 from the schema when missing or any other value).
- tiers lists free, starter, pro, max and team, each with tier, label, monthly_price_usd, credits_per_month, warm_slots, allowed_vm_sizes and store_product_id; vm_sizes lists medium, large and xl with vcpu, cpu_kind, memory_mb, volume_size_gb and credits_per_hour; top_up_skus lists the store top-ups of 5, 10, 25 and 50 USD with sku and amount_usd.
- store_product_id is the product the requesting surface’s store sells: absent on the web, for the free and Team tiers, and when that store sells nothing. The catalog is the same for every org: it is not narrowed to the tiers the org’s kind may buy.
- Use getBillingSubscription instead for the org’s own tier and the tiers it may buy (plan.allowed_tiers), listBillingCreditPacks for credit packs, and getBillingInferenceBalance for the web top-up bounds and fee.
- Any member of the org may read it, every role included (billing and viewer too), with a session or a platform API key; a non-member is refused with 403 org_membership_required, an orgID that is not a uuid with 400, and an agent host’s grant with 403 agent_host_route_not_allowed.
GET
/
orgs
/
{orgID}
/
billing
/
catalog
Get billing catalog
curl --request GET \
--url https://api.runaether.dev/orgs/{orgID}/billing/catalog \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.runaether.dev/orgs/{orgID}/billing/catalog"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.runaether.dev/orgs/{orgID}/billing/catalog', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.runaether.dev/orgs/{orgID}/billing/catalog",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.runaether.dev/orgs/{orgID}/billing/catalog"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.runaether.dev/orgs/{orgID}/billing/catalog")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.runaether.dev/orgs/{orgID}/billing/catalog")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"tiers": [
{
"allowed_vm_sizes": [
"<string>"
],
"credits_per_month": 123,
"label": "<string>",
"monthly_price_usd": 123,
"tier": "free",
"warm_slots": 123,
"store_product_id": "<string>"
}
],
"top_up_skus": [
{
"amount_usd": 123,
"sku": "<string>",
"store_product_id": "<string>"
}
],
"vm_sizes": [
{
"cpu_kind": "<string>",
"credits_per_hour": 123,
"description": "<string>",
"label": "<string>",
"memory_mb": 123,
"size": "<string>",
"vcpu": 123,
"volume_size_gb": 123
}
]
}{
"code": "bad_gateway",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "bad_gateway",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "org_membership_required",
"error": "<string>"
}{
"code": "bad_gateway",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "bad_gateway",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Query Parameters
The client asking: web, ios or android. Store product ids are the ones that surface's store sells.
Available options:
web, ios, android