plaxico

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/modelsmodels, modes, durations, from-price
GET/v1/templatesone-tap templates
GET/v1/balancecredits: 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": …}.

400INVALID_INPUT
401invalid or revoked key
402INSUFFICIENT_CREDITS (details.need, details.have)
404NOT_FOUND, MODEL_NOT_FOUND
422CONTENT_BLOCKED
429RATE_LIMITED
451offer not accepted

Modellar va narxlar

idmodelkindmodessaspectfrom, cr
kling-2.5-turboKling 2.5 Turbo Provideot2v, i2v5/109:16, 16:9, 1:175
kling-3Kling 3.0videot2v, i2v5/10/159:16, 16:9, 1:1150
kling-4Kling 4.0videot2v, i2v5/109:16, 16:9, 1:1340
omni-flashGoogle Omni Flashvideot2v, i2v4/6/8/109:16, 16:9180
veo-3.1-liteGoogle Veo 3.1 Litevideot2v, i2v4/6/89:16, 16:960
veo-3.1Google Veo 3.1 Qualityvideot2v, i2v89:16, 16:9410
seedance-2-fastSeedance 2.0 Fastvideot2v, i2v5/109:16, 16:9, 1:1220
wan-2.6-flashWan 2.6 Flashvideoi2v, t2v5/10/159:16, 16:9, 1:160
hailuo-2.3Hailuo 2.3videoi2v6/109:16, 16:960
nano-banana-2Nano Banana 2imaget2i, i2i—9:16, 1:1, 16:9, 3:4, 4:38
nano-banana-proNano Banana Proimaget2i, i2i—9:16, 1:1, 16:9, 3:4, 4:335
seedream-5Seedream 5.0imaget2i—9:16, 1:1, 16:930
flux-3FLUX 3imaget2i—9:16, 1:1, 16:9, 3:4, 4:318
gpt-image-2GPT Image 2imaget2i—1:1, 9:16, 16:912

Shablonlar

idinputcr
uzum-productMahsulot videosi (Uzum)image_url120
food-reelTaom reels (restoran)image_url120
wedding-inviteTo‘y taklifnomasiimage_url150
old-photoEski suratni jonlantirishimage_url90
navruzNavro‘z tabrigiimage_url130
hayitHayit tabrigiimage_url130
studio-portraitStudiya portretiimage_url60
logo-motionLogotip animatsiyasiimage_url90

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