For the complete documentation index, see llms.txt. This page is also available as Markdown.

Account

Inspect your key, credit balance, usage, and prices.

Account endpoints return information about the account associated with the API key used to make the request. Use them to inspect the authenticating key and check the current credit balance. Use them also to read the credit usage history, and the credit price of each PBR action.

Retrieve the current account.

get

Returns the identity of the account associated with the API key and metadata about the API key used to authenticate the request.

Authorizations
AuthorizationstringRequired

API key created in the Marso Studio dashboard. The value has the form mxr_live_<entropy> and is sent as a Bearer token in the Authorization header.

Responses
200

Account identity and API key metadata.

application/json

Response from GET /account/me. Contains the account's identity and the API key used to authenticate the request.

user_idstringRequired

Unique identifier of the account.

emailstringOptional

Email address associated with the account.

plan_tierstringRequired

This value is always free. Use subscription_plan_code and subscription_plan_class for the current personal plan.

subscription_plan_codestringOptional

Opaque code for the personal subscription plan.

Pattern: ^plan_[A-Za-z0-9]{7,64}$
subscription_plan_classstring · enumOptional

Stable class of the personal subscription plan.

Possible values:
organization_seat_plan_codestringOptional

Opaque code for the assigned Organization seat plan.

Pattern: ^plan_[A-Za-z0-9]{7,64}$
organization_seat_plan_classstring · enumOptional

Stable class of the assigned Organization seat plan.

Possible values:
get/account/me
GET /api/public/v1/account/me HTTP/1.1
Host: api.marso.app/
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "user_id": "text",
  "email": "text",
  "plan_tier": "text",
  "subscription_plan_code": "text",
  "subscription_plan_class": "free",
  "organization_seat_plan_code": "text",
  "organization_seat_plan_class": "free",
  "effective_features": [
    "commercial_license"
  ],
  "api_key": {
    "prefix": "text",
    "label": "text",
    "created_at": 1,
    "last_used_at": null
  }
}

Retrieve the credit balance.

get

Returns the current credit balance for the account associated with the API key, including daily-free and paid credits. Organization pool balances are not exposed.

Authorizations
AuthorizationstringRequired

API key created in the Marso Studio dashboard. The value has the form mxr_live_<entropy> and is sent as a Bearer token in the Authorization header.

Responses
200

Credit balance.

application/json

Response from GET /account/credits. Contains the account's personal credit balance. Organization pool balances are not exposed.

total_creditsinteger · int64Required

Sum of personal daily-free and paid credits. Does not include any organization pool balance.

daily_free_creditsinteger · int64Required

Remaining personal daily-free credits.

paid_creditsinteger · int64Required

Remaining personal paid credits.

billing_sourcestring · enumRequired

Preferred billing source for the account.

Possible enum values:

  • personal: charges are applied to the account's personal credits.
  • organization: charges are applied to the account's organization credits, if available.
Possible values:
organization_memberbooleanRequired

Whether the account belongs to an organization. No organization identity or pool balance is exposed in this response.

get/account/credits
GET /api/public/v1/account/credits HTTP/1.1
Host: api.marso.app/
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "total_credits": 1,
  "daily_free_credits": 1,
  "paid_credits": 1,
  "billing_source": "personal",
  "organization_member": true
}

Retrieve credit usage.

get

Returns credit consumption over a time range, grouped by UTC day. The from and to parameters are Unix millisecond timestamps; to must be greater than from, and the requested window must be 90 days or less.

Authorizations
AuthorizationstringRequired

API key created in the Marso Studio dashboard. The value has the form mxr_live_<entropy> and is sent as a Bearer token in the Authorization header.

Query parameters
frominteger · int64Required

Time represented as milliseconds since the Unix epoch.

tointeger · int64Required

Time represented as milliseconds since the Unix epoch.

Responses
200

Aggregated credit usage.

application/json

Response from GET /account/usage. Contains credit consumption over the requested time range, grouped by UTC day.

total_creditsinteger · int64Required

Total credits consumed across all days in the requested window.

get/account/usage
GET /api/public/v1/account/usage?from=1&to=1 HTTP/1.1
Host: api.marso.app/
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "total_credits": 1,
  "buckets": [
    {
      "date": "text",
      "credits": 1
    }
  ]
}

Retrieve PBR credit prices.

get

Returns the credit price of every PBR generation action this API can charge, for the account associated with the API key. Prices are per action. A single submit costs the same as one item of the matching batch. To price a batch, multiply its per-item price by the number of items.

Prices can differ between accounts. Read this endpoint instead of storing an amount.

Each price appears under 2 keys. Read the current key, such as mesh_to_pbr. The contract marks the api_-prefixed key beside it as deprecated, and that key carries the same number.

Authorizations
AuthorizationstringRequired

API key created in the Marso Studio dashboard. The value has the form mxr_live_<entropy> and is sent as a Bearer token in the Authorization header.

Responses
200

PBR credit prices for the account.

application/json

Response from GET /pricing. Contains the PBR credit prices that apply to the account associated with the API key.

pricing_catalogue_idstringRequired

Identifier of the price set, for example standard-v3. Include this value when you report a question about a charge.

get/pricing
GET /api/public/v1/pricing HTTP/1.1
Host: api.marso.app/
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "pricing_catalogue_id": "text",
  "execution_costs": {
    "mesh_to_pbr": 1,
    "image_to_pbr": 1,
    "mesh_to_pbr_batch_item": 1,
    "image_to_pbr_batch_item": 1
  }
}

Last updated