हम cookies इस्तेमाल करते हैं. Cookies और ब्राउज़र स्टोरेज आपको साइन इन रखते हैं और आपकी प्राथमिकताएं याद रखते हैं। आपकी अनुमति से हम यह भी मापते हैं कि साइट कैसे इस्तेमाल होती है। आप कभी भी । हमारी cookie नीति देखें।
ज़रूरीसेशन, सुरक्षा और प्राथमिकताएं। साइट चलाने के लिए ज़रूरी।हमेशा चालू
यहां नए हैं? देखें यह कैसे काम करता हैप्लेग्राउंड, मॉडल और आपकी API key का 1 मिनट का टूर।
Inkling 2 Small API: कीमत, प्लेग्राउंड और कोड · api14
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": "thinkingmachines/inkling-2-small",
"messages": [
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
]
}
""";
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api14.com/api/v1/chat/completions"))
.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 OpenAI;
using OpenAI.Chat;
using System.ClientModel;
var client = new ChatClient(
model: "thinkingmachines/inkling-2-small",
credential: new ApiKeyCredential(Environment.GetEnvironmentVariable("API14_API_KEY")!),
options: new OpenAIClientOptions { Endpoint = new Uri("https://api14.com/api/v1") });
ChatCompletion completion = client.CompleteChat("Explain vector databases in two sentences.");
Console.WriteLine(completion.Content[0].Text);
Thinking Machines: Inkling 2 Small: अक्सर पूछे जाने वाले सवाल
Thinking Machines: Inkling 2 Small API की कीमत कितनी है?
Thinking Machines: Inkling 2 Small की कीमत इनपुट $0.52 / 1M टोकन है। शुल्क आपके USD बैलेंस से सिर्फ सफल requests के लिए कटता है; फेल हुई requests मुफ्त हैं।
Thinking Machines: Inkling 2 Small की context window कितनी है?
Thinking Machines: Inkling 2 Small हर request में 10,48,576 tokens तक पढ़ता है, prompt, इतिहास और दस्तावेज़ मिलाकर। यह हर जवाब में 9,43,718 आउटपुट tokens तक लिखता है।
Thinking Machines: Inkling 2 Small क्या कर सकता है?
Thinking Machines: Inkling 2 Small text, image स्वीकार करता है और text लौटाता है। यह टूल कॉलिंग, संरचित JSON आउटपुट, reasoning effort नियंत्रण सपोर्ट करता है।
अपने कोड से Thinking Machines: Inkling 2 Small कैसे कॉल करूं?
किसी भी OpenAI SDK को https://api14.com/api/v1 पर पॉइंट करें और model को "thinkingmachines/inkling-2-small" पर सेट करें, कोड में और कोई बदलाव नहीं। इस पेज के कोड पैनल से तैयार उदाहरण कॉपी करें।
Thinking Machines: Inkling 2 Small के विकल्प क्या हैं?
मिलती-जुलती कीमत वाले टेक्स्ट मॉडल: Z.ai: GLM 5.3 Flash, Tencent: Hy3, NVIDIA: Nemotron 3.5 Super VL। सभी एक ही API key से चलते हैं, इसलिए बदलना बस एक string बदलना है।