Tenant settings — workspace config, branding, and BYOK provider keys.
Example
client = Miosa.client(System.fetch_env!("MIOSA_API_KEY"))
{:ok, settings} = Miosa.Settings.get(client)
{:ok, _updated} = Miosa.Settings.update(client, %{default_region: "us-east"})
Summary
Functions
List models available to this tenant.
Get tenant-scoped compute pricing.
Delete a BYOK provider key by provider name.
Get the current tenant settings.
Get tenant branding (logo, colors, custom wordmark).
Get tenant-scoped GPU pricing.
List tenant-level BYOK provider keys (Anthropic, OpenAI, etc.).
List regions enabled for this tenant.
Update tenant settings.
Update tenant branding.
Create or update a BYOK provider key.
Functions
@spec available_models(Miosa.Client.t()) :: Miosa.Client.result(map())
List models available to this tenant.
@spec compute_pricing(Miosa.Client.t()) :: Miosa.Client.result(map())
Get tenant-scoped compute pricing.
@spec delete_provider_key(Miosa.Client.t(), String.t()) :: Miosa.Client.result(map())
Delete a BYOK provider key by provider name.
@spec get(Miosa.Client.t()) :: Miosa.Client.result(map())
Get the current tenant settings.
@spec get_branding(Miosa.Client.t()) :: Miosa.Client.result(map())
Get tenant branding (logo, colors, custom wordmark).
@spec gpu_pricing(Miosa.Client.t()) :: Miosa.Client.result(map())
Get tenant-scoped GPU pricing.
@spec list_provider_keys(Miosa.Client.t()) :: Miosa.Client.result(map())
List tenant-level BYOK provider keys (Anthropic, OpenAI, etc.).
@spec regions(Miosa.Client.t()) :: Miosa.Client.result(map())
List regions enabled for this tenant.
@spec update(Miosa.Client.t(), map()) :: Miosa.Client.result(map())
Update tenant settings.
Pass any settable fields as a map.
@spec update_branding(Miosa.Client.t(), map()) :: Miosa.Client.result(map())
Update tenant branding.
@spec upsert_provider_key(Miosa.Client.t(), String.t(), map()) :: Miosa.Client.result(map())
Create or update a BYOK provider key.
Required: provider (e.g. "anthropic") and attrs map containing at
minimum %{key: "sk-..."}.