Skip to content

🚀 1.1 Quick Start

Welcome to the Old Dog AI Open API platform!

We provide an API service that is fully compatible with the official OpenAI standard. This means that whether you are using OpenAI-ecosystem third‑party apps (such as Chatbox, NextChat), AI coding IDEs (such as Cursor), or various terminal tools (such as Claude Code), you do not need to change any underlying logic.

Simply replace the [Base URL] and [API Key] described below, and you can instantly access world‑class AI models.


🔑 Step 1: Get your credentials

Before any configuration, you need two things:

1. Base URL

This is the “gateway” address to connect to our server. Copy and remember:

https://api.olddog.shop/v1

⚠️ Important: In 90% of apps and codebases, the API base must end with /v1. If you see 404 Not Found later, first check whether /v1 was omitted. A small number of clients auto-append the path (for example, Chatbox). In that case, you only need https://api.olddog.shop. See the specific app tutorial in the sidebar for details.

2. API Key

This is your personal “pass” used for authentication and billing.

  1. Sign up / sign in: Go to the Old Dog AI Console. For privacy and convenience, we recommend signing in via GitHub or Google authorization.
  2. Generate a key:
    • In the left menu, click Tokens.
    • Click + Add new token.
    • Name the token (for example, “Cursor only”, “Mobile only”) for easier management. You can also set an expiry time or a usage cap (leave blank for no limit).
    • After submitting, you will see a long string starting with sk- (for example, sk-abc123xyz...). Copy it immediately and store it securely. Once the dialog is closed, the full key cannot be viewed again (if lost, you must delete and create a new one).

💻 Step 2: Quick connectivity test (for developers)

If you are a developer, you can verify your network and key right away using the following.

Using cURL (run directly in a terminal):

bash
curl [https://api.olddog.shop/v1/chat/completions](https://api.olddog.shop/v1/chat/completions) \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer 您的_API_KEY" \
  -d '{
    "model": "gpt-4o",
    "messages": [
      {
        "role": "user",
        "content": "你好,请用一句话证明你在线。"
      }
    ]
  }'

Using Python (official openai library): Install the official SDK first: pip install openai

python
import os
from openai import OpenAI

# 初始化客户端,注意替换为我们的 Base URL 和您的 API Key
client = OpenAI(
    api_key="您的_API_KEY", 
    base_url="[https://api.olddog.shop/v1](https://api.olddog.shop/v1)" 
)

response = client.chat.completions.create(
    model="gpt-4o",
    messages=[
        {"role": "user", "content": "你好,测试一下接口连通性。"}
    ]
)

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

🗺️ Step 3: Pick your integration scenario (navigation)

Now you have your Base URL and API Key. Choose the tutorial that matches your daily tools:

  • 📱 I’m a regular user: I don’t want to write code; I want a chat app UI → see Chat Apps.
  • 💻 I’m a developer: I want AI assistance while coding / IDE integration → see Coding IDEs.
  • ⌨️ I’m a terminal power user: I want CLI agents like Claude Code → see CLI Tools.
  • 👨‍💻 I’m building my own product: I want to embed the API into my app/website → see API Reference for standard endpoints.