मूल्य निर्धारण और उपयोग
SandBase pay-as-you-go बिलिंग का उपयोग करता है। मॉडल उपलब्धता, मूल्य सूत्र, cache multipliers, और capability-specific charges स्वतंत्र रूप से बदल सकते हैं, इसलिए integrations को कॉपी की गई price tables पर निर्भर रहने के बजाय live metadata पढ़ना चाहिए।
दैनिक मुफ्त API calls
हर organization को प्रति UTC day 100 मुफ्त data API calls (search, social, scraping, e-commerce, finance) मिलते हैं। यह allowance सभी eligible data APIs और organization की सभी keys के बीच साझा होता है, और 00:00 UTC पर reset होता है। LLMs और media models eligible नहीं हैं। कुछ data APIs भी eligible नहीं हैं: अधिक महंगे या formula-priced वाले, जैसे कुछ batch endpoints, crawl endpoints, Xiaohongshu PGY, और Douyin Xingtu kol-* routes, पहले call से ही billed होते हैं। किसी tool की जांच करने के लिए sandbase_inspect चलाएँ: eligible tools में pricing.free_quota होता है, और जिन tools में यह नहीं होता वे हमेशा billed होते हैं।
- allowance के भीतर की calls पर charge नहीं लगता, और zero balance वाला organization भी उनका उपयोग कर सकता है।
- 100वीं call के बाद, eligible calls काम करती रहती हैं और tool द्वारा दिखाए गए price पर प्रति call billed होती हैं। allowance समाप्त होने के कारण उन्हें reject या rate-limit नहीं किया जाता।
- अप्रयुक्त calls अगले day में carry over नहीं होतीं।
SandBase MCP tools में, sandbase_inspect eligible tools को pricing.free_quota (daily_limit, scope, resets) के साथ चिह्नित करता है। sandbase_account आज के allowance को free_api_quota के रूप में daily_limit, used_today, remaining, और resets_at के साथ लौटाता है; count अस्थायी रूप से अनुपलब्ध होने पर used_today और remaining छोड़ दिए जाते हैं। एक run settle होने के बाद, sandbase_run और sandbase_run_get free_quota_status रिपोर्ट करते हैं: free (allowance द्वारा covered), overage (allowance समाप्त होने के बाद billed), या degraded (charge नहीं किया गया क्योंकि allowance count अनुपलब्ध था)।
Console में billing प्रबंधित करें
अपना balance देखने, credits खरीदने, auto top-up सेट करने, coupons redeem करने, और अपनी organization के लिए उपलब्ध billing settings प्रबंधित करने हेतु Developer → Billing का उपयोग करें। organization-level request, token, और cost summaries के लिए Developer → Activities → Usage खोलें।
सार्वजनिक API boundary
Balance, top-up, billing export, और organization-wide usage endpoints वर्तमान में समर्थित public API का हिस्सा नहीं हैं। Console network requests को automate न करें या internal Console routes पर निर्भर न रहें।
वर्तमान model pricing पढ़ें
पहले एक enabled model खोजें:
curl 'https://api.sandbase.ai/v1/models?q=gpt' \
-H "Authorization: Bearer $SANDBASE_API_KEY"फिर उसका पूरा model card अनुरोध करें:
curl https://api.sandbase.ai/v1/models/deepseek/deepseek-v4-flash \
-H "Authorization: Bearer $SANDBASE_API_KEY"list endpoint discovery के लिए optimized है और जानबूझकर detailed token, cache, और reasoning prices को छोड़ देता है। detail response में model_card से selected model की detailed pricing पढ़ें। ऐसा कोई universal formula नहीं है जो हर LLM, media model, embedding model, या API capability पर लागू हो।
एक task की recorded cost जांचें
जब कोई operation task ID लौटाता है, तो उसका settlement record query करें:
curl https://api.sandbase.ai/v1/tasks/{task_id}/cost \
-H "Authorization: Bearer $SANDBASE_API_KEY"response वर्तमान cost को estimated_cost से अलग दिखाता है और बताता है कि settlement final है या नहीं। billing reconciliation के लिए settled के true होने तक cost का उपयोग न करें। Task records operational lookup data हैं, accounting ledger नहीं। reconciliation और लंबे समय के records के लिए Developer → Activities → Usage के अंतर्गत उपलब्ध billing records और CSV exports का उपयोग करें।
लागत-नियंत्रण practices
- नया workload शुरू करने से पहले वर्तमान model card resolve करें।
capability_tags,supported_modes, औरunified_schemaजांचें; सस्ते alternatives केवल तभी उपयोगी हैं जब वे आवश्यक input और output behavior का समर्थन करते हों।- अनावश्यक prompt context सीमित करें और जब selected model समर्थन करे, तो उपयुक्त output-token limit सेट करें।
- caching को model-specific मानें। provider-wide discount मान लेने के बजाय model card और लौटाए गए usage fields जांचें।
- task-cost lookup के लिए ही task IDs रिकॉर्ड करें; asynchronous
/v1/runwork के लिए, लौटाया गया opaque run ID रिकॉर्ड करें और केवल तबGET /v1/run/{id}poll करें जब statuspendingयाrunningहो। - अपनी organization के लिए Console में उपलब्ध spending controls का उपयोग करें।
भुगतान त्रुटियाँ
जब organization request को fund नहीं कर पाती, तो कोई API operation HTTP 402 लौटा सकता है। Error envelopes API compatibility surface के अनुसार भिन्न होते हैं, इसलिए एक message string से मिलान करने के बजाय HTTP status और documented error object को handle करें। Console में billing resolve करने के बाद, operation की idempotency और recovery rules के अनुसार retry करें।
Video submissions को शुरू होने से पहले उनकी estimated cost के विरुद्ध भी जांचा जाता है। $10 या उससे अधिक का एक single top-up आपके account level को बढ़ाता है, जिससे एक साथ अधिक tasks चल सकते हैं और प्रति minute अधिक requests की अनुमति मिलती है। देखें Concurrency limits और Rate limits।
वर्तमान public contracts के लिए Models and Pricing, Task Cost, और Errors देखें।