> ## Documentation Index
> Fetch the complete documentation index at: https://docs.openlayer.com/llms.txt
> Use this file to discover all available pages before exploring further.

# LLM cost estimation

> Learn how Openlayer estimates the costs associated with your LLM calls

Openlayer automatically estimates the costs associated with your LLM calls when you
use one of the [streamlined approaches](/monitoring/publishing-data#streamlined-approaches) to trace your AI system.

This page provides information on how that estimation works for each LLM provider.

## Providers

<AccordionGroup>
  <Accordion title="OpenAI">
    Openlayer maintains a version of the [OpenAI pricing page](https://openai.com/api/pricing/)
    to estimate the cost from the **prompt and completion tokens** of your LLM calls.
  </Accordion>

  <Accordion title="Azure OpenAI">
    The cost of Azure OpenAI calls depends on the underlying OpenAI model behind
    your **model deployment**.

    If you follow the convention of using OpenAI model names as your model
    deployment name, removing all `.`, Openlayer will estimate the cost of your
    calls using the [OpenAI pricing page](https://openai.com/api/pricing/). This means
    that if your model deployment name is `gpt-35-turbo`, Openlayer will use the
    cost for `gpt-3.5-turbo` from OpenAI.
  </Accordion>

  <Accordion title="LangChain">
    Openlayer uses the information on [OpenAI](https://openai.com/api/pricing/),
    [Anthropic](https://www.anthropic.com/pricing#anthropic-api),
    [Vertex AI](https://cloud.google.com/vertex-ai/generative-ai/pricing), and [Mistral AI](https://mistral.ai/technology/#models) to estimate the cost
    from the **prompt and completion tokens** of your LLM calls.

    <Note>
      Reach out if you use a different provider via LangChain, and we will include
      its price estimates as well.
    </Note>
  </Accordion>

  <Accordion title="Anthropic">
    Openlayer maintains a version of the [Anthropic API pricing page](https://www.anthropic.com/pricing#anthropic-api)
    to estimate the cost from the **prompt and completion tokens** of your LLM calls.
  </Accordion>

  <Accordion title="Mistral AI">
    Openlayer maintains a version of the [Mistral AI pricing page](https://mistral.ai/technology/#models)
    to estimate the cost from the **prompt and completion tokens** of your LLM calls.
  </Accordion>

  <Accordion title="OpenAI Assistants API">
    Openlayer maintains a version of the [OpenAI pricing page](https://openai.com/api/pricing/)
    to estimate the cost from the **prompt and completion tokens** of your LLM calls.

    For the assistant API, this means that Openlayer estimates the generation cost but not
    tool use cost.
  </Accordion>
</AccordionGroup>

<Note>
  Openlayer strives to maintain an up to date list of model prices. [Reach
  out](mailto:support@openlayer.com) if you notice a cost estimate of `$0` or an
  innacurate estimate. Make sure to mention the LLM provider and model name
  used.
</Note>
