/openai-proxy-public

This API proxy service provides secure access to OpenAI's API endpoints while maintaining region-specific requirements. It supports Chat Completions, Text-to-Speech (TTS), and Speech-to-Text (Whisper) functionalities.

Primary LanguagePHPMIT LicenseMIT

OpenAI Region Bypass Proxy

Laravel License PHP

A secure and efficient proxy service for OpenAI's API, designed to bypass regional restrictions while maintaining high performance and security. Built with Laravel 11 and featuring a modern Filament admin dashboard.

🌟 Features

  • Multi-Endpoint Support
    • Chat Completion API
    • Text-to-Speech (TTS) API
    • Speech-to-Text (Whisper) API
  • Secure Authentication
    • API key management
    • Request validation
  • Modern Admin Dashboard
    • Built with Filament
    • API key management interface
    • Usage statistics
  • Comprehensive Logging
    • Request tracking
    • Error logging
    • Usage monitoring

🚀 Quick Start

Prerequisites

  • PHP 8.2+
  • Composer
  • MySQL/PostgreSQL
  • OpenAI API Key

Installation

  1. Clone the repository:
git clone https://github.com/ImAbuSayed/openai-region-bypass-proxy.git
  1. Install dependencies:
composer install
  1. Copy environment file:
cp .env.example .env
  1. Configure your environment variables:
APP_URL=your-domain.com
OPENAI_API_KEY=your-openai-api-key
  1. Generate application key:
php artisan key:generate
  1. Run migrations:
php artisan migrate
  1. Create your first admin user:
php artisan make:filament-user

📚 Documentation

Comprehensive documentation is available in the admin dashboard under the Documentation section. API endpoints include:

  • /api/openai-proxy/chat - Chat Completion API
  • /api/openai-proxy/speech - Text-to-Speech API
  • /api/openai-proxy/transcription - Speech-to-Text API

🔒 Security

  • Request validation
  • API key authentication
  • Rate limiting
  • Request logging

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.

🏷️ Keywords

openai, api-proxy, laravel, filament, text-to-speech, speech-to-text, chat-completion, region-bypass, whisper-api, gpt

🔗 Links