Proyecta AI Gateway
अपने published app में AI features जोड़ें — chatbots, content generation, summarization. OpenAI-compatible. किसी third-party API key की जरूरत नहीं।
Proyecta AI Gateway की मदद से तुम्हारे बनाए हुए apps frontier LLMs को call कर सकते हैं — बिना हर provider पर account बनाए, उनकी API keys manage किए, या खुद cost उठाए। यह OpenAI-compatible है — OpenAI SDK को gateway की तरफ point करो और काम हो गया। फिलहाल, gateway के ज़रिए केवल Anthropic Claude models उपलब्ध हैं। OpenAI, Google, और Groq support roadmap पर है।
इससे क्या बना सकते हैं?
Section titled “इससे क्या बना सकते हैं?”- Chatbots — customer support, AI coaching, FAQ bots
- Content generation — descriptions, emails, summaries, drafts
- Analysis — text से insights निकालना, data categorize करना, classify करना
- Summarization — documents, articles, transcripts को संक्षिप्त करना
- Personalization — recommendations, adaptive UI
Quickstart
Section titled “Quickstart”Gateway OpenAI Chat Completions protocol बोलता है। official OpenAI SDK को दो बदलावों के साथ इस्तेमाल करो — baseURL और key के लिए env-var का नाम:
import OpenAI from 'openai';
const openai = new OpenAI({ baseURL: 'https://cloud.proyecta.dev/v1/ai', apiKey: process.env.PROYECTA_API_KEY,});
const response = await openai.chat.completions.create({ model: 'claude-haiku-4-5-20251001', messages: [{ role: 'user', content: 'Summarize this article in 3 bullet points: …' }],});AI builder से यह काम करवाओ: "Add a chatbot to my app using the Proyecta AI Gateway. The user types a question and gets a streaming response."
Streaming
Section titled “Streaming”Streaming किसी भी OpenAI-compatible client की तरह काम करती है:
const stream = await openai.chat.completions.create({ model: 'claude-haiku-4-5-20251001', messages: [{ role: 'user', content: prompt }], stream: true,});
for await (const chunk of stream) { process.stdout.write(chunk.choices[0]?.delta?.content ?? '');}Models
Section titled “Models”Gateway के ज़रिए निम्नलिखित models उपलब्ध हैं:
| Provider | उपलब्ध models |
|---|---|
| Anthropic | claude-sonnet-4-6, claude-haiku-4-5-20251001, claude-opus-4-8, claude-opus-4-7 |
Model ID सीधे pass करो, जैसे claude-haiku-4-5-20251001, claude-sonnet-4-6। अतिरिक्त providers roadmap पर हैं।
API keys, rate limits, और budgets
Section titled “API keys, rate limits, और budgets”Proyecta तुम्हारे runtime के लिए automatically एक PROYECTA_API_KEY provision करता है। सामान्य use case के लिए इसे manually बनाने की जरूरत नहीं है।
Organization owners AI credits का उपयोग देख सकते हैं — current period का spend और उनके plan का budget cap। यही builder में credits indicator को power करता है।
इसकी billing कैसे होती है?
Section titled “इसकी billing कैसे होती है?”AI Gateway का उपयोग उन credits से अलग track होता है जो AI builder तुम्हारा app edit करते समय खर्च करता है। प्रति request cost underlying provider की rate होती है, जो तुम्हारे org के AI credits balance पर apply होती है।
AI Gateway और AI builder में क्या फर्क है?
AI builder वह agent है जो chat panel में code लिखता है। AI Gateway वह है जिसे तुम्हारा published app तब call करता है जब उसके users कोई AI feature चाहते हैं।
क्या मैं अपनी खुद की provider keys ला सकता हूँ?
हाँ — AI से gateway calls हटवाओ और Environment Variables में अपनी खुद की key के साथ direct integration configure करो। इससे unified billing और shared rate limit pool का फायदा नहीं मिलेगा।
क्या इसे image या voice generation के लिए इस्तेमाल कर सकते हैं?
अभी नहीं। फिलहाल gateway केवल text-in / text-out है। Image, voice, और video modalities roadmap पर हैं। Image generation के लिए Image Generation देखो।
Usage कहाँ देख सकते हैं?
Credits का उपयोग Settings page में organization level पर दिखता है (current period spend और budget cap)। Builder के अंदर एक dedicated AI Gateway panel — per-app keys और live usage charts के साथ — roadmap पर है।
जल्द आने वाला है
Section titled “जल्द आने वाला है”- AI Gateway के लिए Builder panel — per-app keys बनाओ, model allowlists सेट करो, live spend देखो, और builder छोड़े बिना keys manage करो
- Image और voice modalities — text-to-image, text-to-speech, speech-to-text
- Per-runtime usage attribution — देखो कि तुम्हारे org के कौन से apps कितना खर्च कर रहे हैं