الدردشة النصية
استخدم نماذج النص مباشرة وتابع الاستهلاك الفعلي للإدخال والإخراج والتخزين المؤقت.
نماذج النص#
curl -X POST 'https://platform.tongai.io/v1/tools/tong_text_models/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_text_quote/operations' \ -H "Authorization: Bearer $TONG_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: 45be69f1-c266-4a09-a82c-bf3c6303eb03" \ -d '{ "input": { "body": { "model": "tong_5c5b990cb58f50dd87ef1ef6", "prompt": "Write a short scene at blue hour.", "maxOutputTokens": 1024 } }}'الإعدادات
curl --versionإرسال رسالة نصية#
curl -X POST 'https://platform.tongai.io/v1/tools/tong_text_submit/operations' \ -H "Authorization: Bearer $TONG_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: 45be69f1-c266-4a09-a82c-bf3c6303eb03" \ -d '{ "input": { "body": { "quoteId": "000000000000000000000002" } }}'الإعدادات
curl --versionسجل المحادثة النصية#
curl -X POST 'https://platform.tongai.io/v1/tools/tong_text_history/operations' \ -H "Authorization: Bearer $TONG_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "input": { "params": { "id": "aaaaaaaaaaaaaaaaaaaaaaaa" } }}'الإعدادات
curl --versionيُسجّل استهلاك الأرصدة والخصم من المحفظة بشكل منفصل. يمكن للمحادثة النصية استخدام رصيد ممول سابقًا.