Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.galtea.ai/llms.txt

Use this file to discover all available pages before exploring further.

The Model Service in the Galtea SDK allows you to manage models for cost tracking and estimation across your products and evaluations. This Service is exposed by the galtea.models object.
Remember that we will be using the galtea object. More information here.

Quick Example

First, initialize the Galtea SDK:
galtea = Galtea(api_key="YOUR_API_KEY")
Create a model:
model = galtea.models.create(
    name="gpt-5.5-pro " + run_identifier,
    input_cost_per_token=0.00001,
    output_cost_per_token=0.00003,
    cache_read_input_token_cost=0.000005,
    cache_creation_input_token_cost=0.0000125,
    tokenizer_provider="OpenAI",
    source="https://openai.com/api/pricing/",
)
List models:
models = galtea.models.list(
    sort_by_created_at="desc",
    limit=10,
)
Get a model by ID:
model = galtea.models.get(model_id=model_id)

Service Methods

Model

Way to keep track of your models’ costs