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

# Quick Start

> Quickly start using our API services

# Quick Start

Welcome to our API services! This guide helps you quickly get started with image and video generation.

## Step 1: Get an API Key

1. Visit the [API Key Management page](https://gccai.heqingsong.uk/keys)

2. Sign in to your account

   <Frame>
     <img src="https://mintcdn.com/apicore/C2a2y8XoHfeZvDlX/images/quickstart/login.png?fit=max&auto=format&n=C2a2y8XoHfeZvDlX&q=85&s=4d80617a8e12462f9ab0468ba60f9069" alt="Sign in to your GccAi account" width="2000" height="1059" data-path="images/quickstart/login.png" />
   </Frame>

3. Create a new API key

   On the API Keys page, click the **Create API Key** button in the top-right corner.

   <Frame>
     <img src="https://mintcdn.com/apicore/C2a2y8XoHfeZvDlX/images/quickstart/create-key.png?fit=max&auto=format&n=C2a2y8XoHfeZvDlX&q=85&s=0b34bed153bced1f6c5498491021c263" alt="Click Create API Key on the API Keys page" width="2000" height="1052" data-path="images/quickstart/create-key.png" />
   </Frame>

   In the dialog that appears, enter a **Name** for the key, optionally configure the quota (Unlimited Quota), model limits (Enable Model Limits) and an IP whitelist, then click **Create Key**.

   <Frame>
     <img src="https://mintcdn.com/apicore/C2a2y8XoHfeZvDlX/images/quickstart/create-key-form.png?fit=max&auto=format&n=C2a2y8XoHfeZvDlX&q=85&s=fc19cc3fca9c9ed72ba66ce58e1a5923" alt="Fill in the Create API Key form" width="2000" height="1068" data-path="images/quickstart/create-key-form.png" />
   </Frame>

4. Save your key securely

   <Frame>
     <img src="https://mintcdn.com/apicore/C2a2y8XoHfeZvDlX/images/quickstart/copy-key.png?fit=max&auto=format&n=C2a2y8XoHfeZvDlX&q=85&s=7a508ad3a827ce496abf8946d365ba75" alt="Click the copy icon to copy your API key" width="2000" height="1078" data-path="images/quickstart/copy-key.png" />
   </Frame>

## Step 2: Choose a Model

We provide multiple AI models to choose from. Visit the [Model Market](https://gccai.heqingsong.uk/en/model) to browse all available models and their pricing.

### Text Generation Models

* **GPT-4o**: Powerful dialogue and text generation capabilities
* **Claude**: High-performance conversational model by Anthropic
* **Gemini**: Google's multimodal large language model

### Image Generation Models

* **GPT-4o-image**: High‑quality image generation

### Video Generation Models

* **Sora2**: Professional video generation

## Step 3: Send a Request

### Text generation example

```bash theme={null}
curl -X POST https://gccai.heqingsong.uk/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-4o",
    "messages": [
      {
        "role": "user",
        "content": "Hello, please introduce yourself"
      }
    ]
  }'
```

### Image generation example

```bash theme={null}
curl -X POST https://gccai.heqingsong.uk/v1/images/generations \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-4o-image",
    "prompt": "A cute panda",
    "size": "1:1",
    "n": 1
  }'
```

### Video generation example

```bash theme={null}
curl -X POST https://gccai.heqingsong.uk/v1/videos/generations \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "sora-2",
    "prompt": "Waves crashing against the shore",
    "duration": 15,
    "aspect_ratio": "16:9"
  }'
```

## Step 4: Check Task Status

Because we use asynchronous processing, you need to query task status to obtain results.

```bash theme={null}
curl -X GET https://gccai.heqingsong.uk/v1/tasks/YOUR_TASK_ID \
  -H "Authorization: Bearer YOUR_API_KEY"
```

## What’s Next

<Card title="View API docs" icon="book" href="/en/index">
  Learn more about all available API endpoints.
</Card>

<Card title="Development Guide" icon="code" href="/en/development">
  Learn how to integrate the API into your application.
</Card>
