ドキュメントへ移動
ダッシュボードを開く
このページの内容

プロンプトの改善

改善オプションを確認し、プロンプトを送信して保存された結果を取得します。

設定#

curl -X POST 'https://platform.tongai.io/v1/tools/tong_enhancement_config/operations' \  -H "Authorization: Bearer $TONG_API_KEY" \  -H "Content-Type: application/json" \  -d '{  "input": {}}'
設定
curl --version

プロンプトを改善#

curl -X POST 'https://platform.tongai.io/v1/tools/tong_enhancement_submit/operations' \  -H "Authorization: Bearer $TONG_API_KEY" \  -H "Content-Type: application/json" \  -H "Idempotency-Key: 45be69f1-c266-4a09-a82c-bf3c6303eb03" \  -d '{  "input": {    "body": {      "prompt": "aaaa",      "context": {        "workflow": "TEXT_TO_IMAGE",        "model": "aaaa"      }    }  }}'
設定
curl --version

改善済みプロンプトを取得#

curl -X POST 'https://platform.tongai.io/v1/tools/tong_enhancement_get/operations' \  -H "Authorization: Bearer $TONG_API_KEY" \  -H "Content-Type: application/json" \  -d '{  "input": {    "params": {      "id": "aaaaaaaaaaaaaaaaaaaaaaaa"    }  }}'
設定
curl --version