Hubris

v1.1.3
pw.hubris/hubris-mcp Checked 4 days ago Published 8 days ago

OpenAI-compatible LLM gateway for Russia: 500+ models, ruble pricing, balance, chat.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

models_list List models

Walk the whole Hubris catalogue page by page, ordered by model id. Returns every active model with its capabilities, context window and ruble price. Use this when you need the complete catalogue — to cache it, to count models, or to scan for something no filter covers. When you are looking for a model that fits a task, use models_search instead: it filters by capability, price and context server-side and saves you a few hundred rows. Paging: read `nextCursor` from the response and pass it back as `cursor`. When `nextCursor` is absent you have reached the end. The catalogue holds roughly 55…

ParameterTypeDescription
cursorstringThe `nextCursor` value from the previous response. Omit for the first page.
limitintegerModels per page, 1–200. Defaults to 50.

models_get_pricing Get model pricing

The full price of one model in rubles — the authoritative answer to "what does this cost". Prefer this over the pricing embedded in models_list and models_search whenever the model is not billed per token. Those two return "0.00" token rates for such models; only this tool returns `perUnit`, where the real price per image, per second or per thousand characters lives. For speech models it also lists the voices speech_create accepts (`supportedVoices`), for video models the durations, resolutions and aspect ratios video_create accepts (`video`). Errors with InvalidParams if the model id is…

ParameterTypeDescription
modelId *stringExact model id from the catalogue, vendor included, e.g. "openai/gpt-6-astra".

balance_get Get account balance

Current balance of the Hubris account the API key belongs to, in rubles. Worth checking before a long or expensive run: requests are refused once the balance is spent. The balance can go slightly negative — one operation is allowed to overdraw it, and the next one is refused. Two representations of the same number come back. Use `balanceKopecks` for arithmetic and comparisons — it is an exact integer string. Use `balanceRub` for display.

chat_complete Chat completion

Run a chat completion on any model in the Hubris catalogue and get the answer back. Full parity with POST /v1/chat/completions — same request shape, same response shape, including tool calls, structured output and reasoning. Streaming is not available here: MCP tool calls are synchronous, and `stream` is ignored if you pass it. This is how you reach a model you cannot reach otherwise — pick an id with models_search, then call it here. Useful for delegating a subtask to a cheaper or a stronger model than the one you are running on. Chat models that draw (Gemini Image, GPT-5 Image) take mo…

ParameterTypeDescription
messages *arrayConversation so far, oldest first.
model *stringModel id from the catalogue, vendor included and matched exactly, e.g. "anthropic/claude-sonnet-5". Short names and names with a trailing date are rejected. Use models_search to find one.
max_tokensintegerCap on the length of the answer, in tokens.
modalitiesarray["image","text"] on chat models that draw (Gemini Image, GPT-5 Image): the pictures come back as image content.
reasoningExtended thinking on models with the "reasoning" capability: {effort:"low"|"medium"|"high"}, {max_tokens:N}, or {enabled:false} to turn it off.
response_format{type:"json_object"} or {type:"json_schema", json_schema:{…}} to constrain the answer to JSON.
seedintegerBest-effort determinism. Not every model honours it.
stopUp to four strings that cut the answer short.
temperaturenumberSampling temperature, 0–2. Some newer models reject it; leave it out unless you need it.
tool_choice"auto", "none", "required", or a specific function to force.
toolsarrayFunction-calling tools, OpenAI shape. Model must have the "tools" capability.
web_searchEnables built-in web search on models whose capabilities include "web_search".

embeddings_create Create embeddings

