Skip to content

Proyecta AI Gateway

Add AI features to your published app — chatbots, content generation, summarization. OpenAI-compatible. No third-party API keys required.

The Proyecta AI Gateway lets the apps you build call frontier LLMs without you having to create accounts with each provider, manage their API keys, or front the cost. It’s OpenAI-compatible — point the OpenAI SDK at the gateway and you’re done. Currently, only Anthropic Claude models are available through the gateway. OpenAI, Google, and Groq support are on the roadmap.

  • Chatbots — customer support, AI coaching, FAQ bots
  • Content generation — descriptions, emails, summaries, drafts
  • Analysis — extract insights from text, categorize data, classify
  • Summarization — condense documents, articles, transcripts
  • Personalization — recommendations, adaptive UI

The gateway speaks the OpenAI Chat Completions protocol. Use the official OpenAI SDK with two changes — baseURL and the env-var name for the key:

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: …' }],
});

Ask the AI builder to wire this up for you: "Add a chatbot to my app using the Proyecta AI Gateway. The user types a question and gets a streaming response."

Streaming works like any 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 ?? '');
}

The following models are available via the gateway:

ProviderSupported models
Anthropicclaude-sonnet-4-6, claude-haiku-4-5-20251001, claude-opus-4-8, claude-opus-4-7

Pass the model ID directly, e.g. claude-haiku-4-5-20251001, claude-sonnet-4-6. Additional providers are on the roadmap.

Proyecta automatically provisions a PROYECTA_API_KEY for your runtime. You don’t need to create one manually for the common case.

Organization owners can see AI credits usage — current period spend and their plan’s budget cap. This is what powers the credits indicator in the builder.

AI Gateway usage is tracked separately from the credits the AI builder consumes when it edits your app. Per-request cost is the underlying provider’s rate, applied to your org’s AI credits balance.

What’s the difference between the AI Gateway and the AI builder?

The AI builder is the agent that writes code in the chat panel. The AI Gateway is what your published app calls when its users want an AI feature.

Can I bring my own provider keys?

You can — ask the AI to remove the gateway calls and configure a direct integration with your own key in Environment Variables. You’ll lose the unified billing and shared rate limit pool.

Can I use it for image or voice generation?

Not yet. Today the gateway is text-in / text-out. Image, voice, and video modalities are on the roadmap. For image generation, see Image Generation.

Where can I see usage?

Credits usage is visible at the organization level in the Settings page (current period spend and budget cap). A dedicated AI Gateway panel inside the builder — with per-app keys and live usage charts — is on the roadmap.

  • Builder panel for AI Gateway — create per-app keys, set model allowlists, watch live spend, and manage keys all without leaving the builder
  • Image and voice modalities — text-to-image, text-to-speech, speech-to-text
  • Per-runtime usage attribution — see which apps in your org are spending what