pai
    Preparing search index...

    Type Alias VerifyModelResult

    The result of verifyModel.

    type VerifyModelResult = {
        cost_usd: number | null;
        match: boolean;
        model_requested: string;
        model_served: string | null;
        reason?: string;
        receipt: string | null;
        request_id: string | null;
        signature_valid: boolean;
    }
    Index
    cost_usd: number | null

    What the call cost, in USD. null without a receipt.

    match: boolean

    True when the signature is valid and the served model matches the one asked for (modelsMatch).

    model_requested: string

    The model id pai asked for.

    model_served: string | null

    The model the receipt says answered. null when there was no readable receipt.

    reason?: string

    Why it did not match or could not be checked. Absent when all is well.

    receipt: string | null

    The compact receipt from the x-phantom-receipt header. null when the answer had none.

    request_id: string | null

    Phantom AI's id for the call. null without a receipt.

    signature_valid: boolean

    True when the receipt's signature matches Phantom AI's published key.