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

# API 帮助文档

> 图片生成、视频生成、即梦API使用指南

## 快速导航

<CardGroup cols={2}>
  <Card title="图片生成 API" icon="image" href="/api-reference/image-generation">
    文生图、图生图、多图融合等功能
  </Card>

  <Card title="视频生成 API" icon="video" href="/api-reference/video-generation">
    文生视频、图生视频、首尾帧功能
  </Card>

  <Card title="即梦 API" icon="wand-magic-sparkles" href="/api-reference/jimeng">
    即梦视频生成、运镜特效
  </Card>

  <Card title="令牌用量查询" icon="chart-line" href="/api-reference/usage">
    查询API使用量和令牌消耗
  </Card>

  <Card title="ComfyUI 集成" icon="diagram-project" href="/comfyui">
    在 ComfyUI 中使用豆包大模型和 Gemini
  </Card>
</CardGroup>

## 快速开始

### 1. 获取API密钥

访问API控制台获取您的API密钥。

### 2. 发起第一个请求

<CodeGroup>
  ```bash 图片生成 theme={null}
  curl -X POST https://{YOUR_API_ENDPOINT}/v1/images/generations \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer {YOUR_API_KEY}" \
    -d '{
      "model": "doubao-seedream-4-0-250828",
      "prompt": "一只可爱的小猫",
      "size": "2K"
    }'
  ```

  ```bash 视频生成 theme={null}
  curl -X POST https://{YOUR_API_ENDPOINT}/v1/video/generations \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer {YOUR_API_KEY}" \
    -d '{
      "model": "doubao-seedance-1-0-pro-fast-251015",
      "prompt": "一只小猫在草地上玩耍",
      "resolution": "720p",
      "ratio": "16:9",
      "duration": 10
    }'
  ```
</CodeGroup>

### 3. 查看详细文档

点击上方的快速导航卡片，查看各个API的详细使用说明和完整参数列表。

## 重要提示

<Warning>
  请妥善保管您的API密钥，不要在公开场合泄露。
</Warning>

<Info>
  视频生成为异步任务，需要通过 `task_id` 查询生成结果。
</Info>

<Tip>
  资源URL通常有时效限制（图片24小时），请及时下载保存。
</Tip>

## 参考资源

<Card title="官方文档" icon="book-open" href="https://www.volcengine.com/docs/82379/1541523">
  访问火山引擎官方文档了解更多信息
</Card>
