Compare commits
18
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d0b3056e3c | ||
|
|
664671e31f | ||
|
|
b288869bbb | ||
|
|
bfe9e932a2 | ||
|
|
1766ee634b | ||
|
|
8a8763408f | ||
|
|
bcb11b7701 | ||
|
|
8853cb4de1 | ||
|
|
1268c4d86d | ||
|
|
2957c49c50 | ||
|
|
459813bd25 | ||
|
|
161d7b235c | ||
|
|
df835625cc | ||
|
|
126f5f27ce | ||
|
|
e59d9aa532 | ||
|
|
475e5df1de | ||
|
|
14471959be | ||
|
|
b328dfe06b |
No files matched your search
@@ -17,6 +17,7 @@ license = "Apache-2.0"
|
||||
|
||||
[limit]
|
||||
context = 1_048_576
|
||||
output = 1_048_576
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image", "audio"]
|
||||
|
||||
@@ -2,8 +2,9 @@ import { existsSync } from "node:fs";
|
||||
import path from "node:path";
|
||||
import { z } from "zod";
|
||||
|
||||
import { describeModel } from "../../describe.js";
|
||||
import type { ExistingModel, SyncProvider, SyncedFullModel, SyncedModel } from "../index.js";
|
||||
import { factorBaseModel } from "./openrouter.js";
|
||||
import { factorBaseModel, resolveModelMetadataBaseModel } from "./openrouter.js";
|
||||
|
||||
const API_ENDPOINT = "https://hyper.charm.land/v1/models";
|
||||
const MODELS_DIR = path.join(import.meta.dirname, "..", "..", "..", "..", "..", "models");
|
||||
@@ -12,6 +13,12 @@ function baseModelExists(modelID: string) {
|
||||
return existsSync(path.join(MODELS_DIR, `${modelID}.toml`));
|
||||
}
|
||||
|
||||
function resolveHyperBaseModel(modelID: string, existingBase: string | undefined) {
|
||||
if (existingBase !== undefined && baseModelExists(existingBase)) return existingBase;
|
||||
const resolved = resolveModelMetadataBaseModel(modelID);
|
||||
return resolved !== undefined && baseModelExists(resolved) ? resolved : undefined;
|
||||
}
|
||||
|
||||
const ReasoningEffort = z.enum([
|
||||
"default",
|
||||
"max",
|
||||
@@ -72,11 +79,9 @@ export const hyper = {
|
||||
},
|
||||
translateModel(model, context) {
|
||||
const existing = context.existing(model.id);
|
||||
const baseModel = existing?.base_model;
|
||||
if (baseModel === undefined || !baseModelExists(baseModel)) return undefined;
|
||||
return {
|
||||
id: model.id,
|
||||
model: buildHyperModel(model, existing, baseModel),
|
||||
model: buildHyperModel(model, existing),
|
||||
};
|
||||
},
|
||||
} satisfies SyncProvider<HyperModel>;
|
||||
@@ -131,7 +136,7 @@ function hyperModalities(vision: boolean) {
|
||||
export function buildHyperModel(
|
||||
model: HyperModel,
|
||||
existing: ExistingModel | undefined,
|
||||
baseModel: string,
|
||||
baseModel = existing?.base_model,
|
||||
today = new Date().toISOString().slice(0, 10),
|
||||
): SyncedModel {
|
||||
const limit = {
|
||||
@@ -140,17 +145,53 @@ export function buildHyperModel(
|
||||
output: model.max_output_tokens,
|
||||
};
|
||||
const modalities = hyperModalities(model.capabilities?.vision ?? false);
|
||||
const reasoning = model.reasoning != null;
|
||||
const releaseDate = existing?.release_date ?? dateFromTimestamp(model.created);
|
||||
const values: Partial<SyncedFullModel> = {
|
||||
attachment: modalities.input.some((value) => value !== "text"),
|
||||
modalities,
|
||||
reasoning: model.reasoning != null,
|
||||
reasoning_options: model.reasoning != null ? reasoningOptions(model) : undefined,
|
||||
release_date: existing?.release_date ?? dateFromTimestamp(model.created),
|
||||
reasoning,
|
||||
release_date: releaseDate,
|
||||
last_updated: existing?.last_updated ?? today,
|
||||
interleaved: existing?.interleaved,
|
||||
cost: buildCost(model, existing?.cost),
|
||||
limit,
|
||||
};
|
||||
if (reasoning) values.reasoning_options = reasoningOptions(model);
|
||||
|
||||
return factorBaseModel(baseModel, values, limit, existing?.base_model_omit);
|
||||
const resolvedBase = resolveHyperBaseModel(model.id, baseModel);
|
||||
if (resolvedBase !== undefined) {
|
||||
return factorBaseModel(
|
||||
resolvedBase,
|
||||
values,
|
||||
limit,
|
||||
existing?.base_model === resolvedBase ? existing.base_model_omit : undefined,
|
||||
);
|
||||
}
|
||||
|
||||
const name = existing?.name ?? model.display_name;
|
||||
return {
|
||||
name,
|
||||
description: existing?.description ?? describeModel({
|
||||
id: model.id,
|
||||
name,
|
||||
family: existing?.family,
|
||||
reasoning,
|
||||
tool_call: existing?.tool_call ?? true,
|
||||
structured_output: existing?.structured_output,
|
||||
open_weights: existing?.open_weights ?? false,
|
||||
limit,
|
||||
modalities,
|
||||
}),
|
||||
family: existing?.family,
|
||||
...values,
|
||||
temperature: existing?.temperature,
|
||||
tool_call: existing?.tool_call ?? true,
|
||||
structured_output: existing?.structured_output,
|
||||
knowledge: existing?.knowledge,
|
||||
open_weights: existing?.open_weights ?? false,
|
||||
status: existing?.status,
|
||||
provider: existing?.provider,
|
||||
experimental: existing?.experimental,
|
||||
};
|
||||
}
|
||||
@@ -17,8 +17,10 @@ const VendorReasoning = z.object({
|
||||
}).passthrough();
|
||||
|
||||
const VendorCapabilities = z.object({
|
||||
input: z.array(z.enum(["text", "audio", "image", "document", "embedding"])),
|
||||
output: z.array(z.enum(["text", "audio", "tool_use", "embedding"])),
|
||||
// Keep the API boundary forward-compatible; `modalities()` filters the
|
||||
// evolving Gateway vocabulary to values supported by models.dev.
|
||||
input: z.array(z.string()),
|
||||
output: z.array(z.string()),
|
||||
supports_tool_calling: z.boolean(),
|
||||
supports_tool_choice: z.boolean().default(false),
|
||||
supports_structured_outputs: z.boolean(),
|
||||
|
||||
@@ -1244,6 +1244,41 @@ test("preserves existing Hyper cost when API pricing is missing", () => {
|
||||
});
|
||||
});
|
||||
|
||||
test("creates a full Hyper model when no base_model metadata exists", () => {
|
||||
const model = hyperModel({
|
||||
id: "qwen3.7-flash",
|
||||
display_name: "Qwen3.7-Flash",
|
||||
reasoning: undefined,
|
||||
capabilities: { vision: true },
|
||||
pricing: {
|
||||
input: 0.2,
|
||||
output: 0.8,
|
||||
cache_hit: 0.04,
|
||||
cache_create: 0,
|
||||
},
|
||||
});
|
||||
|
||||
expect(buildHyperModel(model, undefined)).toMatchObject({
|
||||
name: "Qwen3.7-Flash",
|
||||
attachment: true,
|
||||
reasoning: false,
|
||||
tool_call: true,
|
||||
open_weights: false,
|
||||
cost: { input: 0.2, output: 0.8, cache_read: 0.04 },
|
||||
limit: { context: 1_000_000, output: 384_000 },
|
||||
modalities: { input: ["text", "image"], output: ["text"] },
|
||||
});
|
||||
expect(buildHyperModel(model, undefined)).not.toHaveProperty("base_model");
|
||||
expect(buildHyperModel(model, undefined)).not.toHaveProperty("reasoning_options");
|
||||
});
|
||||
|
||||
test("factors new Hyper models against unique models/ metadata", () => {
|
||||
expect(buildHyperModel(hyperModel({ id: "kimi-k3", reasoning: undefined }), undefined)).toMatchObject({
|
||||
base_model: "moonshotai/kimi-k3",
|
||||
reasoning: false,
|
||||
});
|
||||
});
|
||||
|
||||
test("formats interleaved as a root field before reasoning option tables", () => {
|
||||
const content = formatToml({
|
||||
id: "example/model",
|
||||
@@ -1730,6 +1765,49 @@ test("accepts audio modalities from the Merge Gateway catalog", () => {
|
||||
}).data[0]?.vendors.openai.capabilities.input).toContain("audio");
|
||||
});
|
||||
|
||||
// Prevents a valid multimodal route from rejecting the entire live catalog.
|
||||
test("accepts video modalities from the Merge Gateway catalog", () => {
|
||||
const model = mergeGatewayModel();
|
||||
model.vendors.openai.capabilities.input.push("video");
|
||||
|
||||
const parsed = MergeGatewayResponse.parse({
|
||||
object: "list",
|
||||
data: [model],
|
||||
has_more: false,
|
||||
next_cursor: null,
|
||||
}).data[0]!;
|
||||
|
||||
expect(parsed.vendors.openai.capabilities.input).toContain("video");
|
||||
expect(buildMergeGatewayModel(parsed, undefined)).toMatchObject({
|
||||
modalities: {
|
||||
input: ["text", "image", "pdf", "video"],
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
// Keeps the API boundary forward-compatible while output normalization remains strict.
|
||||
test("filters unknown Merge Gateway modalities without rejecting the catalog", () => {
|
||||
const model = mergeGatewayModel();
|
||||
model.vendors.openai.capabilities.input.push("future_modality");
|
||||
model.vendors.openai.capabilities.output.push("future_output_modality");
|
||||
|
||||
const parsed = MergeGatewayResponse.parse({
|
||||
object: "list",
|
||||
data: [model],
|
||||
has_more: false,
|
||||
next_cursor: null,
|
||||
}).data[0]!;
|
||||
const synced = buildMergeGatewayModel(parsed, undefined);
|
||||
|
||||
expect(synced).toEqual({
|
||||
base_model: "openai/gpt-5.6-sol",
|
||||
cost: {
|
||||
input: 5,
|
||||
output: 30,
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
// Emits only route-specific overrides when canonical metadata already matches.
|
||||
test("factors Merge Gateway GPT-5.6 Sol against canonical metadata", () => {
|
||||
const model = buildMergeGatewayModel(mergeGatewayModel(), undefined);
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
base_model = "moonshotai/kimi-k3"
|
||||
name = "Kimi K3 Eco"
|
||||
reasoning_options = [{ type = "effort", values = ["none", "low", "high", "max"] }]
|
||||
|
||||
[interleaved]
|
||||
field = "reasoning_content"
|
||||
|
||||
[cost]
|
||||
input = 1
|
||||
output = 4
|
||||
cache_read = 0.1
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 131_072
|
||||
|
||||
[provider]
|
||||
npm = "@ai-sdk/openai-compatible"
|
||||
@@ -0,0 +1,22 @@
|
||||
base_model = "alibaba/qwen3.6-35b-a3b"
|
||||
name = "Qwen3.6 35B A3B"
|
||||
attachment = false
|
||||
|
||||
[[reasoning_options]]
|
||||
type = "toggle"
|
||||
|
||||
[[reasoning_options]]
|
||||
type = "effort"
|
||||
values = ["none", "low", "medium", "high", "max"]
|
||||
|
||||
[cost]
|
||||
input = 0.07
|
||||
output = 0.42
|
||||
cache_read = 0.035
|
||||
|
||||
[limit]
|
||||
context = 131_072
|
||||
output = 16_384
|
||||
|
||||
[modalities]
|
||||
input = ["text"]
|
||||
@@ -0,0 +1,10 @@
|
||||
base_model = "tencent/hy3"
|
||||
structured_output = true
|
||||
reasoning_options = [{ type = "effort", values = ["none", "low", "high"] }]
|
||||
|
||||
[cost]
|
||||
input = 0.14
|
||||
output = 0.58
|
||||
|
||||
[limit]
|
||||
context = 262_144
|
||||
@@ -0,0 +1,11 @@
|
||||
base_model = "thinkingmachines/inkling"
|
||||
description = "Multimodal model for analyzing text, images, documents, and rich media"
|
||||
structured_output = true
|
||||
reasoning_options = [{ type = "effort", values = ["low", "medium", "high"] }]
|
||||
|
||||
[cost]
|
||||
input = 1
|
||||
output = 4.05
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
@@ -5,9 +5,9 @@ attachment = false
|
||||
reasoning = false
|
||||
|
||||
[cost]
|
||||
input = 0.116
|
||||
output = 0.408
|
||||
cache_write = 0.058
|
||||
input = 0.122
|
||||
output = 0.424
|
||||
cache_write = 0.061
|
||||
|
||||
[limit]
|
||||
context = 256_000
|
||||
|
||||
@@ -4,9 +4,9 @@ last_updated = "2026-07-22"
|
||||
reasoning = false
|
||||
|
||||
[cost]
|
||||
input = 0.81
|
||||
output = 2.624
|
||||
cache_write = 0.405
|
||||
input = 0.88
|
||||
output = 2.78
|
||||
cache_write = 0.44
|
||||
|
||||
[limit]
|
||||
context = 202_752
|
||||
|
||||
@@ -8,7 +8,7 @@ values = ["low", "medium", "high"]
|
||||
|
||||
[cost]
|
||||
input = 0.178
|
||||
output = 0.68
|
||||
output = 0.612
|
||||
cache_write = 0.089
|
||||
|
||||
[limit]
|
||||
|
||||
@@ -5,9 +5,9 @@ attachment = false
|
||||
reasoning = false
|
||||
|
||||
[cost]
|
||||
input = 0.528
|
||||
output = 2.79
|
||||
cache_write = 0.264
|
||||
input = 0.534
|
||||
output = 2.82
|
||||
cache_write = 0.267
|
||||
|
||||
[limit]
|
||||
output = 26_214
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
base_model = "moonshotai/kimi-k3"
|
||||
release_date = "2026-07-27"
|
||||
last_updated = "2026-07-30"
|
||||
reasoning = false
|
||||
|
||||
[cost]
|
||||
input = 3.2664
|
||||
output = 16.332
|
||||
cache_read = 0.32664
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
@@ -4,9 +4,9 @@ last_updated = "2026-07-22"
|
||||
attachment = false
|
||||
|
||||
[cost]
|
||||
input = 0.6066
|
||||
output = 1.0386
|
||||
cache_write = 0.3033
|
||||
input = 0.5126
|
||||
output = 1.0446
|
||||
cache_write = 0.2563
|
||||
|
||||
[limit]
|
||||
output = 12_800
|
||||
@@ -4,9 +4,9 @@ last_updated = "2026-07-22"
|
||||
reasoning = false
|
||||
|
||||
[cost]
|
||||
input = 0.41
|
||||
output = 1.52
|
||||
cache_write = 0.205
|
||||
input = 0.48
|
||||
output = 1.86
|
||||
cache_write = 0.24
|
||||
|
||||
[limit]
|
||||
output = 20_480
|
||||
@@ -0,0 +1,21 @@
|
||||
name = "Qwen3.7-Flash"
|
||||
description = "Efficient model for low-latency assistance, extraction, and routine automation"
|
||||
release_date = "2026-07-27"
|
||||
last_updated = "2026-07-30"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 0.2
|
||||
output = 0.8
|
||||
cache_read = 0.04
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 64_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -2,9 +2,7 @@ base_model = "alibaba/qwen3.6-flash"
|
||||
reasoning_options = []
|
||||
|
||||
[cost]
|
||||
input = 0.15
|
||||
output = 0.9
|
||||
cache_read = 0.015
|
||||
|
||||
[limit]
|
||||
context = 262_144
|
||||
input = 0.25
|
||||
output = 1.5
|
||||
cache_read = 0.05
|
||||
cache_write = 0.3125
|
||||
@@ -0,0 +1,15 @@
|
||||
base_model = "deepseek/deepseek-v4-flash"
|
||||
name = "DeepSeek V4 Flash"
|
||||
|
||||
[[reasoning_options]]
|
||||
type = "effort"
|
||||
values = ["high", "max"]
|
||||
|
||||
[cost]
|
||||
input = 0.104
|
||||
output = 0.207
|
||||
cache_read = 0.026
|
||||
|
||||
[limit]
|
||||
context = 1_048_560
|
||||
output = 65_536
|
||||
@@ -0,0 +1,12 @@
|
||||
base_model = "google/gemma-4-31b-it"
|
||||
name = "Gemma 4 31B"
|
||||
reasoning_options = [{ type = "toggle" }]
|
||||
|
||||
[cost]
|
||||
input = 0.144
|
||||
output = 0.42
|
||||
cache_read = 0.036
|
||||
|
||||
[limit]
|
||||
context = 262_128
|
||||
output = 16_384
|
||||
@@ -1,21 +1,24 @@
|
||||
# Sources:
|
||||
# - https://developers.openai.com/api/docs/pricing (Standard + Fast mode; verified 2026-07-30)
|
||||
# - https://x.com/OpenAI/status/2082878156483219672 (80% Luna price reduction)
|
||||
base_model = "openai/gpt-5.6-luna"
|
||||
reasoning_options = [{ type = "effort", values = ["none", "low", "medium", "high", "xhigh", "max"] }]
|
||||
|
||||
[cost]
|
||||
input = 1.00
|
||||
output = 6.00
|
||||
cache_read = 0.10
|
||||
cache_write = 1.25
|
||||
input = 0.20
|
||||
output = 1.20
|
||||
cache_read = 0.02
|
||||
cache_write = 0.25
|
||||
|
||||
[[cost.tiers]]
|
||||
tier = { size = 272_000 }
|
||||
input = 2.00
|
||||
output = 9.00
|
||||
cache_read = 0.20
|
||||
cache_write = 2.50
|
||||
input = 0.40
|
||||
output = 1.80
|
||||
cache_read = 0.04
|
||||
cache_write = 0.50
|
||||
|
||||
[experimental.modes.fast]
|
||||
cost = { input = 2.00, output = 12.00, cache_read = 0.20, cache_write = 2.50 }
|
||||
cost = { input = 0.40, output = 2.40, cache_read = 0.04, cache_write = 0.50 }
|
||||
provider = { body = { service_tier = "priority" } }
|
||||
|
||||
[experimental.modes.pro]
|
||||
|
||||
@@ -1,21 +1,24 @@
|
||||
# Sources:
|
||||
# - https://developers.openai.com/api/docs/pricing (Standard + Fast mode; verified 2026-07-30)
|
||||
# - https://x.com/OpenAI/status/2082878156483219672 (20% Terra price reduction)
|
||||
base_model = "openai/gpt-5.6-terra"
|
||||
reasoning_options = [{ type = "effort", values = ["none", "low", "medium", "high", "xhigh", "max"] }]
|
||||
|
||||
[cost]
|
||||
input = 2.50
|
||||
output = 15.00
|
||||
cache_read = 0.25
|
||||
cache_write = 3.125
|
||||
input = 2.00
|
||||
output = 12.00
|
||||
cache_read = 0.20
|
||||
cache_write = 2.50
|
||||
|
||||
[[cost.tiers]]
|
||||
tier = { size = 272_000 }
|
||||
input = 5.00
|
||||
output = 22.50
|
||||
cache_read = 0.50
|
||||
cache_write = 6.25
|
||||
input = 4.00
|
||||
output = 18.00
|
||||
cache_read = 0.40
|
||||
cache_write = 5.00
|
||||
|
||||
[experimental.modes.fast]
|
||||
cost = { input = 5.00, output = 30.00, cache_read = 0.50, cache_write = 6.25 }
|
||||
cost = { input = 4.00, output = 24.00, cache_read = 0.40, cache_write = 5.00 }
|
||||
provider = { body = { service_tier = "priority" } }
|
||||
|
||||
[experimental.modes.pro]
|
||||
|
||||
@@ -3,8 +3,8 @@ attachment = false
|
||||
structured_output = true
|
||||
|
||||
[cost]
|
||||
input = 0.2002
|
||||
output = 0.8001
|
||||
input = 0.2574
|
||||
output = 1.0287
|
||||
|
||||
[limit]
|
||||
context = 163_840
|
||||
|
||||
@@ -11,4 +11,4 @@ input = 0.25
|
||||
output = 1.5
|
||||
|
||||
[limit]
|
||||
output = 66_000
|
||||
output = 65_536
|
||||
@@ -4,8 +4,9 @@ base_model = "google/gemma-4-31b-it"
|
||||
type = "toggle"
|
||||
|
||||
[cost]
|
||||
input = 0.14
|
||||
output = 0.4
|
||||
input = 0.1
|
||||
output = 0.34
|
||||
cache_read = 0.1
|
||||
|
||||
[limit]
|
||||
output = 262_144
|
||||
|
||||
@@ -5,9 +5,9 @@ reasoning_options = []
|
||||
field = "reasoning_details"
|
||||
|
||||
[cost]
|
||||
input = 0.646
|
||||
output = 2.72
|
||||
cache_read = 0.1088
|
||||
input = 0.95
|
||||
output = 4
|
||||
cache_read = 0.16
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
@@ -9,9 +9,9 @@ values = ["medium", "high"]
|
||||
type = "budget_tokens"
|
||||
|
||||
[cost]
|
||||
input = 0.5
|
||||
output = 2.2
|
||||
cache_read = 0.1
|
||||
input = 0.6
|
||||
output = 3.6
|
||||
cache_read = 0.2
|
||||
|
||||
[limit]
|
||||
context = 512_288
|
||||
|
||||
@@ -7,7 +7,7 @@ type = "effort"
|
||||
values = ["none", "low", "medium", "high", "xhigh", "max"]
|
||||
|
||||
[cost]
|
||||
input = 0.5
|
||||
output = 3
|
||||
cache_read = 0.05
|
||||
cache_write = 0.625
|
||||
input = 0.1
|
||||
output = 0.6
|
||||
cache_read = 0.01
|
||||
cache_write = 0.125
|
||||
@@ -6,7 +6,7 @@ type = "effort"
|
||||
values = ["none", "low", "medium", "high", "xhigh", "max"]
|
||||
|
||||
[cost]
|
||||
input = 0.5
|
||||
output = 3
|
||||
cache_read = 0.05
|
||||
cache_write = 0.625
|
||||
input = 0.1
|
||||
output = 0.6
|
||||
cache_read = 0.01
|
||||
cache_write = 0.125
|
||||
@@ -7,7 +7,7 @@ type = "effort"
|
||||
values = ["none", "low", "medium", "high", "xhigh", "max"]
|
||||
|
||||
[cost]
|
||||
input = 1.25
|
||||
output = 7.5
|
||||
cache_read = 0.125
|
||||
cache_write = 1.5625
|
||||
input = 1
|
||||
output = 6
|
||||
cache_read = 0.1
|
||||
cache_write = 1.25
|
||||
@@ -6,7 +6,7 @@ type = "effort"
|
||||
values = ["none", "low", "medium", "high", "xhigh", "max"]
|
||||
|
||||
[cost]
|
||||
input = 1.25
|
||||
output = 7.5
|
||||
cache_read = 0.125
|
||||
cache_write = 1.5625
|
||||
input = 1
|
||||
output = 6
|
||||
cache_read = 0.1
|
||||
cache_write = 1.25
|
||||
@@ -12,8 +12,8 @@ knowledge = "2024-06-30"
|
||||
open_weights = true
|
||||
|
||||
[cost]
|
||||
input = 0.04
|
||||
output = 0.1
|
||||
input = 0.1
|
||||
output = 0.2
|
||||
|
||||
[limit]
|
||||
context = 32_768
|
||||
|
||||
@@ -7,7 +7,7 @@ attachment = false
|
||||
reasoning = true
|
||||
temperature = true
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
structured_output = false
|
||||
knowledge = "2025-03-31"
|
||||
open_weights = true
|
||||
|
||||
|
||||
@@ -1,18 +1,9 @@
|
||||
name = "Fugu Ultra"
|
||||
base_model = "sakana/fugu-ultra"
|
||||
description = "Quality-first multi-agent model for hard research, analysis, and competitions"
|
||||
family = "fugu"
|
||||
release_date = "2026-06-24"
|
||||
last_updated = "2026-06-24"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
temperature = false
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = false
|
||||
|
||||
[[reasoning_options]]
|
||||
type = "effort"
|
||||
values = ["max", "xhigh", "high"]
|
||||
values = ["high", "xhigh", "max"]
|
||||
|
||||
[cost]
|
||||
input = 5
|
||||
@@ -20,9 +11,4 @@ output = 30
|
||||
cache_read = 0.5
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 128_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -10,6 +10,3 @@ values = ["none", "minimal", "low", "medium", "high", "max"]
|
||||
input = 1
|
||||
output = 4.05
|
||||
cache_read = 0.17
|
||||
|
||||
[limit]
|
||||
output = 1_048_576
|
||||
@@ -8,9 +8,10 @@ type = "effort"
|
||||
values = ["high", "xhigh"]
|
||||
|
||||
[cost]
|
||||
input = 0.7196
|
||||
output = 2.2616
|
||||
cache_read = 0.13364
|
||||
input = 0.966
|
||||
output = 3.036
|
||||
cache_read = 0.1794
|
||||
|
||||
[limit]
|
||||
context = 1_048_576
|
||||
output = 128_000
|
||||
@@ -0,0 +1,18 @@
|
||||
# Perplexity Agent API pricing scraped from
|
||||
# https://docs.perplexity.ai/docs/agent-api/models (accessed 2026-07-30).
|
||||
# Kimi K2.7 Code capability confirmation (force thinking, preserve_thinking,
|
||||
# reasoning_content field, instant/non-thinking mode unsupported) sourced from
|
||||
# https://huggingface.co/moonshotai/Kimi-K2.7-Code.
|
||||
# base_model inherits reasoning = true, so reasoning_options = [] is required
|
||||
|
||||
base_model = "moonshotai/kimi-k2.7-code"
|
||||
last_updated = "2026-07-30"
|
||||
reasoning_options = []
|
||||
|
||||
[interleaved]
|
||||
field = "reasoning_content"
|
||||
|
||||
[cost]
|
||||
input = 0.95
|
||||
output = 4.00
|
||||
cache_read = 0.19
|
||||
@@ -0,0 +1,24 @@
|
||||
# Perplexity Agent API pricing scraped from
|
||||
# https://docs.perplexity.ai/docs/agent-api/models (accessed 2026-07-30).
|
||||
# Kimi K3 capability confirmation sourced from
|
||||
# https://huggingface.co/moonshotai/Kimi-K3 and https://platform.kimi.ai/docs/overview.
|
||||
# Perplexity docs note that Kimi K3 accepts minimal, low, medium, high, xhigh,
|
||||
# and max reasoning effort (minimal = low; xhigh and max = max effort) and that
|
||||
# reasoning tokens are billed at the output-token rate.
|
||||
|
||||
base_model = "moonshotai/kimi-k3"
|
||||
last_updated = "2026-07-30"
|
||||
|
||||
[interleaved]
|
||||
field = "reasoning_content"
|
||||
|
||||
[[reasoning_options]]
|
||||
type = "effort"
|
||||
values = ["minimal", "low", "medium", "high", "xhigh", "max"]
|
||||
# Perplexity docs: minimal/low/medium select low effort; xhigh/max select max effort.
|
||||
# Reasoning tokens are billed at the output-token rate.
|
||||
|
||||
[cost]
|
||||
input = 3.00
|
||||
output = 15.00
|
||||
cache_read = 0.30
|
||||
@@ -5,7 +5,7 @@ field = "reasoning_content"
|
||||
|
||||
[[reasoning_options]]
|
||||
type = "effort"
|
||||
values = ["low", "medium", "high"]
|
||||
values = ["low", "medium", "high", "xhigh"]
|
||||
|
||||
[cost]
|
||||
input = 0.1
|
||||
|
||||
@@ -5,7 +5,7 @@ field = "reasoning_content"
|
||||
|
||||
[[reasoning_options]]
|
||||
type = "effort"
|
||||
values = ["low", "medium", "high"]
|
||||
values = ["low", "medium", "high", "xhigh"]
|
||||
|
||||
[cost]
|
||||
input = 1.4
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
base_model = "mistral/devstral-2512"
|
||||
name = "Devstral 2 123B Instruct (2512)"
|
||||
release_date = "2026-01-07"
|
||||
last_updated = "2026-03-17"
|
||||
status = "deprecated"
|
||||
|
||||
[cost]
|
||||
input = 0.4
|
||||
output = 2
|
||||
|
||||
[limit]
|
||||
context = 256_000
|
||||
output = 16_384
|
||||
@@ -1,27 +0,0 @@
|
||||
name = "Gemma-3-27B-IT"
|
||||
description = "Open Gemma instruction model for efficient chat and self-hosted deployments"
|
||||
family = "gemma"
|
||||
release_date = "2024-12-01"
|
||||
last_updated = "2026-03-17"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
# Scaleway does not list a reasoning_effort mapping for this model in its
|
||||
# reasoning guide (accessed 2026-06-25).
|
||||
# https://www.scaleway.com/en/docs/generative-apis/how-to/query-reasoning-models/
|
||||
reasoning_options = []
|
||||
temperature = true
|
||||
knowledge = "2024-12"
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
|
||||
[cost]
|
||||
input = 0.25
|
||||
output = 0.50
|
||||
|
||||
[limit]
|
||||
context = 40_000
|
||||
output = 8_192
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -1,22 +0,0 @@
|
||||
name = "Voxtral Small 24B 2507"
|
||||
description = "Efficient model for low-latency assistance, extraction, and routine automation"
|
||||
family = "voxtral"
|
||||
release_date = "2025-07-01"
|
||||
last_updated = "2026-03-17"
|
||||
attachment = true
|
||||
reasoning = false
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = true
|
||||
|
||||
[cost]
|
||||
input = 0.15
|
||||
output = 0.35
|
||||
|
||||
[limit]
|
||||
context = 32_000
|
||||
output = 16_384
|
||||
|
||||
[modalities]
|
||||
input = ["text", "audio"]
|
||||
output = ["text"]
|
||||
@@ -2,11 +2,11 @@ name = "Agent Max"
|
||||
description = "Frontier models for autonomous research, deep multi-step tool chains, and complex long-horizon tasks. Any model that meets the contract spec can serve your request."
|
||||
# contract spec: https://thegrid.ai/docs/instrument-specifications/current-instruments
|
||||
release_date = "2026-05-04"
|
||||
last_updated = "2026-07-06"
|
||||
attachment = false
|
||||
last_updated = "2026-07-24"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
reasoning_options = [{ type = "toggle" }, { type = "effort", values = ["low", "medium", "high", "xhigh", "max"] }]
|
||||
temperature = true
|
||||
temperature = false
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
status = "beta"
|
||||
|
||||
@@ -2,7 +2,7 @@ name = "Agent Prime"
|
||||
description = "Reliable models for dependable agentic applications, multi-step tool use, and reasoning workflows. Any model that meets the contract spec can serve your request."
|
||||
# contract spec: https://thegrid.ai/docs/instrument-specifications/current-instruments
|
||||
release_date = "2026-05-04"
|
||||
last_updated = "2026-07-06"
|
||||
last_updated = "2026-07-15"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
reasoning_options = [{ type = "effort", values = ["low", "medium", "high"] }]
|
||||
|
||||
@@ -2,7 +2,7 @@ name = "Agent Standard"
|
||||
description = "Price-optimized models for fast tool calls, simple agent loops, high-throughput automation, and orchestration. Any model that meets the contract spec can serve your request."
|
||||
# contract spec: https://thegrid.ai/docs/instrument-specifications/current-instruments
|
||||
release_date = "2026-05-04"
|
||||
last_updated = "2026-07-06"
|
||||
last_updated = "2026-07-15"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
reasoning_options = [{ type = "effort", values = ["low", "medium", "high"] }]
|
||||
|
||||
@@ -2,11 +2,11 @@ name = "Code Max"
|
||||
description = "Frontier models for complex research, architectural decisions, debugging, and multi-file development. Any model that meets the contract spec can serve your request."
|
||||
# contract spec: https://thegrid.ai/docs/instrument-specifications/current-instruments
|
||||
release_date = "2026-05-04"
|
||||
last_updated = "2026-07-06"
|
||||
attachment = false
|
||||
last_updated = "2026-07-24"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
reasoning_options = [{ type = "toggle" }, { type = "effort", values = ["low", "medium", "high", "xhigh", "max"] }]
|
||||
temperature = true
|
||||
temperature = false
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
status = "beta"
|
||||
|
||||
@@ -2,7 +2,7 @@ name = "Code Prime"
|
||||
description = "Reliable models for everyday software tasks, code completion, review, and standard debugging. Any model that meets the contract spec can serve your request."
|
||||
# contract spec: https://thegrid.ai/docs/instrument-specifications/current-instruments
|
||||
release_date = "2026-05-04"
|
||||
last_updated = "2026-07-06"
|
||||
last_updated = "2026-07-15"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
reasoning_options = [{ type = "effort", values = ["low", "medium", "high"] }]
|
||||
|
||||
@@ -2,7 +2,7 @@ name = "Code Standard"
|
||||
description = "Price-optimized models for rapid autocomplete, linting, high-frequency suggestions, and batch edits. Any model that meets the contract spec can serve your request."
|
||||
# contract spec: https://thegrid.ai/docs/instrument-specifications/current-instruments
|
||||
release_date = "2026-05-04"
|
||||
last_updated = "2026-07-06"
|
||||
last_updated = "2026-07-15"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
reasoning_options = [{ type = "effort", values = ["low", "medium", "high"] }]
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
name = "Text Max"
|
||||
description = "Frontier models for deep reasoning, long context, and complex workflows. Any model that meets the contract spec can serve your request."
|
||||
# contract spec: https://thegrid.ai/docs/instrument-specifications/current-instruments
|
||||
release_date = "2026-03-24"
|
||||
last_updated = "2026-07-06"
|
||||
attachment = false
|
||||
release_date = "2026-02-26"
|
||||
last_updated = "2026-07-24"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
reasoning_options = [{ type = "toggle" }, { type = "effort", values = ["low", "medium", "high", "xhigh", "max"] }]
|
||||
temperature = true
|
||||
temperature = false
|
||||
tool_call = true
|
||||
structured_output = true
|
||||
open_weights = false
|
||||
|
||||
@@ -2,7 +2,7 @@ name = "Text Prime"
|
||||
description = "Reliable models for everyday text generation, editing, and analysis across diverse workflows. Any model that meets the contract spec can serve your request."
|
||||
# contract spec: https://thegrid.ai/docs/instrument-specifications/current-instruments
|
||||
release_date = "2026-02-26"
|
||||
last_updated = "2026-07-06"
|
||||
last_updated = "2026-07-15"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
reasoning_options = [{ type = "effort", values = ["low", "medium", "high"] }]
|
||||
|
||||
@@ -2,7 +2,7 @@ name = "Text Standard"
|
||||
description = "Price-optimized models with low-latency, high-throughput and shorter maximum outputs. Any model that meets the contract spec can serve your request."
|
||||
# contract spec: https://thegrid.ai/docs/instrument-specifications/current-instruments
|
||||
release_date = "2026-02-26"
|
||||
last_updated = "2026-07-06"
|
||||
last_updated = "2026-07-15"
|
||||
attachment = false
|
||||
reasoning = true
|
||||
reasoning_options = [{ type = "effort", values = ["low", "medium", "high"] }]
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
name = "The Grid AI"
|
||||
env = ["THEGRIDAI_API_KEY"]
|
||||
env = ["THEGRID_API_KEY"]
|
||||
npm = "@ai-sdk/openai-compatible"
|
||||
# Raw HTTP reasoning controls (accessed 2026-07-06):
|
||||
# - POST https://api.thegrid.ai/v1/chat/completions routes by instrument tier
|
||||
|
||||
@@ -10,6 +10,6 @@ type = "effort"
|
||||
values = ["high", "xhigh"]
|
||||
|
||||
[cost]
|
||||
input = 0.14
|
||||
output = 0.28
|
||||
input = 0.138
|
||||
output = 0.275
|
||||
cache_read = 0.028
|
||||
@@ -2,10 +2,13 @@ base_model = "openai/gpt-5.6-luna"
|
||||
name = "GPT 5.6 Luna"
|
||||
description = "GPT model for general reasoning, writing, coding, and tool-assisted tasks"
|
||||
temperature = true
|
||||
reasoning_options = [{ type = "effort", values = ["none", "low", "medium", "high", "xhigh", "max"] }]
|
||||
|
||||
[[reasoning_options]]
|
||||
type = "effort"
|
||||
values = ["none", "low", "medium", "high", "xhigh", "max"]
|
||||
|
||||
[cost]
|
||||
input = 1
|
||||
output = 6
|
||||
cache_read = 0.1
|
||||
cache_write = 1.25
|
||||
input = 0.2
|
||||
output = 1.2
|
||||
cache_read = 0.02
|
||||
cache_write = 0.25
|
||||
@@ -2,10 +2,13 @@ base_model = "openai/gpt-5.6-terra"
|
||||
name = "GPT 5.6 Terra"
|
||||
description = "GPT model for general reasoning, writing, coding, and tool-assisted tasks"
|
||||
temperature = true
|
||||
reasoning_options = [{ type = "effort", values = ["none", "low", "medium", "high", "xhigh", "max"] }]
|
||||
|
||||
[[reasoning_options]]
|
||||
type = "effort"
|
||||
values = ["none", "low", "medium", "high", "xhigh", "max"]
|
||||
|
||||
[cost]
|
||||
input = 2.5
|
||||
output = 15
|
||||
cache_read = 0.25
|
||||
cache_write = 3.125
|
||||
input = 2
|
||||
output = 12
|
||||
cache_read = 0.2
|
||||
cache_write = 2.5
|
||||
@@ -1,14 +1,9 @@
|
||||
name = "Fugu Ultra"
|
||||
base_model = "sakana/fugu-ultra"
|
||||
description = "Quality-first multi-agent model for hard research, analysis, and competitions"
|
||||
family = "aura"
|
||||
release_date = "2026-06-21"
|
||||
last_updated = "2026-06-21"
|
||||
attachment = true
|
||||
reasoning = true
|
||||
reasoning_options = []
|
||||
temperature = true
|
||||
tool_call = true
|
||||
open_weights = false
|
||||
reasoning_options = []
|
||||
|
||||
[cost]
|
||||
input = 5
|
||||
@@ -16,9 +11,4 @@ output = 30
|
||||
cache_read = 0.5
|
||||
|
||||
[limit]
|
||||
context = 1_000_000
|
||||
output = 1_000_000
|
||||
|
||||
[modalities]
|
||||
input = ["text", "image"]
|
||||
output = ["text"]
|
||||
@@ -0,0 +1,17 @@
|
||||
name = "Grok Voice Think Fast 2.0"
|
||||
description = "Speech generation model for controllable voice, narration, and audio delivery"
|
||||
family = "grok"
|
||||
release_date = "2026-07-29"
|
||||
last_updated = "2026-07-29"
|
||||
attachment = false
|
||||
reasoning = false
|
||||
tool_call = false
|
||||
open_weights = false
|
||||
|
||||
[limit]
|
||||
context = 0
|
||||
output = 0
|
||||
|
||||
[modalities]
|
||||
input = ["text", "audio"]
|
||||
output = ["text", "audio"]
|
||||
@@ -10,10 +10,9 @@ type = "effort"
|
||||
values = ["high", "xhigh"]
|
||||
|
||||
[cost]
|
||||
input = 1.4
|
||||
output = 4.4
|
||||
cache_read = 0.14
|
||||
input = 1.1
|
||||
output = 3.851
|
||||
cache_read = 0.275
|
||||
|
||||
[limit]
|
||||
context = 1_040_000
|
||||
output = 128_000
|
||||
Reference in new issue
Block a user