開発者
アシスタントをあなたのアプリ、MCP クライアント、Web サイトへ。どこでも料金はチャットと同じです。
POST/api/v1/conversations
会話を開始: { text, locale?, model?, tools? } — tools で暗号資産の価格、テクニカル分析、ウェブ検索を指定。
tools
実際のリクエストです: メッセージ料金がクレジットから差し引かれます。 (1 クレジット)
コード
curl -X POST "https://cryptoprice.pro/api/v1/conversations" \
-H "Authorization: Bearer sk_..." \
-H "Content-Type: application/json" \
-d '{"text":"…","locale":"ja"}'レスポンス本文
ここにレスポンスが表示されます。
ドキュメント
暗号資産ツール
チャットの暗号資産ツールは API でも使えます: 価格、マーケット概況、テクニカル分析、ローソク足データ、板情報、取引所比較、資金調達率、換算、ウェブ検索。tools フィールドで指定します。利用できるツールと料金は GET /api/v1/tools で一覧できます。
curl -X POST https://cryptoprice.pro/api/v1/conversations -H "Authorization: Bearer sk_..." -H "Content-Type: application/json" -d '{"text": "BTC and ETH price, 4h technical analysis and the cheapest exchange", "tools": ["crypto_price", "crypto_technical_analysis", "crypto_compare_exchanges"]}'
# GET /api/v1/conversations/{id}
{
"pending": false,
"messages": [
{ "role": "assistant", "content": "| Coin | Price | 24h | Signal | … |" }
]
}
# GET /api/v1/tools → open tools and their credit cost
[{ "name": "crypto_price", "credits": 0, "unit": "call", "pro": false }, …]