Skip to content

List Models

Example showing how to list all available models with pricing information.

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

1
2
3
4
5
6
7
using var client = new MartianClient(apiKey);

// List all available models on the Martian Gateway
var response = await client.ListModelsAsync();

// Each model includes pricing and reliability information
var firstModel = response.Data[0];