{"openapi":"3.1.0","info":{"title":"Plaxico API","version":"1.0.0","description":"Generate AI video and images (Veo 3.1, Kling, Seedance, Hailuo, Wan, Omni Flash, Nano Banana, Seedream, Flux, GPT Image) with one API. Jobs are billed in the key owner's credits (1 credit ≈ 100 UZS); failed jobs are refunded automatically. Get a key in the cabinet; results arrive by polling or by a signed webhook (headers X-Plaxico-Timestamp and X-Plaxico-Signature: sha256=HMAC-SHA256(webhookSecret, '<timestamp>.<body>')).","contact":{"email":"support@plaxico.uz","url":"https://plaxico.uz/docs/api"},"termsOfService":"https://plaxico.uz/legal/offer"},"externalDocs":{"url":"https://plaxico.uz/docs/api","description":"Guide with examples"},"servers":[{"url":"https://plaxico.uz"}],"security":[{"bearer":[]}],"paths":{"/v1/models":{"get":{"operationId":"listModels","summary":"List models with from-prices","responses":{"200":{"description":"Models","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Model"}}}}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited (120 requests/min per key, 60 writes/min)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/templates":{"get":{"operationId":"listTemplates","summary":"List one-tap templates","responses":{"200":{"description":"Templates","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Template"}}}}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited (120 requests/min per key, 60 writes/min)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/balance":{"get":{"operationId":"getBalance","summary":"Credit balance of the key owner","responses":{"200":{"description":"Balance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Balance"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited (120 requests/min per key, 60 writes/min)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/quote":{"post":{"operationId":"quote","summary":"Price of a generation before starting it","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model","input"],"properties":{"model":{"$ref":"#/components/schemas/ModelId"},"input":{"$ref":"#/components/schemas/Input"}}}}}},"responses":{"200":{"description":"Price","content":{"application/json":{"schema":{"type":"object","properties":{"credits":{"type":"integer"},"uzs":{"type":"integer"}}}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited (120 requests/min per key, 60 writes/min)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/generations":{"post":{"operationId":"createGeneration","summary":"Start a generation","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model","input"],"properties":{"model":{"$ref":"#/components/schemas/ModelId"},"input":{"$ref":"#/components/schemas/Input"},"callback_url":{"type":"string","format":"uri","description":"Public https URL for the signed webhook"}}}}}},"responses":{"201":{"description":"Queued","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Generation"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Not enough credits","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Prompt blocked by the content policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited (120 requests/min per key, 60 writes/min)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"451":{"description":"The key owner has not accepted the public offer yet","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"get":{"operationId":"listGenerations","summary":"Recent generations of the key owner","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}}],"responses":{"200":{"description":"Generations","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Generation"}}}}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited (120 requests/min per key, 60 writes/min)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/generations/{id}":{"get":{"operationId":"getGeneration","summary":"Status and result of a generation","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Generation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Generation"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited (120 requests/min per key, 60 writes/min)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/templates/{id}/run":{"post":{"operationId":"runTemplate","summary":"Run a one-tap template at its fixed price","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","enum":["uzum-product","food-reel","wedding-invite","old-photo","navruz","hayit","studio-portrait","logo-motion"]}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"image_url":{"type":"string","format":"uri"},"text":{"type":"string","maxLength":300},"callback_url":{"type":"string","format":"uri"}}}}}},"responses":{"201":{"description":"Queued","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Generation"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Not enough credits","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Prompt blocked by the content policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited (120 requests/min per key, 60 writes/min)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"451":{"description":"The key owner has not accepted the public offer yet","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"API key vg_live_… from the cabinet (also accepted as X-API-Key)"}},"schemas":{"ModelId":{"type":"string","enum":["kling-2.5-turbo","kling-3","kling-4","omni-flash","veo-3.1-lite","veo-3.1","seedance-2-fast","wan-2.6-flash","hailuo-2.3","nano-banana-2","nano-banana-pro","seedream-5","flux-3","gpt-image-2"]},"Input":{"type":"object","properties":{"prompt":{"type":"string","maxLength":2000},"negativePrompt":{"type":"string","maxLength":1000},"imageUrls":{"type":"array","maxItems":4,"items":{"type":"string","format":"uri"},"description":"https image URLs for image-to-video / image editing"},"endImageUrl":{"type":"string","format":"uri"},"duration":{"type":"integer","minimum":1,"maximum":30,"description":"Seconds (video)"},"aspectRatio":{"type":"string","examples":["9:16","16:9","1:1"]},"resolution":{"type":"string","examples":["720p","1080p"]},"audio":{"type":"boolean"},"seed":{"type":"integer"}}},"Model":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/ModelId"},"title":{"type":"string"},"vendor":{"type":"string"},"kind":{"type":"string","enum":["video","image"]},"tier":{"type":"string","enum":["budget","standard","premium"]},"modes":{"type":"array","items":{"type":"string"}},"durations":{"type":["array","null"],"items":{"type":"integer"}},"aspectRatios":{"type":"array","items":{"type":"string"}},"nativeAudio":{"type":"boolean"},"fromCredits":{"type":"integer"}}},"Template":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"object"},"needsPhoto":{"type":"boolean"},"credits":{"type":"integer"},"model":{"type":"string"}}},"Balance":{"type":"object","properties":{"available":{"type":"integer"},"paid":{"type":"integer"},"bonus":{"type":"integer"},"held":{"type":"integer"},"creditUzs":{"type":"integer"}}},"Generation":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["waiting","queued","submitted","running","succeeded","failed","cancelled"]},"model":{"type":"string"},"kind":{"type":"string","enum":["video","image"]},"credits":{"type":"integer"},"input":{"$ref":"#/components/schemas/Input"},"outputs":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["video","image"]},"url":{"type":"string","format":"uri"}}}},"error":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time"}}},"Error":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}}