Skip to main content

Managed Endpoints

A Managed Endpoint is your own API for an open-weight model that Jarvislabs has already set up. You pick a model from our catalog, set how many GPUs it can scale to, and get an OpenAI-compatible URL. The model runs on GPUs that only your endpoint uses, and you pay for the time those GPUs run.

How it differs from our other two ways to serve a model:

  • Token Factory gives you a shared API for models that we run. You pay per token, and you don't control the GPUs.
  • Serverless gives you your own endpoint for any model that you bring. You choose the inference engine, the GPU and every setting yourself.
  • Managed Endpoints sit in between. You get your own endpoint on your own GPUs, as with Serverless. But we have already chosen the GPU, the precision and the engine settings for each model, tuned them so that the model runs as efficiently as possible, tested them, and loaded the weights. You only decide how the endpoint scales.

Managed Endpoints run on the same platform as Serverless, so workers, scaling, storage and billing work the same way. To learn more about any of these, read Serverless.

Managed Endpoints are in beta, so their features and limits can change. In the dashboard, the CLI and the API, an endpoint is also called a deployment.

Which product to use​

This table compares the three products in more detail.

Token FactoryManaged EndpointsServerless
What you getA shared API for models that we runYour own endpoint for a model from our catalogYour own endpoint for any Hugging Face or Ollama model
GPUsRun and scaled by us, with a separate prompt cache for each accountUsed only by your endpointUsed only by your endpoint
SetupNone. Send a request.Pick a model and set the scaling.Pick the model, engine, GPU and settings.
You pay forTokensThe time your workers run, plus storageThe time your workers run, plus storage for the model
Cost when idleNothingStorage only, if you scale to zeroStorage only, if you scale to zero
CapacityShared, with rate limitsAs many workers as you allow, if GPUs are freeAs many workers as you allow, if GPUs are free
Good forGetting started, changing traffic, trying many modelsSteady traffic and capacity that is yours aloneModels that are not in our catalog

Create an endpoint​

1. Pick a model​

Open Endpoints in the dashboard and click New endpoint. The Ready to deploy list shows every model that you can deploy as a Managed Endpoint.

The Ready to deploy list in the Endpoints page, with the family and GPU filters and one model's hardware, price and Deploy button highlighted
  1. Filter the list by model family or GPU type. The search box above the list finds a model by name.
  2. Each option shows the GPUs that one worker uses, the context length, the price per worker per hour, and a Deploy button. Some models have more than one option, for example a faster version on more GPUs.

Below the list, Custom endpoint lets you deploy a model that is not in the catalog. That is our Serverless product.

2. Set the scaling​

Click Deploy on the model that you want. The form shows what we configured for the model and the settings that you choose.

The Deploy form for a managed model, with the fixed configuration, the model name for requests, your settings, the cost panel and the Create Deployment button highlighted
  1. Configured by Jarvislabs. The GPU per worker, precision, context length, input and output types, capabilities and region. You can't change these.
  2. Model name in requests. Send this name in the model field of each request.
  3. The settings that you choose. The table below explains each one.
  4. The cost per hour of one worker, of your minimum workers, and of your maximum workers.
  5. Create Deployment starts the endpoint.
SettingWhat it doesRange
Endpoint nameA name to find the endpoint in the dashboard. It must be unique among your managed endpoints in the region.Up to 255 characters
Min WorkersWorkers that keep running even when there are no requests. Set 0 to scale to zero when idle.0 to 100
Max WorkersThe most workers the endpoint can start when traffic grows. It must be at least 1, and at least Min Workers.1 to 100
Idle TimeoutHow long, in seconds, a worker above the minimum stays up with no requests before it stops.0 to 86,400
Concurrent RequestsHow many requests one worker handles at once. The default is a starting value from our own tests of the model. Tune it for your traffic, as How do I choose Concurrent Requests? explains.1 to 200

We also set a Wait time for each model. It is how long a request can wait for a free worker before it fails. The Overview tab shows it.

3. Wait for it to start​

Click Create Deployment. The endpoint starts in the Starting state. The model weights are already prepared on our storage, so nothing is downloaded from the internet. The status can show Downloading model while we copy the prepared files.

  • With Min Workers at 1 or more, the endpoint changes to Running when all its minimum workers are ready. This usually takes a few minutes. If they can't all start, the endpoint fails, and the dashboard shows the error.
  • With Min Workers at 0, the endpoint changes to Running without a worker. The first request starts one. See How scaling works.

When you create the endpoint, the region needs free GPUs for its minimum workers, or for one worker if the minimum is 0. If they are not free, the dashboard tells you, and you can try again later.

Call your endpoint​

You need three values:

  • Your API key. See Create an API key.
  • The base URL. The endpoint's Overview tab shows it in the Call this endpoint example. While the endpoint is running, jl deploy get <deployment_id> also prints it. It has the form https://serverlessn.jarvislabs.net/openai/<deployment_id>/v1 in the IN2 region. In IN1, the host is serverlessc.jarvislabs.net.
  • The model name. The API model name on the Overview tab, which is the same as Model name in requests on the form.

