Skip to main content

Quickstart

Three steps: an account, a key, a request.

1. An account​

Sign in at console.tinyhop.eu. The dashboard shows your balance and the models your settings reach right now - the same list the API answers, because it is the same decision.

2. A key​

Open API keys in the dashboard and create one. There are two kinds, and the difference is what the key may do:

ScopeReaches
inference/v1 - chat completions and the model list. This is the one your application uses
manage/mgmt/v1 - settings, routing, usage, the balance, the export. For your own tooling

A key is shown once and stored as a digest, so copy it then. It belongs to exactly one account and its scope cannot be changed later: a key that needs more is a second key.

export TINYHOP_KEY="sk-tiny-..."

3. A request​

curl https://api.tinyhop.eu/v1/chat/completions \
-H "Authorization: Bearer $TINYHOP_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v4-1-flash-1017",
"messages": [{"role": "user", "content": "Say hello in one short sentence."}]
}'

The answer is the OpenAI shape, and a few headers say what happened:

HeaderSays
X-Tinyhop-ProviderWhich provider served the request
X-Tinyhop-ModelThe model it resolved to, if you sent an alias
X-Tinyhop-QuantizationThe precision that offer runs (fp16, fp8, nvfp4, …)
X-Tinyhop-CostWhat it cost, in euro - a trailer on a streamed answer
X-Tinyhop-AliasThe name you sent, when it differs from the model that answered

Streaming is the same call with "stream": true; the chunks arrive as data: {...} lines and the stream ends with data: [DONE]. Fields you do not send keep their defaults, and max_tokens is filled in for you when the request does not name one.

Models​

curl https://api.tinyhop.eu/v1/models -H "Authorization: Bearer $TINYHOP_KEY"

The list is what your account can reach, each entry with the offers behind it. A model no provider can serve you right now is not in the list - so the list and the request path never disagree.

When something goes wrong​

StatusCodeWhat to do
401invalid_api_keyThe key is unknown, revoked, or missing its Bearer
402insufficient_creditTop up. available in the dashboard is the number that matters
403insufficient_scopeA manage key on /v1 - use an inference key
404model_not_foundNo offer your account can reach sells that model
429rate_limit_exceededToo many requests in flight; Retry-After says when
503upstream_errorNo provider could serve it. If you pinned one, the message names it

Nothing is charged for a request that fails before it was answered.

From a script​

Settings, routing, usage and the balance are on the management surface, which a manage key reaches. It is the same contract as the dashboard's own door:

curl https://api.tinyhop.eu/mgmt/v1/credits -H "Authorization: Bearer $TINYHOP_MANAGE_KEY"
{"currency": "EUR", "balance": "12.34", "reserved": "0.0004", "available": "12.3396"}

The Management API has every endpoint, the field names and the codes; the API reference starts with auth, errors and how money is reported.