> ## 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.

# Model Service

> Model Service API methods in the Galtea SDK

> [!WARNING]
>
> You are reading the docs of Galtea 5.13. [Read this page in the latest version](https://docs.galtea.ai/sdk/api/model/service.md).

The Model Service in the Galtea SDK allows you to manage [models](https://docs.galtea.ai/v5.13/concepts/model.md) for cost tracking and estimation across your products and evaluations.
This Service is exposed by the `galtea.models` object.

> [!NOTE]
>
> Remember that we will be using the `galtea` object. More information [here](https://docs.galtea.ai/v5.13/sdk/api/galtea.md).

## Quick Example

First, initialize the Galtea SDK:

```python theme={"system"}
galtea = Galtea(api_key="YOUR_API_KEY")
```

Create a model:

```python theme={"system"}
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:

```python theme={"system"}
models = galtea.models.list(
    sort_by_created_at="desc",
    limit=10,
)
```

Get a model by ID:

```python theme={"system"}
model = galtea.models.get(model_id=model_id)
```

## Service Methods

* [Create Model](https://docs.galtea.ai/v5.13/sdk/api/model/create.md)
* [List Models](https://docs.galtea.ai/v5.13/sdk/api/model/list.md)
* [Get Model](https://docs.galtea.ai/v5.13/sdk/api/model/get.md)
* [Get Model By Name](https://docs.galtea.ai/v5.13/sdk/api/model/get-by-name.md)
* [Update Model](https://docs.galtea.ai/v5.13/sdk/api/model/update.md)
* [Delete Model](https://docs.galtea.ai/v5.13/sdk/api/model/delete.md)

## Related

> [card] [Model](https://docs.galtea.ai/v5.13/concepts/model.md)
>
> Way to keep track of your models' costs


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.