> For the complete documentation index, see [llms.txt](https://docs.digitalhumans.jp/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digitalhumans.jp/dev/miniprem/api.md).

# API リファレンス概要

{% hint style="info" %}
本ページの内容はデジタルヒューマン株式会社の正式サポート対象外です。参考情報としてご利用ください。
{% endhint %}

{% hint style="info" %}
**MiniPrem API:** ミニプレム（MiniPrem）の各サービスをプログラムから操作し、チャットフロー、LLM 推論、ヘルスモニタリング、コンテナ管理を実行できます。
{% endhint %}

## 利用可能な API

<table data-view="cards"><thead><tr><th></th><th></th><th data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Flowise API</strong></td><td>チャットフローの予測と管理</td><td><a href="/pages/AvCdnidEg4LCYOBwoSA1">/pages/AvCdnidEg4LCYOBwoSA1</a></td></tr><tr><td><strong>vLLM API</strong></td><td>OpenAI 互換の LLM 推論</td><td><a href="/pages/rtOGwuj5sMMuTtSc5ocx">/pages/rtOGwuj5sMMuTtSc5ocx</a></td></tr><tr><td><strong>Renny ヘルス API</strong></td><td>サービスのヘルスチェックとステータス確認</td><td><a href="/pages/U9aayjrQhMjKGvqvjrVH">/pages/U9aayjrQhMjKGvqvjrVH</a></td></tr><tr><td><strong>コンテナログ API</strong></td><td>コンテナログの参照とストリーミング</td><td><a href="/pages/qPirIU4IBWkBWnAj64wU">/pages/qPirIU4IBWkBWnAj64wU</a></td></tr></tbody></table>

## クイックリファレンス

| サービス           | ベース URL                    | 認証の要否       |
| -------------- | -------------------------- | ----------- |
| **Flowise**    | `http://localhost:3000`    | Bearer トークン |
| **vLLM**       | `http://localhost:8000/v1` | 不要          |
| **Renny**      | `http://localhost:8081`    | 不要          |
| **Prometheus** | `http://localhost:9090`    | 不要          |
| **Grafana**    | `http://localhost:3001`    | Basic 認証    |

{% hint style="success" %}
**コンテナ間アクセス:** Docker コンテナ内から API を呼び出す場合（例: Flowise から vLLM を呼び出す場合）は、`localhost` ではなくサービス名を使用してください: `http://vllm:8000`
{% endhint %}

## 共通パターン

### 認証

**Flowise** は Bearer トークンが必要です:

```bash
curl -H "Authorization: Bearer your_api_key" http://localhost:3000/api/v1/chatflows
```

**vLLM** およびヘルスエンドポイントは、デフォルトでは認証を必要としません。

### ヘルスチェック

すべてのサービスがヘルスエンドポイントを公開しています:

```bash
# Renny health
curl http://localhost:8081/health

# Flowise health
curl http://localhost:3000/api/v1/ping

# vLLM models (confirms service is running)
curl http://localhost:8000/v1/models
```

## 関連ドキュメント

<table data-view="cards"><thead><tr><th></th><th></th><th data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>サービス概要</strong></td><td>MiniPrem のサービスアーキテクチャ</td><td><a href="/pages/MuUWc3JZmqrosYf5Skxa">/pages/MuUWc3JZmqrosYf5Skxa</a></td></tr><tr><td><strong>Prometheus と Grafana</strong></td><td>メトリクスとダッシュボード</td><td><a href="/pages/dxAcgS9emzkJDJrgvgLy">/pages/dxAcgS9emzkJDJrgvgLy</a></td></tr></tbody></table>
