Skip to main content

🚀 Quick Start

1. Get Your API Key

  1. Go to Profile page in the app.
  2. Click “Create API Key”.
  3. Give it a name (e.g., “Automation Script”).
  4. Copy the key immediately (you won’t see it again!).

2. Make Your First Request

The endpoint is OpenAI-compatible, meaning you can use standard LLM libraries or simple curl commands.

📋 API Reference

Endpoint: POST /api/v1/chat/completions


🐍 Python Implementation Examples

Standard (Non-Streaming)

Advanced Streaming

Recommended for a better user experience in CLI or UI applications.

JavaScript/Node.js Example


Tips

  1. Save Your API Key: You only see it once during creation
  2. Use HTTPS in Production: All examples use https://onefirewall.ai for secure access.
  3. Monitor Usage: Check your API key stats in the Profile page
  4. Choose Security Level: Set pii based on your needs:
    • Development: "disabled" (default)
    • Production: "obfuscate" (recommended)
    • High security: "block"
  5. Model Selection: Use the same models available in the chat UI
  6. Custom Prompts: When you provide a system prompt, it’s used exclusively (no mixing with app prompts)
  7. API Independence: The API works independently of team UI settings by design

Support

  • View your API keys: Go to Profile page
  • Delete a key: Click the trash icon next to the key
  • Track usage: See request count and last used date in the key list
Enjoy building on top of the secure-ai-gateway! 🚀