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

# Quick Start

> Make your first Starrise AI API call in minutes.

Starrise AI provides a unified API for calling AI models from multiple providers, including chat, image generation, and video generation. This guide helps you quickly make your first API call.

## Three Steps to Get Started

### Step 1: Create an Account

Visit [dayu.cdn-fly.com](https://dayu.cdn-fly.com/?lang=en) to register your account.

### Step 2: Get Your API Key

Go to the [Console](https://dayu.cdn-fly.com/console/token?lang=en) to generate your API key. Keep it safe — you'll need it to authenticate every request.

### Step 3: Make Your First API Call

Use your API key to call a chat model. The example below calls Claude 3.5 Sonnet via the OpenAI-compatible interface:

```bash cURL theme={null}
curl https://dayu.cdn-fly.com/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-3-5-sonnet",
    "messages": [
      {
        "role": "user",
        "content": "Hello!"
      }
    ]
  }'
```

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

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://dayu.cdn-fly.com/v1"
)

response = client.chat.completions.create(
    model="claude-3-5-sonnet",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)

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

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

const client = new OpenAI({
  apiKey: "YOUR_API_KEY",
  baseURL: "https://dayu.cdn-fly.com/v1",
});

const response = await client.chat.completions.create({
  model: "claude-3-5-sonnet",
  messages: [{ role: "user", content: "Hello!" }],
});

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

> [!WARNING]
>
> **Configure your channel first.** Different models correspond to different channels. You must enable the corresponding channel in the console before you can successfully call that model. Go to the [Console](https://dayu.cdn-fly.com/console?lang=en) to confirm channels are enabled.

## Next Steps

> **[API Reference](/en/api-reference/introduction)**
>
> Authentication, Base URL, and error codes.

> **[Model API](/en/api-reference/introduction)**
>
> Browse all available models by provider.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.