MakerPortal Llm Vram Fit API
The Llm Vram Fit API from MakerPortal — 1 operation(s) for llm vram fit.
The Llm Vram Fit API from MakerPortal — 1 operation(s) for llm vram fit.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/makerportal-ai:makerportal-ai-llm-vram-fit-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: MakerPortal compute Llm Vram Fit API
version: 1.0.0
summary: Deterministic engineering solvers — the same functions that render the published pages.
description: 'Three solvers, exposed as GET endpoints. Every one is the *identical function* that renders the corresponding page on makerportal.ai, assigned by reference in a single registry, so an answer here and an answer on the page cannot disagree.
There is no market-data relay and no model proxy behind any of these — they are own-solver computation only, and no request leaves the function.
Every response carries `provenance.canonicalUrl`: the published page for exactly these inputs when one exists, and the lane hub when the inputs are off the published grid.
Numbers that are not finite are encoded as the strings "Infinity", "-Infinity" and "NaN". These are real answers, not error states: a notch is −∞ dB at its centre frequency and a low-pass is −∞ dB at Nyquist. JSON has no numeric literal for them and `null` would be a different claim, so a string sentinel is the only encoding that does not lose the answer.'
license:
name: Free with attribution
url: https://makerportal.ai/terms
contact:
url: https://makerportal.ai/contact
servers:
- url: https://makerportal.ai
tags:
- name: Llm Vram Fit
paths:
/api/v1/llm-vram-fit:
get:
operationId: llmVramFit
summary: Decide whether one LLM fits one accelerator, at every quantization
description: 'The identical function behind the /lab/llm-vram instrument. Returns one row per quantization (FP16 through Q3_K_M) with weight bytes and their basis, headroom, the largest context that fits, and the bandwidth-limited decode ceiling; plus the chosen best-fitting quant, the full-precision row, and a five-state verdict. Model geometry comes from each repo’s own config.json and tensor-shape index; accelerator capacity and bandwidth come from the site’s device table.
Numbers that are not finite are encoded as the strings "Infinity", "-Infinity" and "NaN". These are real answers, not error states: a notch is −∞ dB at its centre frequency and a low-pass is −∞ dB at Nyquist. JSON has no numeric literal for them and `null` would be a different claim, so a string sentinel is the only encoding that does not lose the answer.'
parameters:
- name: model
in: query
required: true
description: Model slug.
schema:
type: string
enum:
- deepseek-r1-distill-llama-70b
- deepseek-r1-distill-llama-8b
- deepseek-r1-distill-qwen-1-5b
- deepseek-r1-distill-qwen-14b
- deepseek-r1-distill-qwen-32b
- deepseek-r1-distill-qwen-7b
- dolphin-mistral-24b-venice-edition
- falcon3-7b-instruct
- gemma-2-27b-it
- gemma-2-9b-it
- gemma-3-12b-it
- gemma-3-1b-it
- gemma-3-27b-it
- gemma-3-4b-it
- gpt-oss-120b
- gpt-oss-20b
- granite-3-3-8b-instruct
- hermes-4-3-36b
- hy3
- k2-horizon-7b
- kat-coder-v2-5-dev
- laguna-s-2-1
- laguna-xs-2-1
- llama-3-1-70b-instruct
- llama-3-1-8b-instruct
- llama-3-1-nemotron-70b-instruct
- llama-3-2-1b-instruct
- llama-3-2-3b-instruct
- llama-3-3-70b-instruct
- mellum2-1-12b-a2-5b-thinking
- minicpm5-1b
- minicpm5-2b
- mistral-7b-instruct-v0-3
- mistral-nemo-instruct-2407
- mistral-small-24b-instruct-2501
- mixtral-8x7b-instruct-v0-1
- nanbeige4-2-3b
- nanbeige4-3-33b
- nex-n2-5-pro
- olmo-2-1124-13b-instruct
- ornith-1-5-122b
- ornith-1-5-35b-a3b
- ornith-1-5-9b
- phi-3-5-mini-instruct
- phi-4
- phi-4-mini-instruct
- qwen-agentworld-35b-a3b
- qwen2-5-0-5b-instruct
- qwen2-5-1-5b-instruct
- qwen2-5-14b-instruct
- qwen2-5-32b-instruct
- qwen2-5-3b-instruct
- qwen2-5-72b-instruct
- qwen2-5-7b-instruct
- qwen2-5-coder-32b-instruct
- qwen2-5-coder-7b-instruct
- qwen3-0-6b
- qwen3-1-7b
- qwen3-14b
- qwen3-30b-a3b
- qwen3-32b
- qwen3-4b
- qwen3-8-2-4t-a95b
- qwen3-8b
- qwq-32b
- qwythos-9b-claude-mythos-5-1m
- sage-a1-5
- smollm2-1-7b-instruct
- smollm2-135m-instruct
- smollm2-360m-instruct
- smollm3-3b
- spark-x2-5-4b
- spark-x2-6-4b
- tinyllama-1-1b-chat-v1-0
- yi-1-5-34b-chat
- name: gpu
in: query
required: true
description: Accelerator slug.
schema:
type: string
enum:
- rtx-5090
- rtx-5080
- rtx-5070-ti
- rtx-4090
- rtx-4080-super
- rtx-4070-ti-super
- rtx-4060-ti-16gb
- rtx-3090
- rtx-3060-12gb
- rtx-6000-ada
- l40s
- a100-40gb
- a100-80gb
- h100-sxm
- h200-sxm
- rx-7900-xtx
- apple-m4-24gb
- apple-m4-pro-48gb
- apple-m4-max-128gb
- apple-m3-ultra-512gb
- jetson-orin-nano-super-8gb
- jetson-agx-orin-64gb
- name: context
in: query
required: false
description: Context length in tokens used for the headline verdict. Omit it and the solver takes its own default of 8192, which is what the published page states.
schema:
type: integer
minimum: 1
maximum: 10000000
default: 8192
- name: kvBytes
in: query
required: false
description: 'Bytes per KV cache element: 2 for FP16/BF16 cache, 1 for an 8-bit cache. Omit it for the published page''s 2.'
schema:
type: integer
minimum: 1
maximum: 4
default: 2
- name: batch
in: query
required: false
description: Concurrent sequences sharing the cache. Omit it for the published page's 1.
schema:
type: integer
minimum: 1
maximum: 1024
default: 1
responses:
'200':
description: A solved answer, with provenance.
content:
application/json:
schema:
$ref: '#/components/schemas/SolverEnvelope'
example:
inputs:
model: llama-3-1-8b-instruct
gpu: rtx-4090
contextTokens: 8192
kvBytesPerElement: 2
batch: 1
result:
model:
slug: llama-3-1-8b-instruct
name: Llama 3.1 8B Instruct
family: Llama
repo: unsloth/Meta-Llama-3.1-8B-Instruct
canonical: meta-llama/Llama-3.1-8B-Instruct
modelType: llama
params: 8030261248
parametersByDtype:
BF16: 8030261248
checkpointBytes: 16060556376
checkpointFiles: 4
dtype: BF16
layers: 32
hiddenSize: 4096
heads: 32
kvHeads: 8
headDim: 128
vocabSize: 128256
intermediateSize: 14336
maxPositionEmbeddings: 131072
tieWordEmbeddings: false
hasVisionTower: false
moe: null
sliding: null
downloads: 167650
likes: 99
sources:
params: https://huggingface.co/api/models/unsloth/Meta-Llama-3.1-8B-Instruct
config: https://huggingface.co/unsloth/Meta-Llama-3.1-8B-Instruct/resolve/main/config.json
gguf:
repo: bartowski/Meta-Llama-3.1-8B-Instruct-GGUF
url: https://huggingface.co/bartowski/Meta-Llama-3.1-8B-Instruct-GGUF
files:
Q3_K_M:
bytes: 4018922912
parts: 1
Q4_K_M:
bytes: 4920739232
parts: 1
Q5_K_M:
bytes: 5732992416
parts: 1
Q6_K:
bytes: 6596011424
parts: 1
Q8_0:
bytes: 8540775840
parts: 1
gpu:
slug: rtx-4090
name: GeForce RTX 4090
serpName: RTX 4090
vendor: NVIDIA
memoryGiB: 24
memoryType: GDDR6X
bandwidthGBs: 1008
bus:
bits: 384
dataRateGbps: 21
memoryClass: dedicated
segment: consumer
year: 2022
sourceUrl: https://www.nvidia.com/en-us/geforce/graphics-cards/40-series/rtx-4090/
usableBytes: 23708219473.920002
quants:
- quant:
slug: f16
label: FP16 / BF16
bitsPerWeight: 16
exact: true
ggufToken: null
note: Unquantized. Two bytes per parameter, exactly.
weightBytes: 16060556376
weightBasis: measured
bitsPerWeight: 16.00003375232656
headroomBytes: 7647663097.920002
fits: true
maxContextTokens: 58347
contextCappedByModel: false
ceilingTokensPerSecond: 58.829371838526775
bytesReadPerToken: 17134298200
counterfactualContextTokens: 8192
offloadBytes: 0
offloadCeilingTokensPerSecond: null
- quant:
slug: q8_0
label: Q8_0
bitsPerWeight: 8.5
exact: false
ggufToken: Q8_0
note: Effectively lossless; the usual reference point for quantized quality.
weightBytes: 8540775840
weightBasis: measured
bitsPerWeight: 8.508590768079578
headroomBytes: 15167443633.920002
fits: true
maxContextTokens: 115718
contextCappedByModel: false
ceilingTokensPerSecond: 104.84145281403895
bytesReadPerToken: 9614517664
counterfactualContextTokens: 8192
offloadBytes: 0
offloadCeilingTokensPerSecond: null
- quant:
slug: q6_k
label: Q6_K
bitsPerWeight: 6.56
exact: false
ggufToken: Q6_K
note: Quality loss is hard to measure on most benchmarks.
weightBytes: 6596011424
weightBasis: measured
bitsPerWeight: 6.571155005093055
headroomBytes: 17112208049.920002
fits: true
maxContextTokens: 130555
contextCappedByModel: false
ceilingTokensPerSecond: 131.4253493439115
bytesReadPerToken: 7669753248
counterfactualContextTokens: 8192
offloadBytes: 0
offloadCeilingTokensPerSecond: null
- quant:
slug: q5_k_m
label: Q5_K_M
bitsPerWeight: 5.67
exact: false
ggufToken: Q5_K_M
note: A middle point when Q4 fits with too little room for context.
weightBytes: 5732992416
weightBasis: measured
bitsPerWeight: 5.711388199160118
headroomBytes: 17975227057.920002
fits: true
maxContextTokens: 131072
contextCappedByModel: true
ceilingTokensPerSecond: 148.08863758429916
bytesReadPerToken: 6806734240
counterfactualContextTokens: 8192
offloadBytes: 0
offloadCeilingTokensPerSecond: null
- quant:
slug: q4_k_m
label: Q4_K_M
bitsPerWeight: 4.83
exact: false
ggufToken: Q4_K_M
note: The default choice for local inference — the best size/quality knee.
weightBytes: 4920739232
weightBasis: measured
bitsPerWeight: 4.902195911223236
headroomBytes: 18787480241.920002
fits: true
maxContextTokens: 131072
contextCappedByModel: true
ceilingTokensPerSecond: 168.15467270366497
bytesReadPerToken: 5994481056
counterfactualContextTokens: 8192
offloadBytes: 0
offloadCeilingTokensPerSecond: null
- quant:
slug: q3_k_m
label: Q3_K_M
bitsPerWeight: 3.91
exact: false
ggufToken: Q3_K_M
note: Measurable quality loss. Worth it only to make a model fit at all.
weightBytes: 4018922912
weightBasis: measured
bitsPerWeight: 4.0037779971364635
headroomBytes: 19689296561.920002
fits: true
maxContextTokens: 131072
contextCappedByModel: true
ceilingTokensPerSecond: 197.9317414858389
bytesReadPerToken: 5092664736
counterfactualContextTokens: 8192
offloadBytes: 0
offloadCeilingTokensPerSecond: null
best:
quant:
slug: f16
label: FP16 / BF16
bitsPerWeight: 16
exact: true
ggufToken: null
note: Unquantized. Two bytes per parameter, exactly.
weightBytes: 16060556376
weightBasis: measured
bitsPerWeight: 16.00003375232656
headroomBytes: 7647663097.920002
fits: true
maxContextTokens: 58347
contextCappedByModel: false
ceilingTokensPerSecond: 58.829371838526775
bytesReadPerToken: 17134298200
counterfactualContextTokens: 8192
offloadBytes: 0
offloadCeilingTokensPerSecond: null
fullPrecision:
quant:
slug: f16
label: FP16 / BF16
bitsPerWeight: 16
exact: true
ggufToken: null
note: Unquantized. Two bytes per parameter, exactly.
weightBytes: 16060556376
weightBasis: measured
bitsPerWeight: 16.00003375232656
headroomBytes: 7647663097.920002
fits: true
maxContextTokens: 58347
contextCappedByModel: false
ceilingTokensPerSecond: 58.829371838526775
bytesReadPerToken: 17134298200
counterfactualContextTokens: 8192
offloadBytes: 0
offloadCeilingTokensPerSecond: null
verdict: comfortable
provenance:
method: Weight bytes are the MEASURED size of a published GGUF file wherever one exists and params × bits/8 only where none does — the two differ by 33% on sub-1B models and by 89% on natively-quantized releases, so the basis travels with every figure. KV cache is layers × kv_heads × head_dim × 2 × bytes-per-element per token, honouring sliding-window layers. Usable VRAM is a fixed fraction of nameplate memory (different for dedicated and unified). The decode ceiling is bandwidth ÷ bytes-read-per-token, which no runtime beats.
canonicalUrl: https://makerportal.ai/lab/llm-vram
license: free-with-attribution
'400':
description: A parameter was missing, unparseable or out of range — or the query named a parameter or include block this endpoint does not declare, or gave one twice. Never a 500.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: 'Best-effort per-instance rate limit. Not a quota: there is no shared counter, and identical requests are served from the CDN without reaching a function at all.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
tags:
- Llm Vram Fit
components:
schemas:
SolverEnvelope:
type: object
required:
- inputs
- result
- provenance
- license
properties:
inputs:
type: object
description: The parsed inputs, echoed back with defaults filled in.
result:
type: object
description: The solved analysis. Shape is per-endpoint; see the example.
provenance:
type: object
required:
- method
- canonicalUrl
properties:
method:
type: string
description: How the answer was computed, and what its inputs are.
canonicalUrl:
type: string
format: uri
description: The published page for these exact inputs, or the lane hub when they are off-grid.
license:
type: string
enum:
- free-with-attribution
Error:
type: object
required:
- error
- parameter
properties:
error:
type: string
description: A sentence naming what was wrong.
parameter:
type: string
description: The query parameter at fault.
valid:
type:
- array
- 'null'
items:
type: string
description: Every accepted value, when the parameter is an enumeration. Null otherwise.