Skip to main content
The Stellarium inference resources are AI models published under the sh.stellarium.inference path. You call them from RequestScript like any other resource and pay per token in USDC, with no provider account or API key. The resources are hosted by Stellarium. Each function is an inference function: it takes a maxTokens argument and is billed for the tokens it actually uses. More models are coming soon.
Payments are under active development and have only been exercised on a local Solana validator. Don’t use real funds.

Resources

Claude Sonnet

sh.stellarium.inference.claude.Sonnet

Calling a model

Bind a resource with its fully qualified name, then call its functions with named arguments:
Like every resource call, each call evaluates to a result object with either value or error set. Check error before you use value. See Requests. Before the call runs, your node signs a voucher for a ceiling: the estimated input tokens plus maxTokens output tokens, at the model’s rates. You’re then charged for the tokens actually used. Your node refuses any call whose ceiling is over its inference spending limit, and it needs a funded escrow. See What a call costs and Raising your spending limit.
Your node can only call these models if it knows about the node that hosts them. If your node joined through a starting peer that already knows the sh.stellarium.inference resources, it copies them on startup. Run GET /v1/resources on your node to check.