sage/wwwroot/public/api/api_ja.md

31 lines
1.0 KiB
Markdown
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 元境プラットフォーム API 仕様書
元境プラットフォームは、OpenAI プロトコルと互換性のある API を提供します。下流システムで API を利用するには、以下の手順が必要です。
* アカウント登録
* ログイン
* APIKEY の申請
* チャージ
## 1. APIKEY の申請
元境プラットフォーム (https://ai.opencomputing.cn) に携帯番号でログインし、「APIKEY 作成」を選択します。
## 2. チャージ
プラットフォーム上でチャージが可能です。現在、Alipay支付宝をサポートしています。
## 3. API 接続情報
* **ベース URL:** https://opencomputing.ai
### OpenAI 互換インターフェース
* パス: /llmage/v1/chat/completions
* メソッド: POST
* ヘッダー:
{
"Content-Type": "application/json",
"Authorization": "Bearer <your-apikey>"
}
## 4. タスク状態の照会
* パス: /llmage/tasks
* メソッド: GET
* ステータス: SUCCEEDED (成功), FAILED (失敗), CREATED, PENDING, RUNNING。