---
title: "Set Worker Billing"
method: PUT
path: "/lens/workers/{worker_id}/billing-key"
tags: ["Lens"]
---

# Set Worker Billing

`PUT /lens/workers/{worker_id}/billing-key`

## Request

- Base URL: `https://api.sea-lion.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sea-lion.ai/lens/workers/{worker_id}/billing-key`
- Auth: API key in header `x-litellm-api-key`

## Path parameters

- `worker_id` string, required

## Request body

- WorkerBilling
  - `analysis_key_id` string, required

## Response `200`

Successful Response

- Worker
  - `analysis_key_id` string, nullable
  - `id` string, required
  - `name` string, required
  - `scope` Scope, required
    - `team_id` string
    - `api_key_hash` string
    - `all_teams` boolean
  - `last_seen` string, date-time, required
  - `revoked` boolean

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-21** `f2fb14eab3f5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/sea-lion/apis/litellm-api/changes/lens/workers/:worker_id/billing-key/put.md)

---

[API](https://skmtc.dev/sea-lion/apis/litellm-api.md) · [All operations](https://skmtc.dev/sea-lion/apis/litellm-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sea-lion/apis/litellm-api/revisions/1ba9123c189a?raw)
