Inkling Small یا KAT-Coder-Pro V2؟
هر دو با همان کلید و همان کد در یوتاپن کار میکنند؛ فقط مقدار model عوض میشود. پس میتوانی بدون تغییر معماری، هر دو را روی کار واقعی خودت تست کنی.
| ویژگی | Inkling Small | |
|---|---|---|
| تأمینکننده | Thinking Machines | Kwaipilot |
| شناسهٔ مدل | thinkingmachines/inkling-small | kwaipilot/kat-coder-pro-v2 |
| context | 1,048,576 توکن | 262,144 توکن |
| حداکثر خروجی | 262,144 توکن | 144,000 توکن |
| ورودی / ۱M توکن | 130,556 تومان | 87,038 تومان |
| خروجی / ۱M توکن | 348,150 تومان | 348,150 تومان |
| ≈ یک درخواست ۱٬۰۰۰ کلمهای | 622 تومان | 566 تومان |
| cache ورودی | 29,013 تومان / ۱M | 17,408 تومان / ۱M |
| ورودی تصویر | دارد | ندارد |
| ورودی فایل | ندارد | ندارد |
| tool calling | دارد | دارد |
| خروجی JSON | ندارد | دارد |
| حالت استدلال | دارد | ندارد |
کدام برای چه کاری؟
Inkling Small
- مسئلههای چندمرحلهای، ریاضی و دیباگ
- تحلیل اسناد بلند و کدبیس در یک درخواست
- خواندن تصویر، فاکتور و فرم
- ایجنت و اتصال به API و دیتابیس
622 تومان برای هر ۱٬۰۰۰ کلمه · صفحهٔ مدل
KAT-Coder-Pro V2
- تحلیل اسناد بلند و کدبیس در یک درخواست
- ایجنت و اتصال به API و دیتابیس
566 تومان برای هر ۱٬۰۰۰ کلمه · صفحهٔ مدل
تست هر دو با یک کد
فقط model را بین دو شناسه عوض کن و همان درخواست را دو بار بفرست؛ هزینهٔ هر پاسخ در هدر X-Uttapen-Cost-Toman برمیگردد.
curl https://api.uttapen.ir/v1/chat/completions \
-H "Authorization: Bearer sk-up-…" \
-H "Content-Type: application/json" \
-d '{
"model": "thinkingmachines/inkling-small",
"messages": [{"role": "user", "content": "سلام! خودت را معرفی کن."}],
"stream": true
}'from openai import OpenAI
client = OpenAI(
base_url="https://api.uttapen.ir/v1",
api_key="sk-up-…",
)
stream = client.chat.completions.create(
model="thinkingmachines/inkling-small",
messages=[{"role": "user", "content": "سلام! خودت را معرفی کن."}],
stream=True,
)
for chunk in stream:
print(chunk.choices[0].delta.content or "", end="", flush=True)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.uttapen.ir/v1",
apiKey: "sk-up-…",
});
const stream = await client.chat.completions.create({
model: "thinkingmachines/inkling-small",
messages: [{ role: "user", content: "سلام! خودت را معرفی کن." }],
stream: true,
});
for await (const chunk of stream) {
process.stdout.write(chunk.choices[0]?.delta?.content ?? "");
}<?php
// composer require openai-php/client guzzlehttp/guzzle
$client = OpenAI::factory()
->withBaseUri('https://api.uttapen.ir/v1')
->withApiKey('sk-up-…')
->make();
$result = $client->chat()->create([
'model' => 'thinkingmachines/inkling-small',
'messages' => [['role' => 'user', 'content' => 'سلام! خودت را معرفی کن.']],
]);
echo $result->choices[0]->message->content;package main
import (
"context"
"fmt"
"github.com/openai/openai-go"
"github.com/openai/openai-go/option"
)
func main() {
client := openai.NewClient(
option.WithBaseURL("https://api.uttapen.ir/v1"),
option.WithAPIKey("sk-up-…"),
)
resp, err := client.Chat.Completions.New(context.Background(), openai.ChatCompletionNewParams{
Model: "thinkingmachines/inkling-small",
Messages: []openai.ChatCompletionMessageParamUnion{openai.UserMessage("سلام! خودت را معرفی کن.")},
})
if err != nil {
panic(err)
}
fmt.Println(resp.Choices[0].Message.Content)
}model = "kwaipilot/kat-coder-pro-v2"
مقایسههای دیگر: همهٔ جفتها · رتبهبندی مدلها · فهرست کامل
base_url = https://api.uttapen.ir/v1