CoAgent8 - Source API
    Preparing search index...

    Function parsePriceList

    • Reads an OpenRouter-shaped { data: [{ id, pricing: { completion, prompt, input_cache_read } }] }.

      Parameters

      • payload: unknown

      Returns ListedPrice[] | undefined

      The entries with an output price, or undefined when the payload has none. Variants (:batch, :free) are left out.