API Documentation
Dokumentasi lengkap API YuriAI dengan contoh implementasi
●Disconnected
Auto-Secured Mode
0
Total Request
0
Pengguna Aktif
0ms
Rata-rata Response
100%
Success Rate
0
Errors Today
Latest Request/Response
No chat history yet
Chat logs will appear after API requests
Traffic Summary
0
Total All Time
0
Today's Requests
0
Unique Users
0
Blocked IPs
GET
Generate Text API
Auto-Secured
https://yuri.yilzicode.com/api/geminiSecurity Notice: All API responses containing sensitive URLs or keys are automatically secured.
Parameter
| Parameter | Wajib | Type | Description |
|---|---|---|---|
| prompt | Wajib | String | Prompt untuk generate text |
| apikey | Wajib | String | API key Anda dari pembelian script |
| model | Opsional | String | AI model (gemini-2.5-pro-exp-03-25 / gemini-2.5-pro-preview-05-06) |
| temperature | Opsional | Float | Kontrol kreativitas (0.1-2, default: 0.7) |
| maxOutputTokens | Opsional | Integer | Max output tokens (default: 8192) |
Contoh Implementasi
curl
curl -X GET "https://yuri.yilzicode.com/api/gemini?prompt=Hello&apikey=YOUR_API_KEY&model=gemini-2.5-pro-exp-03-25&temperature=0.7"Response SuksesNormal
json
{
"status": true,
"code": 200,
"message": "Berhasil",
"result": "Hello! How can I help you today?",
"metadata": {
"api_version": "2.0.0",
"timestamp": "2025-12-06T13:57:27.056Z",
"request_id": "req_abc123xyz",
"response_time": 150,
"remaining_requests": 4999
}
}Response Error
json
{
"status": false,
"code": 400,
"message": "apikey and prompt are required",
"error": "Missing required parameters"
}Example with Code Response (Auto-Secured)Secured Example
This example shows how API responses containing external API calls are automatically secured. Sensitive URLs are replaced with ***API_SERVER***.
json
Secured
{
"status": true,
"code": 200,
"message": "Berhasil",
"result": "Here's the code you requested:\n\n```javascript
const fetch = require('node-fetch')
const category = 'maid'
async function sendWaifuImages() {
for (let i = 0; i < 10; i++) {
try {
const response = await fetch('https://***API_SERVER***/random/waifuim/' + category)
const contentType = response.headers.get('content-type')
if (contentType && contentType.includes('image')) {
const buffer = await response.buffer()
// Process image buffer here
console.log('Image received successfully')
} else {
console.error('Invalid content type:', contentType)
}
} catch (error) {
console.error('Error fetching image:', error)
}
}
}
sendWaifuImages()
```\n\nThis code will fetch 10 random waifu images from the API.",
"metadata": {
"api_version": "2.0.0",
"timestamp": "2025-12-06T13:57:27.058Z",
"request_id": "req_abc123xyz",
"response_time": 150,
"remaining_requests": 4999
}
}Security Features
Automatic protection of sensitive data
Protected Data Types
- API URLs and endpoints
- API keys and tokens
- IP addresses
- Database connection strings
Features
- Real-time data sanitization
- Clipboard protection
- Visual indicators for secured content
- Copy-to-clipboard sanitization