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

# Quickstart

> Your first call to the gateway in under 5 minutes

## 1 · Create your account

Go to [app.geekhub.mx/signup](https://app.geekhub.mx/signup) and sign up. We give you **\$50 MXN of free credit** to test — no card, no commitments.

## 2 · Generate your API key

In the dashboard, go to **API Keys → New API key**.

<Warning>
  The key is shown **only once**. Copy it to your password manager before closing the modal.
</Warning>

The format is:

```
ghub_sk_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
```

## 3 · Your first call

<CodeGroup>
  ```python Python theme={null}
  from openai import OpenAI

  client = OpenAI(
      base_url="https://api.geekhub.mx/v1",
      api_key="ghub_sk_live_YOUR_KEY",
  )

  response = client.chat.completions.create(
      model="anthropic/claude-haiku-4-5",
      messages=[{"role": "user", "content": "Hi, in one line"}],
  )

  print(response.choices[0].message.content)
  ```

  ```javascript Node.js theme={null}
  import OpenAI from "openai";

  const client = new OpenAI({
    baseURL: "https://api.geekhub.mx/v1",
    apiKey: "ghub_sk_live_YOUR_KEY",
  });

  const response = await client.chat.completions.create({
    model: "anthropic/claude-haiku-4-5",
    messages: [{ role: "user", content: "Hi, in one line" }],
  });

  console.log(response.choices[0].message.content);
  ```

  ```bash curl theme={null}
  curl -X POST https://api.geekhub.mx/v1/chat/completions \
    -H "Authorization: Bearer ghub_sk_live_YOUR_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "model": "anthropic/claude-haiku-4-5",
      "messages": [{"role":"user","content":"Hi, in one line"}]
    }'
  ```
</CodeGroup>

Response:

```json theme={null}
{
  "id": "req_xxx",
  "object": "chat.completion",
  "model": "anthropic/claude-haiku-4-5",
  "choices": [{
    "index": 0,
    "message": {"role":"assistant","content":"Hi! How can I help?"},
    "finish_reason": "stop"
  }],
  "usage": {"prompt_tokens": 10, "completion_tokens": 8, "total_tokens": 18}
}
```

## 4 · Switch models

Just change the `model` field. **The same SDK** works with all of them:

```python theme={null}
# OpenAI GPT-5
model="openai/gpt-5"

# Google Gemini Flash
model="google/gemini-2.5-flash"

# DeepSeek Reasoner
model="deepseek/deepseek-reasoner"

# Kimi K2
model="moonshot/kimi-k2"

# Grok 4
model="xai/grok-4"
```

See the [full catalog](/en/models/index) with pricing and capabilities.

## 5 · When your bonus runs out

Top up from [app.geekhub.mx/dashboard/billing](https://app.geekhub.mx/dashboard/billing). We accept cards via Stripe; at checkout you receive your **CFDI 4.0** automatically to your RFC.

<Card title="No RFC?" icon="receipt" href="/en/concepts/billing">
  Your CFDI is issued to "Público en General" (XAXX010101000). We never block you from topping up.
</Card>
