The Netra SDK exposes aDocumentation Index
Fetch the complete documentation index at: https://docs.getnetra.ai/llms.txt
Use this file to discover all available pages before exploring further.
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
Netra.models to query model pricing information programmatically.
Getting Started
Themodels 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
| Parameter | Type | Description |
|---|---|---|
name | str? | Optional model name to filter results. When omitted, returns all models for the project. |
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.Response
Response
Configuration
Environment Variables
The models client respects the following environment variables:| Variable | Default | Description |
|---|---|---|
NETRA_OTLP_ENDPOINT | — | Required. The OTLP endpoint used to derive the models API base URL. |
NETRA_API_KEY | — | API key for authenticating requests. |
Complete Example
Next Steps
- Evaluation - Run test suites and evaluate AI outputs
- Dashboard Query - Query dashboard metrics
- Usage Utilities - Query traces and spans
