Prompt enhancement
Read enhancement options, submit a prompt and retrieve the saved result.
Configuration#
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": {}}'Configuration
curl --versionEnhance a prompt#
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" } } }}'Configuration
curl --versionGet enhanced prompt#
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" } }}'Configuration
curl --versionEnhance a promptSubmit the configured action using your Tong account and credits. Follow the saved operation until it finishes.Requests and logsAn accepted request is not a finished generation. Track the saved job until its output is ready.PricingCompare customer credit rates and configuration-dependent prices.