{"openapi":"3.1.0","info":{"title":"Qwen-Image 3.0 API — Cheaper Gen.","version":"1.0.0","description":"Qwen-Image 3.0 generates and edits 1K–2K images with clear instruction following and stable Chinese and English text rendering, at a flat low price per image."},"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"]},"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/alibaba/qwen-image-3.0/text-to-image":{"post":{"summary":"Qwen-Image 3.0 — Text to Image","operationId":"alibaba_qwen_image_3_0_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"],"default":"1:1"},"resolution":{"title":"Resolution","description":"1K ≈ 1 MP, 2K ≈ 4 MP.","type":"string","enum":["1K","2K"],"default":"1K"},"negative_prompt":{"title":"Negative prompt","description":"Things to avoid in the output.","type":"string","maxLength":2000},"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/alibaba/qwen-image-3.0/edit":{"post":{"summary":"Qwen-Image 3.0 — Image Edit","operationId":"alibaba_qwen_image_3_0_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":"1–3 images to edit or combine. Refer to them as \"image 1\", \"image 2\"… in the prompt.","type":"array","items":{"type":"string","format":"uri"},"maxItems":3},"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"],"default":"1:1"},"resolution":{"title":"Resolution","description":"1K ≈ 1 MP, 2K ≈ 4 MP.","type":"string","enum":["1K","2K"],"default":"1K"},"negative_prompt":{"title":"Negative prompt","description":"Things to avoid in the output.","type":"string","maxLength":2000},"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"}}}}}}}}}