> ## Documentation Index
> Fetch the complete documentation index at: https://docs.generalcompute.com/llms.txt
> Use this file to discover all available pages before exploring further.

# API Keys & Base URLs

> Create and manage GeneralCompute API keys with the correct base URLs for each environment.

## Create an API key

1. Visit [generalcompute.com](https://generalcompute.com) and open the dashboard.
2. Generate a new key from **Developers → API keys**.
3. Copy the key once it is revealed — you will not be able to view it again.

Store the key as an environment variable so every SDK and CLI can pick it up automatically:

```bash theme={null}
export GENERALCOMPUTE_API_KEY=gc_live_your_api_key
```

Pass the key directly when necessary:

<CodeGroup>
  ```typescript Node.js theme={null}
  const client = new GeneralCompute({
    apiKey: process.env.GENERALCOMPUTE_API_KEY,
  });
  ```

  ```python Python theme={null}
  import os
  client = GeneralCompute(api_key=os.getenv("GENERALCOMPUTE_API_KEY"))
  ```
</CodeGroup>

## Base URLs & OpenAI clients

GeneralCompute speaks the exact same dialect as OpenAI. Point any OpenAI-compatible SDK at the domains below:

| Environment  | Base URL                         | Region      |
| ------------ | -------------------------------- | ----------- |
| Production   | `https://api.generalcompute.com` | `us-west-2` |
| Local router | `http://localhost:3000`          | Local       |

Override the base URL when instantiating the `openai` package (or any compatible SDK). That’s the only change needed besides swapping your API key:

<CodeGroup>
  ```typescript Node.js theme={null}
  import OpenAI from "openai";

  const client = new OpenAI({
    apiKey: process.env.GENERALCOMPUTE_API_KEY,
    baseURL: "https://api.generalcompute.com/v1",
  });
  ```

  ```python Python theme={null}
  from openai import OpenAI
  import os

  client = OpenAI(
      api_key=os.getenv("GENERALCOMPUTE_API_KEY"),
      base_url="https://api.generalcompute.com/v1",
  )
  ```
</CodeGroup>

## Rotate and scope keys

* Create individual keys per service or environment so you can revoke them without affecting other workloads.
* Rotate long-lived keys on a schedule and update the associated secrets in CI/CD.
* Remove unused keys from the dashboard to minimize blast radius.

## Enterprise SLAs

Enterprise plans include uptime SLAs, named support, and optional dedicated deployments in additional AWS regions. Reach out to [support@generalcompute.com](mailto:support@generalcompute.com) to provision custom environments or higher-rate limits.
