---
title: "Compute optimization levers (right-size, lightweight, substitute) against live indices"
method: POST
path: "/packaging/optimize"
tags: ["PackagingSuite"]
---

# Compute optimization levers (right-size, lightweight, substitute) against live indices

`POST /packaging/optimize`

## Request

- Base URL: `https://opnplatform.com/api`
- URL: `https://opnplatform.com/api/packaging/optimize`
- Auth: HTTP bearer

## Request body

- object
  - `goal` 'cost' | 'carbon' | 'both'
  - `project_id` integer, required

## Response `200`

Levers with per-unit and annualised savings; apply via /packaging/projects/{id}/optimize/apply

---

[API](https://skmtc.dev/opnplatform/apis/packindex-packiq-api-open-packaging-network.md) · [All operations](https://skmtc.dev/opnplatform/apis/packindex-packiq-api-open-packaging-network/llms.txt) · [OpenAPI document](https://skmtc.dev/opnplatform/apis/packindex-packiq-api-open-packaging-network/revisions/f427c0467bb2?raw)
