One endpoint. One parameter. GPT-4 powered. No authentication required.
https://chatgpt.adeelbaloch.dev
Returns a GPT-4 generated response for any natural language query.
| Parameter | Type | Required | Description |
|---|---|---|---|
query |
string | Yes | Your question or prompt for GPT-4 |
GET https://chatgpt.adeelbaloch.dev/api/chatgpt?query=Explain quantum computing
{
"status": 200,
"model": "GPT-4",
"response": "Quantum computing is a type of computation that...",
"query": "Explain quantum computing",
"creator": { "name": "Adeel Baloch", "telegram": "sigmadev0" }
}
{
"status": "error",
"response": "Failed to get response.",
"query": "...",
"creator": {...}
}
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"
Test the API and inspect the raw JSON response from GPT-4.