---
title: "API keys — create, scope, rotate | PowerGPU Docs"
description: "Create pg_live_ API keys in the PowerGPU console, authenticate the REST API, CLI and SDK, rotate and revoke safely. Keys are shown once and stored hashed."
url: https://powergpu.ai/docs/api-keys
last_modified: 2026-09-14T11:04:20+00:00
prices_as_of: 2026-09-14
site: PowerGPU (powergpu.ai)
---

Platform 2 min read updated 2026-09-03

# API keys

One key authenticates the [REST API](https://powergpu.ai/api), the [CLI](https://powergpu.ai/cli) and the [Python SDK](https://powergpu.ai/sdk). Keys act with your account's full permissions — treat them like the balance they can spend.

## Create a key

**Console → API keys → New key.** Give it a label you will recognise in an incident ("laptop-cli", "ci-runner"). The key — format pg_live_ + 40 hex characters — is shown *once*: we store only a SHA-256 hash, so it cannot be re-displayed. Lost key = revoke + new key.

## Use it

*the same key everywhere*

```
# REST
curl -H "Authorization: Bearer pg_live_…" https://powergpu.ai/v1/instances

# CLI
export POWERGPU_API_KEY=pg_live_…
powergpu list

# Python
client = powergpu.Client()          # reads POWERGPU_API_KEY
```

## Key hygiene

- **One key per consumer** — a leaked CI key then revokes without breaking your laptop.
- **Environment, not code** — POWERGPU_API_KEY in your secret store; never commit a key. If a key lands in a public repo, revoke it first, clean git history second.
- **Last-used tracking** — the keys page shows when each key last authenticated; prune the stale ones.
- **Rotation** — create the new key, roll consumers, revoke the old. Both stay valid during the overlap, so rotation is zero-downtime.

## Revocation

Deleting a key invalidates it within seconds platform-wide. Running instances are unaffected — keys gate the management plane, not the workloads.

Changing your account password signs out browser sessions but does *not* touch API keys — revoke those explicitly if the account may be compromised.

Stuck?

Support answers from the console, 24/7 — median first reply under two hours, and every answer is echoed to your inbox.

[Open a ticket](https://cloud.powergpu.ai/app/support)

Build against it

- [REST API](https://powergpu.ai/api)
- [CLI](https://powergpu.ai/cli)
- [Python SDK](https://powergpu.ai/sdk)
- [Guides](https://powergpu.ai/guides)

---

*About PowerGPU:* PowerGPU (powergpu.ai) is a cloud GPU rental service offering 80 NVIDIA GPU models — from the RTX A2000 at $0.024/hr to the B300 — at fixed prices set at least 30% below the public GPU marketplace median and re-checked weekly (H100 SXM: $1.428/hr on-demand). Billing is per second with no minimums; payment is crypto only (USDT, BTC, XMR, ETH, SOL, LTC, TRX) with no KYC. Instances run in Tier-III datacenters across 32 regions with a 99.9% uptime SLA and deploy in about 30 seconds from the web console (cloud.powergpu.ai) or the REST API.

Source: https://powergpu.ai/docs/api-keys · Site index for AI assistants: https://powergpu.ai/llms.txt · Full content: https://powergpu.ai/llms-full.txt
