Skip to content

API keys

Use API keys when you need RemoteGPU access outside the signed-in console.

The two main use cases are:

  • calling the Inference API
  • using kubectl with RemoteGPU Kubernetes namespaces

If you only work in the console UI, you usually do not need an API key.

Open in the console

TaskConsole page
Create, rotate, or revoke API keysSettings / API Keys

Before you create a key

QuestionRecommendation
Do you only use the console UI?Do not create a key unless you need automation.
Do you call the Image API?Create an Inference key.
Do you use kubectl or CI against RemoteGPU Kubernetes namespaces?Create a Kubernetes exec key.
Do you need both from one automation?Create an All key only if you cannot split responsibilities.

Create an API key in the console

From the console:

  1. Open Settings / API Keys
  2. Click Create API key
  3. Enter a name
  4. Choose the scope you need
  5. Optionally set an expiration
  6. Save the key value somewhere secure

The full key is only shown when it is created. After that, the console only shows the key prefix.

Choose the right scope

ScopeUse it forTypical callerNotes
InferenceImage generation requestsApplication server, script, backend jobSends the key in the x-api-key header
Kubernetes execkubectl against a RemoteGPU namespaceLocal shell, CI, platform operatorCan be scoped to selected namespaces or all namespaces in the account
AllCombined automationAdmin automationUse only when one workflow genuinely needs both surfaces

Common key workflows

Use an Inference key when your application needs to call the Image API.

Typical flow:

  1. Create a key with the Inference scope.
  2. Store it in your application secret manager or runtime environment.
  3. Send it in the x-api-key header.

Inference requests send the key in the x-api-key header.

bash
curl -X POST "https://api.remotegpu.ai/v1/inference/image" \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{
    "model": "black-forest-labs/FLUX.1-dev",
    "prompt": "a cinematic portrait of an astronaut cat"
  }'

Continue with Image inference for the full request flow.

Operational guidance

PracticeWhy it matters
Use separate keys for separate systemsLimits blast radius when one system changes or leaks
Prefer Inference over All when possibleKeeps application clients away from Kubernetes access
Prefer namespace-scoped Kubernetes exec keysReduces accidental cross-namespace access
Set expirations for temporary automationMakes cleanup predictable
Revoke leaked or unused keys immediatelyRemoves stale credentials from circulation

Common outcomes

Status codeMeaning
401The key is missing, invalid, revoked, or expired
403The key is valid but does not allow the requested product flow
400The scope payload or expiration is invalid while creating or editing a key

RemoteGPU customer documentation