# 快速开始

<a id="quickstart"></a>

使用本站 API Key 接入图片、视频、文本和应用服务。先验证连接，再选择对应能力的接口。

<a id="prepare"></a>

## 接入准备

-   一个本站账号
    
-   一把可用的 API Key
    
-   选择要调用的模型或应用接口
    

<a id="api-key"></a>

## 1\. 创建 API Key

在工作台的 API 密钥页面创建密钥，并妥善保存。

[前往 API 密钥 →](/api-keys)

<a id="base-url"></a>

## 2\. 配置接口地址

OpenAI 兼容客户端的 Base URL 为 https://y.junlistudio.com/v1；手写 HTTP 请求时使用接口文档中的完整路径，避免重复拼接 /v1。Gemini 使用 /v1beta，MJ 使用本站根地址，应用接口使用各自文档给出的前缀。

<a id="first-call"></a>

## 3\. 验证连接与鉴权

先获取当前密钥可用的模型列表，确认连接与鉴权。

```bash
curl https://y.junlistudio.com/v1/models \
  -H "Authorization: Bearer YOUR_API_KEY"
```

> 请勿在前端代码或公开仓库中暴露 API Key。

<a id="choose"></a>

## 4\. 选择接入能力

-   [图片生成与编辑](https://y.junlistudio.com/docs.md?page=images)
    
-   [视频生成](https://y.junlistudio.com/docs.md?page=video)
    
-   [文本对话](https://y.junlistudio.com/docs.md?page=text)
    
-   [MidJourney](https://y.junlistudio.com/docs.md?page=midjourney)
    
-   [ChatGPT 充值助手](https://y.junlistudio.com/docs.md?page=chatgpt-recharge)
    
-   [ChatGPT 退款助手](https://y.junlistudio.com/docs.md?page=chatgpt-refund)
