---
title: "Estimate scaling cost"
method: POST
path: "/api/v1/credits/estimate/scale"
tags: ["Credits"]
---

# Estimate scaling cost

`POST /api/v1/credits/estimate/scale`

## Request

- Base URL: `http://localhost:8080`
- URL: `http://localhost:8080/api/v1/credits/estimate/scale`
- Auth: API key in header `Authorization`

Calculate additional cost for scaling application to new regions

## Request body

- ServiceScaleCostEstimateRequest
  - `app_id` string
  - `new_regions` string[]

## Response `200`

Scale cost estimate calculated successfully

- ServiceCostEstimateResponse
  - `breakdown` ServiceCostBreakdown
    - `cpu_cost` number
    - `memory_cost` number
    - `regions_cost` number
    - `total_cost` number
  - `calculated_at` string
  - `currency` string
  - `daily_cost` number
  - `hourly_cost` number
  - `monthly_cost` number

## Other responses

- `400`: Invalid request body
- `500`: Internal server error

---

[API](https://skmtc.dev/nife/apis/nife-io-swagger-api.md) - [All operations](https://skmtc.dev/nife/apis/nife-io-swagger-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nife/apis/nife-io-swagger-api/revisions/6e868dc62795?raw)
