Connect and Call Models
Developers call enabled models. Platform administrators configure sources, upstream credentials, and service status. This page separates those tasks. See the Quickstart for a first request.
List available models
Before making a model request, use GET /v1/models to list available models. The OpenCSG community endpoint is https://ai.space.opencsg.com/v1/models.
Set your gateway credential in the CSGHUB_API_KEY environment variable, then run:
curl --request GET 'https://ai.space.opencsg.com/v1/models' \
--header "Authorization: Bearer ${CSGHUB_API_KEY}"
Select a model identifier from the returned list and use it in the model parameter of subsequent requests. For self-hosted deployments, replace the domain with your gateway address and keep the /v1/models path. Check the model service's instructions for supported interfaces and parameters.
Choose a service source
| Source | Connection method | Instructions |
|---|---|---|
| Public inference | An administrator creates it from a model detail page in asset management, then manages the running service under AI Gateway | Public inference management, Using public inference |
| Dedicated endpoint | A user creates an endpoint from a model page and follows its API examples | Create an endpoint, Use an endpoint |
| Commercial API | An administrator configures a model name, endpoint, and provider credentials under Commercial API | Commercial API management |
Available sources and management operations depend on edition and permissions. Create and start public inference from the model details, then manage the running service in the gateway’s public inference list.