Heretic IAHeretic AI GitHub vs a Hosted Endpoint: Cost and Effort
Heretic AI GitHub vs a Hosted Endpoint: Cost and Effort
Cloning a repository is free, but running a model is not. Here is what the self-run path takes in steps and hours, what a hosted endpoint costs per token, and where the two lines cross.

The comparison at a glance
Anyone typing heretic ai github into a search box is usually weighing the same decision: do the work yourself, or pay someone else to run the model. This table puts the two paths next to each other before we go into the numbers.
| Self-run from GitHub | Hosted endpoint | |
|---|---|---|
| What you get | A tool that produces modified weights | A working text API |
| First useful answer | After download, edit, evaluation and serving setup | Minutes after sign-up |
| Fixed costs | GPU rental or ownership, storage, your own time | None |
| Variable costs | Mostly flat, whether busy or idle | $0.15 per 1M input, $0.50 per 1M output |
| Failure handling | You debug drivers, out-of-memory errors, templates | Failed or refused requests are not charged |
Neither column is better in general. The rest of the article shows which workloads push you toward each.
One difference does not fit in a table cell: where your prompts go. A model on your own machine keeps every prompt in-house, which matters for some private material. A hosted service receives your prompts, so read its terms. Here, prompts are not used for training, but they do travel to the service, and if that is unacceptable for your data, self-run is your answer.
What the self-run path involves
The repository itself is only the start. A realistic checklist looks like this.
- Pick a base model. Check its license, its size and whether its chat template is documented.
- Get a GPU with enough memory. Weights alone need roughly the parameter count times the bytes per parameter, and the context cache comes on top.
- Download the weights and set up the Python environment with matching drivers and libraries.
- Run the tool. It searches for settings, which takes real GPU hours on a large model.
- Evaluate the result. Check refusals, but also check that ordinary tasks still work. A model that stops refusing and starts rambling is not a win.
- Serve it. An inference server that speaks the OpenAI format, plus authentication, logging and restarts.
- Keep it running. Updates, monitoring and capacity for traffic spikes.
Steps 1 to 5 are one-off. Steps 6 and 7 never end. People who enjoy this work find it rewarding. People who only need text output often find it a detour.
What the hosted route costs
The hosted price is the same for every request: $0.15 per 1M input tokens and $0.50 per 1M output tokens. There is no subscription and no charge for failed or refused requests. A few worked examples:
| Workload | Tokens per request | Cost per request | Cost for 10,000 requests |
|---|---|---|---|
| Short chat turn | 1,500 in, 300 out | $0.000375 | $3.75 |
| Story scene | 2,000 in, 1,500 out | $0.00105 | $10.50 |
| Long document pass | 90,000 in, 2,000 out | $0.0145 | $145.00 |
Check the first row: 1,500 times $0.15 per million is $0.000225, and 300 times $0.50 per million is $0.00015, which adds to $0.000375. The long-document row shows why the 100,000-token window matters: a prompt that fills most of it costs $0.0135 on input alone.
A $20 top-up buys 133.3M input tokens or 40M output tokens, whichever you spend it on. See the pricing page for bonuses on larger top-ups.
Break-even math
To compare, you need your own GPU price, so we express the result per 1 dollar of hourly rental. Assume a blended workload of four input tokens for every output token, which is common in chat and retrieval work. One million tokens of that mix costs 0.8M input tokens at $0.15 plus 0.2M output tokens at $0.50: $0.12 plus $0.10, or $0.22.
That means each 1 dollar of hourly GPU rental equals about 4.5M blended tokens per hour on the hosted side (1 divided by 0.22 gives 4.545). Spread over an hour, that is roughly 1,263 tokens per second of sustained throughput, input and output counted together.
So the question becomes: does your rig, running a model of the size you chose, sustain that rate for most of every hour you pay for? Two cautions apply. Input tokens are processed much faster than output tokens are generated, so the comparison is approximate. And the figure assumes the GPU is busy all the time. If your traffic is bursty, you pay for idle hours, and the hosted side never charges for them.
Multiply the hourly figure by 720 to get a 30-day month: a card rented at 1 dollar per hour costs 720 dollars a month and would need to produce about 3.27 billion blended tokens to match. Most small projects are nowhere near that volume.
If you already own a suitable card, the picture changes. Your marginal cost is mostly electricity and the opportunity cost of the machine, so the comparison is no longer against a rental rate. Even then, remember the time you spend keeping the stack healthy, and compare that with a bill that, at the volumes in the first table, may be a few dollars.
A fair test before you commit
Do not decide from a table. Spend one afternoon collecting facts from your own traffic.
- Sample 100 real prompts and store them in a file. Include long ones.
- Run them through the hosted endpoint and record the usage figures that come back with each response. Sum the input and output tokens, then apply $0.15 and $0.50 per 1M. That gives you a true cost per hundred requests.
- Scale to your monthly count. If a hundred requests cost $0.40 and you expect 50,000 a month, the bill is $200.
- Time the self-run alternative honestly. Write down how long the download, the tool run, the evaluation and the serving setup took you, and how many GPU hours you used. Multiply those hours by your price.
- Add upkeep. Estimate a few hours a month of fixes and updates.
Many people find that the first measurement alone answers the question. A project that looks like it needs a GPU often turns out to generate fewer tokens a month than a single rented day would produce.
Also compare quality, not only price. If the hosted model gives you what you need on your 100 prompts, the self-run route has nothing to add. If it does not, the money saved is irrelevant.
When self-running makes sense
- You need a particular base model or license that the hosted service does not offer.
- You need to run offline or inside a network that cannot reach an outside API.
- You have steady, heavy traffic that keeps the card busy around the clock.
- You want to inspect or change the weights.
- You already own suitable hardware, so the marginal cost is low.
When a hosted endpoint makes sense
- You are prototyping and want a result today.
- Traffic is uneven: quiet for days, then a burst.
- You do not want to own drivers, restarts and capacity planning.
- Your code already speaks the OpenAI format, so the only change is the base URL and key.
Mind the limits as well. A full key allows 8 concurrent requests and 300 requests per minute, the model is text only, and there is exactly one of it. If you need hundreds of parallel streams, that is a self-run case.
Switching an existing client is two lines. In Python, that looks like this:
from openai import OpenAI
client = OpenAI(base_url="https://api.hereticia.com/v1", api_key="YOUR_KEY")
reply = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": "Summarise this thread in three lines."}],
)
print(reply.choices[0].message.content)
Claim the $0.50 trial on the API key page and read the docs for parameters. For a plain-language primer, see what uncensored models are.
More guides
Frequently asked questions
Is the code on GitHub enough to get an API?
No. A decensoring tool produces model weights. To get an API you still need a GPU, an inference server and your own authentication, logging and uptime work.
Is hosted always cheaper?
No. A card that stays busy around the clock can beat per-token pricing at high volume. Hosted wins when traffic is uneven or small, since idle time costs nothing.
Can I try the hosted endpoint without paying?
Yes. After sign-up you can claim $0.50 of trial credit with one click. It is valid for 7 days, needs no card, and is one per person.
Do I have to change my code to move over?
Usually only the base URL, the key and the model id (uncensored). The endpoints follow the OpenAI format.
Generate your API key
Register an account, retrieve the key, and update your base URL. That’s the entire configuration.