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

# Estimate deployment cost

`POST /api/v1/credits/estimate/deployment`

## Request

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

Calculate estimated cost for a new deployment configuration

## Request body

- ServiceDeploymentCostEstimateRequest
  - `cpu` string: e.g., "0.5", "1", "500m"
  - `memory` string: e.g., "256Mi", "1Gi"
  - `org_id` string: Organization ID for pricing
  - `regions` string[]: List of regions
  - `replicas` integer: Number of replicas

## Response `200`

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)
