Plaxico API
Video va rasm generatsiyasini o‘z mahsulotingizga ulang: bitta kalit, bitta balans, barcha modellar — Veo, Kling, Seedance, Wan, Hailuo, Nano Banana va boshqalar.
Avtorizatsiya
Kalitni shaxsiy kabinetda yarating (plaxico.uz/cabinet → API) yoki botda /api buyrug‘i bilan. Kalit faqat bir marta ko‘rsatiladi. Har bir so‘rovga sarlavha qo‘shing:
Authorization: Bearer vg_live_…
Hisob-kitob
So‘rovlar botdagi kabi kreditlarda hisoblanadi (1 kredit ≈ 100 so‘m). Narx ishga tushirishdan oldin /v1/quote orqali ma’lum. Generatsiya muvaffaqiyatsiz bo‘lsa, kreditlar avtomatik qaytadi. Balansni kabinetda to‘ldiring; korporativ hisob-faktura uchun support@plaxico.uz.
Endpointlar
| Path | ||
|---|---|---|
| GET | /v1/models | models, modes, durations, from-price |
| GET | /v1/templates | one-tap templates |
| GET | /v1/balance | credits: available, paid, bonus, held |
| POST | /v1/quote | { model, input } → { credits, uzs } |
| POST | /v1/generations | { model, input, callback_url? } → 201 generation |
| POST | /v1/templates/{id}/run | { image_url?, text?, callback_url? } → 201 generation |
| GET | /v1/generations/{id} | status and outputs |
| GET | /v1/generations?limit=&offset= | your recent jobs |
Video yaratish
Javob darhol keladi (status queued). Natijani GET /v1/generations/{id} orqali so‘rang yoki callback_url bering — tayyor bo‘lganda imzolangan POST yuboramiz.
curl https://plaxico.uz/v1/generations \
-H "Authorization: Bearer $PLAXICO_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling-2.5-turbo",
"input": { "prompt": "Sunrise over Registan square, slow drone fly-through", "duration": 5, "aspectRatio": "9:16" },
"callback_url": "https://example.com/plaxico/webhook"
}'
{
"id": "6f1c…",
"status": "queued",
"model": "kling-2.5-turbo",
"kind": "video",
"credits": 75,
"outputs": [],
"error": null,
"created_at": "2026-11-05T10:00:00.000Z"
}
// Node.js: poll until ready
const r = await fetch("https://plaxico.uz/v1/generations/" + id, { headers: { Authorization: "Bearer " + process.env.PLAXICO_KEY } });
const g = await r.json(); // g.status: queued | submitted | running | succeeded | failed
if (g.status === "succeeded") console.log(g.outputs[0].url);
curl https://plaxico.uz/v1/templates/uzum-product/run \
-H "Authorization: Bearer $PLAXICO_KEY" -H "Content-Type: application/json" \
-d '{ "image_url": "https://example.com/product.jpg", "text": "white sneakers" }'
Webhook imzosi
Har bir webhook X-Plaxico-Timestamp va X-Plaxico-Signature sarlavhalari bilan keladi. Imzo = HMAC-SHA256(webhookSecret, `${timestamp}.${body}`). callback_url faqat ochiq https manzil bo‘lishi mumkin; yetkazilmasa 3 marta qayta urinamiz.
import { createHmac, timingSafeEqual } from "node:crypto";
function verify(req, rawBody, webhookSecret) {
const ts = req.headers["x-plaxico-timestamp"];
const sig = req.headers["x-plaxico-signature"];
if (Math.abs(Date.now() / 1000 - Number(ts)) > 300) return false;
const expected = "sha256=" + createHmac("sha256", webhookSecret).update(ts + "." + rawBody).digest("hex");
return sig?.length === expected.length && timingSafeEqual(Buffer.from(sig), Buffer.from(expected));
}
Statuslar
queued → submitted → running → succeeded | failed (credits refunded). Plans may show waiting and cancelled.
Xatolar va limitlar
Kalit uchun 120 so‘rov/daqiqa (yozish — 60), bir vaqtda 20 tagacha ish. Javob xatosi: {"error": KOD, "message": …}.
| 400 | INVALID_INPUT |
| 401 | invalid or revoked key |
| 402 | INSUFFICIENT_CREDITS (details.need, details.have) |
| 404 | NOT_FOUND, MODEL_NOT_FOUND |
| 422 | CONTENT_BLOCKED |
| 429 | RATE_LIMITED |
| 451 | offer not accepted |
Modellar va narxlar
| id | model | kind | modes | s | aspect | from, cr |
|---|---|---|---|---|---|---|
kling-2.5-turbo | Kling 2.5 Turbo Pro | video | t2v, i2v | 5/10 | 9:16, 16:9, 1:1 | 75 |
kling-3 | Kling 3.0 | video | t2v, i2v | 5/10/15 | 9:16, 16:9, 1:1 | 150 |
kling-4 | Kling 4.0 | video | t2v, i2v | 5/10 | 9:16, 16:9, 1:1 | 340 |
omni-flash | Google Omni Flash | video | t2v, i2v | 4/6/8/10 | 9:16, 16:9 | 180 |
veo-3.1-lite | Google Veo 3.1 Lite | video | t2v, i2v | 4/6/8 | 9:16, 16:9 | 60 |
veo-3.1 | Google Veo 3.1 Quality | video | t2v, i2v | 8 | 9:16, 16:9 | 410 |
seedance-2-fast | Seedance 2.0 Fast | video | t2v, i2v | 5/10 | 9:16, 16:9, 1:1 | 220 |
wan-2.6-flash | Wan 2.6 Flash | video | i2v, t2v | 5/10/15 | 9:16, 16:9, 1:1 | 60 |
hailuo-2.3 | Hailuo 2.3 | video | i2v | 6/10 | 9:16, 16:9 | 60 |
nano-banana-2 | Nano Banana 2 | image | t2i, i2i | — | 9:16, 1:1, 16:9, 3:4, 4:3 | 8 |
nano-banana-pro | Nano Banana Pro | image | t2i, i2i | — | 9:16, 1:1, 16:9, 3:4, 4:3 | 35 |
seedream-5 | Seedream 5.0 | image | t2i | — | 9:16, 1:1, 16:9 | 30 |
flux-3 | FLUX 3 | image | t2i | — | 9:16, 1:1, 16:9, 3:4, 4:3 | 18 |
gpt-image-2 | GPT Image 2 | image | t2i | — | 1:1, 9:16, 16:9 | 12 |
Shablonlar
| id | input | cr | |
|---|---|---|---|
uzum-product | Mahsulot videosi (Uzum) | image_url | 120 |
food-reel | Taom reels (restoran) | image_url | 120 |
wedding-invite | To‘y taklifnomasi | image_url | 150 |
old-photo | Eski suratni jonlantirish | image_url | 90 |
navruz | Navro‘z tabrigi | image_url | 130 |
hayit | Hayit tabrigi | image_url | 130 |
studio-portrait | Studiya portreti | image_url | 60 |
logo-motion | Logotip animatsiyasi | image_url | 90 |
AI-agentlar uchun MCP server
Claude, ChatGPT, Cursor va boshqa MCP-mijozlar Plaxico’ni to‘g‘ridan-to‘g‘ri ishlata oladi. Manzil: https://plaxico.uz/mcp (Streamable HTTP). Katalog vositalari kalitsiz ishlaydi; generatsiya uchun mijoz sozlamalarida «Authorization: Bearer vg_live_…» sarlavhasini qo‘shing. To‘liq spetsifikatsiya: /openapi.json.
{ "mcpServers": { "plaxico": { "type": "http", "url": "https://plaxico.uz/mcp", "headers": { "Authorization": "Bearer vg_live_…" } } } }
Qoidalar
API foydalanish qoidalari va ommaviy oferta bo‘ysunadi: 18+, real siyosatchilar va roziliksiz dipfeyklar taqiqlangan. Har bir natija sun’iy intellekt bilan yaratilgan deb belgilanishi kerak. AUP · Offer