API models
Give the base model, a trained adapter or another Hugging Face model a name your applications call through the API, waking on request or always on.
A model in API models is a name, such as support, that your applications call through the API. Behind the name, GPUs on Tensorant compute or in your RunPod account serve the project's base model, one of its trained adapters, or another model from Hugging Face. Choose On demand, which starts workers when requests arrive, or Always on. The management API calls these published models.
A decision model is published with the same form and answers on /v1/decisions instead: see Serve decision models.
Open Models under Use in the sidebar. API models lists models from every project, with what each serves, its GPU, how it stays available and its price. Test sessions below it belong to the open project. You can create an API model directly; a test session is not required.
Before you start
- The owner role. Only owners publish, change, extend, start, stop and delete published models. Everyone else can see them, and members can try them in the Playground. See roles.
- GPUs. Tensorant compute with credits, or RunPod compute and a network volume of your own, connected in Connections, which needs the Own compute subscription.
- The project open whose model you want to publish.
- To publish an adapter: a full training run that shows Adapter ready or Completed, and GPU released. Adapters of trial runs can't be published.
- For a gated or private model: your organization's own Hugging Face token, from an account that has access to it.
- Room for another API model. Every organization can have up to 1,000. The API models card and the create dialog show it, such as "API models: 3 of 1,000". Stopped models count until you delete them. Once the limit is reached, Create API model is disabled with the reason. See Limits on every organization.
- For always on: a free deployment slot.
Published models on Tensorant compute
A model on Tensorant compute is charged per second while its GPU runs, from your credits, at the price in GPU pricing. An always-on model keeps a GPU running and is charged the whole time; a wake-on-request model is charged only while it runs and sleeps after its warm period. A machine runs at most 24 hours: an always-on model's is then replaced by the next, with a pause of a few minutes while it starts.
If your balance reaches $0, the model answers 402 (insufficient_credits) and does not wake. After you add credits, an always-on model starts again by itself, and a wake-on-request model wakes on the next request.
On demand or always on
Create API model shows the two side by side, with their trade-offs. On demand is chosen at first.
| On demand | Always on | |
|---|---|---|
| Runs on | On Tensorant compute, a machine started by the first request and stopped after its keep-warm time. On your RunPod account, Serverless workers, each on a GPU of its own, or several, while it runs | On Tensorant compute, a machine that runs the whole time and is replaced daily, with a pause of a few minutes. On your RunPod account, a GPU or a machine of several that runs the whole time. Shared by your models with the same setup |
| While nobody calls it | Workers stop after their warm time; $0 once none are running | The GPU keeps running and billing |
| First request after a quiet spell | Waits for a cold start, about a minute, or gets 503 with Retry-After |
Answered at once |
| You pay for | Each worker while it runs, including its warm time | The GPU, every hour of the days you choose. The card shows about what a day costs at today's price |
| Runs for | Until you stop it | The days you choose, then it ends. Extend it any time; it never renews by itself |
| Uses a deployment slot | No | Yes |
Choose on demand when traffic is occasional or bursty, for development and testing, or when callers can wait for a cold start now and then. You pay only while workers run.
Choose always on when traffic is steady through the day, or when every answer must come quickly. You pay for the GPU all the time, so it costs more than wake on request when the model sits idle.
You can switch later with Edit settings; the name stays the same.
Cold starts
An on-demand model with no worker running shows Available with "Cold start: up to a minute" under it. When a request arrives, Tensorant compute starts a machine (RunPod starts a worker on your own account); this is a cold start. For the caller:
- The request is held while the worker starts, for up to about a minute, then answered as usual. Set your client's timeout to allow for this.
- If the worker is still not ready after that minute, the API answers
503with the codemodel_startingand aRetry-After: 15header. Send the request again after 15 seconds. That request counts toward your organization's API requests, like any other. See Cold starts and retries.
Once a worker answers, the model stays Available and later requests are answered at once. The worker stops after Keep a worker warm (seconds) without requests. Raise it to have fewer cold starts; you pay for the time a worker waits. On your own RunPod account, model files stay on your network volume, so a worker does not download them again. On Tensorant compute, public base models come from a cache kept for your organization alone, and your adapters are fetched when the machine starts.
Create API model
- Open Models under Use in the sidebar and choose Create API model. You can also press ⌘K (Ctrl K) and choose Create API model.
- Under Model to serve, choose This project's base model, one of This project's adapters, or Another Hugging Face model…. They are listed and checked as when you start a test session: see Choose what to serve.
- Enter an API model name. See Names.
- Choose On demand or Always on.
- Choose the Serverless GPU (wake on request) or the GPU (always on) and the Number of GPUs, and set GPU price limit ($/hour). Then set Maximum workers (wake on request) or Run for (days) (always on). See Settings.
- Optional: open Advanced settings for the model revision, the context length, Keep a worker warm (seconds) or Starts allowed in 24 hours, and the advanced serving settings.
- Choose Review API model, check the cost, and confirm with Create API model. For always on, the confirmation gives the total for its days, such as "about $116 for 7 days (at most $336 at your $2/h limit)".
To reuse a ready test session's settings, open its ... menu (or the More actions menu of its page) and choose Create API model from this. This copies its model, GPU choice, number of GPUs, context length and settings. API serving uses separate compute or a matching API server; the test session continues running and billing until it stops. You can also choose Use this adapter, then Create API model, on a run in Runs or on its experiment.
The model shows Starting, then Available. An always-on model usually takes a few minutes; an on-demand model says "Cold start: up to a minute" while no worker runs. If no deployment slot is free, an always-on model shows Cannot start with "No free deployment slot…", and starts once a slot is free.
Choose the model's row, or Connect in its ... menu, to open Connect your app. Copy the API base URL, model name and example request in your preferred language. Open API keys takes you to create a key; set TENSORANT_API_KEY to a key that allows this model, then send the example request. Nonowners can ask an organization owner for a key.
Settings
| Field | Default | Range | What it does |
|---|---|---|---|
| GPU or Serverless GPU | The cheapest that fits | On Tensorant compute: a GPU from the GPU pricing table, at its serving price an hour for the count you choose; wake on request, a worker's price an hour while it runs. On your own RunPod account, always on: Secure Cloud GPUs in your volume's datacenter, at today's price; wake on request: Serverless GPU groups, each priced at its most expensive GPU, per worker while it runs. Each is marked Recommended, Fits or Too small once the model's size is known. | |
| Number of GPUs | 1 | 1, 2, 4 or 8 | The GPUs of the always-on machine, or of each Serverless worker. The model is split across them, so more GPUs serve larger models and longer contexts. The prices in the list are for all of them. See Several GPUs. |
| GPU price limit ($/hour) | 2 | 0.01 to 250 | The highest price per hour, for all the GPUs of a machine or worker. Always on: checked at every start. Wake on request: per worker, checked when the model's server is set up. |
| Maximum workers | 1 | 1 to the limit shown under the field | Wake on request. On your own RunPod account, RunPod adds workers up to this number as requests grow, each on a GPU of its own, or several, while it runs. |
| Run for (days) | 7 | 1 to the limit shown, at most 30 | Always on. When it stops serving. Extend it any time; it never renews by itself. |
| Model revision | main |
Branch, tag or commit | Under Advanced settings. Not for an adapter. Fixed to one commit when you save. |
| Context length (tokens) | 4,096 | 512 to 32,768 | Under Advanced settings. The most tokens one request may hold, prompt and answer together. |
| Keep a worker warm (seconds) | 60 | 5 to 3,600 | Under Advanced settings. Wake on request. How long a worker waits after the last request. Longer means fewer cold starts and more cost. |
| Starts allowed in 24 hours | 24 | 1 to 96 | Under Advanced settings. Always on. Caps how often a GPU is started for this model, failed starts included. |
Published models cannot use FP8 quantization. See FP8 and adapters.
An adapter trained with DPO uses the same publishing flow and API as an SFT adapter. It needs no preference fields in inference requests. LoRA and QLoRA both publish an adapter on the original base checkpoint; a 4-bit training run does not make the published model 4-bit.
Names
A name has up to 63 lowercase letters, digits, dots, underscores or hyphens, and starts with a letter or digit, such as support or support-v2. It is unique in your organization. Applications send it as model, so it cannot be changed: to rename, publish under the new name and delete the old one.
Vision models
A published vision model accepts up to 4 images per request, inline as base64 or as https links. Tensorant downloads linked images and sends them inline: the model's GPU never fetches links. See Images.
Images are on every organization. On a plan Tensorant set up without them, a request with images gets 403 plan_upgrade_required and text is answered, and publishing an adapter trained on images, changing a model to one, or starting a stopped one is refused. A model that is running keeps running if the plan changes. See Images, RL and decision models.
States
| State | Meaning | Does the API answer? |
|---|---|---|
| Starting | A GPU or the model's server is being set up. | No: 503 model_starting, retry after 30 seconds |
| Available · always on | An always-on model's GPU is serving. | Yes |
| Available · "Cold start: up to a minute" | On demand, no worker running. | Yes, after a cold start |
| Available · "Warm" | On demand, a worker is running. | Yes |
| Cannot start | Starting failed. See When a start fails. | No: 503 model_unavailable, "…could not be started. See the Models page of the console." |
| Stopped | An owner stopped it. | No: 503 model_unavailable, "…is stopped. Start it on the Models page of the console." |
| Ended | An always-on model reached its end date. | No: 503 model_unavailable, "…reached its end date on YYYY-MM-DD. Start it again on the Models page of the console." |
Each row of API models shows:
- Name: the name, and the project under it. A decision model is marked Decision.
- Status: its state, such as Available, and under it a note when there is one, such as "Cold start: up to a minute" or the reason a start failed.
- Model: what it serves (the adapter's run name, or the model's name), with Adapter, Base model or Hugging Face model under it.
- GPU: the GPU, such as "2 x NVIDIA H100 80GB HBM3" on several, and under it how it stays available. For always on, its end, such as "Always on, ends in 6 days"; within 72 hours of the end the line gets a warning mark. For wake on request, its workers, such as "On demand, 1 worker at most". Hover for its server.
- Price: for always on, the GPU's price now and its spend so far, such as "$0.69/h" over "$12.40 so far". For wake on request, a worker's price and what its server's Serverless workers cost this month, such as "$0.44/h a worker" over "$3.10 this month". On several GPUs, the price is for all of them.
Choose a row to open Connect your app. Its ... menu holds Connect, Try in Playground while the model answers or can start on request, Start serving when stopped, Extend for an always-on model that is running, Copy name, Edit settings, Try again after a failed start, Stop serving and, once stopped, Delete. Prompts in the Playground count toward your organization's API requests and tokens this month, as an application's requests do. See Playground.
Shared servers
Models of your organization that need the same setup share one server (one always-on GPU or machine, or one wake-on-request server): the same model and revision, the same way of staying available, the same GPU and number of GPUs, context length and advanced serving settings. Models of different projects share too; models with different numbers of GPUs never do. Hover over what a model serves to see its server, for example "Server: Qwen/Qwen3-4B-Instruct-2507 · NVIDIA GeForce RTX 4090 · 2 models", or "2 × NVIDIA GeForce RTX 4090" for a machine of two.
- A server serves its model and every adapter on it, so publishing another adapter usually starts no new GPU.
- Models on a server share its memory and capacity: heavy traffic to one slows the others.
- A server never serves another organization's models. Each API key reaches only the models it may call. See Keys and usage.
- An always-on server uses the lowest price limit and start limit of its models, and runs until the latest end. A wake-on-request server uses the lowest price limit and the highest Maximum workers and warm time.
- Stopping one model keeps the server running for the others. When the last model leaves, the GPU or endpoint is released.
An always-on server's GPU is not listed in Test sessions, but it holds a deployment slot, shown as "always-on name", and Running now lists it under the names of the models it serves. Stop serving there, for owners, stops every model on that GPU: the confirmation says "They share this GPU." In RunPod it is a Pod named tune-infer- followed by an ID. A Serverless server appears in RunPod as an endpoint named tune-serve- followed by its ID.
Change a model
Choose Edit settings in the model's ... menu, edit what you need, and choose Save changes. The name stays, and only what you changed is saved. What it serves can be another adapter of its project, the project's base model, or another Hugging Face model; for a model of another project, open that project first. If the change can start a new GPU, choose Review changes, then confirm the cost with Save and start a GPU.
What a change does to the model while it serves:
- Another adapter on the same base model is loaded into the running server, with no pause. An always-on server takes adapters up to the LoRA rank it was started for (at least 16). A higher rank stops its GPU, then starts one that loads them all: the model, and every model on that server, pauses for a few minutes.
- Another model, GPU, number of GPUs, context length, revision, advanced settings or way of staying available moves the model to a matching server at once. A server already serving with those settings answers it with no pause. Otherwise its new server starts a GPU, and the model pauses for a few minutes until it is ready. Its old server keeps serving its other models; with none left, its GPU is released.
- Price limit, start limit, end date, Maximum workers or warm time changes in place.
During a pause the model shows Starting, and the API answers 503 model_starting with a Retry-After header. Tensorant never runs two GPUs for one server: the old one is stopped first, then the new one starts. A new always-on GPU needs a free deployment slot; the one the old GPU held is free again once it is released, within a minute or two.
For an always-on model, Run for (days from now) sets a new end that many days from now. Leave it empty to keep the end.
Extend an always-on model
An always-on model stops serving at its end and never renews by itself. To keep it serving:
- Choose Extend in the model's ... menu in API models, or in the warning that it ends soon.
- Enter Extend by (days). The dialog shows the new end and about what it costs more at today's price.
- Choose Extend.
The new end is that many days after the current one, and at most 30 days from now. Nothing starts at once: its GPU serves to the end it was started for, then stops, and the next one starts and runs to the new end. The model pauses for a few minutes meanwhile: it shows Starting, and the API answers 503 model_starting.
Within 72 hours of its end, a warning shows on every page of the console, such as "support stops serving in 2 days (Oct 12, 14:00). Apps that call it get an error after that.", with Extend for owners and Open Models. Running now marks it Ends soon. About a day before the end, owners get an email, "model stops serving tomorrow", with a link to the Models page.
Start, stop and delete
- Stop. Choose Stop serving in the ... menu, then confirm with Stop serving. Callers get an error until you start it again. Its GPU is released unless other models share its server.
- Start. Choose Start serving in the ... menu of a stopped or ended model. For always on, enter Run for (days): the dialog shows what it can cost, then choose Start serving. An on-demand model becomes available for requests; its worker starts when called.
- Delete. Stop the model first, then choose Delete in the ... menu and confirm with Delete API model. Callers are told the model does not exist. Its usage stays on the API keys page.
When a start fails
If a GPU cannot start, or a wake-on-request server cannot be set up, the model shows Cannot start with the reason, and Tensorant tries again after 10 minutes. For an always-on model, every start counts toward Starts allowed in 24 hours, failed ones too.
The serving engine can also stop before it has ever answered with these settings. With the default settings on one GPU and no known reason, Tensorant keeps trying. With a known reason, such as running out of memory, with advanced serving settings of your own, or on several GPUs, the model shows Cannot start and Tensorant stops trying, so you are not billed for repeated failures. Owners get an email, "models could not start", with the reason and a link to the Models page. Then either:
- change the settings (often the advanced serving settings, context length, GPU or number of GPUs), which starts it with the new ones; or
- choose Try again in the model's ... menu to start it with the same settings.
For a wake-on-request model, this check applies to the current serving configuration. Older workers that are still running during an update do not prove that its replacement can start. If the new configuration is held after a failure, Tensorant sets the endpoint's maximum workers to zero until an owner changes the settings or chooses Try again.
See When the engine does not start for each reason.
On Tensorant compute, serving logs are shown in the console and no machine IDs are listed. On your own RunPod account, the serving logs are on your network volume, in inference/servers/server ID/workers/: one folder per worker, each with an inference.log. An always-on server's worker folder is named after its RunPod Pod ID. A wake-on-request server's ID is its RunPod endpoint name without tune-serve-.
Costs
- Always on: On Tensorant compute, credits are charged per second at the serving price, from when a GPU is assigned to the machine, including the time to load the image, until the machine stops. On your own account, RunPod bills the server's GPU, or every GPU of its machine, from start until its end or until you stop it, used or not. Models on the same server share the GPU.
- Wake on request: On Tensorant compute, credits are charged per second for each machine that answers, from when its GPU is assigned, including the time to load the image, through the keep-warm time, and nothing while it sleeps. On your own account, RunPod bills each worker while it starts, answers and stays warm. Nothing while asleep. A worker of several GPUs costs its group's price times their number.
- Your network volume, if you use your own RunPod account, is billed separately.
- What you were billed: On Tensorant compute, Price shows what was charged to your credits. On your own RunPod account, Price shows an always-on model's spend so far, marked "(estimate)" until RunPod's billing for its GPU is synced, and a wake-on-request model's Serverless spend this month as RunPod billed it. Models on the same Serverless server share one endpoint, so they share that amount, marked "shared". RunPod's billing can take a while to update. Running now, from the compute line at the foot of the sidebar, lists what costs money now.
- Your organization's limits set how many models you may publish and how many requests a minute and at once they answer. See Limits on every organization.
Limits
| Limit | Value |
|---|---|
| Published models per organization | 1,000 |
| API model name | 63 characters |
| Run for (days) and Extend by (days) | Up to 30 days from now |
| Starts allowed in 24 hours | 1 to 96 |
| Maximum workers | Up to your organization's limit, shown under the field, counted across all wake-on-request models |
| Keep a worker warm (seconds) | 5 to 3,600 |
| Number of GPUs | 1, 2, 4 or 8, on one machine or worker, as the model allows |
| GPU price limit ($/hour) | 0.01 to 250, for the whole machine or worker |
| Context length (tokens) | 512 to 32,768 |
| Retry after a failed start | 10 minutes |
| Cold start wait in the API | Up to about 1 minute, then 503 model_starting |
| Warning before an always-on model ends | 72 hours in the console; an email about 24 hours before |
Limits on requests, such as answer length and time, are in Chat completions.
When something goes wrong
| Message | What to do |
|---|---|
| "Use up to 63 lowercase letters, digits…" or "This organization already publishes a model with that name" | Choose another name. See Names. |
| "Your plan (Plan) allows N published models…" or "An organization can publish 1,000 models…" | Delete a model you no longer need. |
| "Only owners can do this" or "Only owners publish models." | Ask an owner. |
| "Choose a verified adapter from this project" or "Its training GPU is still being released. Publish it once that is done, usually within minutes." | Wait until the run shows Adapter ready and GPU released. |
| "The model could not be read from Hugging Face…" or "This model is gated on Hugging Face…" | Check the model's name. For a gated or private model, connect a Hugging Face token whose account has access. |
| "The model's config.json names no architecture" or "The model needs its own code…" | This model can't be served. Choose another. |
| "Images and vision training aren't part of your organization's plan…" | The adapter was trained on images, and a plan Tensorant set up for your organization leaves images out. Write to [email protected]. See Images, RL and decision models. |
| "Serverless worker limit reached…" or "A wake-on-request model may use at most N workers" | Your wake-on-request models together hit the worker limit. Lower Maximum workers, or stop another model. |
| "A Serverless worker on this GPU costs…", "A Serverless worker on N GPUs of this kind costs…" or "This Serverless GPU is unavailable or has no price" | Raise the price limit, or choose another GPU or fewer GPUs. A worker's price covers all its GPUs. |
| "model has N attention heads, so it can't be split across C GPUs…" or "model has heads that don't divide evenly, so it can't be split across C GPUs…" | Set Number of GPUs to one the message offers. See Several GPUs. |
| "No free deployment slot: this organization runs N at a time…" | Stop a deployment. A GPU being released frees its slot within minutes, and the model starts then. See Deployment slots. |
| "Start limit reached: N starts in 24 hours…" | Find out why starts failed, then raise Starts allowed in 24 hours or wait. |
| "An always-on model runs at most 30 days from now…" | Extend by fewer days, or extend again later. |
| "Choose how many days it runs: its end has passed" | Enter Run for (days). |
| "Stop the model before deleting it" | Stop the model, then delete it. |
| "Resolve launch readiness checks before deploying: …" | Fix each check. See Readiness checks. |
| A reason about memory, serving settings or the number of GPUs | See When the engine does not start. |
| "Storage unavailable. Check its credentials, volume and datacenter." | Check storage in Connections. Tensorant tries again after 10 minutes. |
| "Stopped because the organization was disabled or lost its connections." | For lost connections, reconnect RunPod and storage in Connections, then choose Start serving. If the organization was disabled, contact Tensorant support. |
503 model_starting in your application |
The model is starting or waking. Retry after the Retry-After seconds. |
503 model_unavailable "…reached its end date…" in your application |
An owner starts it again on the Models page, and extends it before its next end. |
403 plan_upgrade_required in your application |
A plan Tensorant set up for your organization leaves images out. Send text, or write to [email protected]. See Images, RL and decision models. |
Need a hand? Visit troubleshooting