{"openapi":"3.1.0","info":{"title":"Grok Imagine Video 1.5 Lite API — CheaperGen","version":"1.0.0","description":"Grok Imagine Video 1.5 Lite is xAI's faster, lower-cost version of Grok Imagine Video 1.5: 1–15 second videos with native audio at 480p, 720p or 1080p, from text or a first frame."},"servers":[{"url":"https://cheapergen.com/api/v1"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer"}},"schemas":{"Generation":{"type":"object","properties":{"id":{"type":"string"},"object":{"const":"generation"},"model":{"type":"string"},"endpoint":{"type":"string"},"status":{"enum":["queued","running","succeeded","failed","canceled"]},"output":{"type":["object","null"]},"error":{"type":["object","null"]},"cost":{"type":"object","properties":{"amount_usd":{"type":"number"},"official_usd":{"type":["number","null"],"description":"The list price for the same request: see list_price_source."},"list_price_source":{"enum":["official","reference"],"description":"official: the developer's own list price; reference: another price we compare with, named by list_price_label (e.g. fal API)."},"list_price_label":{"type":"string"},"saved_usd":{"type":["number","null"]},"estimated":{"type":"boolean"}}},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":["string","null"],"format":"date-time"}}}}},"paths":{"/run/xai/grok-imagine-video-1.5-lite/text-to-video":{"post":{"summary":"Grok Imagine Video 1.5 Lite — Text to Video","operationId":"xai_grok_imagine_video_1_5_lite_text_to_video","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["prompt"],"properties":{"prompt":{"title":"Prompt","description":"Describe the shot: subject, action, camera movement, lighting and style.","type":"string","maxLength":100000},"aspect_ratio":{"title":"Aspect ratio","description":"Output frame shape.","type":"string","enum":["16:9","9:16","1:1","4:3","3:4","3:2","2:3"],"default":"16:9"},"resolution":{"title":"Resolution","description":"Output resolution. Higher resolutions cost more per second.","type":"string","enum":["480p","720p","1080p"],"default":"720p"},"duration":{"title":"Duration","description":"Length of the generated clip in seconds (1–15s). You pay per second.","type":"integer","minimum":1,"maximum":15,"default":8},"webhook_url":{"type":"string","format":"uri","title":"Webhook URL","description":"Optional. We POST the finished generation here (signed)."}},"additionalProperties":false}}}},"responses":{"202":{"description":"Queued","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Generation"}}}},"400":{"description":"Invalid request"},"402":{"description":"Insufficient balance"}}}},"/run/xai/grok-imagine-video-1.5-lite/image-to-video":{"post":{"summary":"Grok Imagine Video 1.5 Lite — Image to Video","operationId":"xai_grok_imagine_video_1_5_lite_image_to_video","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["prompt","image_url"],"properties":{"prompt":{"title":"Prompt","description":"Describe the shot: subject, action, camera movement, lighting and style.","type":"string","maxLength":100000},"image_url":{"title":"First frame","description":"Image used as the opening frame; the clip keeps its shape. JPG/PNG/WebP, URL or upload.","type":"string","format":"uri"},"resolution":{"title":"Resolution","description":"Output resolution. Higher resolutions cost more per second.","type":"string","enum":["480p","720p","1080p"],"default":"720p"},"duration":{"title":"Duration","description":"Length of the generated clip in seconds (1–15s). You pay per second.","type":"integer","minimum":1,"maximum":15,"default":8},"webhook_url":{"type":"string","format":"uri","title":"Webhook URL","description":"Optional. We POST the finished generation here (signed)."}},"additionalProperties":false}}}},"responses":{"202":{"description":"Queued","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Generation"}}}},"400":{"description":"Invalid request"},"402":{"description":"Insufficient balance"}}}},"/generations/{id}":{"get":{"summary":"Get a generation","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Generation"}}}}}}}}}