Skip to main content
The Netra SDK exposes a models client that lets you:
  • Fetch model pricing - Retrieve pricing details for all AI models in your project
  • Filter by model name - Look up pricing for a specific model by name
This page shows how to use Netra.models to query model pricing information programmatically.

Getting Started

The models client is available on the main Netra entry point after initialization.

get_model_pricing

Fetch model details and pricing for all models associated with your project, or filter by a specific model name.

Parameters

Response

Returns a list of model objects from the API. Each object contains the model’s details and pricing information. Returns an empty list if the request fails or no models are found.
The name parameter performs a filter on the server side. Use it to avoid fetching the full model catalog when you only need pricing for a specific model.

Configuration

Environment Variables

The models client respects the following environment variables:

Complete Example

Next Steps

Last modified on May 21, 2026