HTTP request
curl \
-X GET 'https://api.meilisearch.com/api/v2/projects/343/cost?from=2026-10-01&to=2026-10-31' \
-H 'Authorization: Bearer MANAGEMENT_API_TOKEN'{
"projectId": 56,
"from": "2026-11-01",
"to": "2026-11-23",
"currency": "USD",
"total": 27.6,
"items": [
{
"kind": "instance_runtime",
"quantity": 552,
"unit": "hour",
"unitPrice": 0.05,
"amount": 27.6,
"resourceId": 7
}
]
}{
"message": "The provided token is invalid.",
"code": "invalid_token",
"type": "auth",
"link": "https://www.meilisearch.com/docs/reference/management-api-errors#invalid_token"
}{
"message": "Project not found.",
"code": "project_not_found",
"type": "invalid_request",
"link": "https://www.meilisearch.com/docs/reference/management-api-errors#project_not_found"
}{
"message": "Invalid usage date range",
"code": "usage_invalid_range",
"type": "invalid_request",
"link": "https://www.meilisearch.com/docs/reference/management-api-errors#usage_invalid_range",
"details": [
{
"field": "from",
"code": "invalid",
"message": "Invalid usage date range"
},
{
"field": "to",
"code": "invalid",
"message": "Invalid usage date range"
}
]
}Cost monitoring
Get project cost
Returns a gross estimation of the cost of a project usage over the window: quantity × unit price of the project plan, before free tiers shared across the organization, discounts and taxes. The window is the same as the usage one.
GET
/
api
/
v2
/
projects
/
{projectId}
/
cost
HTTP request
curl \
-X GET 'https://api.meilisearch.com/api/v2/projects/343/cost?from=2026-10-01&to=2026-10-31' \
-H 'Authorization: Bearer MANAGEMENT_API_TOKEN'{
"projectId": 56,
"from": "2026-11-01",
"to": "2026-11-23",
"currency": "USD",
"total": 27.6,
"items": [
{
"kind": "instance_runtime",
"quantity": 552,
"unit": "hour",
"unitPrice": 0.05,
"amount": 27.6,
"resourceId": 7
}
]
}{
"message": "The provided token is invalid.",
"code": "invalid_token",
"type": "auth",
"link": "https://www.meilisearch.com/docs/reference/management-api-errors#invalid_token"
}{
"message": "Project not found.",
"code": "project_not_found",
"type": "invalid_request",
"link": "https://www.meilisearch.com/docs/reference/management-api-errors#project_not_found"
}{
"message": "Invalid usage date range",
"code": "usage_invalid_range",
"type": "invalid_request",
"link": "https://www.meilisearch.com/docs/reference/management-api-errors#usage_invalid_range",
"details": [
{
"field": "from",
"code": "invalid",
"message": "Invalid usage date range"
},
{
"field": "to",
"code": "invalid",
"message": "Invalid usage date range"
}
]
}Authorizations
personal_access_tokenoauth2
Send Authorization: Bearer <token>, where <token> is a personal access token (PAT) or an OAuth2 access token. A PAT authenticates as the user who owns it. See Authentication.
Query Parameters
Response
Project estimated cost