API Key
Key stays in your browser only
Request POST /v1/chat/completions
Model
System prompt (optional)
User message
Max tokens
Response
Response will appear here after you click Send…
Request stream: true
Model
Prompt
Chunks received
Chunks will appear here as they arrive…
Live Output waiting…
Streaming tokens will appear here in real time…
AI
👋 Hi! I'm connected to the OpenAI API via vanilla JavaScript — no framework or backend. Enter your API key above to start chatting. Every message sends the full conversation history so I remember context.
Model
Temperature 0 = deterministic, 2 = creative
0.7
Max tokens
300
System prompt
User message
Output
Run a request to see the output…