Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
101 changes: 101 additions & 0 deletions packages/cost/models/authors/openai/gpt-5.5/endpoints.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
import { ModelProviderName } from "../../../providers";
import type { ModelProviderConfig } from "../../../types";
import { GPT54ModelName } from "./models";

Comment thread
H2Shami marked this conversation as resolved.
export const endpoints = {
"gpt-5.5:openai": {
Comment thread
H2Shami marked this conversation as resolved.
providerModelId: "gpt-5.5-2026-04-23",
provider: "openai",
Comment thread
H2Shami marked this conversation as resolved.
author: "openai",
pricing: [
{
threshold: 0,
input: 0.0000050, // $5.00 per 1M tokens
output: 0.000030, // $30.00 per 1M tokens
web_search: 0.01, // $10 per 1000 searches (1:1 USD; 10/1K)
cacheMultipliers: {
cachedInput: 0.1, // $0.50 per 1M tokens
},
},
{
threshold: 272000,
input: 0.000010, // $5.00 per 1M tokens (2x for >272K context)
Comment thread
H2Shami marked this conversation as resolved.
Outdated
output: 0.000045, // $45.00 per 1M tokens (1.5x for >272K context)
},
],
contextLength: 1_050_000,
maxCompletionTokens: 128_000,
rateLimits: {
rpm: 15000,
tpm: 40000000,
tpd: 15000000000,
},
supportedParameters: [
"tools",
"tool_choice",
"seed",
"max_completion_tokens",
"response_format",
"stop",
"verbosity",
"temperature",
"top_p",
"logprobs",
],
unsupportedParameters: [
"presence_penalty",
"frequency_penalty",
"top_logprobs",
"logit_bias",
"max_tokens",
],
ptbEnabled: false,
endpointConfigs: {
Comment thread
H2Shami marked this conversation as resolved.
"*": {},
},
},
"gpt-5.5:openrouter": {
provider: "openrouter",
author: "openai",
providerModelId: "openai/gpt-5.5",
pricing: [
{
threshold: 0,
input: 0.000005_275, // $5.275/1M - worst-case: $5/1M (OpenAI) * 1.055
output: 0.000031_65, // $31.65/1M - worst-case: $30.00/1M (OpenAI) * 1.055
web_search: 0.01, // $10 per 1000 searches (1:1 USD; 10/1K)
},
{
threshold: 272000,
input: 0.000010_55, // $10.55/1M - worst-case: $10.00/1M (OpenAI) * 1.055
output: 0.000047_475, // $47.475/1M - worst-case: $45.00/1M (OpenAI) * 1.055
},
],
contextLength: 1_050_000,
maxCompletionTokens: 128_000,
supportedParameters: [
"tools",
"tool_choice",
"seed",
"max_completion_tokens",
"response_format",
"stop",
"temperature",
"top_p",
"logprobs",
"presence_penalty",
"frequency_penalty",
"logit_bias",
"max_tokens",
"top_logprobs",
"verbosity",
],
unsupportedParameters: [],
ptbEnabled: false,
endpointConfigs: {
"*": {},
},
},
} satisfies Partial<
Record<`${GPT54ModelName}:${ModelProviderName}`, ModelProviderConfig>
>;
30 changes: 30 additions & 0 deletions packages/cost/models/authors/openai/gpt-5.5/models.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@

import type { ModelConfig } from "../../../types";

export const models = {
"gpt-5.5": {
name: "OpenAI GPT-5.5",
author: "openai",
description:
"GPT-5.5 is our frontier model for complex professional work. Reasoning.effort supports: none (default), low, medium, high and xhigh. Features a 1.05M context window and 128K max output tokens with improvements in general intelligence, instruction following, accuracy, multimodality, code generation, tool calling, and context management over GPT-5.2.",
contextLength: 1_050_000,
maxOutputTokens: 128_000,
created: "2026-03-05T00:00:00.000Z",
modality: { inputs: ["text", "image"], outputs: ["text"] },
tokenizer: "GPT",
},
"gpt-5.4-2026-03-05": {
name: "OpenAI GPT-5.4",
author: "openai",
description:
"GPT-5.4 is our frontier model for complex professional work. Reasoning.effort supports: none (default), low, medium, high and xhigh. Features a 1.05M context window and 128K max output tokens with improvements in general intelligence, instruction following, accuracy, multimodality, code generation, tool calling, and context management over GPT-5.2.",
contextLength: 1_050_000,
maxOutputTokens: 128_000,
created: "2026-03-05T00:00:00.000Z",
modality: { inputs: ["text", "image"], outputs: ["text"] },
tokenizer: "GPT",
pinnedVersionOfModel: "gpt-5.4",
},
} satisfies Record<string, ModelConfig>;

export type GPT54ModelName = keyof typeof models;
Comment thread
H2Shami marked this conversation as resolved.
Outdated
Comment thread
H2Shami marked this conversation as resolved.
Outdated
Loading