---
title: "Set whether token cost is shown"
method: PUT
path: "/v1/settings/cost-display"
tags: ["System"]
---

# Set whether token cost is shown

`PUT /v1/settings/cost-display`

## Request

- Base URL: `http://localhost:9998`
- URL: `http://localhost:9998/v1/settings/cost-display`
- Auth: HTTP bearer

Only the person sets it: a request without this Mac's local credential is refused, so no connected app can change it.

## Request body

- object
  - `showCost` boolean, required

## Response `200`

The setting as stored

- object
  - `showCost` boolean, required

## Other responses

- `400`: Invalid request
- `403`: Not the person's own control

---

[API](https://skmtc.dev/modelpiper/apis/toolpiper-api.md) · [All operations](https://skmtc.dev/modelpiper/apis/toolpiper-api/llms.txt) · [OpenAPI document](https://skmtc.dev/modelpiper/apis/toolpiper-api/revisions/6722bf56385c?raw)
