Making an inference call to a Model Deployment with an OpenAI API
Language models for text generation are deployed using NVIDIA’s NIM microservices. These model deployments are compliant with the OpenAI Protocol. See NVIDIA NIM documentation for supported OpenAI APIs and NVIDIA NIM specific extensions such as Function Calling and Structured Generation.
This section details the process for obtaining the Model Deployment Details.
The base_url is the model deployment URL up to the API version
v1. To get the base_url, copy the model deployment URL and
delete the last two path components.
Copy the model deployment URL from the Model Deployment Details page in the UI or from the
url field returned by the API, and modify it to the following format. Keep
the namespace exactly as it appears in the URL, because in Anywhere Cloud environments it
includes an instance-specific prefix:
https://[***DOMAIN***]/namespaces/[***NAMESPACE***]/endpoints/[***ENDPOINT_NAME***]/v1
The MODEL_NAME is the name of the model served by the deployment. You can
find it in the Model Deployment Details page in the UI or in the
status.modelName field returned by the API.
