FunkyRouter DocsBeta

Models

Model IDs, token limits, parameters and prices for Cabeza, the model that FunkyRouter serves.

FunkyRouter serves one model, Cabeza.

Use cabeza-latest

Send cabeza-latest as the model ID. This alias always points to the current Cabeza version. To keep the same version, send the version ID, for example cabeza-beta-20261121.

Cabeza

PropertyValue
Model ID (recommended)cabeza-latest
Current version IDcabeza-beta-20261121
Base modelThinking Machines Lab Inkling 2 Mini, the unmodified 4-bit MLX build. It is not a fine-tune.
LicenseApache-2.0
Context window1,048,576 tokens
Maximum outputUp to the context window, less the prompt. No default.
InputText and images. See Images.
OutputText
EndpointsPOST /v1/chat/completions, POST /v1/responses
StreamingYes
Tool callingChat completions only. See Tool calling.

The response model field shows the ID that you sent.

Token limits

The context window includes the prompt and the output. The gateway counts prompt tokens with the Cabeza tokenizer and chat template. Tool definitions, tool history and images are part of the prompt.

  • The context window is the only limit on the output. A request can ask for any output that fits in the window with its prompt.
  • If you do not set a maximum output, the request can use all of the window that the prompt leaves. There is no default.
  • The prompt plus the maximum output must not be more than 1,048,576 tokens.
  • If a request is too long, the API returns HTTP 400 before it reserves credit.
  • The gateway reserves credit for the maximum output that you ask for. A request without a maximum output reserves credit for the remainder of the window, up to approximately $0.47. Set a maximum output to reserve less.

Stream long prompts and long answers

Set "stream": true when the prompt is more than 131,072 tokens. If you do not, the API returns HTTP 400. Also stream long answers. A response that is not streamed sends nothing until it is complete. The connection can close after approximately 100 seconds.

Long prompts

A very long prompt takes time before the first token. A full 1,048,576-token prompt can take more than 10 minutes. A request stops after 2 hours. The gateway then ends the output and charges for the output that the node made.

Supported parameters

ParameterRange
max_completion_tokens or max_tokens1 to the context window, less the prompt. No default. Send one, not both.
temperature0 to 2
top_p0 to 1
toolsUp to 64 functions
tool_choice"auto" or "none"
parallel_tool_callstrue or false, with tools only

The API does not support stop, n, seed, logprobs, response_format, reasoning_effort or penalty fields. If you send one, the API returns HTTP 400.

Prices

ItemPrice (USD)
Input tokens$0.12 per million
Output tokens$0.45 per million
Charge per requestNone

FunkyRouter counts credit in micro-dollars ($0.000001). It rounds the input cost and the output cost up to the next micro-dollar. Then it adds the two values.

Image tokens are billed as input tokens. Before it sends a request to a node, the gateway reserves credit for the prompt and the maximum output. After the request, FunkyRouter charges the measured tokens and releases the remainder. For how cancelled and failed requests are billed, see Errors and limits.

Get the catalog from the API

GET /v1/models returns the model list, the limits and the prices. It needs an inference key. The list has one entry for cabeza-latest and one entry for the version ID.

curl https://api.funkyrouter.ai/v1/models \
  --header "Authorization: Bearer $FUNKYROUTER_API_KEY"

Each entry has context_window_tokens, max_output_tokens, supported_parameters and pricing. The API is the source of truth for these values. If the gateway is not ready, the list is empty.

GET /v1/pricing returns the current prices. It does not need a key.

curl https://api.funkyrouter.ai/v1/pricing

Last updated on

On this page