Documentation Index
Fetch the complete documentation index at: https://docs.maximem.ai/llms.txt
Use this file to discover all available pages before exploring further.
Parameters
The metered metric you want to price. Examples include
"llm_input_tokens", "llm_output_tokens", "memories_ingested", and "retrievals". Match the metric you’d expect to see in the ledger.How many units of
metric_type the planned operation would consume (e.g. number of tokens, number of memories).Optional count of discrete items the operation would touch. Some metrics price differently for batched vs. single-item operations.
Operation identifier the quote is scoped to. Lets the server apply the right rate when a metric has different pricing across operations. Leave unset to use the default rate for the metric.
Processing mode for the planned operation (for example
"fast" or "long-range" for ingestion). Some metrics price differently per mode.Returns
CreditEstimate with the quoted cost.
The credit amount that would be debited if the operation ran with the supplied parameters at the current rate. No credits are spent by this call.
Example
Raises
SynapAuthError— when the API key is missing or invalid.SynapValidationError— whenmetric_typeis not recognized orunitsis negative.