{"openapi":"3.1.0","info":{"title":"Seedream 4.5 API — CheaperGen","version":"1.0.0","description":"ByteDance Seedream 4.5 generates and edits images at 2K or 4K for one price per image, with consistent multi-image editing and legible typography."},"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/bytedance/seedream-4.5/text-to-image":{"post":{"summary":"Seedream 4.5 — Text to Image","operationId":"bytedance_seedream_4_5_text_to_image","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":5000},"aspect_ratio":{"title":"Aspect ratio","description":"Output image shape.","type":"string","enum":["1:1","4:3","3:4","16:9","9:16","3:2","2:3","21:9"],"default":"1:1"},"size":{"title":"Size","description":"2K ≈ 4 megapixels, 4K ≈ 16 megapixels (same price).","type":"string","enum":["2K","4K"],"default":"2K"},"seed":{"title":"Seed","description":"Use the same seed and settings to reproduce a result. Leave empty for random.","type":"integer","minimum":0,"maximum":2147483647},"enable_safety_checker":{"title":"Enable Safety Checker","description":"If set to true, the safety checker will be enabled. Content our Acceptable Use Policy prohibits stays blocked either way.","type":"boolean","default":true},"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/bytedance/seedream-4.5/edit":{"post":{"summary":"Seedream 4.5 — Image Edit","operationId":"bytedance_seedream_4_5_edit","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["prompt","image_urls"],"properties":{"prompt":{"title":"Prompt","description":"Describe the shot: subject, action, camera movement, lighting and style.","type":"string","maxLength":5000},"image_urls":{"title":"Input images","description":"Up to 10 images to edit or combine. Refer to them as \"image 1\", \"image 2\"… in the prompt.","type":"array","items":{"type":"string","format":"uri"},"maxItems":10},"aspect_ratio":{"title":"Aspect ratio","description":"Output image shape.","type":"string","enum":["1:1","4:3","3:4","16:9","9:16","3:2","2:3","21:9"],"default":"1:1"},"size":{"title":"Size","description":"2K ≈ 4 megapixels, 4K ≈ 16 megapixels (same price).","type":"string","enum":["2K","4K"],"default":"2K"},"seed":{"title":"Seed","description":"Use the same seed and settings to reproduce a result. Leave empty for random.","type":"integer","minimum":0,"maximum":2147483647},"enable_safety_checker":{"title":"Enable Safety Checker","description":"If set to true, the safety checker will be enabled. Content our Acceptable Use Policy prohibits stays blocked either way.","type":"boolean","default":true},"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"}}}}}}}}}