Skip to content

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

  1. Open Model Store in the sidebar.
  2. Pick a model, or Custom model to serve any Hugging Face repository by name.
  3. Choose the precision and the engine (vLLM or SGLang).
  4. Pick a GPU. Offers are sorted by fit, and each shows the speed Spheron measured for that model where a benchmark exists.
  5. Name the endpoint. The name becomes part of the address and is the model name in requests.
  6. Choose when it stops itself when idle (see Stop when idle).
  7. 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:

ModelsFunction callingReasoning
Qwen3.5, Qwen3.6, Qwen3.8Yes (qwen3_coder parser)In reasoning_content, apart from the answer
Llama 3.1, Llama 3.3Yes (llama3_json parser)Not a reasoning model
Gemma 4, DeepSeek V4 FlashNot set upNot 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 429 rate_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.

LimitWhat it doesWhen it is reached
Requests at onceHow many requests the key can have running at the same time, 1 to 4,096.429 concurrency_limit_exceeded until one finishes.
Requests a minuteRequests over the last 60 seconds, 1 to 100,000.429 rate_limit_exceeded.
Token budgetPrompt 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.
ExpiresThe 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 (403 key_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.

ModelMakesEngineGPU
Wan 2.2 T2V A14B5 second clips at 832x480, 480x832, 1280x720 or 720x1280SGLangOne GPU with at least 80 GB of memory
Kokoro 82MSpeech in mp3, wav, opus, flac, aac or pcm, with many voices and languagesKokoroThe smallest GPUs
FLUX.1 [schnell]1 to 4 PNG images at 1024x1024, 1152x896, 896x1152, 1344x768 or 768x1344, in 4 stepsSGLangOne 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), GET and DELETE /v1/videos/{id}, GET /v1/videos/{id}/content, GET /v1/models and GET /health.
  • A clip belongs to the key that started it. Other keys get 404 for 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.
  • DELETE deletes a finished clip. One still rendering answers 409 video_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.mp3

The 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_format can only be b64_json, and negative_prompt or any field outside prompt, model, size, n, seed and response_format answers 400.
  • With no seed, each request gets a random one.
  • The endpoint makes at most 4 generations at once; more answer 503 server_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.

  1. Type the hostname and add it. Spheron answers with two DNS records.
  2. In your DNS provider, add both records:
TypeNameValue
TXT_spheron-verify.<hostname>the token Spheron shows
CNAME<hostname>edge.spheron.host
  1. Wait. Spheron checks the TXT record 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 CNAME to 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.com always works. A root domain such as yourbrand.com needs 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.host address 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.

PartRateBills
GPUThe offer's hourly priceFrom creation until the endpoint is deleted, except while stopped
Endpoint fee5% of the GPU's hourly price, at least $0.05 per hourOnly while the endpoint serves
Model weightsIncludedOn 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 503 endpoint_starting with a Retry-After header. 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_starting with wake on request, otherwise endpoint_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):

StatusCodeMeaning
401missing_api_keyNo key was sent. Send it as Authorization: Bearer <key>.
401invalid_api_keyThe key is wrong, revoked, or belongs to another endpoint.
401key_expiredThe key's expiry has passed. Ask the endpoint owner for a new one.
403key_disabledThe endpoint owner turned the key off.
429rate_limit_exceededThe key is over its request rate. Slow down and retry.
429concurrency_limit_exceededThe key has as many requests running as its limit allows. Retry when one finishes.
429insufficient_quotaThe key has used its token budget for this period.
503endpoint_startingThe endpoint is setting up, starting, or waking. Retry after Retry-After seconds.
503endpoint_stoppedThe endpoint is stopped and wake on request is off. Start it.
503endpoint_failedThe endpoint failed to start. Its page says why.
503server_busyThe endpoint is reading too many large requests at once, or an image endpoint is already making 4 generations. Retry after Retry-After seconds.
400invalid_requestA 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.
408request_timeoutThe request body took longer than a minute to arrive. Send it again.
409video_in_progressThe clip is still rendering and cannot be deleted. Delete it once it has finished.
413request_too_largeThe request body is over 8 MB.
502engine_unreachableThe model server did not answer, for example during a restart. Retry.
404endpoint_not_foundNo endpoint at this address.
404not_foundThe 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.