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.

Returns

Returns the updated Model object.

Example

model = galtea.models.update(
    model_id=model_id,
    input_cost_per_token=0.000015,
    output_cost_per_token=0.000035,
)

Parameters

model_id
string
required
ID of the model to update.
name
string
New name for the model.
input_cost_per_token
float
New cost in dollars per input token.
output_cost_per_token
float
New cost in dollars per output token.
cache_read_input_token_cost
float
New cost in dollars per cached input token.
cache_creation_input_token_cost
float
New cost in dollars per input token when creating a cache entry.
input_cost_per_token_above_128k_tokens
float
New cost in dollars per input token for contexts larger than 128k tokens.
output_cost_per_token_above_128k_tokens
float
New cost in dollars per output token for contexts larger than 128k tokens.
tokenizer_provider
string
New tokenizer provider (e.g., "OpenAI", "Anthropic").
source
string
New pricing source. This can be a URL to the model’s pricing page or documentation.
All fields except model_id default to PydanticUndefined (from pydantic_core). Omit a field (or pass PydanticUndefined) to leave it unchanged. Pass None to explicitly clear an optional field. Pass a value to update it.