models.ageneral.ai draws from your Ageneral account credits on the project owner wallet. The platform enforces spend before requests reach the model layer.
Credits
Purchased credits increase the balance available for model usage. When balance is exhausted, you may receive 402 Payment Required on gated routes until you add credits.Virtual keys
Use an Ageneral virtual key insk-bf-… form for scripts, tools, and the IDE extension. Keys are scoped to your account or project; spend rolls up to the project owner’s wallet.
Private nodes
Nodes use a service identity JWT instead of pasting keys in every process. Ageneral applies the same credit rules and your project’s model credentials for inference.Common errors
| HTTP | Meaning |
|---|---|
| 401 | Missing or invalid Authorization, or unsupported API key shape |
| 402 | Insufficient credits |
| 503 | Billing or inference temporarily unavailable |
Related
- Authentication
- Models API reference
