Models

View as Markdown

Models

1// List all models
2all, _ := client.Models.List(ctx, meshapi.ListModelsParams{})
3
4// List free models only
5free, _ := client.Models.Free(ctx)
6
7// Filter by provider (Provider is *string)
8provider := "amazon-bedrock"
9bedrock, _ := client.Models.List(ctx, meshapi.ListModelsParams{
10 Provider: &provider,
11})
12
13for _, m := range bedrock {
14 fmt.Printf("%s: $%v/1k tokens\n", m.ID, m.Pricing.PromptUSDPer1K)
15}