@funkai/models 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.generated/entries.json +23 -0
- package/.generated/req.txt +1 -0
- package/.turbo/turbo-build.log +145 -0
- package/.turbo/turbo-typecheck.log +4 -0
- package/CHANGELOG.md +23 -0
- package/README.md +95 -0
- package/dist/alibaba-B6q4Ng1R.mjs +957 -0
- package/dist/alibaba-B6q4Ng1R.mjs.map +1 -0
- package/dist/amazon-bedrock-Cv9AHQBH.mjs +2070 -0
- package/dist/amazon-bedrock-Cv9AHQBH.mjs.map +1 -0
- package/dist/anthropic-yB7ST97_.mjs +651 -0
- package/dist/anthropic-yB7ST97_.mjs.map +1 -0
- package/dist/cerebras-COfl7XM-.mjs +95 -0
- package/dist/cerebras-COfl7XM-.mjs.map +1 -0
- package/dist/cohere-B7TgO0hT.mjs +271 -0
- package/dist/cohere-B7TgO0hT.mjs.map +1 -0
- package/dist/deepinfra-B0GxUwCG.mjs +636 -0
- package/dist/deepinfra-B0GxUwCG.mjs.map +1 -0
- package/dist/deepseek-D64ZEsvS.mjs +50 -0
- package/dist/deepseek-D64ZEsvS.mjs.map +1 -0
- package/dist/fireworks-ai-DJYvdAi_.mjs +304 -0
- package/dist/fireworks-ai-DJYvdAi_.mjs.map +1 -0
- package/dist/google-BypRl349.mjs +833 -0
- package/dist/google-BypRl349.mjs.map +1 -0
- package/dist/google-vertex-DbS-zTGD.mjs +730 -0
- package/dist/google-vertex-DbS-zTGD.mjs.map +1 -0
- package/dist/groq-ei_PerYi.mjs +381 -0
- package/dist/groq-ei_PerYi.mjs.map +1 -0
- package/dist/huggingface-DaM1EeLP.mjs +456 -0
- package/dist/huggingface-DaM1EeLP.mjs.map +1 -0
- package/dist/inception-CspEzqNV.mjs +101 -0
- package/dist/inception-CspEzqNV.mjs.map +1 -0
- package/dist/index.d.mts +30314 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +271 -0
- package/dist/index.mjs.map +1 -0
- package/dist/llama-Cf3-koap.mjs +161 -0
- package/dist/llama-Cf3-koap.mjs.map +1 -0
- package/dist/mistral-BI9MdAO4.mjs +579 -0
- package/dist/mistral-BI9MdAO4.mjs.map +1 -0
- package/dist/nvidia-COHacuoa.mjs +1625 -0
- package/dist/nvidia-COHacuoa.mjs.map +1 -0
- package/dist/openai-C0nCfZUq.mjs +1023 -0
- package/dist/openai-C0nCfZUq.mjs.map +1 -0
- package/dist/openrouter-DSFzxKQb.mjs +4608 -0
- package/dist/openrouter-DSFzxKQb.mjs.map +1 -0
- package/dist/perplexity-zeZ2WlBU.mjs +96 -0
- package/dist/perplexity-zeZ2WlBU.mjs.map +1 -0
- package/dist/providers/alibaba.d.mts +1795 -0
- package/dist/providers/alibaba.d.mts.map +1 -0
- package/dist/providers/alibaba.mjs +39 -0
- package/dist/providers/alibaba.mjs.map +1 -0
- package/dist/providers/amazon-bedrock.d.mts +3713 -0
- package/dist/providers/amazon-bedrock.d.mts.map +1 -0
- package/dist/providers/amazon-bedrock.mjs +39 -0
- package/dist/providers/amazon-bedrock.mjs.map +1 -0
- package/dist/providers/anthropic.d.mts +1109 -0
- package/dist/providers/anthropic.d.mts.map +1 -0
- package/dist/providers/anthropic.mjs +39 -0
- package/dist/providers/anthropic.mjs.map +1 -0
- package/dist/providers/cerebras.d.mts +219 -0
- package/dist/providers/cerebras.d.mts.map +1 -0
- package/dist/providers/cerebras.mjs +39 -0
- package/dist/providers/cerebras.mjs.map +1 -0
- package/dist/providers/cohere.d.mts +555 -0
- package/dist/providers/cohere.d.mts.map +1 -0
- package/dist/providers/cohere.mjs +39 -0
- package/dist/providers/cohere.mjs.map +1 -0
- package/dist/providers/deepinfra.d.mts +1245 -0
- package/dist/providers/deepinfra.d.mts.map +1 -0
- package/dist/providers/deepinfra.mjs +39 -0
- package/dist/providers/deepinfra.mjs.map +1 -0
- package/dist/providers/deepseek.d.mts +139 -0
- package/dist/providers/deepseek.d.mts.map +1 -0
- package/dist/providers/deepseek.mjs +39 -0
- package/dist/providers/deepseek.mjs.map +1 -0
- package/dist/providers/fireworks-ai.d.mts +611 -0
- package/dist/providers/fireworks-ai.d.mts.map +1 -0
- package/dist/providers/fireworks-ai.mjs +39 -0
- package/dist/providers/fireworks-ai.mjs.map +1 -0
- package/dist/providers/google-vertex.d.mts +1227 -0
- package/dist/providers/google-vertex.d.mts.map +1 -0
- package/dist/providers/google-vertex.mjs +39 -0
- package/dist/providers/google-vertex.mjs.map +1 -0
- package/dist/providers/google.d.mts +1359 -0
- package/dist/providers/google.d.mts.map +1 -0
- package/dist/providers/google.mjs +39 -0
- package/dist/providers/google.mjs.map +1 -0
- package/dist/providers/groq.d.mts +765 -0
- package/dist/providers/groq.d.mts.map +1 -0
- package/dist/providers/groq.mjs +39 -0
- package/dist/providers/groq.mjs.map +1 -0
- package/dist/providers/huggingface.d.mts +901 -0
- package/dist/providers/huggingface.d.mts.map +1 -0
- package/dist/providers/huggingface.mjs +39 -0
- package/dist/providers/huggingface.mjs.map +1 -0
- package/dist/providers/inception.d.mts +231 -0
- package/dist/providers/inception.d.mts.map +1 -0
- package/dist/providers/inception.mjs +39 -0
- package/dist/providers/inception.mjs.map +1 -0
- package/dist/providers/llama.d.mts +345 -0
- package/dist/providers/llama.d.mts.map +1 -0
- package/dist/providers/llama.mjs +39 -0
- package/dist/providers/llama.mjs.map +1 -0
- package/dist/providers/mistral.d.mts +1143 -0
- package/dist/providers/mistral.d.mts.map +1 -0
- package/dist/providers/mistral.mjs +39 -0
- package/dist/providers/mistral.mjs.map +1 -0
- package/dist/providers/nvidia.d.mts +3117 -0
- package/dist/providers/nvidia.d.mts.map +1 -0
- package/dist/providers/nvidia.mjs +39 -0
- package/dist/providers/nvidia.mjs.map +1 -0
- package/dist/providers/openai.d.mts +1963 -0
- package/dist/providers/openai.d.mts.map +1 -0
- package/dist/providers/openai.mjs +39 -0
- package/dist/providers/openai.mjs.map +1 -0
- package/dist/providers/openrouter.d.mts +8531 -0
- package/dist/providers/openrouter.d.mts.map +1 -0
- package/dist/providers/openrouter.mjs +39 -0
- package/dist/providers/openrouter.mjs.map +1 -0
- package/dist/providers/perplexity.d.mts +221 -0
- package/dist/providers/perplexity.d.mts.map +1 -0
- package/dist/providers/perplexity.mjs +39 -0
- package/dist/providers/perplexity.mjs.map +1 -0
- package/dist/providers/togetherai.d.mts +767 -0
- package/dist/providers/togetherai.d.mts.map +1 -0
- package/dist/providers/togetherai.mjs +39 -0
- package/dist/providers/togetherai.mjs.map +1 -0
- package/dist/providers/xai.d.mts +1161 -0
- package/dist/providers/xai.d.mts.map +1 -0
- package/dist/providers/xai.mjs +39 -0
- package/dist/providers/xai.mjs.map +1 -0
- package/dist/togetherai-BvcxUfPE.mjs +382 -0
- package/dist/togetherai-BvcxUfPE.mjs.map +1 -0
- package/dist/types-DjdaZckF.d.mts +71 -0
- package/dist/types-DjdaZckF.d.mts.map +1 -0
- package/dist/xai-fSuAkQJo.mjs +587 -0
- package/dist/xai-fSuAkQJo.mjs.map +1 -0
- package/docs/catalog/filtering.md +102 -0
- package/docs/catalog/overview.md +168 -0
- package/docs/catalog/providers.md +73 -0
- package/docs/cost/overview.md +125 -0
- package/docs/guides/filter-models.md +113 -0
- package/docs/guides/setup-resolver.md +106 -0
- package/docs/guides/track-costs.md +133 -0
- package/docs/overview.md +139 -0
- package/docs/provider/configuration.md +100 -0
- package/docs/provider/openrouter.md +105 -0
- package/docs/provider/overview.md +131 -0
- package/docs/troubleshooting.md +100 -0
- package/package.json +142 -0
- package/providers.json +39 -0
- package/scripts/generate-models.ts +392 -0
- package/src/catalog/index.test.ts +124 -0
- package/src/catalog/index.ts +65 -0
- package/src/catalog/providers/alibaba.ts +468 -0
- package/src/catalog/providers/amazon-bedrock.ts +941 -0
- package/src/catalog/providers/anthropic.ts +270 -0
- package/src/catalog/providers/cerebras.ts +61 -0
- package/src/catalog/providers/cohere.ts +149 -0
- package/src/catalog/providers/deepinfra.ts +325 -0
- package/src/catalog/providers/deepseek.ts +39 -0
- package/src/catalog/providers/fireworks-ai.ts +160 -0
- package/src/catalog/providers/google-vertex.ts +314 -0
- package/src/catalog/providers/google.ts +347 -0
- package/src/catalog/providers/groq.ts +204 -0
- package/src/catalog/providers/huggingface.ts +237 -0
- package/src/catalog/providers/inception.ts +61 -0
- package/src/catalog/providers/index.ts +59 -0
- package/src/catalog/providers/llama.ts +94 -0
- package/src/catalog/providers/mistral.ts +303 -0
- package/src/catalog/providers/nvidia.ts +820 -0
- package/src/catalog/providers/openai.ts +501 -0
- package/src/catalog/providers/openrouter.ts +2201 -0
- package/src/catalog/providers/perplexity.ts +61 -0
- package/src/catalog/providers/togetherai.ts +204 -0
- package/src/catalog/providers/xai.ts +292 -0
- package/src/catalog/types.ts +86 -0
- package/src/cost/calculate.test.ts +157 -0
- package/src/cost/calculate.ts +43 -0
- package/src/cost/index.ts +2 -0
- package/src/cost/types.ts +25 -0
- package/src/index.ts +25 -0
- package/src/provider/index.ts +9 -0
- package/src/provider/openrouter.test.ts +125 -0
- package/src/provider/openrouter.ts +110 -0
- package/src/provider/resolver.test.ts +138 -0
- package/src/provider/resolver.ts +125 -0
- package/src/provider/types.ts +39 -0
- package/src/providers/alibaba.ts +65 -0
- package/src/providers/amazon-bedrock.ts +67 -0
- package/src/providers/anthropic.ts +65 -0
- package/src/providers/cerebras.ts +65 -0
- package/src/providers/cohere.ts +65 -0
- package/src/providers/deepinfra.ts +65 -0
- package/src/providers/deepseek.ts +65 -0
- package/src/providers/fireworks-ai.ts +65 -0
- package/src/providers/google-vertex.ts +67 -0
- package/src/providers/google.ts +65 -0
- package/src/providers/groq.ts +65 -0
- package/src/providers/huggingface.ts +67 -0
- package/src/providers/inception.ts +65 -0
- package/src/providers/llama.ts +65 -0
- package/src/providers/mistral.ts +65 -0
- package/src/providers/nvidia.ts +65 -0
- package/src/providers/openai.ts +65 -0
- package/src/providers/openrouter.ts +67 -0
- package/src/providers/perplexity.ts +67 -0
- package/src/providers/togetherai.ts +65 -0
- package/src/providers/xai.ts +65 -0
- package/tsconfig.json +25 -0
- package/tsdown.config.ts +23 -0
- package/vitest.config.ts +29 -0
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { describe, expect, it } from "vitest";
|
|
2
|
+
|
|
3
|
+
import { model, models, MODELS } from "@/catalog/index.js";
|
|
4
|
+
|
|
5
|
+
// ---------------------------------------------------------------------------
|
|
6
|
+
// MODELS constant
|
|
7
|
+
// ---------------------------------------------------------------------------
|
|
8
|
+
|
|
9
|
+
describe("MODELS", () => {
|
|
10
|
+
it("is a non-empty array", () => {
|
|
11
|
+
expect(MODELS.length).toBeGreaterThan(0);
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
it("every entry has required fields", () => {
|
|
15
|
+
for (const m of MODELS) {
|
|
16
|
+
expect(typeof m.id).toBe("string");
|
|
17
|
+
expect(m.id.length).toBeGreaterThan(0);
|
|
18
|
+
expect(typeof m.provider).toBe("string");
|
|
19
|
+
expect(typeof m.pricing.input).toBe("number");
|
|
20
|
+
expect(typeof m.pricing.output).toBe("number");
|
|
21
|
+
expect(Array.isArray(m.modalities.input)).toBe(true);
|
|
22
|
+
expect(Array.isArray(m.modalities.output)).toBe(true);
|
|
23
|
+
expect(typeof m.capabilities.reasoning).toBe("boolean");
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
it("contains known model IDs", () => {
|
|
28
|
+
const ids = MODELS.map((m) => m.id);
|
|
29
|
+
expect(ids).toContain("gpt-4o-mini");
|
|
30
|
+
expect(ids).toContain("o1");
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
it("has no duplicate IDs within the same provider", () => {
|
|
34
|
+
const seen = new Map<string, Set<string>>();
|
|
35
|
+
for (const m of MODELS) {
|
|
36
|
+
const providerSet = seen.get(m.provider) ?? new Set<string>();
|
|
37
|
+
expect(providerSet.has(m.id)).toBe(false);
|
|
38
|
+
providerSet.add(m.id);
|
|
39
|
+
seen.set(m.provider, providerSet);
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
// ---------------------------------------------------------------------------
|
|
45
|
+
// model()
|
|
46
|
+
// ---------------------------------------------------------------------------
|
|
47
|
+
|
|
48
|
+
describe("model()", () => {
|
|
49
|
+
it("returns the model definition for a known ID", () => {
|
|
50
|
+
const result = model("gpt-4o-mini");
|
|
51
|
+
|
|
52
|
+
expect(result).not.toBeNull();
|
|
53
|
+
expect(result!.id).toBe("gpt-4o-mini");
|
|
54
|
+
expect(result!.provider).toBe("openai");
|
|
55
|
+
expect(typeof result!.pricing.input).toBe("number");
|
|
56
|
+
expect(typeof result!.pricing.output).toBe("number");
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
it("returns null for an unknown model ID", () => {
|
|
60
|
+
const result = model("nonexistent-model-99");
|
|
61
|
+
|
|
62
|
+
expect(result).toBeNull();
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
it("returns model with reasoning capability", () => {
|
|
66
|
+
const result = model("o1");
|
|
67
|
+
|
|
68
|
+
expect(result).not.toBeNull();
|
|
69
|
+
expect(result!.capabilities.reasoning).toBe(true);
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
it("returns model with correct modalities", () => {
|
|
73
|
+
const result = model("gpt-4o-mini");
|
|
74
|
+
|
|
75
|
+
expect(result).not.toBeNull();
|
|
76
|
+
expect(result!.modalities.input).toContain("text");
|
|
77
|
+
expect(result!.modalities.output).toContain("text");
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
// ---------------------------------------------------------------------------
|
|
82
|
+
// models()
|
|
83
|
+
// ---------------------------------------------------------------------------
|
|
84
|
+
|
|
85
|
+
describe("models()", () => {
|
|
86
|
+
it("returns all models when called without filter", () => {
|
|
87
|
+
const result = models();
|
|
88
|
+
|
|
89
|
+
expect(result.length).toBe(MODELS.length);
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
it("filters models by capability", () => {
|
|
93
|
+
const reasoningModels = models((m) => m.capabilities.reasoning);
|
|
94
|
+
|
|
95
|
+
expect(reasoningModels.length).toBeGreaterThan(0);
|
|
96
|
+
for (const m of reasoningModels) {
|
|
97
|
+
expect(m.capabilities.reasoning).toBe(true);
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
it("filters models by modality", () => {
|
|
102
|
+
const imageModels = models((m) => m.modalities.input.includes("image"));
|
|
103
|
+
|
|
104
|
+
expect(imageModels.length).toBeGreaterThan(0);
|
|
105
|
+
for (const m of imageModels) {
|
|
106
|
+
expect(m.modalities.input).toContain("image");
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
it("returns empty array when filter matches nothing", () => {
|
|
111
|
+
const result = models(() => false);
|
|
112
|
+
|
|
113
|
+
expect(result).toEqual([]);
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
it("supports arbitrary filter predicates", () => {
|
|
117
|
+
const result = models((m) => m.pricing.input > 0.000001);
|
|
118
|
+
|
|
119
|
+
expect(result.length).toBeGreaterThan(0);
|
|
120
|
+
for (const m of result) {
|
|
121
|
+
expect(m.pricing.input).toBeGreaterThan(0.000001);
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
});
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { LiteralUnion } from "type-fest";
|
|
2
|
+
|
|
3
|
+
import type { ModelCapabilities, ModelDefinition, ModelModalities, ModelPricing } from "./types.js";
|
|
4
|
+
import { MODELS as GENERATED_MODELS } from "@/catalog/providers/index.js";
|
|
5
|
+
|
|
6
|
+
export type { ModelCapabilities, ModelDefinition, ModelModalities, ModelPricing };
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Known model identifiers from the generated catalog.
|
|
10
|
+
*/
|
|
11
|
+
export type KnownModelId = (typeof GENERATED_MODELS)[number]["id"];
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* A model identifier that suggests known models but accepts any string.
|
|
15
|
+
*
|
|
16
|
+
* Provides autocomplete for cataloged models while allowing arbitrary
|
|
17
|
+
* model IDs for new or custom models not yet in the catalog.
|
|
18
|
+
*/
|
|
19
|
+
export type ModelId = LiteralUnion<KnownModelId, string>;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* All supported models with pricing and capability data.
|
|
23
|
+
*/
|
|
24
|
+
export const MODELS = GENERATED_MODELS satisfies readonly ModelDefinition[];
|
|
25
|
+
|
|
26
|
+
const MODEL_INDEX = new Map<string, ModelDefinition>(MODELS.map((m) => [m.id, m]));
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Look up a model definition by its identifier.
|
|
30
|
+
*
|
|
31
|
+
* Returns `null` when the ID is not in the catalog — callers should
|
|
32
|
+
* handle missing models gracefully (e.g. custom or newly released models).
|
|
33
|
+
*
|
|
34
|
+
* @param id - The model identifier to look up.
|
|
35
|
+
* @returns The matching model definition, or `null`.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```typescript
|
|
39
|
+
* const m = model('gpt-4.1')
|
|
40
|
+
* if (m) {
|
|
41
|
+
* console.log(m.pricing.input)
|
|
42
|
+
* console.log(m.capabilities.reasoning)
|
|
43
|
+
* }
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
export function model(id: ModelId): ModelDefinition | null {
|
|
47
|
+
return MODEL_INDEX.get(id) ?? null;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Return supported model definitions, optionally filtered.
|
|
52
|
+
*
|
|
53
|
+
* @param filter - Optional predicate to filter models.
|
|
54
|
+
* @returns A readonly array of matching model definitions.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```typescript
|
|
58
|
+
* const all = models()
|
|
59
|
+
* const reasoning = models((m) => m.capabilities.reasoning)
|
|
60
|
+
* const vision = models((m) => m.modalities.input.includes('image'))
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
export function models(filter?: (m: ModelDefinition) => boolean): readonly ModelDefinition[] {
|
|
64
|
+
return filter ? MODELS.filter(filter) : MODELS;
|
|
65
|
+
}
|
|
@@ -0,0 +1,468 @@
|
|
|
1
|
+
// ──────────────────────────────────────────────────────────────
|
|
2
|
+
// ███████╗██╗ ██╗███╗ ██╗██╗ ██╗ █████╗ ██╗
|
|
3
|
+
// ██╔════╝██║ ██║████╗ ██║██║ ██╔╝██╔══██╗██║
|
|
4
|
+
// █████╗ ██║ ██║██╔██╗ ██║█████╔╝ ███████║██║
|
|
5
|
+
// ██╔══╝ ██║ ██║██║╚██╗██║██╔═██╗ ██╔══██║██║
|
|
6
|
+
// ██║ ╚██████╔╝██║ ╚████║██║ ██╗██║ ██║██║
|
|
7
|
+
// ╚═╝ ╚═════╝ ╚═╝ ╚═══╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝
|
|
8
|
+
//
|
|
9
|
+
// AUTO-GENERATED — DO NOT EDIT
|
|
10
|
+
// Source: https://models.dev
|
|
11
|
+
// Update: pnpm --filter=@funkai/models generate:models
|
|
12
|
+
// ──────────────────────────────────────────────────────────────
|
|
13
|
+
|
|
14
|
+
import type { ModelDefinition } from "../types.js";
|
|
15
|
+
|
|
16
|
+
export const ALIBABA_MODELS = [
|
|
17
|
+
{
|
|
18
|
+
id: "qwen-vl-plus",
|
|
19
|
+
name: "Qwen-VL Plus",
|
|
20
|
+
provider: "alibaba",
|
|
21
|
+
family: "qwen",
|
|
22
|
+
pricing: { input: 2.1e-7, output: 6.3e-7 },
|
|
23
|
+
contextWindow: 131072,
|
|
24
|
+
maxOutput: 8192,
|
|
25
|
+
modalities: { input: ["text", "image"], output: ["text"] },
|
|
26
|
+
capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
id: "qwen-vl-max",
|
|
30
|
+
name: "Qwen-VL Max",
|
|
31
|
+
provider: "alibaba",
|
|
32
|
+
family: "qwen",
|
|
33
|
+
pricing: { input: 8e-7, output: 0.0000032 },
|
|
34
|
+
contextWindow: 131072,
|
|
35
|
+
maxOutput: 8192,
|
|
36
|
+
modalities: { input: ["text", "image"], output: ["text"] },
|
|
37
|
+
capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
id: "qwen3-next-80b-a3b-thinking",
|
|
41
|
+
name: "Qwen3-Next 80B-A3B (Thinking)",
|
|
42
|
+
provider: "alibaba",
|
|
43
|
+
family: "qwen",
|
|
44
|
+
pricing: { input: 5e-7, output: 0.000006 },
|
|
45
|
+
contextWindow: 131072,
|
|
46
|
+
maxOutput: 32768,
|
|
47
|
+
modalities: { input: ["text"], output: ["text"] },
|
|
48
|
+
capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
id: "qwen3-coder-480b-a35b-instruct",
|
|
52
|
+
name: "Qwen3-Coder 480B-A35B Instruct",
|
|
53
|
+
provider: "alibaba",
|
|
54
|
+
family: "qwen",
|
|
55
|
+
pricing: { input: 0.0000015, output: 0.0000075 },
|
|
56
|
+
contextWindow: 262144,
|
|
57
|
+
maxOutput: 65536,
|
|
58
|
+
modalities: { input: ["text"], output: ["text"] },
|
|
59
|
+
capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
id: "qwen3-14b",
|
|
63
|
+
name: "Qwen3 14B",
|
|
64
|
+
provider: "alibaba",
|
|
65
|
+
family: "qwen",
|
|
66
|
+
pricing: { input: 3.5e-7, output: 0.0000014, reasoning: 0.0000042 },
|
|
67
|
+
contextWindow: 131072,
|
|
68
|
+
maxOutput: 8192,
|
|
69
|
+
modalities: { input: ["text"], output: ["text"] },
|
|
70
|
+
capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
id: "qwen3-coder-flash",
|
|
74
|
+
name: "Qwen3 Coder Flash",
|
|
75
|
+
provider: "alibaba",
|
|
76
|
+
family: "qwen",
|
|
77
|
+
pricing: { input: 3e-7, output: 0.0000015 },
|
|
78
|
+
contextWindow: 1000000,
|
|
79
|
+
maxOutput: 65536,
|
|
80
|
+
modalities: { input: ["text"], output: ["text"] },
|
|
81
|
+
capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
id: "qwen3-vl-30b-a3b",
|
|
85
|
+
name: "Qwen3-VL 30B-A3B",
|
|
86
|
+
provider: "alibaba",
|
|
87
|
+
family: "qwen",
|
|
88
|
+
pricing: { input: 2e-7, output: 8e-7, reasoning: 0.0000024 },
|
|
89
|
+
contextWindow: 131072,
|
|
90
|
+
maxOutput: 32768,
|
|
91
|
+
modalities: { input: ["text", "image"], output: ["text"] },
|
|
92
|
+
capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
id: "qwen3-asr-flash",
|
|
96
|
+
name: "Qwen3-ASR Flash",
|
|
97
|
+
provider: "alibaba",
|
|
98
|
+
family: "qwen",
|
|
99
|
+
pricing: { input: 3.5e-8, output: 3.5e-8 },
|
|
100
|
+
contextWindow: 53248,
|
|
101
|
+
maxOutput: 4096,
|
|
102
|
+
modalities: { input: ["audio"], output: ["text"] },
|
|
103
|
+
capabilities: { reasoning: false, toolCall: false, attachment: false, structuredOutput: false },
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
id: "qwen-max",
|
|
107
|
+
name: "Qwen Max",
|
|
108
|
+
provider: "alibaba",
|
|
109
|
+
family: "qwen",
|
|
110
|
+
pricing: { input: 0.0000016, output: 0.0000064 },
|
|
111
|
+
contextWindow: 32768,
|
|
112
|
+
maxOutput: 8192,
|
|
113
|
+
modalities: { input: ["text"], output: ["text"] },
|
|
114
|
+
capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
id: "qwen-turbo",
|
|
118
|
+
name: "Qwen Turbo",
|
|
119
|
+
provider: "alibaba",
|
|
120
|
+
family: "qwen",
|
|
121
|
+
pricing: { input: 5e-8, output: 2e-7, reasoning: 5e-7 },
|
|
122
|
+
contextWindow: 1000000,
|
|
123
|
+
maxOutput: 16384,
|
|
124
|
+
modalities: { input: ["text"], output: ["text"] },
|
|
125
|
+
capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
id: "qwen2-5-7b-instruct",
|
|
129
|
+
name: "Qwen2.5 7B Instruct",
|
|
130
|
+
provider: "alibaba",
|
|
131
|
+
family: "qwen",
|
|
132
|
+
pricing: { input: 1.75e-7, output: 7e-7 },
|
|
133
|
+
contextWindow: 131072,
|
|
134
|
+
maxOutput: 8192,
|
|
135
|
+
modalities: { input: ["text"], output: ["text"] },
|
|
136
|
+
capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
id: "qwen2-5-vl-72b-instruct",
|
|
140
|
+
name: "Qwen2.5-VL 72B Instruct",
|
|
141
|
+
provider: "alibaba",
|
|
142
|
+
family: "qwen",
|
|
143
|
+
pricing: { input: 0.0000028, output: 0.0000084 },
|
|
144
|
+
contextWindow: 131072,
|
|
145
|
+
maxOutput: 8192,
|
|
146
|
+
modalities: { input: ["text", "image"], output: ["text"] },
|
|
147
|
+
capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
id: "qwen2-5-14b-instruct",
|
|
151
|
+
name: "Qwen2.5 14B Instruct",
|
|
152
|
+
provider: "alibaba",
|
|
153
|
+
family: "qwen",
|
|
154
|
+
pricing: { input: 3.5e-7, output: 0.0000014 },
|
|
155
|
+
contextWindow: 131072,
|
|
156
|
+
maxOutput: 8192,
|
|
157
|
+
modalities: { input: ["text"], output: ["text"] },
|
|
158
|
+
capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
id: "qwen3-8b",
|
|
162
|
+
name: "Qwen3 8B",
|
|
163
|
+
provider: "alibaba",
|
|
164
|
+
family: "qwen",
|
|
165
|
+
pricing: { input: 1.8e-7, output: 7e-7, reasoning: 0.0000021 },
|
|
166
|
+
contextWindow: 131072,
|
|
167
|
+
maxOutput: 8192,
|
|
168
|
+
modalities: { input: ["text"], output: ["text"] },
|
|
169
|
+
capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
id: "qwen3-32b",
|
|
173
|
+
name: "Qwen3 32B",
|
|
174
|
+
provider: "alibaba",
|
|
175
|
+
family: "qwen",
|
|
176
|
+
pricing: { input: 7e-7, output: 0.0000028, reasoning: 0.0000084 },
|
|
177
|
+
contextWindow: 131072,
|
|
178
|
+
maxOutput: 16384,
|
|
179
|
+
modalities: { input: ["text"], output: ["text"] },
|
|
180
|
+
capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
id: "qwen3.5-397b-a17b",
|
|
184
|
+
name: "Qwen3.5 397B-A17B",
|
|
185
|
+
provider: "alibaba",
|
|
186
|
+
family: "qwen",
|
|
187
|
+
pricing: { input: 6e-7, output: 0.0000036, reasoning: 0.0000036 },
|
|
188
|
+
contextWindow: 262144,
|
|
189
|
+
maxOutput: 65536,
|
|
190
|
+
modalities: { input: ["text", "image", "video"], output: ["text"] },
|
|
191
|
+
capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
id: "qvq-max",
|
|
195
|
+
name: "QVQ Max",
|
|
196
|
+
provider: "alibaba",
|
|
197
|
+
family: "qvq",
|
|
198
|
+
pricing: { input: 0.0000012, output: 0.0000048 },
|
|
199
|
+
contextWindow: 131072,
|
|
200
|
+
maxOutput: 8192,
|
|
201
|
+
modalities: { input: ["text", "image"], output: ["text"] },
|
|
202
|
+
capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
id: "qwen2-5-omni-7b",
|
|
206
|
+
name: "Qwen2.5-Omni 7B",
|
|
207
|
+
provider: "alibaba",
|
|
208
|
+
family: "qwen",
|
|
209
|
+
pricing: { input: 1e-7, output: 4e-7 },
|
|
210
|
+
contextWindow: 32768,
|
|
211
|
+
maxOutput: 2048,
|
|
212
|
+
modalities: { input: ["text", "image", "audio", "video"], output: ["text", "audio"] },
|
|
213
|
+
capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
id: "qwen2-5-vl-7b-instruct",
|
|
217
|
+
name: "Qwen2.5-VL 7B Instruct",
|
|
218
|
+
provider: "alibaba",
|
|
219
|
+
family: "qwen",
|
|
220
|
+
pricing: { input: 3.5e-7, output: 0.00000105 },
|
|
221
|
+
contextWindow: 131072,
|
|
222
|
+
maxOutput: 8192,
|
|
223
|
+
modalities: { input: ["text", "image"], output: ["text"] },
|
|
224
|
+
capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
id: "qwen-omni-turbo-realtime",
|
|
228
|
+
name: "Qwen-Omni Turbo Realtime",
|
|
229
|
+
provider: "alibaba",
|
|
230
|
+
family: "qwen",
|
|
231
|
+
pricing: { input: 2.7e-7, output: 0.00000107 },
|
|
232
|
+
contextWindow: 32768,
|
|
233
|
+
maxOutput: 2048,
|
|
234
|
+
modalities: { input: ["text", "image", "audio"], output: ["text", "audio"] },
|
|
235
|
+
capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
id: "qwen3-235b-a22b",
|
|
239
|
+
name: "Qwen3 235B-A22B",
|
|
240
|
+
provider: "alibaba",
|
|
241
|
+
family: "qwen",
|
|
242
|
+
pricing: { input: 7e-7, output: 0.0000028, reasoning: 0.0000084 },
|
|
243
|
+
contextWindow: 131072,
|
|
244
|
+
maxOutput: 16384,
|
|
245
|
+
modalities: { input: ["text"], output: ["text"] },
|
|
246
|
+
capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
id: "qwen3-coder-30b-a3b-instruct",
|
|
250
|
+
name: "Qwen3-Coder 30B-A3B Instruct",
|
|
251
|
+
provider: "alibaba",
|
|
252
|
+
family: "qwen",
|
|
253
|
+
pricing: { input: 4.5e-7, output: 0.00000225 },
|
|
254
|
+
contextWindow: 262144,
|
|
255
|
+
maxOutput: 65536,
|
|
256
|
+
modalities: { input: ["text"], output: ["text"] },
|
|
257
|
+
capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
id: "qwen-omni-turbo",
|
|
261
|
+
name: "Qwen-Omni Turbo",
|
|
262
|
+
provider: "alibaba",
|
|
263
|
+
family: "qwen",
|
|
264
|
+
pricing: { input: 7e-8, output: 2.7e-7 },
|
|
265
|
+
contextWindow: 32768,
|
|
266
|
+
maxOutput: 2048,
|
|
267
|
+
modalities: { input: ["text", "image", "audio", "video"], output: ["text", "audio"] },
|
|
268
|
+
capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
id: "qwen-mt-plus",
|
|
272
|
+
name: "Qwen-MT Plus",
|
|
273
|
+
provider: "alibaba",
|
|
274
|
+
family: "qwen",
|
|
275
|
+
pricing: { input: 0.00000246, output: 0.00000737 },
|
|
276
|
+
contextWindow: 16384,
|
|
277
|
+
maxOutput: 8192,
|
|
278
|
+
modalities: { input: ["text"], output: ["text"] },
|
|
279
|
+
capabilities: { reasoning: false, toolCall: false, attachment: false, structuredOutput: false },
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
id: "qwen3-vl-plus",
|
|
283
|
+
name: "Qwen3-VL Plus",
|
|
284
|
+
provider: "alibaba",
|
|
285
|
+
family: "qwen",
|
|
286
|
+
pricing: { input: 2e-7, output: 0.0000016, reasoning: 0.0000048 },
|
|
287
|
+
contextWindow: 262144,
|
|
288
|
+
maxOutput: 32768,
|
|
289
|
+
modalities: { input: ["text", "image"], output: ["text"] },
|
|
290
|
+
capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
id: "qwen3-livetranslate-flash-realtime",
|
|
294
|
+
name: "Qwen3-LiveTranslate Flash Realtime",
|
|
295
|
+
provider: "alibaba",
|
|
296
|
+
family: "qwen",
|
|
297
|
+
pricing: { input: 0.00001, output: 0.00001 },
|
|
298
|
+
contextWindow: 53248,
|
|
299
|
+
maxOutput: 4096,
|
|
300
|
+
modalities: { input: ["text", "image", "audio", "video"], output: ["text", "audio"] },
|
|
301
|
+
capabilities: { reasoning: false, toolCall: false, attachment: false, structuredOutput: false },
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
id: "qwen-plus",
|
|
305
|
+
name: "Qwen Plus",
|
|
306
|
+
provider: "alibaba",
|
|
307
|
+
family: "qwen",
|
|
308
|
+
pricing: { input: 4e-7, output: 0.0000012, reasoning: 0.000004 },
|
|
309
|
+
contextWindow: 1000000,
|
|
310
|
+
maxOutput: 32768,
|
|
311
|
+
modalities: { input: ["text"], output: ["text"] },
|
|
312
|
+
capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
id: "qwen2-5-32b-instruct",
|
|
316
|
+
name: "Qwen2.5 32B Instruct",
|
|
317
|
+
provider: "alibaba",
|
|
318
|
+
family: "qwen",
|
|
319
|
+
pricing: { input: 7e-7, output: 0.0000028 },
|
|
320
|
+
contextWindow: 131072,
|
|
321
|
+
maxOutput: 8192,
|
|
322
|
+
modalities: { input: ["text"], output: ["text"] },
|
|
323
|
+
capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
id: "qwen3-next-80b-a3b-instruct",
|
|
327
|
+
name: "Qwen3-Next 80B-A3B Instruct",
|
|
328
|
+
provider: "alibaba",
|
|
329
|
+
family: "qwen",
|
|
330
|
+
pricing: { input: 5e-7, output: 0.000002 },
|
|
331
|
+
contextWindow: 131072,
|
|
332
|
+
maxOutput: 32768,
|
|
333
|
+
modalities: { input: ["text"], output: ["text"] },
|
|
334
|
+
capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
id: "qwen3.5-plus",
|
|
338
|
+
name: "Qwen3.5 Plus",
|
|
339
|
+
provider: "alibaba",
|
|
340
|
+
family: "qwen",
|
|
341
|
+
pricing: { input: 4e-7, output: 0.0000024, reasoning: 0.0000024 },
|
|
342
|
+
contextWindow: 1000000,
|
|
343
|
+
maxOutput: 65536,
|
|
344
|
+
modalities: { input: ["text", "image", "video"], output: ["text"] },
|
|
345
|
+
capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
id: "qwen3-max",
|
|
349
|
+
name: "Qwen3 Max",
|
|
350
|
+
provider: "alibaba",
|
|
351
|
+
family: "qwen",
|
|
352
|
+
pricing: { input: 0.0000012, output: 0.000006 },
|
|
353
|
+
contextWindow: 262144,
|
|
354
|
+
maxOutput: 65536,
|
|
355
|
+
modalities: { input: ["text"], output: ["text"] },
|
|
356
|
+
capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
id: "qwen3-omni-flash",
|
|
360
|
+
name: "Qwen3-Omni Flash",
|
|
361
|
+
provider: "alibaba",
|
|
362
|
+
family: "qwen",
|
|
363
|
+
pricing: { input: 4.3e-7, output: 0.00000166 },
|
|
364
|
+
contextWindow: 65536,
|
|
365
|
+
maxOutput: 16384,
|
|
366
|
+
modalities: { input: ["text", "image", "audio", "video"], output: ["text", "audio"] },
|
|
367
|
+
capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
id: "qwen3-coder-plus",
|
|
371
|
+
name: "Qwen3 Coder Plus",
|
|
372
|
+
provider: "alibaba",
|
|
373
|
+
family: "qwen",
|
|
374
|
+
pricing: { input: 0.000001, output: 0.000005 },
|
|
375
|
+
contextWindow: 1048576,
|
|
376
|
+
maxOutput: 65536,
|
|
377
|
+
modalities: { input: ["text"], output: ["text"] },
|
|
378
|
+
capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
id: "qwen-flash",
|
|
382
|
+
name: "Qwen Flash",
|
|
383
|
+
provider: "alibaba",
|
|
384
|
+
family: "qwen",
|
|
385
|
+
pricing: { input: 5e-8, output: 4e-7 },
|
|
386
|
+
contextWindow: 1000000,
|
|
387
|
+
maxOutput: 32768,
|
|
388
|
+
modalities: { input: ["text"], output: ["text"] },
|
|
389
|
+
capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
id: "qwen2-5-72b-instruct",
|
|
393
|
+
name: "Qwen2.5 72B Instruct",
|
|
394
|
+
provider: "alibaba",
|
|
395
|
+
family: "qwen",
|
|
396
|
+
pricing: { input: 0.0000014, output: 0.0000056 },
|
|
397
|
+
contextWindow: 131072,
|
|
398
|
+
maxOutput: 8192,
|
|
399
|
+
modalities: { input: ["text"], output: ["text"] },
|
|
400
|
+
capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
id: "qwen3-omni-flash-realtime",
|
|
404
|
+
name: "Qwen3-Omni Flash Realtime",
|
|
405
|
+
provider: "alibaba",
|
|
406
|
+
family: "qwen",
|
|
407
|
+
pricing: { input: 5.2e-7, output: 0.00000199 },
|
|
408
|
+
contextWindow: 65536,
|
|
409
|
+
maxOutput: 16384,
|
|
410
|
+
modalities: { input: ["text", "image", "audio", "video"], output: ["text", "audio"] },
|
|
411
|
+
capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
id: "qwen-vl-ocr",
|
|
415
|
+
name: "Qwen-VL OCR",
|
|
416
|
+
provider: "alibaba",
|
|
417
|
+
family: "qwen",
|
|
418
|
+
pricing: { input: 7.2e-7, output: 7.2e-7 },
|
|
419
|
+
contextWindow: 34096,
|
|
420
|
+
maxOutput: 4096,
|
|
421
|
+
modalities: { input: ["text", "image"], output: ["text"] },
|
|
422
|
+
capabilities: { reasoning: false, toolCall: false, attachment: false, structuredOutput: false },
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
id: "qwq-plus",
|
|
426
|
+
name: "QwQ Plus",
|
|
427
|
+
provider: "alibaba",
|
|
428
|
+
family: "qwen",
|
|
429
|
+
pricing: { input: 8e-7, output: 0.0000024 },
|
|
430
|
+
contextWindow: 131072,
|
|
431
|
+
maxOutput: 8192,
|
|
432
|
+
modalities: { input: ["text"], output: ["text"] },
|
|
433
|
+
capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
id: "qwen3-vl-235b-a22b",
|
|
437
|
+
name: "Qwen3-VL 235B-A22B",
|
|
438
|
+
provider: "alibaba",
|
|
439
|
+
family: "qwen",
|
|
440
|
+
pricing: { input: 7e-7, output: 0.0000028, reasoning: 0.0000084 },
|
|
441
|
+
contextWindow: 131072,
|
|
442
|
+
maxOutput: 32768,
|
|
443
|
+
modalities: { input: ["text", "image"], output: ["text"] },
|
|
444
|
+
capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
id: "qwen-plus-character-ja",
|
|
448
|
+
name: "Qwen Plus Character (Japanese)",
|
|
449
|
+
provider: "alibaba",
|
|
450
|
+
family: "qwen",
|
|
451
|
+
pricing: { input: 5e-7, output: 0.0000014 },
|
|
452
|
+
contextWindow: 8192,
|
|
453
|
+
maxOutput: 512,
|
|
454
|
+
modalities: { input: ["text"], output: ["text"] },
|
|
455
|
+
capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
id: "qwen-mt-turbo",
|
|
459
|
+
name: "Qwen-MT Turbo",
|
|
460
|
+
provider: "alibaba",
|
|
461
|
+
family: "qwen",
|
|
462
|
+
pricing: { input: 1.6e-7, output: 4.9e-7 },
|
|
463
|
+
contextWindow: 16384,
|
|
464
|
+
maxOutput: 8192,
|
|
465
|
+
modalities: { input: ["text"], output: ["text"] },
|
|
466
|
+
capabilities: { reasoning: false, toolCall: false, attachment: false, structuredOutput: false },
|
|
467
|
+
},
|
|
468
|
+
] as const satisfies readonly ModelDefinition[];
|