pai
    Preparing search index...

    Type Alias Receipt

    The signed content of a receipt. pai reads the fields listed here; the server signs more (such as hashes of the request and response), and they pass through untouched.

    type Receipt = {
        completion_tokens: number;
        cost_micro_usd: number;
        model_requested: string;
        model_served: string;
        prompt_tokens: number;
        reasoning_tokens: number;
        request_id: string;
        ts: string;
        v: number;
        [field: string]: unknown;
    }

    Indexable

    • [field: string]: unknown

      Other signed fields.

    Index
    completion_tokens: number

    Tokens in the answer.

    cost_micro_usd: number

    What the call cost, in millionths of a US dollar.

    model_requested: string

    The model id the call asked for.

    model_served: string

    The model id the upstream's own response named.

    prompt_tokens: number

    Tokens in the prompt.

    reasoning_tokens: number

    Reasoning tokens in the answer. 0 when there were none.

    request_id: string

    Phantom AI's id for the call.

    ts: string

    When the receipt was signed, as an ISO 8601 time.

    v: number

    The receipt format version. checkReceipt accepts only version 1.