# Cost Explorer

> See what your projects spend, by service, region and resource, and forecast future spending.

- Endpoint: https://cost-explorer.public.global.vexxhost.net
- OpenAPI schema: https://docs.vexxhost.com/cost-explorer/openapi.json (also https://docs.vexxhost.com/cost-explorer/openapi.yaml)
- Authentication: a token in the `X-Auth-Token` header; see https://docs.vexxhost.com/identity/authentication.md
- Requests, errors and rate limits: https://docs.vexxhost.com/developer/api.md
- CLI: `pip install vexxhost-costexplorerclient`, then `openstack ...` commands; setup in https://docs.vexxhost.com/developer/cli.md

- [Cost Explorer](https://docs.vexxhost.com/cost-explorer.md): See what your projects spend, by service, region and resource, and forecast future spending.

## Get started

- [Get started](https://docs.vexxhost.com/cost-explorer/get-started.md): Get your first Cost Explorer report with the OpenStack CLI, showing what a project spent last month.

## Concepts

- [Cost calculation](https://docs.vexxhost.com/cost-explorer/concepts/cost-calculation.md): Cost Explorer estimates costs from how long each server, volume, image and object storage bucket existed and the price of each, before taxes, credits and discounts.
- [Forecasts](https://docs.vexxhost.com/cost-explorer/concepts/forecasts.md): A Cost Explorer forecast projects your recent average daily spending over a future period of up to 90 days.

## Guides

- [Break down your costs](https://docs.vexxhost.com/cost-explorer/guides/break-down-costs.md): Break Cost Explorer reports down by service, region, usage type or resource, filter what they count, and add usage quantities.
- [Forecast your spending](https://docs.vexxhost.com/cost-explorer/guides/forecast-spending.md): Forecast a project's spending for the coming days or months with Cost Explorer, based on its recent daily average.
- [Use the Python client](https://docs.vexxhost.com/cost-explorer/guides/use-the-python-client.md): Install the Cost Explorer Python client, create it from an OpenStack SDK connection, and handle the errors it raises.

## API reference

- [Cost Explorer API](https://docs.vexxhost.com/cost-explorer/api.md): Call the Cost Explorer API: base URL, authentication, a first request, and every operation.
- [POST Calculate a cost forecast](https://docs.vexxhost.com/cost-explorer/api/cost-forecasts/create-cost-forecast.md)
- [POST Calculate a cost and usage report](https://docs.vexxhost.com/cost-explorer/api/cost-reports/create-cost-report.md)

## CLI reference

- [Cost Explorer CLI reference](https://docs.vexxhost.com/cost-explorer/cli.md): Look up every Cost Explorer command in the openstack CLI and its options.
- [openstack cost forecast create](https://docs.vexxhost.com/cost-explorer/cli/cost-forecast/cost-forecast-create.md): Forecast estimated spend using a trailing daily average.
- [openstack cost report create](https://docs.vexxhost.com/cost-explorer/cli/cost-report/cost-report-create.md): Compute an estimated cost and usage report (not a stored resource).

## Platform

- [Limits](https://docs.vexxhost.com/cost-explorer/platform/limits.md): The limits that apply to Cost Explorer reports and forecasts.

## Optional

- [All Cost Explorer pages in one file](https://docs.vexxhost.com/cost-explorer/llms-full.txt)
