All URIs are relative to https://dashboard.quantcdn.io
| Method | HTTP request | Description |
|---|---|---|
| GetAIModel | Get /api/v3/organizations/{organisation}/ai/models/{modelId} | Get AI Model Details |
| ListAIModels | Get /api/v3/organizations/{organisation}/ai/models | List available AI models for an organization |
GetAIModel200Response GetAIModel(ctx, organisation, modelId).Execute()
Get AI Model Details
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/quantcdn/quant-admin-go"
)
func main() {
organisation := "organisation_example" // string | The organisation ID
modelId := "amazon.nova-lite-v1:0" // string | The model identifier (e.g., amazon.nova-lite-v1:0)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AIModelsAPI.GetAIModel(context.Background(), organisation, modelId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AIModelsAPI.GetAIModel``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetAIModel`: GetAIModel200Response
fmt.Fprintf(os.Stdout, "Response from `AIModelsAPI.GetAIModel`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| organisation | string | The organisation ID | |
| modelId | string | The model identifier (e.g., amazon.nova-lite-v1:0) |
Other parameters are passed through a pointer to a apiGetAIModelRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListAIModels200Response ListAIModels(ctx, organisation).Feature(feature).Execute()
List available AI models for an organization
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/quantcdn/quant-admin-go"
)
func main() {
organisation := "organisation_example" // string | The organisation ID
feature := "embeddings" // string | Filter models by supported feature (optional) (default to "all")
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AIModelsAPI.ListAIModels(context.Background(), organisation).Feature(feature).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AIModelsAPI.ListAIModels``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListAIModels`: ListAIModels200Response
fmt.Fprintf(os.Stdout, "Response from `AIModelsAPI.ListAIModels`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| organisation | string | The organisation ID |
Other parameters are passed through a pointer to a apiListAIModelsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
feature | string | Filter models by supported feature | [default to "all"]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]