OpenAI Assistant API Tester

Test the Flask API that forwards messages to OpenAI's Assistant API with ultra-fast performance

Chat Interface

Get live status updates during processing for better user experience

API Information

Regular API Endpoint
  • URL: /api/text
  • Method: POST
  • Content-Type: application/json
  • Request Format: {"message": "your message"}
  • Response Format: {"reply": "AI response"}
Streaming API Endpoint
  • URL: /api/text/stream
  • Method: POST
  • Content-Type: application/json
  • Response Type: Server-Sent Events (text/event-stream)
  • Status Updates: Real-time processing status
Performance Features
  • Ultra-fast polling: 0.1s initial interval
  • Exponential backoff: Optimized response times
  • Assistant ID: asst_c0LRWpvZJ04MimV8SUgLYJje
Example cURL Request
curl -X POST http://localhost:5000/api/text \
  -H "Content-Type: application/json" \
  -d '{"message": "Hello, how are you?"}'