HomeChatAPI DocsAbout
Reference

API Documentation

One endpoint. One parameter. GPT-4 powered. No authentication required.

Base URL
https://chatgpt.adeelbaloch.dev
Endpoint
GET  /api/chatgpt

Returns a GPT-4 generated response for any natural language query.

ParameterTypeRequiredDescription
query string Yes Your question or prompt for GPT-4
Request
HTTP
GET https://chatgpt.adeelbaloch.dev/api/chatgpt?query=Explain quantum computing
Responses
200 Success
json
{
  "status":   200,
  "model":    "GPT-4",
  "response": "Quantum computing is a type of computation that...",
  "query":    "Explain quantum computing",
  "creator":  { "name": "Adeel Baloch", "telegram": "sigmadev0" }
}
Error
json
{
  "status":   "error",
  "response": "Failed to get response.",
  "query":    "...",
  "creator":  {...}
}
Examples
javascript
const res = await fetch('https://chatgpt.adeelbaloch.dev/api/chatgpt?query=Hello');
const data = await res.json();
console.log(data.response); // GPT-4 reply
console.log(data.model);    // "GPT-4"
Live tester

Test the API and inspect the raw JSON response from GPT-4.