Tokfluence
Tokfluence
API Docs
Concepts

Credits

How it works

Each successful API call debits credits from your wallet before the work is done. Out-of-credits short-circuits with 402 insufficient_credits and never invokes the underlying service.

Every response, including errors, includes X-Credits-Remaining so you can pace your client without polling the wallet.

http
HTTP/1.1 200 OK
X-Credits-Remaining: 9876
Content-Type: application/json

Refunds on upstream failure

If a call fails because an upstream pipeline is unavailable (502 upstream_error), the credit is refunded automatically and a corresponding negative-cost row is written to your ledger. You only pay when value is delivered.

Cache misses, validation errors, and 4xx responses do not trigger refunds — they're "you got an answer," even if the answer was "bad request."

Cost per endpoint

ParamTypeNotes
creators.search1 creditPer page returned.
creators.show1 credit
creators.posts25 creditsCharged once even if many posts come back.
posts.show1 creditCached read from the local index.
posts.comments2 creditsPer page of comments.
posts.analyze25 credits / URLCharged per URL submitted in the batch.
campaigns.create1 creditsFree; the underlying analysis charges separately.
campaigns.show1 credit
campaigns.metrics2 creditsAggregates the entire campaign.
campaigns.posts2 creditsSame cost for /influencers.
campaigns.delete0 creditsDestructive ops are free.

Refills & rollover

Your wallet refills on a 30-day cycle anchored to your subscription start. Each refill grants your plan's monthly credits on top of whatever is left over from the previous cycle. The exact next-refill date is shown on the Credits page.

Unused credits roll forward, but only up to one full monthly grant. After a refill your balance is capped at 2x your monthly grant. A quiet month doesn't double your runway forever; a busy month right after a quiet one gets a full extra cushion to draw on.

Example
On a 10,000-credit plan: if you used 3,000 in cycle 1 (7,000 left), refill brings you to 17,000. If cycle 2 is quiet, refill would naively bring you to 27,000, but the cap clamps the carryover at 10,000 so your post-refill balance is 20,000. The 7,000 above the cap is lost.
Need more credits than your monthly grant? One-shot top-up packs are on the roadmap and will not be subject to the rollover cap. For now, talk to us about a higher-tier plan.