Model Store
The Model Store serves one model on a GPU VM of your own as an endpoint, behind an OpenAI-compatible HTTPS address. Pick one of its models or any Hugging Face repository, pick a GPU, and Spheron installs vLLM or SGLang, downloads the weights, starts the engine and gives you an address and an API key. The Model Store also has a video, a speech and an image model (see Video, speech and image endpoints). This page covers creating an endpoint, calling it, what it costs, stopping it when idle, the playground, metrics, and the API.
Nothing is shared: the GPUs, the engine and the weights belong to your endpoint alone, so latency and throughput depend only on your own traffic.
Prerequisites
- A Spheron account with credit. The GPU bills from the moment the VM is created.
- For a gated or private model (Llama, for example): a Hugging Face token from an account that accepted the model's terms.
Create an endpoint
- Open Model Store in the sidebar.
- Pick a model, or Custom model to serve any Hugging Face repository by name.
- Choose the precision and the engine (vLLM or SGLang).
- Pick a GPU. Offers are sorted by fit, and each shows the speed Spheron measured for that model where a benchmark exists.
- Name the endpoint. The name becomes part of the address and is the model name in requests.
- Choose when it stops itself when idle (see Stop when idle).
- Click Create Endpoint, then copy the API key. It is shown only once.
The endpoint page follows the setup: Creating the VM, Installing the engine, Downloading weights, Starting the engine, then Serving. A small model on one GPU is usually serving within 5 to 10 minutes. Large models take longer, mostly to download.
A name is 3 to 32 lowercase letters, digits and single hyphens, starting and ending with a letter or digit, and unique among the team's live endpoints. The address is https://<name>-<6 characters>.spheron.host/v1.
Custom and gated models
Custom model takes any Hugging Face repository, such as Qwen/Qwen3-8B. Spheron checks the repository before anything is created: a name that does not exist, a private repository, or a gated one without a token is refused with a plain message, and nothing is billed.
For a gated model, open Add a Hugging Face token and paste a token from an account that accepted the model's terms on Hugging Face. A fine-grained token also needs read access to the public gated repositories you can access. The token is written once to the endpoint's VM, where the model server uses it. Spheron does not keep it, and it is never shown again.
The weights download to the VM's boot disk, so the GPU list shows only offers whose boot disk holds the weights plus 50 GB for the engine.
Call the endpoint
Send OpenAI-compatible requests to the endpoint's address with its key as a Bearer token. Use the endpoint's name as the model name.
curl https://<name>-<id>.spheron.host/v1/chat/completions \
-H "Authorization: Bearer $SPHERON_ENDPOINT_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "<name>", "messages": [{"role": "user", "content": "Hello"}], "stream": true}'import os
from openai import OpenAI
client = OpenAI(base_url="https://<name>-<id>.spheron.host/v1", api_key=os.environ["SPHERON_ENDPOINT_KEY"])
stream = client.chat.completions.create(
model="<name>",
messages=[{"role": "user", "content": "Hello"}],
stream=True,
)
for chunk in stream:
print(chunk.choices[0].delta.content or "", end="")The endpoint page shows the same examples with your address and name filled in. A text endpoint's address serves POST /v1/chat/completions, /v1/completions and /v1/embeddings, GET /v1/models, and a health check at GET /health. Every other path, the engine's other routes among them (such as /v1/responses), answers 404: Spheron could not count their tokens against a key's limits.
Tool calling and reasoning
Endpoints of Model Store models start ready for function calling and, where the model thinks before it answers, with its reasoning kept apart from the answer:
| Models | Function calling | Reasoning |
|---|---|---|
| Qwen3.5, Qwen3.6, Qwen3.8 | Yes (qwen3_coder parser) | In reasoning_content, apart from the answer |
| Llama 3.1, Llama 3.3 | Yes (llama3_json parser) | Not a reasoning model |
| Gemma 4, DeepSeek V4 Flash | Not set up | Not set up |
Send tools and tool_choice as with the OpenAI API. To turn thinking off for one request on a Qwen endpoint, send "chat_template_kwargs": {"enable_thinking": false}.
This applies to endpoints created from the Model Store with the default engine flags. A custom model starts with no extra flags. To set your own, pass flags when you create the endpoint through the API (see Create an endpoint).
API keys
Each endpoint has its own keys, separate from your account's Platform API keys. A Platform API key does not work on an endpoint, but it can create, limit and revoke endpoint keys through the API, so your own platform can make a key for each of your customers.
- Create keys on the endpoint page under API keys. A key is shown once, when it is created.
- Revoke a key there too. Requests with it are refused within 30 seconds.
- An endpoint can have up to 20 keys.
- Each key can send about 1,200 requests per minute. Over that, the endpoint answers
429rate_limit_exceeded.
Key limits for reselling
To sell your endpoint's tokens on your own platform, give each of your customers a key with its own limits. Click Add limits when you create a key, or Edit limits in a key's menu later. Every limit is optional, and limits are included in the endpoint fee.
| Limit | What it does | When it is reached |
|---|---|---|
| Requests at once | How many requests the key can have running at the same time, 1 to 4,096. | 429 concurrency_limit_exceeded until one finishes. |
| Requests a minute | Requests over the last 60 seconds, 1 to 100,000. | 429 rate_limit_exceeded. |
| Token budget | Prompt and completion tokens together, a day, a month or in total. Days and months start at midnight UTC. Text endpoints only. | 429 insufficient_quota within about a minute, until the period resets or you raise it. |
| Expires | The key works until the end of that day, UTC. Through the API, expiresAt takes an exact time. | 401 key_expired. |
- Turn off a key in its menu to stop it without replacing it (
403key_disabled), and Turn on to bring it back. Revoking cannot be undone. - Each key's row shows its tokens against its budget, with a bar that turns amber past 80% and red when spent.
- Download usage (CSV) in a key's menu gives its requests, tokens and errors by UTC day for the last 92 days, to bill your customer from. The API keeps 400 days.
- Changes reach the endpoint within 30 seconds. Requests already running finish.
- Tokens are counted from the engine's own usage report, so streamed requests count too.
Video, speech and image endpoints
The Model Store has one model of each kind. Each runs on a GPU of its own like a text endpoint, with the same keys, limits, idle stop, custom domain and pricing.
| Model | Makes | Engine | GPU |
|---|---|---|---|
| Wan 2.2 T2V A14B | 5 second clips at 832x480, 480x832, 1280x720 or 720x1280 | SGLang | One GPU with at least 80 GB of memory |
| Kokoro 82M | Speech in mp3, wav, opus, flac, aac or pcm, with many voices and languages | Kokoro | The smallest GPUs |
| FLUX.1 [schnell] | 1 to 4 PNG images at 1024x1024, 1152x896, 896x1152, 1344x768 or 768x1344, in 4 steps | SGLang | One GPU with at least 48 GB of memory |
FLUX.1 [schnell] is gated on Hugging Face: add a token from an account that accepted its terms (see Custom and gated models).
Make a video
A clip is a job: start it, follow it until it is completed, then download the mp4.
curl https://<name>-<id>.spheron.host/v1/videos \
-H "Authorization: Bearer $SPHERON_ENDPOINT_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "<name>", "prompt": "A red fox runs through fresh snow at sunrise", "size": "832x480"}'
curl https://<name>-<id>.spheron.host/v1/videos/<id> -H "Authorization: Bearer $SPHERON_ENDPOINT_KEY"
curl -o clip.mp4 https://<name>-<id>.spheron.host/v1/videos/<id>/content -H "Authorization: Bearer $SPHERON_ENDPOINT_KEY"- The address serves
POST /v1/videos,GET /v1/videos(the key's own clips),GETandDELETE /v1/videos/{id},GET /v1/videos/{id}/content,GET /v1/modelsandGET /health. - A clip belongs to the key that started it. Other keys get
404for it and do not see it in the list. - A clip can take several minutes. It holds its key's place under Requests at once until it finishes, and the endpoint does not stop for idle while one renders.
DELETEdeletes a finished clip. One still rendering answers409video_in_progress, since it cannot be stopped.- Clips in progress are lost if the engine restarts.
Make speech
curl https://<name>-<id>.spheron.host/v1/audio/speech \
-H "Authorization: Bearer $SPHERON_ENDPOINT_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "<name>", "input": "Hello from my own endpoint.", "voice": "af_heart", "response_format": "mp3"}' \
-o speech.mp3The address serves POST /v1/audio/speech (OpenAI's speech API, with speed from 0.25 to 4 and stream), GET /v1/audio/voices and GET /health.
Make images
curl https://<name>-<id>.spheron.host/v1/images/generations \
-H "Authorization: Bearer $SPHERON_ENDPOINT_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "<name>", "prompt": "A lighthouse on a cliff at dusk", "size": "1024x1024", "n": 2}'- The answer holds each image as a base64 PNG in
data[].b64_json.response_formatcan only beb64_json, andnegative_promptor any field outsideprompt,model,size,n,seedandresponse_formatanswers400. - With no
seed, each request gets a random one. - The endpoint makes at most 4 generations at once; more answer
503server_busy.
Usage and limits
Keys work as on a text endpoint, except that token budgets do not apply: the API refuses one on a video, speech or image endpoint's key. A key's usage counts clips and seconds of video, characters spoken, or images made, in the CSV and in GET /api/endpoints/{endpointId}/keys/{keyId}/usage (videos, videoSeconds, speechChars, images).
Use your own domain
An endpoint can also answer at a hostname you own, like api.yourbrand.com, so your customers never see a Spheron address. Open the endpoint page and go to the Domains tab.
- Type the hostname and add it. Spheron answers with two DNS records.
- In your DNS provider, add both records:
| Type | Name | Value |
|---|---|---|
TXT | _spheron-verify.<hostname> | the token Spheron shows |
CNAME | <hostname> | edge.spheron.host |
- Wait. Spheron checks the
TXTrecord every minute. Once it finds it, Spheron sets up the hostname and issues its certificate. The domain is usually live within 15 minutes of the DNS change, and the tab shows each record as found or not yet.
Things to know:
- If your DNS is on Cloudflare, set the
CNAMEto DNS only (grey cloud), not proxied. Spheron already serves the hostname through Cloudflare, so the proxy is not needed. - An endpoint has one domain. To change it, remove it and add another.
- A subdomain such as
api.yourbrand.comalways works. A root domain such asyourbrand.comneeds a DNS provider that supports CNAME flattening, sold as ALIAS or ANAME records. - A domain that fails shows its reason, with Try again and Remove. Without both records after 7 days, it fails.
- Remove stops requests to the hostname within a minute. The endpoint's own
spheron.hostaddress keeps working. - Domains are included in the endpoint fee.
- Your endpoint keys, key limits, budgets, wake on request and the path rules work the same on your hostname. Like every address, it refuses HTML answers from the engine.
Try it in the playground
Click Open in playground on the endpoint page to try the model from the dashboard. You need no key there.
- Playground settings: system prompt, temperature, max tokens, top P, stop sequences, seed and penalties.
- Tool calling: add your own functions or a preset (weather, time, search), see each call the model makes, and send results back for its next message.
- Output: text, a JSON object, or JSON that matches a schema.
- Reasoning: turn thinking off on endpoints whose engine separates it.
- Images: attach images to a message for models that read them: PNG, JPEG, WebP or GIF, up to 4 per message and 4 MB each. Click an image to see it over the whole page.
- View code: copy the open chat and its settings as a curl, Python or TypeScript request.
Video, speech and image endpoints open the same playground. Describe a clip or an image, or type the text to speak, and the result appears in the thread with Download, how it was made and how long it took. Size, seed, voice, format, speed and number of images are in Playground settings. Saved chats keep prompts and settings, not the media itself: a saved video chat loads its clips again while the endpoint still has them.
Chats are saved in your browser, per endpoint. Playground messages go through the endpoint like any request: they count in its metrics and wake it when it is stopped. They add no charge beyond the endpoint's own.
Pricing
An endpoint costs its GPU, plus an endpoint fee while it serves.
| Part | Rate | Bills |
|---|---|---|
| GPU | The offer's hourly price | From creation until the endpoint is deleted, except while stopped |
| Endpoint fee | 5% of the GPU's hourly price, at least $0.05 per hour | Only while the endpoint serves |
| Model weights | Included | On the VM's boot disk |
For example, an endpoint on an H100 at $2.95 per hour costs $3.10 per hour while serving: $2.95 for the GPU and $0.15 for the fee.
- The GPU bills during setup too, before the endpoint serves.
- A stopped endpoint pays no GPU and no fee. The VM's boot disk keeps billing at the provider's storage rate while stopped, as on any stopped instance.
- Requests are not billed per token.
Stop when idle
An endpoint can stop itself when no requests come in, and start again when one arrives.
- Idle stop stops the endpoint after a set time with no requests: 15 minutes, 1 hour, 4 hours, 1 day, or never in the dashboard, and any whole number of minutes from 5 to 10,080 (7 days) through the API. A request still being answered counts as use.
- Wake on request starts a stopped endpoint when a request arrives. That request gets
503endpoint_startingwith aRetry-Afterheader. The VM starts, the engine loads the weights from disk, and the endpoint serves again after a few minutes. Retry once it is up.
Idle stop is offered only where stopping the VM ends GPU billing. Where it does not, the create page and the endpoint page say so, and the API answers 400 endpoint_provider_unsupported.
Manage an endpoint
The endpoint page shows its state, address, keys, cost, traffic, GPU usage and engine log.
- Stop and Start stop and start the VM. While stopped, requests get
503:endpoint_startingwith wake on request, otherwiseendpoint_stopped. - Restart the engine restarts the model server without touching the VM.
- Turn into a plain instance keeps the VM and the running engine and ends the endpoint. The fee stops, the address and keys stop working within a minute, and the VM bills as a normal instance. It cannot be undone.
- Delete endpoint terminates the VM. The address and keys stop working within a minute.
You can SSH into the endpoint's VM with the key you chose. Editing the engine's service on the VM marks the endpoint as customized, and Spheron stops managing restarts. Repair puts the managed engine back.
Metrics and GPU usage
- Traffic: requests per minute, 4xx and 5xx errors, time to first token (p50 and p95), time per output token, requests running and waiting, KV cache use, and tokens in and out. Kept for 30 days.
- GPUs: load, memory used, power draw and temperature per GPU, and how many GPUs are busy, read live from the VM.
- Engine log: the model server's last 500 lines and the setup steps' output, read from the VM when you open it. Spheron keeps copies for 30 days: the latest one read, one when the endpoint fails, goes down or is deleted, and the output of a setup step that failed. When the VM does not answer, the page shows the last copy kept.
Ended endpoints
The Ended tab on the Endpoints page lists deleted endpoints and those turned into plain instances. Each keeps its page, its timeline, its traffic and its kept engine and setup logs for 30 days, and its keys' usage for 400 days.
Errors from the endpoint
These come from the endpoint's address, in the OpenAI error format (error.message, error.code):
| Status | Code | Meaning |
|---|---|---|
401 | missing_api_key | No key was sent. Send it as Authorization: Bearer <key>. |
401 | invalid_api_key | The key is wrong, revoked, or belongs to another endpoint. |
401 | key_expired | The key's expiry has passed. Ask the endpoint owner for a new one. |
403 | key_disabled | The endpoint owner turned the key off. |
429 | rate_limit_exceeded | The key is over its request rate. Slow down and retry. |
429 | concurrency_limit_exceeded | The key has as many requests running as its limit allows. Retry when one finishes. |
429 | insufficient_quota | The key has used its token budget for this period. |
503 | endpoint_starting | The endpoint is setting up, starting, or waking. Retry after Retry-After seconds. |
503 | endpoint_stopped | The endpoint is stopped and wake on request is off. Start it. |
503 | endpoint_failed | The endpoint failed to start. Its page says why. |
503 | server_busy | The endpoint is reading too many large requests at once, or an image endpoint is already making 4 generations. Retry after Retry-After seconds. |
400 | invalid_request | A chat completion or completion whose body is not a JSON object, or whose stream is not true or false; or a video, speech or image request with a field or value the model cannot take. The message names it. |
408 | request_timeout | The request body took longer than a minute to arrive. Send it again. |
409 | video_in_progress | The clip is still rendering and cannot be deleted. Delete it once it has finished. |
413 | request_too_large | The request body is over 8 MB. |
502 | engine_unreachable | The model server did not answer, for example during a restart. Retry. |
404 | endpoint_not_found | No endpoint at this address. |
404 | not_found | The path is not one the endpoint serves (see Call the endpoint and Video, speech and image endpoints). |
Use it from an AI assistant
Through AI connections, an assistant can list the Model Store, create endpoints, read their state, metrics and engine log, change idle stop, restart or repair the engine, and create, limit, turn off or revoke keys and read their usage. It can also list, add and remove the endpoint's custom domain. A new key is shown once, to the assistant that made it, which passes it on to you.
Use the API
Every action on the endpoint page is in the API, with a Platform API key. See Model Store in the API reference.
What's next
Troubleshooting
Issue: The create is refused for the model
Symptoms: Creating the endpoint fails with a message about Hugging Face.
Diagnosis: The repository does not exist, is private, or is gated and the token has no access.
Resolution: Check the repository name on Hugging Face. For a gated model, accept its terms there and add a token from that account.
Issue: The endpoint failed during setup
Symptoms: The state is Failed, with a reason on the page.
Diagnosis: The engine install ran past 40 minutes, the download made no progress for 20 minutes, the instance's disk filled up, or the engine could not start the model on this GPU. The VM keeps running and billing until you delete it.
Resolution: Read the reason and the engine log, then delete the endpoint. Create it again on a GPU with more memory, a larger disk, or with another precision.
Issue: Requests get 503 endpoint_starting for minutes
Symptoms: Every request answers 503 endpoint_starting.
Diagnosis: The endpoint is still setting up, or a request woke it and the VM is starting.
Resolution: Wait for the state on the endpoint page to read Serving, then retry.