Skip to content

CostReportingLLMist

Defined in: gadgets/types.ts:445

readonly image: CostReportingImageNamespace

Defined in: gadgets/types.ts:473

Image generation with automatic cost reporting. Costs are reported based on model and generation parameters.


readonly modelRegistry: ModelRegistry

Defined in: gadgets/types.ts:467

Access to model registry for cost estimation.


readonly speech: CostReportingSpeechNamespace

Defined in: gadgets/types.ts:479

Speech generation with automatic cost reporting. Costs are reported based on input length and model pricing.

complete(prompt, options?): Promise<string>

Defined in: gadgets/types.ts:450

Quick completion - returns final text response. Costs are automatically reported to the execution context.

string

TextGenerationOptions

Promise<string>


stream(options): LLMStream

Defined in: gadgets/types.ts:462

Low-level stream access for full control. Costs are automatically reported based on usage metadata in chunks.

LLMGenerationOptions

LLMStream


streamText(prompt, options?): AsyncGenerator<string>

Defined in: gadgets/types.ts:456

Quick streaming - returns async generator of text chunks. Costs are automatically reported when the stream completes.

string

TextGenerationOptions

AsyncGenerator<string>