Cloudflare: Clef Flash बनाम LiquidAI: d1.3-ultra
api14 कैटलॉग की मौजूदा USD कीमतों और क्षमताओं के आधार पर Cloudflare: Clef Flash ($0.13 / 1M टोकन (≈ ₹12.38)) और LiquidAI: d1.3-ultra ($0.15 / 1M टोकन (≈ ₹13.68)) की आमने-सामने तुलना। दोनों एक ही OpenAI-compatible API से चलते हैं।
स्पेसिफिकेशन
| Cloudflare: Clef Flash | LiquidAI: d1.3-ultra | |
|---|---|---|
| प्रोवाइडर | Cloudflare | LiquidAI |
| इनपुट | $0.13 / 1M टोकन (≈ ₹12.38) | $0.15 / 1M टोकन (≈ ₹13.68) |
| संदर्भ विंडो | 24,576 | 65,536 |
| अधिकतम आउटपुट | 22,118 | 58,982 |
| इनपुट | text, image | text, image |
| आउटपुट | decisions | decisions |
| टूल कॉलिंग | ||
| संरचित आउटपुट | ||
| Reasoning नियंत्रण | ||
| जोड़ा गया | 1 अक्टू॰ 2026 | 30 नव॰ 2026 |
मुख्य अंतर
- Cloudflare: Clef Flash इनपुट tokens पर 10% सस्ता है।
- LiquidAI: d1.3-ultra 2.7× ज़्यादा context पढ़ता है (65,536 tokens)।
- 1,000 इनपुट और 500 आउटपुट tokens वाली request की लागत Cloudflare: Clef Flash के साथ $0.000133 और LiquidAI: d1.3-ultra के साथ $0.000147 है।
एक string से बदलें
दोनों मॉडल एक ही endpoint और request ढांचा इस्तेमाल करते हैं। model की वैल्यू "cloudflare/clef-flash" से "liquid/d1.3-ultra" करें, prompts, streaming और tools पहले की तरह काम करते रहेंगे।
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api14.com/api/v1",
apiKey: process.env.API14_API_KEY,
});
const result = await client.post("/decisions", { body: {
"model": "liquid/d1.3-ultra",
"state": "Customer: I was charged twice for my order and want my money back.",
"questions": {
"team": {
"type": "choice",
"instructions": "Which team should handle this message?",
"criteria": {
"billing": "Payments, refunds, invoices",
"support": "Product questions and bugs",
"sales": "Pricing and new purchases"
}
},
"urgent": {
"type": "noul",
"instructions": "Does this need a reply today?",
"criteria": {
"true": "Money, outage or legal risk",
"false": "Can wait"
}
}
}
} });
console.log(result.answers);
from openai import OpenAI
import os
client = OpenAI(
base_url="https://api14.com/api/v1",
api_key=os.environ["API14_API_KEY"],
)
result = client.post("/decisions", body={
"model": "liquid/d1.3-ultra",
"state": "Customer: I was charged twice for my order and want my money back.",
"questions": {
"team": {
"type": "choice",
"instructions": "Which team should handle this message?",
"criteria": {
"billing": "Payments, refunds, invoices",
"support": "Product questions and bugs",
"sales": "Pricing and new purchases"
}
},
"urgent": {
"type": "noul",
"instructions": "Does this need a reply today?",
"criteria": {
"true": "Money, outage or legal risk",
"false": "Can wait"
}
}
}
}, cast_to=dict)
print(result["answers"])
curl https://api14.com/api/v1/decisions \
-H "Authorization: Bearer $API14_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "liquid/d1.3-ultra",
"state": "Customer: I was charged twice for my order and want my money back.",
"questions": {
"team": {
"type": "choice",
"instructions": "Which team should handle this message?",
"criteria": {
"billing": "Payments, refunds, invoices",
"support": "Product questions and bugs",
"sales": "Pricing and new purchases"
}
},
"urgent": {
"type": "noul",
"instructions": "Does this need a reply today?",
"criteria": {
"true": "Money, outage or legal risk",
"false": "Can wait"
}
}
}
}'
package main
import (
"bytes"
"fmt"
"io"
"net/http"
"os"
)
func main() {
body := []byte(`{
"model": "liquid/d1.3-ultra",
"state": "Customer: I was charged twice for my order and want my money back.",
"questions": {
"team": {
"type": "choice",
"instructions": "Which team should handle this message?",
"criteria": {
"billing": "Payments, refunds, invoices",
"support": "Product questions and bugs",
"sales": "Pricing and new purchases"
}
},
"urgent": {
"type": "noul",
"instructions": "Does this need a reply today?",
"criteria": {
"true": "Money, outage or legal risk",
"false": "Can wait"
}
}
}
}`)
req, _ := http.NewRequest("POST", "https://api14.com/api/v1/decisions", bytes.NewReader(body))
req.Header.Set("Authorization", "Bearer "+os.Getenv("API14_API_KEY"))
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(string(out))
}
<?php
$ch = curl_init("https://api14.com/api/v1/decisions");
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . getenv("API14_API_KEY"),
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode([
"model" => "liquid/d1.3-ultra",
"state" => "Customer: I was charged twice for my order and want my money back.",
"questions" => [
"team" => [
"type" => "choice",
"instructions" => "Which team should handle this message?",
"criteria" => [
"billing" => "Payments, refunds, invoices",
"support" => "Product questions and bugs",
"sales" => "Pricing and new purchases"
]
],
"urgent" => [
"type" => "noul",
"instructions" => "Does this need a reply today?",
"criteria" => [
"true" => "Money, outage or legal risk",
"false" => "Can wait"
]
]
]
]),
]);
$response = json_decode(curl_exec($ch), true);
print_r($response);
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
String body = """
{
"model": "liquid/d1.3-ultra",
"state": "Customer: I was charged twice for my order and want my money back.",
"questions": {
"team": {
"type": "choice",
"instructions": "Which team should handle this message?",
"criteria": {
"billing": "Payments, refunds, invoices",
"support": "Product questions and bugs",
"sales": "Pricing and new purchases"
}
},
"urgent": {
"type": "noul",
"instructions": "Does this need a reply today?",
"criteria": {
"true": "Money, outage or legal risk",
"false": "Can wait"
}
}
}
}
""";
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api14.com/api/v1/decisions"))
.header("Authorization", "Bearer " + System.getenv("API14_API_KEY"))
.header("Content-Type", "application/json")
.POST(HttpRequest.BodyPublishers.ofString(body))
.build();
HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}
using System.Net.Http.Headers;
using System.Text;
var http = new HttpClient();
http.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("API14_API_KEY"));
var body = """
{
"model": "liquid/d1.3-ultra",
"state": "Customer: I was charged twice for my order and want my money back.",
"questions": {
"team": {
"type": "choice",
"instructions": "Which team should handle this message?",
"criteria": {
"billing": "Payments, refunds, invoices",
"support": "Product questions and bugs",
"sales": "Pricing and new purchases"
}
},
"urgent": {
"type": "noul",
"instructions": "Does this need a reply today?",
"criteria": {
"true": "Money, outage or legal risk",
"false": "Can wait"
}
}
}
}
""";
var res = await http.PostAsync("https://api14.com/api/v1/decisions", new StringContent(body, Encoding.UTF8, "application/json"));
Console.WriteLine(await res.Content.ReadAsStringAsync());
require "net/http"
require "json"
uri = URI("https://api14.com/api/v1/decisions")
req = Net::HTTP::Post.new(uri, {
"Authorization" => "Bearer #{ENV["API14_API_KEY"]}",
"Content-Type" => "application/json",
})
req.body = {
"model": "liquid/d1.3-ultra",
"state": "Customer: I was charged twice for my order and want my money back.",
"questions": {
"team": {
"type": "choice",
"instructions": "Which team should handle this message?",
"criteria": {
"billing": "Payments, refunds, invoices",
"support": "Product questions and bugs",
"sales": "Pricing and new purchases"
}
},
"urgent": {
"type": "noul",
"instructions": "Does this need a reply today?",
"criteria": {
"true": "Money, outage or legal risk",
"false": "Can wait"
}
}
}
}.to_json
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |h| h.request(req) }
puts JSON.parse(res.body)
// Cargo.toml: reqwest = { version = "0.12", features = ["json"] }, tokio = { version = "1", features = ["full"] }, serde_json = "1"
use serde_json::json;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let key = std::env::var("API14_API_KEY")?;
let res = reqwest::Client::new()
.post("https://api14.com/api/v1/decisions")
.bearer_auth(key)
.json(&json!({
"model": "liquid/d1.3-ultra",
"state": "Customer: I was charged twice for my order and want my money back.",
"questions": {
"team": {
"type": "choice",
"instructions": "Which team should handle this message?",
"criteria": {
"billing": "Payments, refunds, invoices",
"support": "Product questions and bugs",
"sales": "Pricing and new purchases"
}
},
"urgent": {
"type": "noul",
"instructions": "Does this need a reply today?",
"criteria": {
"true": "Money, outage or legal risk",
"false": "Can wait"
}
}
}
}))
.send()
.await?
.text()
.await?;
println!("{res}");
Ok(())
}
और तुलनाएं
- Baseten: Bison 1 बनाम Baseten: Groundhog 1
- Baseten: Bison 1 बनाम LiquidAI: d1.2-ultra
- Baseten: Bison 1 बनाम LiquidAI: d1.3-ultra
- Baseten: Bison 1 बनाम Microsoft: Microsoft-Decision-1.1
- Baseten: Groundhog 1 बनाम LiquidAI: d1.2-ultra
- Baseten: Groundhog 1 बनाम LiquidAI: d1.3-ultra
- Baseten: Groundhog 1 बनाम Microsoft: Microsoft-Decision-1.1
- LiquidAI: d1.2-ultra बनाम LiquidAI: d1.3-ultra