100 free credits. No credit card required. Get a key

Estimate the cost of a job

Credits, the keyless USD price and the cheapest credit pack for one call, a plan of many, or a recipe.

GET /v1/utility/estimateBeta0 credits per callRefunded on failure
import os, requests

res = requests.get(
    "https://api.groundsocial.dev/v1/utility/estimate?plan=reddit.post.get:100,x.user.get:20",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()
Response
200 · 0 credits
{
"lines": [
{
"endpoint": "reddit.post.get",
"tool": "reddit_post_get",
"count": 100,
"credits_each": 1,
"metered": false,
"credits": 100
},
{
"endpoint": "x.user.get",
"tool": "x_user_get",
"count": 20,
"credits_each": 1,
"metered": false,
"credits": 20
}
],
"total_credits": 120,
"keyless_usd": 1.2,
"cheapest_pack": {
"id": "starter",
"credits": 10000,
"usd": 10
},
"failed_calls_are_charged": false,
"unknown_endpoints": []
}

Parameters

NameTypeDescription
idquerystringEndpoint id or MCP tool name. Example: reddit.post.get.
itemsqueryintegerHow many calls of id.
planquerystringid:count pairs, comma-separated. Example: reddit.post.get:100,x.user.get:20.
recipequerystringA recipe id from utility/recipes.
methodquerystringIgnored (one price per endpoint); accepted for compatibility.
paramsquerystringIgnored: prices do not depend on inputs, except metered ceilings.
Status codes
StatusMeaning
200The quote.
400Invalid input. Nothing was charged.
401Missing or invalid API key.
402Not enough credits, a spend cap was reached, or payment is required.
403The target is private, or the account is suspended.
404No such endpoint, recipe or platform.
429Too many requests. Wait for Retry-After seconds.
503Utility is temporarily unavailable. Retryable; nothing was charged.

Every error has code, message, hint and retryable. All error codes

Questions

Does it cost anything?

No. Discovery endpoints are free and need no API key, so an agent can look around before it signs up.

Reddit, X and every other platform named here are trademarks of their owners. We are not affiliated with or endorsed by any of them.