Skip to main content

Deploy a self-serve deployment

Self-serve deployments give you reserved inference capacity on Crusoe's optimized inference engine and managed infrastructure. You choose a base model (or a fine-tuned adapter) and a deployment configuration, and Crusoe handles engine selection, tuning, autoscaling, and rate limiting. You get predictable performance, dedicated throughput, no shared rate limits, and per-GPU-hour billing you control.

Prerequisites

  • Install the OpenAI Python client (pip install openai httpx), if you use the Python examples.
  • For Low-Rank Adaptation (LoRA) adapters, bring a checkpoint from a successful training job completed with Serverless Fine-Tuning.

1. Log in or create an account

Log in to the Crusoe Cloud Console or Create an account.

After you log in, switch to the Intelligence Foundry using the product selector in the top-right of the console.

2. Generate an API key and authenticate

To create an API key through the console:

  1. From the console, select the organization name in the top-left corner of the console and click Manage Organization.
  2. Select Security > Inference API keys from the left navigation.
  3. Click Create.
  4. (Optional) Enter an alias for your key.
  5. (Optional) Enter an expiration date for your key.
  6. Copy the API key. Make sure that you save the key in a secure location before leaving the page.

Authenticate against the API

All API calls require an Intelligence API key and the API URL.

  1. Export the token and base URL in your shell:

    export API_TOKEN='<your token>'
    export URL='https://api.inference.crusoecloud.com/v1/chat/completions'
  2. Construct an OpenAI client pointed at the Crusoe gateway. Every Python example on this page assumes you have this openai_client in scope:

    from openai import OpenAI
    import httpx, os

    openai_client = OpenAI(
    api_key=os.environ["API_TOKEN"],
    url=f"os.environ['URL']",
    http_client=httpx.Client(proxy=None, trust_env=False),
    )

The full OpenAPI specification is published at api.intelligence.crusoecloud.com/docs.

3. Choose a base model and deployment configuration

Define your deployment by selecting the base model you want to serve and the deployment configuration you want to optimize for.

Deployment configurations

Each deployment offers one or more optimization profiles. Pick the configuration that matches your workload requirements and Crusoe will apply the corresponding engine, hardware, and optimizations for you—no hand-tuning required.

ConfigurationOptimizationBest for
ResponsivenessLow latency, optimized for time-to-first-tokenInteractive applications, real-time inference, latency-sensitive workloads
ThroughputCost efficiency at scale, optimized for token volumeBatch processing, high-volume workflows, cost-per-token minimization
BalancedHybrid blend of throughput and responsiveness, optimized to support moderate token volume and latencyGeneral purpose production traffic

Supported models

Self-serve deployments support the following base models for both configurations. You can also deploy LoRA adapters trained on these base models through Serverless Fine-Tuning.

LabModelInput modalitiesOutput modalities
Moonshot AIKimi K2.6Text, ImageText
DeepSeekDeepSeek V4 FlashTextText
Z AIGLM 5.1TextText
OpenAIGPT-OSS 120BTextText
OpenAIGPT-OSS 20BTextText
QwenQwen3.6 35BImage, TextText
QwenQwen3.6 27BImage, TextText
GoogleGemma 4 31B ITImage, TextText
QwenQwen3.5 9BImage, TextText
MetaLlama 3.3 70B InstructTextText
MetaLlama 3.1 8B InstructTextText
QwenQwen3 8BTextText
QwenQwen3.5 2BImage, TextText
QwenQwen3 235B A22B InstructTextText

4. Create a deployment

Create a deployment from the console to get started.

  1. Sign in to the console and switch to Intelligence Foundry using the workspace menu in the top-right corner.

  2. Select Self-Serve Deployments from the Inference section of the left navigation. The page lists every deployment in your project with its status, model, hardware, replicas, and metadata.

  3. Click Create deployment and complete the form:

    • Select a base model or fine-tuned adapter
    • Select a deployment configuration (Responsiveness, Throughput, or Balanced)
    • Select the number of replicas you want your deployment to support

    The hourly cost associated with your chosen deployment configuration is displayed before you confirm.

  4. Click any row to view activity logs, endpoint metadata, and its current replica count.

5. Check deployment status

A new deployment provisions reserved capacity, which can take up to 40 minutes to complete. Check the status of your deployment from the deployment table on the Self-Serve Deployments page or from the deployment details page for your chosen deployment. The status updates to Ready when the deployment is available to serve traffic.

A deployment moves through the following states during its lifecycle:

StateDescription
CreatingCapacity is being provisioned and the engine is starting up.
ReadyThe deployment is ready to serve traffic.
Scaling upThe deployment is scaling up its active replicas.
Scaling downThe deployment is scaling down its active replicas.
SyncingThe deployment alias is being updated.
FailedThe deployment couldn't be created or updated.
DeletingThe deployment is being torn down.
DeletedThe deployment has been removed.

6. Run inference

When the deployment is Ready, send requests to it through the OpenAI-compatible Chat Completions API using your API key. Pass the deployment alias as the model.

import os
from openai import OpenAI

client = OpenAI(
base_url=os.environ['URL'],
api_key=os.environ['API_TOKEN'],
)

response = client.chat.completions.create(
model='<deployment alias>',
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Summarize the theory of relativity in one sentence."}
],
)

print(response.to_json())

Because your deployment runs on reserved capacity, its throughput is bounded by replica count rather than a shared rate limit. To add headroom for traffic spikes, increase the replica count on the deployment in the next step.

7. Manage deployments

You can update a running deployment (for example, to change replica count or the deployment alias) or delete one you no longer need. Billing stops when the deployment is deleted.

To view all deployment management options, select the three-dot icon on any deployment row on the Self-Serve Deployments page. The menu exposes options to edit the deployment alias, update the replica count, or delete the deployment.

Edit a deployment alias

To update the alias for a deployment:

  1. Define a unique name for your deployment.
  2. Confirm your new deployment name.

The deployment status updates to Syncing while the alias is updated, and returns to Ready when the update is complete.

Update replica counts

To adjust the number of replicas for a deployment:

  1. Select a value that reflects your expected traffic load and fits within your allotted quota.
  2. Confirm your new replica count.

The deployment status updates to Scaling up or Scaling down based on the direction of the change, and returns to Ready when the update is complete. The deployment can still serve traffic while the replica count is being adjusted.

Delete a deployment

After you confirm deletion, the deployment status updates to Deleting, and the deployment disappears from the list once the deletion is complete. Billing stops when the deployment is deleted.

View deployment details

To view the deployment overview, activity log, metadata, and sample code for inferencing, select the deployment alias from the Self-Serve Deployments page.

8. (Optional) Deploy a fine-tuned model

Self-serve works with Crusoe serverless fine-tuning to help you get your tuned models to production with one click. A LoRA adapter you train there is registered in the same model registry as the base models, so it appears in the models list as soon as training completes.

You have two ways to deploy a fine-tuned checkpoint:

  • From the Self-Serve Deployments page: Follow the Create a deployment steps, then select your fine-tuned checkpoint from the list after you select the corresponding base model architecture.
  • From a Fine-tuned model's Jobs page: Click the three-dot menu next to the checkpoint you want to deploy and select Deploy.

Because fine-tuning and deployment share the same registry and API conventions, you can iterate quickly: train a new adapter, point a new deployment at it, and shift traffic—without rebuilding your serving stack.

Next steps

  • Need optimization beyond the standard configurations? Contact us about Tailored Deployments
  • For an overview of Crusoe's Managed AI options, see Managed AI