Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,17 @@ public sealed partial class PublicEndpointPricing
public string? InputCacheRead { get; set; }

/// <summary>
/// Price in USD per cached input token (write)
/// Price per cache-write token, in USD per token. For providers with multiple cache TTLs (e.g. Anthropic), this is the default (5-minute) cache-write rate.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("input_cache_write")]
public string? InputCacheWrite { get; set; }

/// <summary>
/// Price per 1-hour cache-write token, in USD per token. Only present for providers that price an extended (1-hour) cache TTL separately, such as Anthropic.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("input_cache_write_1h")]
public string? InputCacheWrite1h { get; set; }

/// <summary>
/// Price in USD per internal reasoning token
/// </summary>
Expand Down Expand Up @@ -134,7 +140,10 @@ public sealed partial class PublicEndpointPricing
/// Price in USD per cached input token (read)
/// </param>
/// <param name="inputCacheWrite">
/// Price in USD per cached input token (write)
/// Price per cache-write token, in USD per token. For providers with multiple cache TTLs (e.g. Anthropic), this is the default (5-minute) cache-write rate.
/// </param>
/// <param name="inputCacheWrite1h">
/// Price per 1-hour cache-write token, in USD per token. Only present for providers that price an extended (1-hour) cache TTL separately, such as Anthropic.
/// </param>
/// <param name="internalReasoning">
/// Price in USD per internal reasoning token
Expand All @@ -160,6 +169,7 @@ public PublicEndpointPricing(
string? inputAudioCache,
string? inputCacheRead,
string? inputCacheWrite,
string? inputCacheWrite1h,
string? internalReasoning,
string? request,
string? webSearch)
Expand All @@ -174,6 +184,7 @@ public PublicEndpointPricing(
this.InputAudioCache = inputAudioCache;
this.InputCacheRead = inputCacheRead;
this.InputCacheWrite = inputCacheWrite;
this.InputCacheWrite1h = inputCacheWrite1h;
this.InternalReasoning = internalReasoning;
this.Prompt = prompt ?? throw new global::System.ArgumentNullException(nameof(prompt));
this.Request = request;
Expand Down
15 changes: 13 additions & 2 deletions src/libs/OpenRouter/Generated/OpenRouter.Models.PublicPricing.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,17 @@ public sealed partial class PublicPricing
public string? InputCacheRead { get; set; }

/// <summary>
/// Price in USD per cached input token (write)
/// Price per cache-write token, in USD per token. For providers with multiple cache TTLs (e.g. Anthropic), this is the default (5-minute) cache-write rate.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("input_cache_write")]
public string? InputCacheWrite { get; set; }

/// <summary>
/// Price per 1-hour cache-write token, in USD per token. Only present for providers that price an extended (1-hour) cache TTL separately, such as Anthropic.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("input_cache_write_1h")]
public string? InputCacheWrite1h { get; set; }

/// <summary>
/// Price in USD per internal reasoning token
/// </summary>
Expand Down Expand Up @@ -134,7 +140,10 @@ public sealed partial class PublicPricing
/// Price in USD per cached input token (read)
/// </param>
/// <param name="inputCacheWrite">
/// Price in USD per cached input token (write)
/// Price per cache-write token, in USD per token. For providers with multiple cache TTLs (e.g. Anthropic), this is the default (5-minute) cache-write rate.
/// </param>
/// <param name="inputCacheWrite1h">
/// Price per 1-hour cache-write token, in USD per token. Only present for providers that price an extended (1-hour) cache TTL separately, such as Anthropic.
/// </param>
/// <param name="internalReasoning">
/// Price in USD per internal reasoning token
Expand All @@ -160,6 +169,7 @@ public PublicPricing(
string? inputAudioCache,
string? inputCacheRead,
string? inputCacheWrite,
string? inputCacheWrite1h,
string? internalReasoning,
string? request,
string? webSearch)
Expand All @@ -174,6 +184,7 @@ public PublicPricing(
this.InputAudioCache = inputAudioCache;
this.InputCacheRead = inputCacheRead;
this.InputCacheWrite = inputCacheWrite;
this.InputCacheWrite1h = inputCacheWrite1h;
this.InternalReasoning = internalReasoning;
this.Prompt = prompt ?? throw new global::System.ArgumentNullException(nameof(prompt));
this.Request = request;
Expand Down
12 changes: 10 additions & 2 deletions src/libs/OpenRouter/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25719,7 +25719,11 @@
},
"input_cache_write": {
"type": "string",
"description": "Price in USD per cached input token (write)"
"description": "Price per cache-write token, in USD per token. For providers with multiple cache TTLs (e.g. Anthropic), this is the default (5-minute) cache-write rate."
},
"input_cache_write_1h": {
"type": "string",
"description": "Price per 1-hour cache-write token, in USD per token. Only present for providers that price an extended (1-hour) cache TTL separately, such as Anthropic."
},
"internal_reasoning": {
"type": "string",
Expand Down Expand Up @@ -26046,7 +26050,11 @@
},
"input_cache_write": {
"type": "string",
"description": "Price in USD per cached input token (write)"
"description": "Price per cache-write token, in USD per token. For providers with multiple cache TTLs (e.g. Anthropic), this is the default (5-minute) cache-write rate."
},
"input_cache_write_1h": {
"type": "string",
"description": "Price per 1-hour cache-write token, in USD per token. Only present for providers that price an extended (1-hour) cache TTL separately, such as Anthropic."
},
"internal_reasoning": {
"type": "string",
Expand Down