Skip to main content

3 docs tagged with "ai"

View All Tags

Gemini AI

Query Google's Gemini models over a simple HTTP API. Three routes: the full generateContent payload, just the answer text, or an instruction-prefixed answer. The API key and model are managed variables, so you can swap models without redeploying; the prompt is JSON-escaped before it hits the Gemini API.

LLM Gateway

A configurable LLM completion and content-moderation endpoint. System prompt, model, and API key live in managed variables — swap providers or update prompts without touching the config or redeploying. Exposes POST /ai/complete (chat completion) and POST /ai/moderate (OpenAI moderation, free) with request validation and per-model metrics.

Streaming Chat

Stream a model's answer to the browser token by token. Air Pipe reads the provider's token stream and forwards it to a realtime channel, so a chat UI renders text while the model is still writing. Works with any OpenAI-compatible provider.