Save the key and the URL in environment variables:

export JARVISLABS_API_KEY="<your API key>"
export ENDPOINT_URL="https://serverlessn.jarvislabs.net/openai/<deployment_id>/v1"

The dashboard's example uses the variable name JARVIS_API_TOKEN. Any name works, as long as you use the same one in your command. In the examples below, replace gemma-4-26b-a4b-it with your endpoint's API model name.

curl "$ENDPOINT_URL/chat/completions" \
-H "Authorization: Bearer $JARVISLABS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemma-4-26b-a4b-it",
"messages": [{"role": "user", "content": "Write one sentence about the monsoon."}],
"max_tokens": 1024
}'

The endpoint uses the Chat Completions format, like Token Factory. Streaming, tool calling, JSON output, images and the thinking settings in chat_template_kwargs work on models that support them. The form and the Overview tab list each model's capabilities. A few details differ from Token Factory:

  • When the model thinks before it answers, the thinking comes back in message.reasoning, or in delta.reasoning when you stream.
  • The endpoint has no GET /models route. Use the model name from the dashboard.

Prompt caching works on Managed Endpoints too. When the start of a prompt matches a recent prompt, the endpoint skips that part and answers faster. To get the most cache hits in your own app, send the same x-session-id header with every request in a conversation. See Prompt caching.

How scaling works​

Each worker is one copy of the model on its own GPUs. Requests go to a worker that has a free slot.

  • When every worker is busy, the endpoint starts another worker, up to Max Workers. A new request waits for a free slot for up to the Wait time, and it can wait longer while a new worker starts. If the wait runs out, the request fails with HTTP 504.
  • On some models, a request can fail sooner. It fails with HTTP 429 and a Retry-After header when the queue is full. A request that is not streamed fails with HTTP 408 when it reaches our overall time limit.
  • When a worker above Min Workers has had no requests for the Idle Timeout, it stops, and so does its billing.
  • With Min Workers at 0, the endpoint scales to zero when it is idle. The next request starts a worker. Depending on the model, that request either waits for the worker, or fails at once with HTTP 503 and a Retry-After header. If it waits and the worker is not ready in time, it fails with HTTP 504. If the request fails with 503 or 504, send it again. If the response has a Retry-After header, wait that many seconds first.
  • A new worker needs a free GPU in the region. If none is free, the request fails with HTTP 503.
Keep workers warm for production

Starting a worker takes minutes, and it needs a free GPU at that moment. At busy times, a free GPU isn't always available. For production workloads, keep Min Workers at the number of workers that your normal traffic needs, and at least 1. See Will autoscaling always find a GPU?

Monitor your endpoint​

Open an endpoint from the Endpoints list to see its details.

An endpoint's Overview tab, with the header, the edit and delete buttons, the tabs, the status cards, the API model name and the Call this endpoint example highlighted
  1. The endpoint's name, status, region and model.
  2. Edit and Delete.
  3. The tabs:
    • Overview shows the configuration and the model details.
    • Workers shows each running worker, its hourly rate, its cost so far, and when it will scale down.
    • Logs shows the recent logs of the running workers and follows new lines as they arrive.
    • Usage shows the base URL and code to call the endpoint.
  4. The status, the healthy workers, the requests that are waiting, and the total cost so far.
  5. API model name is the value for the model field.
  6. Call this endpoint is a ready-to-run cURL command.

Change or delete an endpoint​

  • Edit. While the endpoint is Running, you can change its name, idle timeout, minimum and maximum workers, and concurrent requests. To use a different model or GPU, create a new endpoint. If you raise Min Workers when the region has no free GPUs, the change fails.
  • Delete. Deleting an endpoint starts a cleanup that stops its workers and removes its storage. Billing for each part stops when it is removed. You can't undo a delete.

Pricing and billing​

  • Each running worker costs its GPU price plus a 50 GB disk, per hour. The catalog and the form show the price per worker. You pay for the time each worker runs.
  • Each endpoint also has a storage volume for the engine's cache files. The Overview tab shows its size as Storage. It is billed for as long as the endpoint exists, even when it has no workers.
  • Workers that you keep warm with Min Workers cost money even when they handle no requests.
  • To stop all billing, delete the endpoint.

The cost is paid from your Jarvislabs wallet. The Overview and Workers tabs show what each endpoint has cost so far.

Limits​

Your endpoint's capacity is its number of workers times Concurrent Requests. When all of that is in use, new requests wait, as How scaling works describes. To handle more traffic, raise Max Workers or Concurrent Requests.

Workers need free GPUs in the region. If you need guaranteed capacity, or more GPUs than are free, email support@jarvislabs.ai with the model and the traffic that you expect.

Errors​

