๐ API is Live! Start making requests immediately โ no API key required.
๐ก Base URL
https://gpt.yzz.me/api
โก Quick Start
JavaScript (Fetch API)
const response = await fetch('https://gpt.yzz.me/api', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
messages: [{ role: 'user', content: 'Hello!' }],
stream: false,
temperature: 0.8
})
});
const data = await response.json();
console.log(data.choices[0].message.content);
Python
import requests
response = requests.post(
'https://gpt.yzz.me/api',
json={
'messages': [{'role': 'user', 'content': 'Hello!'}],
'stream': False,
'temperature': 0.8
}
)
data = response.json()
print(data['choices'][0]['message']['content'])
cURL
curl -X POST https://gpt.yzz.me/api \
-H "Content-Type: application/json" \
-d '{"messages":[{"role":"user","content":"Hello!"}],"stream":false}'
๐ Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
messages | array | โ Yes | Array of message objects |
stream | boolean | โ No | Enable streaming (default: true) |
temperature | number | โ No | Sampling temperature 0.0-2.0 (default: 0.8) |
max_tokens | number | โ No | Maximum tokens (default: -1) |
top_p | number | โ No | Nucleus sampling (default: 0.9) |
๐ Rate Limits
โ ๏ธ Per-IP Rate Limiting: Max 2 requests/second, 500ms minimum delay
๐งช Test the API
๐ ๏ธ Technical Details
Infrastructure:
- Fully server-side PHP application
- Automatic retry with exponential backoff (3 attempts)
- Per-IP rate limiting and request queuing
- Server-Sent Events (SSE) streaming
- System prompt auto-injection