API Referansı

Base URL

`` https://api.aihane.com/v1 `

Genel İstek Formatı

`http POST /v1/tools/{tool-slug} Host: api.aihane.com Authorization: Bearer {api_key} X-API-Secret: {api_secret} Content-Type: application/json { "param1": "value1", "param2": "value2" } `

Genel Yanıt Formatı

Başarılı Yanıt (200)
`json { "success": true, "data": { "output_url": "https://cdn.aihane.com/outputs/abc123.png", "processing_time_ms": 1250, "credits_used": 3 }, "request_id": "req_abc123def456" } ` Hata Yanıtı (4xx/5xx) `json { "success": false, "error": { "code": "INVALID_IMAGE", "message": "Yüklenen dosya geçerli bir görsel değil.", "details": {} }, "request_id": "req_abc123def456" } `

Desteklenen Araçlar

Her araç kendi endpoint'ine sahiptir. Detaylı parametre bilgileri için ilgili aracın dokümantasyon sayfasına bakın. | Araç | Endpoint | Metod | |------|----------|-------| | Kıyafet Değiştirici |
/v1/tools/clothing-changer | POST | | AI Chat | /v1/tools/ai-chat | POST | | Görsel Üretici | /v1/tools/image-generator | POST | | Arka Plan Kaldırıcı | /v1/tools/bg-remover | POST | | İçerik Yazarı | /v1/tools/content-writer | POST | | Metinden Sese | /v1/tools/text-to-speech | POST | | Sesten Metne | /v1/tools/speech-to-text | POST | | Yüz İyileştirici | /v1/tools/face-enhance | POST | | Metin Özetleyici | /v1/tools/summarizer | POST | | AI Çevirmen | /v1/tools/translator | POST | | Veri Çıkarıcı | /v1/tools/data-extractor | POST | | Görsel Büyütücü | /v1/tools/image-upscaler` | POST |