Use it in your app
With an API key, your website, app, script or AI agent sends a picture and gets back what is in it: from HyperCluster’s AI chips, or from the AI you trained yourself.
Our AI chips
Things in the picture with a box around each, what it shows, any text, and faces. Paid per picture from your HyperAI credit; a call that fails costs nothing.
Your own AI
A YOLO model you keep in My models answers the same way, on a member’s graphics card, paid by the second.
From an AI agent
Claude Code, Cursor, VS Code and other AI agents can use HyperAI as a tool, through MCP: list your models, run one on a picture, train one, add one from a link. Same key, same prices. How to connect one
Your API keys
Sign in with your Passport to make a key.
Your API keys
Your credit – HYPEC · Add creditYour new key. Copy it now: it is shown this once, and we keep only a fingerprint of it.
Keep it on your server. Anyone with it can spend your credit: if it gets out, revoke it below and make a new one.
What your keys were used for
| When | Key | Call | Result | HYPEC | Time |
|---|---|---|---|---|---|
| No calls yet. | |||||
How to call it
Send your key in the Authorization header, and the picture (JPEG, PNG or WebP) as a form upload or as the body itself, at most 10 MB; or in JSON, as base64 ("image", at most 8 MB) or as a public https link to it ("image_url").
Ask our AI chips about a picture
curl https://ai.hypercluster.org/v1/vision/analyze \
-H "Authorization: Bearer $HYPERAI_KEY" \
-F [email protected] \
-F tasks=objects,text
// Node 18+ (on your server, so the key stays private)
import fs from 'node:fs';
const form = new FormData();
form.append('image', new Blob([fs.readFileSync('gate.jpg')]), 'gate.jpg');
form.append('tasks', 'objects,text');
const res = await fetch('https://ai.hypercluster.org/v1/vision/analyze', {
method: 'POST',
headers: { Authorization: `Bearer ${process.env.HYPERAI_KEY}` },
body: form,
});
const result = await res.json();
console.log(result.objects);
import os, requests
with open("gate.jpg", "rb") as f:
r = requests.post(
"https://ai.hypercluster.org/v1/vision/analyze",
headers={"Authorization": f"Bearer {os.environ['HYPERAI_KEY']}"},
files={"image": f},
data={"tasks": "objects,text"},
)
print(r.json()["objects"])
tasks is any of objects (things found, from 80 everyday kinds, each with a box), labels (what the picture shows, from 1,000 kinds), text (words and numbers, each with its four corners) and faces (how many, each with a box). Leave it out for all four.
What comes back
{
"id": "4f1c…",
"object": "vision.analysis",
"image": { "width": 1920, "height": 1080 },
"tasks": ["objects", "text"],
"objects": [ { "label": "car", "score": 0.91, "box": [412, 380, 1210, 905] } ],
"text": [ { "text": "WXY 1234", "score": 0.97, "box": [[640, 700], [880, 702], [879, 760], [639, 758]] } ],
"models": { "yolov8n": "2026.10.1", "ppocrv4_det": "2026.10.1", "ppocrv4_rec": "2026.10.1" },
"ms": 640,
"cost": { "hypec": 0.45, "usd": 0.0045 },
"balance": { "hypec": 99.55 }
}
Boxes are [left, top, right, bottom] in pixels of your picture, the right way up. Scores go from 0 to 1.
Run your own model
A model you keep in My models (a YOLO model you trained or uploaded: a .pt, or one exported to .onnx) runs on a member’s graphics card. It is paid for by the second it takes (at least one second, usually one to three), at the price for its size.
curl https://ai.hypercluster.org/v1/models/MODEL_ID/predict \
-H "Authorization: Bearer $HYPERAI_KEY" \
-F [email protected]
{
"id": "9b2e…",
"object": "model.prediction",
"model": { "id": "MODEL_ID", "name": "Plate finder", "task": "detect" },
"image": { "width": 1920, "height": 1080 },
"objects": [ { "label": "plate", "class": 0, "score": 0.93, "box": [640, 700, 880, 760] } ],
"gpu": "NVIDIA GeForce RTX 4070",
"seconds": 1.8,
"ms": 2410,
"cost": { "hypec": 0.007146, "usd": 0.000071 },
"balance": { "hypec": 99.54 }
}
A classification model answers with classes (its top five, each with a label and a score) instead of objects. The labels are the names you keep with the model in My models.
Chat with your fine-tuned model
A chat model you fine-tuned and keep in My models (its LoRA adapter) answers on a member’s graphics card, with the model it was trained on under it. It is paid for by the second it takes, as above. The first chat with it on a PC can take some minutes, while the PC fetches that model (not charged): then the answer is 202 with a poll address to ask again.
curl https://ai.hypercluster.org/v1/models/MODEL_ID/chat \
-H "Authorization: Bearer $HYPERAI_KEY" \
-H "Content-Type: application/json" \
-d '{ "messages": [ { "role": "user", "content": "Where is the office?" } ], "max_tokens": 256 }'
{
"id": "5c1d…",
"object": "model.chat",
"status": "done",
"reply": { "role": "assistant", "content": "Our office is in Kuala Lumpur." },
"usage": { "tokensIn": 14, "tokensOut": 9 },
"gpu": "NVIDIA GeForce RTX 3080 Laptop GPU",
"seconds": 6.2,
"cost": { "hypec": 0.03, "usd": 0.0003 },
"balance": { "hypec": 99.51 }
}
What was said goes to the member’s PC and back; we keep the reply only until you collect it (10 minutes at most), and record only its tokens, time and cost.
Add a model
From a public https link straight to the file, for example a Hugging Face or GitHub download link: it is fetched, checked and kept encrypted, usually within a minute. Ask for the model until its status turns ready (or failed, with the reason). This needs a key you allowed to change models.
curl https://ai.hypercluster.org/v1/models \
-H "Authorization: Bearer $HYPERAI_KEY" \
-H "Content-Type: application/json" \
-d '{ "url": "https://huggingface.co/you/plates/resolve/main/best.pt", "name": "Plate finder" }'
A file on your computer goes up in pieces. Start with POST /v1/models and { "fileName": "best.pt", "bytes": 6200000 }: the answer gives the model's id and the largest piece. Then send each piece with PUT /v1/models/ID/chunk?offset=N, and finish with POST /v1/models/ID/done.
import os, requests
KEY = {"Authorization": f"Bearer {os.environ['HYPERAI_KEY']}"}
API = "https://ai.hypercluster.org/v1"
path = "best.pt"
r = requests.post(f"{API}/models", headers=KEY,
json={"fileName": path, "bytes": os.path.getsize(path), "name": "Plate finder"}).json()
model, size = r["model"]["id"], r["upload"]["chunkBytes"]
with open(path, "rb") as f:
offset = 0
while piece := f.read(size):
requests.put(f"{API}/models/{model}/chunk", params={"offset": offset}, headers=KEY, data=piece).raise_for_status()
offset += len(piece)
print(requests.post(f"{API}/models/{model}/done", headers=KEY).json()["status"])
A model is a YOLO model from Ultralytics, as a .pt or exported to .onnx (both run here), or another .onnx or PyTorch file (kept, but only YOLO models can run for now), at most 1 GB. It is kept in your HyperCloud storage, with your files and training data.
Train a model
Train on a member’s graphics card, as on the Train page: add a dataset, start a job, ask until it has ended, and keep the model it made. It is paid by the second, at the rate of the card it gets, and never costs more than you allow. A key’s monthly limit counts all that a job may cost while it waits or runs. Adding datasets and starting jobs need a key allowed to change models.
Datasets, what jobs write and the models you keep are kept in your HyperCloud storage, with your files, and count in its size. What doesn’t fit is refused with storage_full (413): its message says how much is needed and how much is free, with where to get more storage, and error.storage has the numbers. GET /v1/training says how much room there is. A job’s output may be no larger than the room it is given; one that finds the room gone when it is kept waits for room until its time is up (output.waitingForRoom).
Train from your computer
Our script does it all from your own computer, and needs only Python 3.8 or later: it uploads your dataset (or uses the one of that name already in your account), starts the job, shows how it is going, and keeps the model it made in My models. Make a key above with “Let this key add, train, rename and delete my models” ticked and a monthly limit, then:
# 1. The script
curl -O https://ai.hypercluster.org/hyperai-train.py
# 2. Your key, in a file only you can read (on a Mac, with the key copied)
mkdir -p ~/.hyperai && pbpaste > ~/.hyperai/key && chmod 600 ~/.hyperai/key
# 3. Train YOLO from yolov8n.pt: 100 passes, at most 15 HYPEC
python3 hyperai-train.py --dataset plates.zip --epochs 100 --max-hypec 15
It prints a line as the job goes (waiting for a card, then each pass with its scores) and, when it is done, the new model’s id. Stopping the script leaves the job running: follow it again with --watch JOB_ID. Other options: --model yolov8s.pt (bigger, more accurate, slower), --imgsz, --max-minutes, --name and --try photo.jpg (run the new model on a photo). On Windows, save the key in %USERPROFILE%\.hyperai\key, or set HYPERAI_KEY.
Or call the API yourself
# A dataset from a link: a .zip with data.yaml, images/ and labels/ (YOLO format)
curl https://ai.hypercluster.org/v1/datasets \
-H "Authorization: Bearer $HYPERAI_KEY" -H "Content-Type: application/json" \
-d '{ "url": "https://example.com/plates.zip" }'
# → { "id": "DATASET_ID", "status": "preparing", … }: ask GET /v1/datasets/DATASET_ID until "ready"
# Train with YOLO's recipe: 100 passes, at most 20 HYPEC
curl https://ai.hypercluster.org/v1/training/jobs \
-H "Authorization: Bearer $HYPERAI_KEY" -H "Content-Type: application/json" \
-d '{ "datasetId": "DATASET_ID", "epochs": 100, "maxHypec": 20 }'
# → { "id": "JOB_ID", "status": "queued", … }: ask GET /v1/training/jobs/JOB_ID until it has ended
# Keep the model it made among your models
curl https://ai.hypercluster.org/v1/models \
-H "Authorization: Bearer $HYPERAI_KEY" -H "Content-Type: application/json" \
-d '{ "jobId": "JOB_ID", "name": "Plate finder" }'
POST /v1/datasets | Add a dataset (a .zip or .tar.gz, at most 2 GB): from a link, or uploaded in pieces as a model is. For YOLO, it is laid out as in the example. |
GET /v1/training | What training costs on each card, the cards free now, the limits, the recipes, and the room in your HyperCloud storage. |
epochs, imgsz, baseModel | YOLO’s recipe, which a job runs unless you say otherwise: how many passes (50), the picture size (640) and the model it starts from (yolov8n.pt). |
template, image, command | Another recipe from that list, or your own container image and the command to run in it. |
GET /v1/training/jobs/ID | A job: where it stands, what it has cost, and its log. |
GET /v1/training/jobs/ID/files | The models in what a job wrote, best first: keep one as in the example. |
GET /v1/training/jobs/ID/output | Download all that a job wrote, as a .tar.gz. |
POST /v1/training/jobs/ID/stop | Stop a job. It keeps what it wrote, and costs only the time it ran. |
DELETE /v1/training/jobs/ID/output | Delete what a job wrote before its time, to free its room in your HyperCloud storage. |
Also
GET /v1/balance: your HYPEC balance.GET /v1/models: the models you keep, with their ids and where each stands (ready,preparing,uploadingorfailed), and whether it can run.PATCH /v1/models/ID: rename a model ({ "name": "…" }) or change its labels ({ "labels": [...] });DELETE /v1/models/ID: delete it. Both need a key allowed to change models.GET /v1/openapi.json: all of it, described for tools that read OpenAPI.
Use it from an AI agent
HyperAI is also an MCP server, so an AI agent can use it as a tool: https://ai.hypercluster.org/mcp, with your API key in the Authorization header. Give the agent a key of its own with a monthly limit, so you can see what it spends and stop it at any time.
claude mcp add --transport http hyperai https://ai.hypercluster.org/mcp \
--header "Authorization: Bearer $HYPERAI_KEY"
// ~/.cursor/mcp.json
{
"mcpServers": {
"hyperai": {
"url": "https://ai.hypercluster.org/mcp",
"headers": { "Authorization": "Bearer hc_your_key" }
}
}
}
// .vscode/mcp.json
{
"inputs": [{ "type": "promptString", "id": "hyperai-key", "description": "HyperAI API key", "password": true }],
"servers": {
"hyperai": {
"type": "http",
"url": "https://ai.hypercluster.org/mcp",
"headers": { "Authorization": "Bearer ${input:hyperai-key}" }
}
}
}
Any other agent that connects to an MCP server over HTTP with a header works the same way.
Or connect it by signing in
Apps that connect by signing in, such as the connectors in claude.ai and ChatGPT, need no key: add https://ai.hypercluster.org/mcp as a connector (in claude.ai: Settings, Connectors, Add custom connector) and sign in with your Passport when it asks.
The app then shows under Your API keys as a connected app. Give it a monthly limit there, let it change your models if you want it to, or remove it. Until you let it, it can see and run your models but not add, change or delete them.
What the agent can do:
list_models, get_model | See your models, where each stands, and whether it can run. |
run_model | Run one of your models on a picture (a link to it, or the picture in base64). Paid by the second, as above. |
analyze_picture | Read a picture on our AI chips. Paid per picture, as above. |
add_model_from_link, update_model, delete_model | Add a model from a link, rename it or change its labels, delete it. Only with a key you allowed to change models. |
chat_with_model, get_chat_reply | Chat with one of your fine-tuned chat models. Paid by the second, as above. |
get_balance | Your HyperAI credit. |
add_dataset_from_link, start_training, get_training_job, save_model_from_job, training_options, list_datasets, get_dataset, list_training_jobs, stop_training_job, list_job_files | Train a model on a member’s graphics card from a dataset at a link, and keep it. Paid by the second, never more than the agent says a job may cost: tell it how much. Only with a key you allowed to change models. |
What an agent did is in the list of calls above, marked as an AI agent’s, and in your statement.
When something is wrong
The answer is { "error": { "code", "message" } }, with these statuses:
| 401 | no_key, bad_key, revoked | The key is missing, wrong or revoked. |
| 402 | insufficient_balance, key_limit | Top up, or raise the key's monthly limit. |
| 403 | not_allowed | This key may run and read your models, but not add, change or delete them: allow it above. |
| 400, 413, 422 | bad_request, too_large, bad_image, model_failed, bad_link, blocked, link_failed | The request, the picture, the link or your model can't be used; the message says why. |
| 413 | storage_full | Your HyperCloud storage has no room for it: the message says how much is needed and how much is free, and where to get more storage. |
| 409 | link_hypercloud | Sign in to HyperCloud once with Passport, then try again. |
| 404, 409 | not_found, not_runnable | No such model among yours, or a kind of model that can't run here yet. |
| 429 | rate_limited, too_many_at_once | At most 60 calls a minute per key and 4 at once; wait as Retry-After says. |
| 502, 503, 504 | board_failed, no_capacity, no_gpu, timeout | None of our AI chips or members’ graphics cards could answer in time. Try again; you were not charged. |
Your pictures
Pictures sent to our AI chips go to machines HyperCluster runs. Pictures for your own model go to a member’s graphics card with your model, and are gone from it when the run ends; the PC may keep your model, still encrypted, for up to a week, so that its next run starts sooner. We don't keep the pictures: each call's time and cost are recorded for your statement, and, for our AI chips, a fingerprint of the picture, for checking their work.