Skip to main content

getPricing

client.llm.getPricing(): Promise<unknown>

Fetches the current pricing information for all LLM models.

Returns token pricing data (input/output cost per token) for each model across all providers. Useful for cost estimation and budget tracking of LLM usage.

Parameters

No parameters.

Returns

Promise<unknown> — A promise that resolves to the pricing data for all available models

Example

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.llm.getPricing();
console.log(result);