Skip to content

Model catalogs

Discover models, context limits, pricing, and capabilities in every catalog.

This example assumes using Inception; is in scope and apiKey contains your Inception API key.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
using var client = new InceptionClient(apiKey);
var response = catalog switch
{
    "chat" => await client.Models.ListChatModelsAsync(),
    "fim" => await client.Models.ListFIMModelsAsync(),
    "edit" => await client.Models.ListEditModelsAsync(),
    _ => await client.Models.ListModelsAsync(),
};
foreach (var model in response.Data)
{
}
// Query filtered catalogs too: the general catalog may omit Mercury Edit 2.