UCloud logo UCloud logo UCloud
v2026.7.0-k8s.18
  1. UCloud/Core
  2. 1. Introduction
  3. 2. Projects
  4. 3. API Tokens
    1. 3.1. Platform API Tokens
    2. 3.2. Provider API Tokens
  5. 4. Accounting
  6. 5. Orchestration
  7. 6. Frontend
  8. UCloud/IM for Slurm-based HPC
  9. 7. Installation
  10. 8. Architecture and Networking
  11. 9. User and Project Management
  12. 10. Filesystem Integration
    1. 10.1. Inter-provider file transfers
  13. 11. Slurm Integration
    1. 11.1. Application Management
    2. 11.2. Built-in Applications
  14. 12. Reference
    1. 12.1. Configuration
    2. 12.2. CLI
  15. 13. Appendix
    1. 13.1. Built-in Application Index
  16. UCloud/IM for Kubernetes
  17. 14. Installation
  18. 15. Architecture and Networking
  19. 16. Filesystem Integration
  20. 17. Compute Jobs
    1. 17.1. Networks
    2. 17.2. Public Links
    3. 17.3. Public IPs
    4. 17.4. License Servers
    5. 17.5. SSH Servers
    6. 17.6. Job Audit Log
    7. 17.7. Virtual machines
  21. 18. AI Inference
    1. 18.1. Architecture
    2. 18.2. Chat Middleware
    3. 18.3. Chat Playground
    4. 18.4. Model Discovery and Catalog
    5. 18.5. Dynamo Deployments
    6. 18.6. Usage and Accounting
    7. 18.7. Audit
    8. 18.8. Metrics
    9. 18.9. Security
  22. 19. Integrated applications
    1. 19.1. Syncthing
    2. 19.2. Integrated terminal
    3. 19.3. Kubernetes clusters
      1. 19.3.1. Architecture
      2. 19.3.2. Stacks
      3. 19.3.3. Creating a cluster
      4. 19.3.4. Cluster dashboard
      5. 19.3.5. Networking and storage
      6. 19.3.6. Maintenance and upgrades
      7. 19.3.7. Backup and recovery
      8. 19.3.8. Reference
  23. 20. UCX applications
    1. 20.1. Hello world
    2. 20.2. Data binding
    3. 20.3. UI events
    4. 20.4. Component reference
    5. 20.5. API reference
  24. 21. Reference
    1. 21.1. Configuration
    2. 21.2. CLI
  25. Style guidelines
  26. 22. Branding and identity for UCloud
  27. 23. Documentation
  28. H: Procedures
  29. 24. H: Procedures
  30. 25. H: Introduction
  31. 26. H: Auditing
  32. 27. H: Auditing scenario
  33. 28. H: GitHub actions
  34. 29. H: Deployment
  35. 30. H: 3rd party dependencies (risk assesment)
  36. Glossary
  37. 31. Glossary
  1. Links
  2. Source Code
  3. Releases

AI Inference

The inference feature gives users and jobs access to language models through an OpenAI-compatible API. Users chat with models from the web interface, tools, scripts, and jobs call the same models from their own code.

The Integration Module mostly acts as middleware in front of an OpenAI-compatible backend. It holds the models that users may call, and it forwards the requests to the backend. The backend runs the models. It is any server that answers the OpenAI-compatible API.

flowchart TB
    subgraph clients["Clients"]
        browser["Browser<br/>Chat playground"]:::diagram-external-window
        tool["Tool or script<br/>OpenAI client"]:::diagram-external-code-bracket
        job["Job container<br/>OpenAI client"]:::diagram-provider-cube
    end

    subgraph core["UCloud/Core"]
        ui["Web interface"]:::diagram-external-window
        orchestrator["Orchestrator<br/>Inference"]:::diagram-external-cog-6-tooth
    end

    im["UCloud/IM<br/>Inference"]:::diagram-provider-ucloud

    subgraph backend["Kubernetes namespace<br/>Inference"]
        frontend["Backend server<br/>Dynamo frontend or LocalAI"]:::diagram-provider-server
        worker["Model worker<br/>GPU"]:::diagram-provider-cpu-chip
    end

    class clients diagram-external-user-group
    class core diagram-external-ucloud
    class backend diagram-provider-kubernetes

    browser --> ui
    ui --> orchestrator
    orchestrator --> im
    tool --> im
    job --> im
    im --> frontend
    frontend --> worker

The systems that a request passes, from a user or a job to a model worker. It does not show the parts inside UCloud/IM, or the networking modes.

Enabling the feature

The feature is off until you enable it. Add the inference section under services.compute:

services:
  compute:
    inference:
      enabled: true
      authority: "chat.example.org"
      provider: dynamo
      dynamo:
        namespace: ucloud-inference
      access:
        administrators: []
        testers: []

For details, see the configuration reference.

Then do the following:

  • Create a DNS record for the authority hostname, and route it to the gateway of the Integration Module next to the web hostname.
  • Deploy a backend.
    • For Dynamo, set provider: dynamo and see Dynamo Deployments.
    • Alternatively, use provider: development. Discovery does not run for this provider, so add each model to the catalog with ucloud inference models update. See Creating an entry.
  • Add the project IDs that curate models to access.administrators. See Model Discovery and Catalog.
  • Create a root allocation for AI credits and award them to your administrator project for initial testing and verification. See Accounting and Resource Management.

Where users meet the feature

SurfaceLocationPurpose
Models/app/inference/modelsThe catalog. Admins also curate models here.
Model page/app/inference/model?name=<model>One model, with benchmark scores and the API usage section.
Chat/app/inference/playgroundA chat client with threads, attachments, and tools.
Provider API tokensThe API usage section of a model pageTokens that let tools and scripts call the API.
OpenAI-compatible APIThe authority hostname/v1/chat/completions, /v1/responses, and /v1/models. See Public API.

Job containers receive inference servers through environment variables when the application asks for them. See Inference servers.

What the feature does not do

  • It does not deploy or update the model servers.
  • It does not create API tokens without a user or an application that asks for them.

Troubleshooting

SymptomChecks
Dynamo model is missingCheck the discovery namespace, -frontend service suffix, first service port, and /v1/models response. Check discovery logs. See Verify the deployment.
Model exists but users cannot see itCheck public availability and the current project’s availableTo entry. See Visibility.
Model appears but requests failCheck the catalog endpoint, backend model name, and connectivity from IM. See Backends.
Request reports insufficient CreditsCheck inference allocations and wallet status. Administrator access does not bypass accounting. See Usage and Accounting and Accounting and Resource Management.
Playground reports insufficient storageCheck usable storage resources from the selected inference provider. See Accounting and Resource Management.
Requests wait or fail under loadCheck concurrent requests, admission rejection metrics, and backend response times. See Limits, Audit, and Metrics.
Usage is missing or delayedCheck backend usage reports and IM accounting logs. Failed accounting reports remain pending for retry. See Reporting and retries.

Next steps

  • Architecture describes the components, the public routes, and the limits.
  • Chat Middleware describes the handling of a request and the state of the Responses API.
  • Chat Playground describes the playground, its threads, its attachments, and its tools.
  • Model Discovery and Catalog describes discovery and curation.
  • Dynamo Deployments describes the Dynamo backend.
  • Usage and Accounting describes the price of a model and the reporting of usage.
  • Provider API Tokens describes how to create, use, and revoke a token for inference.
  • Audit describes the audit records and how to query them.
  • Metrics describes the Prometheus metrics.
  • Security describes the trust boundaries and the security controls of the feature.
Previous Virtual machines
Next Architecture