@squidcloud/client
    Preparing search index...

    Interface AiModelRoutingResult

    How a request whose model was an AiModelRoutingOptions was routed.

    interface AiModelRoutingResult {
        costUsd?: number;
        inputTokens: number;
        model:
            | "gpt-5.6-sol"
            | "gpt-5.6-terra"
            | "gpt-5.6-luna"
            | "gpt-6-astra"
            | "gpt-6-luna"
            | "gpt-6.1-sol"
            | "gemini-3.1-pro"
            | "gemini-3.8-flash"
            | "gemini-3.5-flash-lite"
            | "grok-4.6"
            | "grok-4-1-fast-reasoning"
            | "grok-4-1-fast-non-reasoning"
            | "claude-fable-5"
            | "claude-fable-5-1"
            | "claude-haiku-4-5-20251001"
            | "claude-opus-5-5"
            | "claude-sonnet-5-5";
        outputTokens: number;
        routingModel: | "gpt-5.6-sol"
        | "gpt-5.6-terra"
        | "gpt-5.6-luna"
        | "gpt-6-astra"
        | "gpt-6-luna"
        | "gpt-6.1-sol"
        | "gemini-3.1-pro"
        | "gemini-3.8-flash"
        | "gemini-3.5-flash-lite"
        | "grok-4.6"
        | "grok-4-1-fast-reasoning"
        | "grok-4-1-fast-non-reasoning"
        | "claude-fable-5"
        | "claude-fable-5-1"
        | "claude-haiku-4-5-20251001"
        | "claude-opus-5-5"
        | "claude-sonnet-5-5";
    }
    Index
    costUsd?: number

    Best-effort USD cost of the routing call; undefined when the routing model is unpriced.

    inputTokens: number

    Input tokens the routing call consumed.

    model:
        | "gpt-5.6-sol"
        | "gpt-5.6-terra"
        | "gpt-5.6-luna"
        | "gpt-6-astra"
        | "gpt-6-luna"
        | "gpt-6.1-sol"
        | "gemini-3.1-pro"
        | "gemini-3.8-flash"
        | "gemini-3.5-flash-lite"
        | "grok-4.6"
        | "grok-4-1-fast-reasoning"
        | "grok-4-1-fast-non-reasoning"
        | "claude-fable-5"
        | "claude-fable-5-1"
        | "claude-haiku-4-5-20251001"
        | "claude-opus-5-5"
        | "claude-sonnet-5-5"

    The model the routing model chose and the request was sent to. A backupModel may still have served it.

    outputTokens: number

    Output tokens the routing call generated.

    routingModel:
        | "gpt-5.6-sol"
        | "gpt-5.6-terra"
        | "gpt-5.6-luna"
        | "gpt-6-astra"
        | "gpt-6-luna"
        | "gpt-6.1-sol"
        | "gemini-3.1-pro"
        | "gemini-3.8-flash"
        | "gemini-3.5-flash-lite"
        | "grok-4.6"
        | "grok-4-1-fast-reasoning"
        | "grok-4-1-fast-non-reasoning"
        | "claude-fable-5"
        | "claude-fable-5-1"
        | "claude-haiku-4-5-20251001"
        | "claude-opus-5-5"
        | "claude-sonnet-5-5"

    The model that made the choice.