DEV Community

TajikGPT
TajikGPT

Posted on

Build AI Apps in 5 Minutes with TajikGPT SDK (Python & Node.js) tags: ai, python, javascript, api

Build AI Apps in 5 Minutes with TajikGPT SDK
We just released official SDKs for Python and Node.js.

Quick Install
pip install tajikgpt # Python
npm install tajikgpt # Node.js
Python Example
from tajikgpt import TajikGPT
client = TajikGPT(api_key="sk-tj-your-key")
response = client.chat.completions.create(
model="tj-1.0",
messages=[{"role": "user", "content": "Explain quantum computing simply"}]
)
print(response.choices[0].message.content)
Node.js Example
const { TajikGPT } = require("tajikgpt");
const client = new TajikGPT({ apiKey: "sk-tj-your-key" });

const response = await client.chat.completions.create({
model: "tj-1.0",
messages: [{ role: "user", content: "Write a haiku about coding" }]
});
console.log(response.choices[0].message.content);
Image Generation
image = client.images.generate(
model="tj-image-1.0",
prompt="A futuristic city at sunset, cyberpunk style"
)
print(image.data[0].url)
Models
Model Best For Tier
TJ-1.0 Mini Fast, simple tasks Free
TJ-1.0 Balanced Free
TJ-1.0 Pro Reasoning, vision, web search Plus/Pro
TJ-1.0 Ultra Max performance Plus/Pro
TJ-Image 1.0 Image generation All
Pricing
Free โ€” $0/mo | Student โ€” $3.99/mo | Plus โ€” $9.99/mo | Pro โ€” $29.99/mo

๐Ÿ“– Docs ยท ๐ŸŽฎ Playground ยท ๐Ÿ PyPI ยท ๐Ÿ“ฆ npm

Happy coding! ๐Ÿš€

Top comments (0)