Skip content

api.horny.studio

API referansı

Queue, dosyalar, webhook ve hata codes. Calls go → https://api.horny.studio/v1. catalog ve prices dır aç üzerinde API page.

Catalog ve Fiyatsapi.horny.studio/v1

Quick başlat

İlk istek

Temel URL: https://api.horny.studio/v1

curl
curl -X POST https://api.horny.studio/v1/queue/bytedance/seedance-2.5/text-to-video \
  -H "Authorization: Key ch_live_…" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"a quiet street at dusk, handheld","duration_seconds":8,"resolution":"1080p","generate_audio":true}'
  1. 202 response contains request_id, status_url, response_url ve İptal_url.
  2. Poll status_url every 2–5 saniye veya pass webhook_url.
  3. Üzerinde COMPLETED fetch result kaynak response_url. Dosya links dır valid için 24 hours.

Için AI agents

Makine okunur kaynaklar

Referans

Yöntemler

GET/modelsModel catalog, units ve Fiyats
POST/estimateBaşlatmadan önce kesin istek maliyeti
POST/chat/completionsText Model: Mesajs ve max_tokens, bir direct reply veya bir stream
POST/queue/{model_id}Queue bir üretim, 202 response ile request_id
GET/requests/{id}/statusDurum: IN_QUEUE, IN_PROGRESS, COMPLETED, Başarısız
GET/requests/{id}/responseResult ile signed Dosya links
PUT/requests/{id}/cancelİptal bir queued request
POST/filesInput file, returns file_id yükleyin
GET/requests/{id}İstek kartı: durum, teklif, gerçek ücret

Webhook'lar

Tamamlanma bildirimi

Pass webhook_url giriş query veya body. Treat notification as bir signal → fetch result: onayla it via response_url ile your key.

http
POST https://api.horny.studio/v1/queue/bytedance/seedance-2.5/text-to-video?webhook_url=https://example.com/hooks/imhorny

// после завершения на webhook_url придёт POST
{
  "request_id": "req_9f2c…",
  "status": "COMPLETED",
  "response_url": "https://api.horny.studio/v1/requests/req_9f2c…/response"
}

Dosyalar

Input Dosyalar

POST /v1/Dosyalar ile bytes ve bir Content-Type. response holds bir Dosya_id like chDosya_…, which goes into any URL field input.

  • Public https links → input dosyalar dır accepted as well
  • Results dır değil archived: bir signed link lives 24 hours, then 410
  • An Idempotency-Key header protects tekrarst duplicate submits

Hatalar

Yanıt kodları

401unauthorizedKey missing, revoked veya invalid
402insufficient_balanceshared USDT bakiye cannot cover hold. Top up giriş studio hesap. There no separate wallet
402key_limit_reachedkey's monthly limit reached
400unknown_model · unpriceableModel değil giriş catalog veya inputs do değil allow pricing
409idempotency_conflictSame Idempotency-Key ile bir different body
409request_not_readyTamamlanmadan önce sonuç istendi
429rate_limitedKey RPM veya concurrency limit exceeded
503capacity_unavailableCapacity geçici olarak kullanılamıyor — retry later, nothing idi charged
410expiredsigned link (24 saat) has expired