Member Junction
    Preparing search index...

    One line of a prompt run's cost. The lines add up to the run's Cost, in its CostCurrency.

    interface PromptRunCostLine {
        Blended?: boolean;
        Cost: number;
        CostRowID: string;
        Input: number;
        Measure: string;
        Modality: string;
        Output: number;
    }
    Index

    Properties

    Blended?: boolean

    Set to true on the default line when it priced audio tokens at the cost row's text rates because the configuration has no usable audio price for their direction, so a report can tell such runs apart. Absent otherwise.

    Cost: number

    The line's cost, to 8 decimals.

    CostRowID: string

    The MJ: AI Model Costs row that priced the line; null for a line priced from the model configuration.

    Input: number

    The input quantity priced on the line, cache reads and writes included.

    Measure: string

    What the line's quantities count. The default line counts in its cost row's measure ('Tokens', or 'Seconds' for a time-priced run); the avatar video line counts 'Seconds' at a per-minute price, 'Tokens' at a per-token price.

    Modality: string

    null for the default line (the run's cost row); 'Video' for the avatar video line; 'Audio' for an audio line, whose PromptRunCostLine.Input or PromptRunCostLine.Output holds the audio tokens of its direction (the other is 0).

    Output: number

    The output quantity priced on the line; on the default line, after the video line took its tokens.