For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
DocsAPI ReferenceSDKs
DocsAPI ReferenceSDKs
      • Overview
      • Chat Completions
      • Prompt Templates
      • Files & Batches
      • Embeddings
      • Image Generation
      • Responses (Reasoning)
      • Compare (Multi-model)
      • Models
      • Error Handling
LogoLogo
On this page
  • Models
Go SDK

Models

||View as Markdown|
Was this page helpful?
Edit this page
Previous

Compare (Multi-model)

Next

Error Handling

Built with

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
8bedrock, _ := client.Models.List(ctx, meshapi.ListModelsParams{
9 Provider: "amazon-bedrock",
10})
11
12for _, m := range bedrock {
13 fmt.Printf("%s: $%v/1k tokens\n", m.ID, m.Pricing.PromptUSDPer1K)
14}