Retrieves the complete list of models available to your organization, including models from OpenAI, Anthropic, Google, xAI, Mistral, Groq, Fireworks, and DeepSeek.
response, err := client.Models.List(ctx)if err != nil { log.Fatal(err)}// Find models with large context windows (>100k tokens)fmt.Println("\nModels with large context windows (>100k tokens):")for _, model := range response.Data { if model.Capabilities.InputTokenLimit > 100000 { fmt.Printf(" - %s: %d tokens\n", model.ID, model.Capabilities.InputTokenLimit) }}