Repository navigation
Entrim publishes no balance endpoint after all - #31
Merged
Merged
Conversation
The manifest guessed one at /v1/credits and marked the reading undocumented. On a live account that URL answers 404, so the guess was wrong — this is the first time anyone had a key to check it with, and the guess had been shipping since the first commit. Two things worked exactly as designed while it was wrong. The reading never entered the verified total, because undocumented figures never do. And the run reported a visible error with exit code 1 rather than a green 0.00, because a response that matches no amount is a failure and not a zero. The absence was then established without spending a credential, which is both cheaper and safer than probing: on api.entrim.ai a route that does not exist answers 404 while a route that exists answers 401, so an unauthenticated sweep separates the two. All fourteen conventional balance paths answered 404. /v1/models answered 401, which is what makes it a key check rather than a liveness check — the rule CONTRIBUTING gained with straitly. Their documentation site carries no API reference and no billing page; its only substantive pages cover coding plans and editor setup. So: no-api, a dated note recording all of the above, and a key check that requires the key. The provider table drops to two undocumented and thirteen no-api. config.example no longer uses entrim as the illustration for balance_url, since we now know that particular URL does not exist — the field is still the right answer for a provider whose endpoint you find yourself. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
First real-account check of the two
undocumentedguesses, using @naturalmoods' own keys. Entrim's is wrong.The manifest guessed
/v1/creditsand marked the readingundocumented. On a live account that URL answers 404 — and the guess had been shipping since the first commit, because nobody had a key to check it with.Two designs worked while it was wrong: the reading never entered the verified total (inferred figures never do), and the run reported a visible error with exit code 1 rather than a green
0.00.The absence, established without spending a credential
Cheaper and safer than probing, and worth writing down as a technique: on
api.entrim.aia route that does not exist answers 404, while a route that exists answers 401. So an unauthenticated sweep separates them./v1/credits/v1/balance/v1/quota/v1/account/v1/usage/v1/user/balance/user/balance/v1/billing/balance/v1/me/v1/users/me/balance/v1/user/info/v1/account/billing/v1/key/v1/subscription/v1/modelsThat 401 is what makes the models list a key check here rather than a liveness check — the rule CONTRIBUTING gained with straitly (#30). Their docs site has no API reference and no billing page; its only substantive pages are coding plans and editor setup.
So:
no-api, a dated note recording all of it, and a key check that requires the key.Knock-ons
config.example.yamlno longer uses entrim to illustratebalance_url, since that URL is now known not to exist. The field is still the right answer for a provider whose endpoint you find yourself.neuralwattis the other inferred one: its/v1/quotadoes answer, but none of the four guessed paths match. That needs the response shape, which is a separate change.🤖 Generated with Claude Code