StatusWhat it meansWhat to do
400 and other 4xx codes not listed hereThe model rejected the request. The body has the model's own error message.Fix the request.
401The API key is missing or wrong.Check the Authorization header.
402Your account has no credit to start a worker.Recharge your wallet.
404The endpoint does not exist, is not running, or the model name is wrong.Check the deployment ID, the status and the model name.
408The request reached our overall time limit before the reply was ready.Retry. Stream long replies.
413The request body is larger than 100 MB, or, on some models, one inline image or video is larger than 25 MB.Send smaller files, use URLs for large media, or shorten the prompt.
429The endpoint's queue is full.Wait for the Retry-After time, then retry. Raise the worker limits if it happens often.
500An unexpected error on our side.Retry. If it keeps happening, contact support.
502A worker had an error or could not be reached.Retry.
503No worker is running yet, no GPU is free for a new worker, or the service is busy.Wait for the Retry-After time if there is one, then retry. Keep more workers warm if it happens often.
504A worker is still starting, the request waited longer than the Wait time, or the model took too long to answer.Wait a few seconds and retry.

Check the HTTP status first. With stream set to true, the status can be 200 before the request fails, so also check the last event of the stream for an error.

Use the CLI and SDK​

Everything in the dashboard also works from the jl CLI. Install it and sign in first:

uv tool install jarvislabs     # or: pip install jarvislabs
jl setup # paste your API key when it asks

Then:

jl deploy managed-models list                  # models you can deploy, with GPU and price
jl deploy managed-models create # pick a model and answer the prompts
jl deploy managed-models create gemma-4-26b-a4b-it \
--name my-gemma --min-workers 1 --max-workers 2

jl deploy list # your endpoints
jl deploy get <deployment_id> # status, base URL and cost
jl deploy chat <deployment_id> "Hello" # send a test message
jl deploy logs <deployment_id> # follow the worker logs
jl deploy update <deployment_id> --min-workers 0
jl deploy delete <deployment_id> # delete it and stop all billing

The CLI's defaults for create are 0 minimum workers, 1 maximum worker and a 300-second idle timeout. Pass the flags to change them. Run jl deploy --help or jl deploy managed-models create --help to see every command and option.

To use the Python SDK in your own project, install it there with pip install jarvislabs:

from jarvislabs import Client

with Client() as client:
deployment_id = client.deployments.create_managed(
"gemma-4-26b-a4b-it",
name="my-gemma",
region="IN2",
min_workers=1,
max_workers=2,
idle_timeout=300,
)
client.deployments.wait_until_running(deployment_id, region="IN2")
print(client.deployments.openai_base_url(deployment_id, region="IN2"))
Use your coding agent

jl setup also offers to install a skill file that teaches your coding agent, such as Claude Code, Codex or Cursor, how to use jl. When it asks, choose yes, and select each agent that you use. Then you can ask your agent, for example:

"Deploy gemma-4-26b-a4b-it as a managed endpoint with one warm worker, test it, and give me the base URL."

See Using with AI coding agents.

FAQ​

Can I change the GPU, the engine settings or the model version?​

No. We fix these for each model in the catalog. If you need a different setup, use Serverless, or email support@jarvislabs.ai to ask about it.

Can an endpoint scale to zero?​

Yes. Set Min Workers to 0. You then pay only for storage while the endpoint is idle. The first request after an idle period starts a worker, which takes minutes and needs a free GPU.

Will autoscaling always find a GPU?​

Autoscaling adds workers on demand, using the GPUs that are available in the region at that moment. We can't guarantee that a GPU is free at the exact moment you need one, so at busy times a new worker can take longer to start.

For production workloads, keep enough workers warm. Set Min Workers to the number of workers that your normal traffic needs, and at least 1. These workers are always ready, and autoscaling handles the peaks. If you need guaranteed capacity, email support@jarvislabs.ai, and we'll plan it with you.

How do I choose Concurrent Requests?​

The default value is a starting point. We set it from our own tests of the model, not from your traffic. The best value for you depends on your requests: how long the prompts and replies are, how much the prompts have in common, and how fast each reply needs to be.

To tune it, send test traffic that looks like your real traffic, and watch how fast the replies come back:

  • If the replies are still fast enough, raise Concurrent Requests. Each worker then handles more requests at once, so the same workers serve more traffic, and each request costs you less.
  • If the replies are too slow, lower it.

To change the value, click Edit on the endpoint, or run jl deploy update <deployment_id> --concurrent <number>.

Can other people call my endpoint?​

No. Only your account can call it.

Do you store my prompts, or train on them?​

No. We don't store your prompts or replies, and we don't use them to train models. We keep only request metadata, such as token counts, for billing and usage reports. See Data privacy and regions.

Where does my endpoint run?​

In the region shown on the deploy form and on the endpoint's Overview tab, on Jarvislabs GPU servers in India. Your endpoint, its workers and its storage stay in that region. See Data privacy and regions.