Turn text into embedding vectors with any embedding model in the Hubris catalogue — for semantic search, RAG, deduplication and clustering. Same as POST /v1/embeddings, OpenAI shape: data[i].embedding is the vector for input[i]. Pass a list of strings to embed a batch in one call, which is faster and cheaper than one call per string. Vectors are long: 1536 numbers make about 30 KB of JSON, and the whole answer lands in your context. Embed only what you will actually store or compare, use `dimensions` where the model allows it, and send large batches through the HTTP API (POST /v1/embeddings…

ParameterTypeDescription
input *Text to embed: one string, or a list of up to 16 strings embedded in one call.
model *stringModel id from the catalogue, vendor included and matched exactly, e.g. "openai/text-embedding-3-small". Find one with models_search and tool: "embeddings_create".
dimensionsintegerShorter vectors, only on models that support it (openai/text-embedding-3-*). Leave out otherwise.

rerank Rerank documents

Order documents by how well they answer a query, best first, with a relevance score each. Same as POST /v1/rerank. Typical use: a vector or keyword search finds 50–100 candidates, rerank picks the few that really answer the question, and only those go to the model — answers get more accurate and prompts shorter. results[].index points into the documents list you sent. Scores are comparable only within one response. Spends money from the account balance: Cohere models are billed per search (up to 100 documents), the rest per input token. usage.cost_rub is what this call cost.

ParameterTypeDescription
documents *arrayCandidate documents as plain text, 1 to 1000 of them. Their order in the answer is by relevance.
model *stringModel id from the catalogue, vendor included and matched exactly, e.g. "cohere/rerank-v3.5". Find one with models_search and tool: "rerank".
query *stringThe question or search query to rank the documents against.
top_nintegerReturn only this many best documents. Leave out to get all of them, ranked.

decisions_ask Ask a decision model

Ask a decision model (Jev, Clef, Mercury Decide and others) structured questions about some data and get probabilities instead of text. Same as POST /v1/decisions. Question types: "noul" — yes or no, answered as the probability of yes; "choice" — one option out of criteria; "score" — a level on the scale given in criteria. All questions are answered in one call. Good for classification, routing and triage where you need a calibrated number rather than prose — and much cheaper than asking a chat model. Spends money from the account balance: billed per input token only. usage.cost_rub…

ParameterTypeDescription
model *stringModel id from the catalogue, vendor included and matched exactly, e.g. "typesafe/jev-1.13". Find one with models_search and tool: "decisions_ask".
questions *objectQuestions by key, e.g. {"urgent": {"type": "noul", "instructions": "Is this urgent?"}, "team": {"type": "choice", "instructions": "Which team?", "criteria": {"billing": "Payments", "tech": "Outages"}}…
state *The data the questions are about: a string, an object or an array.

image_generate Generate an image

Draw an image from a text description with an image model from the Hubris catalogue (FLUX, Recraft, Seedream, GPT Image and others) and get the picture back right away as image content. Same as POST /v1/images/generations. Only models whose `tool` is "image_generate" work here. Models that draw inside a chat answer and also write text (Gemini Image, GPT-5 Image) have tool "chat_complete" and run there. Sizes such as 4K can be heavier than your client accepts in one answer — ask for 2K or less here. Spends money from the account balance: most image models are billed per image, some per mega…

ParameterTypeDescription
model *stringImage model id, vendor included and matched exactly, e.g. "black-forest-labs/flux.2-pro". Find one with models_search and tool: "image_generate".
prompt *stringWhat to draw. Be specific about subject, style and composition.
nintegerHow many images to draw, 1 or 2. Each one is billed. Defaults to 1.
sizestringImage size such as "1024x1024", or a tier such as "2K" on models that use tiers. Leave out for the model default.

speech_create Text to speech

Read text aloud with a text-to-speech model from the Hubris catalogue and get the audio file back as audio content. Same as POST /v1/audio/speech. Many models need a voice: the list of voices is on the model card (models_get_pricing → supportedVoices) — pick one from there. The answer is mp3 unless you ask for pcm. Up to 5 000 characters per call, a few minutes of speech; split longer texts or use the HTTP API (POST /v1/audio/speech). Spends money from the account balance: priced per character of text or per second of audio, depending on the model — models_get_pricing shows which. The…

ParameterTypeDescription
input *stringText to read aloud, up to 5 000 characters.
model *stringSpeech model id, vendor included and matched exactly, e.g. "microsoft/mai-voice-2-flash". Find one with models_search and tool: "speech_create".
response_formatstringAudio format: "mp3" (default here, plays everywhere) or "pcm" (raw 16-bit samples).
voicestringVoice name from the model card. Required when the model has a list of voices.

transcription_create Speech to text

Transcribe a recording to text with a speech recognition model from the Hubris catalogue (Whisper, GPT-4o Transcribe, Deepgram, ElevenLabs Scribe and others). Same as POST /v1/audio/transcriptions with the audio sent as base64. Pass the file content itself, base64-encoded — links to files are not accepted. Every byte of the recording is written out inside this call, so it suits clips of seconds, not minutes; send longer recordings through the HTTP API (POST /v1/audio/transcriptions). Spends money from the account balance: most models are billed per second or minute of audio, some per token…

ParameterTypeDescription
audio_base64 *stringThe recording, base64-encoded, without a "data:" prefix.
format *stringAudio format of the recording: wav, mp3, flac, m4a, ogg, webm or aac.
model *stringRecognition model id, vendor included and matched exactly, e.g. "openai/whisper-1". Find one with models_search and tool: "transcription_create".
languagestringLanguage of the speech as an ISO-639-1 code, e.g. "ru". Helps accuracy; leave out to detect it automatically.

video_create Start a video generation

Start generating a video from a text prompt with a video model from the Hubris catalogue (Veo, Kling, Seedance, Wan, Hailuo, Runway and others). Same as POST /v1/videos. Generation takes from one to several minutes, so this returns a task id right away; poll video_get with it every 15–30 seconds until status is "completed" or "failed". Allowed durations, resolutions and aspect ratios differ per model — models_get_pricing lists them under `video`. This tool takes a text prompt only: starting from images or a source video, and models that need a source — video editing, upscaling and talki…

ParameterTypeDescription
model *stringVideo model id, vendor included and matched exactly, e.g. "kwaivgi/kling-v3.0-pro". Find one with models_search and tool: "video_create".
prompt *stringWhat should happen in the video: subject, action, camera, style.
aspect_ratiostringFrame shape such as "16:9" or "9:16", from the values the model supports.
durationintegerLength in seconds, from the values the model supports.
generate_audiobooleanGenerate a soundtrack, on models that can. Usually costs more per second.
idempotency_keystringYour own unique string for this request. Repeating the call with the same key returns the same task instead of starting and paying for a second one.
resolutionstringResolution such as "720p" or "1080p", from the values the model supports.
seedintegerFixed seed for a repeatable result, on models that support it.

video_get Check a video generation

Status of a video task started with video_create: "pending", "in_progress", "completed" or "failed". Same as GET /v1/videos/{id}. While the video is being made, usage.estimated_cost is the amount held on the balance. Once it is "completed", usage.cost is the final price and the answer carries a link to the video file as an MCP resource (video/mp4) — read that resource to get the video itself. The file is kept for 72 hours. Files over 25 MB are not served as a resource; download those over HTTP (GET /v1/videos/{id}/content) with the same key. Free to call: it only reads the task. Poll every…

ParameterTypeDescription
id *stringTask id returned by video_create.

youtube_transcribe Transcribe a YouTube video

Transcript or summary of a YouTube video by its link. Same as POST /v1/video/transcriptions. The video is checked before any model is called: a deleted, private or link-only video, a live stream and a video longer than four hours are refused without charge. mode "exact" gives a word-for-word transcript, each line with an [HH:MM:SS] timecode, optionally labelled by speaker. mode "fast" gives a summary with key points and rough timecodes — several times faster and cheaper on long videos. An hour-long video in "exact" takes several minutes, which may exceed your client's tool timeout; prefer "…

ParameterTypeDescription
url *stringLink to the YouTube video, e.g. "https://youtu.be/ITL6WqcV6sE".
diarizebooleanWith mode "exact": label lines by speaker ("Speaker 1:", or by name when it is said in the video).
modestring"exact" — word-for-word transcript with timecodes (default); "fast" — summary with key points.

usage_get Get spending for a period

What this connection has spent over a period: requests, tokens, cache savings and the total in rubles. Same as GET /v1/usage. With an API key that is the key's spending; connected through OAuth, it is the spending of the whole app connection over the period, not just of the current hourly token. Use it to report what a run cost, to check spending against a budget, or to see the charge of tools that do not return their own price (image_generate, speech_create). balance_get shows what is left on the account. Free to call: it only reads.

ParameterTypeDescription
periodstringPeriod: "today", "24h" (default), "7d", "30d" or "mtd" — month to date. All times in UTC.