Language Model Access
inference output affordability
Inference token budgeting finds the maximum generated tokens affordable after a fixed prompt cost. Use it when an agent needs a generation ceiling under both price and model limits.
POST https://modell.halowerk.com/v1/inference-output-affordabilityInputs
| Field | Type | Required | Description |
|---|---|---|---|
| model | string | Yes | |
| input_tokens | integer | Yes | |
| budget_usd | number | Yes |
Show full input schema
{
"type": "object",
"properties": {
"model": {
"type": "string",
"maxLength": 150,
"minLength": 1
},
"input_tokens": {
"type": "integer",
"minimum": 0,
"maximum": 10000000
},
"budget_usd": {
"type": "number",
"minimum": 1e-06,
"maximum": 1000000
}
},
"required": [
"model",
"input_tokens",
"budget_usd"
],
"additionalProperties": false
}Published input example
{
"model": "gpt-4o-mini",
"input_tokens": 8000,
"budget_usd": 0.005
}Result & documentation
Machine-readable documentation of this hub
Source of this page: the published HALOWERK catalog. Updated: 2026-12-05 UTC.
More endpoints in this hub
- Language Model Access0.003 USDC
chat completions
POSThttps://modell.halowerk.com/v1/chat-completionsAI chat completions API - pay per request with USDC on Base. OpenAI-style messages in, choices and usage out. Runs openai/gpt-oss-20b via Groq Cloud; messages are sent to Groq Inc., USA, payment metadata is not forwarded. At most 8 messages
- Language Model Access0.002 USDC
context plan
POSThttps://modell.halowerk.com/v1/context-planWorks out how to split a document across a model context window: how many chunks, where the cuts fall, how much overlap, and what it will cost. Returns a deterministic JSON result computed only from the supplied input, without external data
- Language Model Access0.002 USDC
cost estimate
POSThttps://modell.halowerk.com/v1/cost-estimateEstimates token use and price for a prompt across several models before you spend anything, including cache and batch discounts. Returns a deterministic JSON result computed only from the supplied input, without external data lookups. Works