AI providers

Connect OpenAI, Anthropic, Google keys. Switch models per prompt. Keys encrypted server-side — never exposed to browser.

Try the model picker

Select a provider, add a (fake) API key, pick a model, and simulate a prompt run.

Multi-Model Playground

Bring your own key — switch providers anytime.

sk-••••••••••••••••••••3a7f
via OpenAI

Supported providers

ProviderModels (examples)Key formatGet key at
OpenAIGPT-4o, GPT-4o-mini, GPT-4-turbo, o1-previewsk-...platform.openai.com
AnthropicClaude 3.5 Sonnet, Opus, Haikusk-ant-...console.anthropic.com
GoogleGemini 1.5 Pro, Flash, 1.0 ProAIza...aistudio.google.com

Setup flow

  1. Get API keys from each provider’s dashboard
  2. Open PromptAura → Settings → AI Providers
  3. Click “Add Key” for each provider
  4. Paste key → encrypted and stored server-side
  5. Select default model per provider

Switching models per prompt

When editing a session, the model selector (top-right) shows all your configured models:

Model: ▼ GPT-4o (OpenAI) ▼
       ├─ GPT-4o
       ├─ GPT-4o-mini
       ├─ GPT-4-turbo
       ├─ o1-preview
       ├─ Claude 3.5 Sonnet (Anthropic)
       ├─ Claude 3 Opus (Anthropic)
       ├─ Claude 3 Haiku (Anthropic)
       ├─ Gemini 1.5 Pro (Google)
       └─ Gemini 1.5 Flash (Google)

Pick one → that prompt uses that model. Your choice saves with the session.


Why multi-model?

Use caseRecommended model
Complex reasoning, code, analysisGPT-4o, Claude 3.5 Sonnet
Creative writing, nuanced toneClaude 3.5 Sonnet
Speed, cost, high volumeGPT-4o-mini, Gemini 1.5 Flash
Long context (1M+ tokens)Gemini 1.5 Pro
Structured output, JSON modeGPT-4o, Gemini 1.5 Pro

BYOK (Bring Your Own Keys) architecture

┌─────────────┐     HTTPS      ┌──────────────┐     Encrypted     ┌─────────────┐
│  Your Browser  ─────────────→  │  PromptAura   ───────────────→  │  AI Provider │
│               │  (no keys)     │  Server       │  (decrypt key)    │  (OpenAI)    │
└─────────────┘                └──────────────┘                   └─────────────┘
  1. Browser sends: POST /api/v1/sessions/:id/run { model: "gpt-4o", variables }
  2. Server decrypts your OpenAI key (AES-256 at rest)
  3. Server calls OpenAI API with your key
  4. Server streams response back to browser

Your browser never sees the API key. This is the key security advantage.


Rate limits & costs

ProviderTypical rate limitCost tracking
OpenAITier-based (RPM/TPM)PromptAura shows estimated cost per run
Anthropic50 RPM / 40k TPMPer-model pricing shown in picker
Google60 RPM / 4M TPMFree tier generous

PromptAura shows estimated cost before you run (based on input tokens + model pricing).


API access

Multi-model works via REST API:

curl -X POST https://prompt-aura.ppai.web.id/api/v1/sessions/:id/run \
  -H "Authorization: Bearer pa_xxx..." \
  -H "Content-Type: application/json" \
  -d '{"model": "claude-3-5-sonnet-20241022", "variables": {"topic": "API design"}}'

See API Reference → Run Session for full schema.


Key management

ActionHow
Add keySettings → AI Providers → Add Key
Update keyDelete old, add new
Revoke keySettings → AI Providers → Revoke (immediate)
View usageDashboard shows calls per key
Rotate regularlyRecommended every 90 days

Troubleshooting

IssueFix
”Invalid API key”Re-copy from provider dashboard (no extra spaces)
“Rate limited”Wait, or upgrade provider tier
”Model not found”Check model name spelling; some need gpt-4o-2024-08-06 format
”Quota exceeded”Add billing to provider account