{"info":{"title":"Cog","version":"0.1.0"},"openapi":"3.0.2","components":{"schemas":{"Input":{"type":"object","title":"Input","required":["prompt"],"properties":{"seed":{"type":"integer","title":"Seed","default":-1,"maximum":2147483647,"minimum":-1,"x-order":5,"description":"Random seed for the model. If set to -1, a random seed will be used."},"prompt":{"type":"string","title":"Prompt","x-order":0,"description":"Text prompt for image generation"},"image_size":{"anyOf":[{"$ref":"#/components/schemas/ImageSize"},{"$ref":"#/components/schemas/image_size_enum"}],"title":"Image Size","default":"4_3_1k","x-order":2,"description":"The size of the generated image. Use a preset string (e.g. '4_3_1k') or a custom {width, height} object."},"image_urls":{"type":"array","items":{"type":"string","format":"uri"},"title":"Image URLs","default":[],"x-order":1,"description":"Input image(s) for image-to-image generation. List of 1-10 images for single or multi-reference generation."},"max_images":{"type":"integer","title":"Max Images","default":1,"maximum":15,"minimum":1,"x-order":4,"description":"If set to a number greater than one, enables multi-image generation. The model will potentially return up to max_images images every generation."},"sequential_image_generation":{"allOf":[{"$ref":"#/components/schemas/sequential_image_generation"}],"default":"disabled","x-order":3,"description":"Group image generation mode. 'disabled' generates a single image. 'auto' lets the model decide whether to generate multiple related images (e.g., story scenes, character variations)."}}},"Output":{"type":"array","items":{"type":"string","format":"uri"},"title":"Output"},"Status":{"enum":["starting","processing","succeeded","canceled","failed"],"type":"string","title":"Status","description":"The status of the prediction."},"ImageSize":{"type":"object","title":"ImageSize","properties":{"width":{"type":"integer","title":"Width","default":512,"maximum":14142,"description":"The width of the generated image.","exclusiveMinimum":0},"height":{"type":"integer","title":"Height","default":512,"maximum":14142,"description":"The height of the generated image.","exclusiveMinimum":0}}},"WebhookEvent":{"enum":["start","output","logs","completed"],"type":"string","title":"Webhook Event","description":"Webhook event filter values."},"ValidationError":{"type":"object","title":"ValidationError","required":["loc","msg","type"],"properties":{"loc":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}}},"image_size_enum":{"enum":["1_1_512","1_1_1k","1_1_2k","1_1_4k","16_9_512","16_9_1k","16_9_2k","16_9_4k","9_16_512","9_16_1k","9_16_2k","9_16_4k","4_3_512","4_3_1k","4_3_2k","4_3_4k","3_4_512","3_4_1k","3_4_2k","3_4_4k","3_2_512","3_2_1k","3_2_2k","3_2_4k","2_3_512","2_3_1k","2_3_2k","2_3_4k","4_5_512","4_5_1k","4_5_2k","4_5_4k","5_4_512","5_4_1k","5_4_2k","5_4_4k","21_9_512","21_9_1k","21_9_2k","21_9_4k"],"type":"string","title":"image_size_enum","description":"Preset image sizes using {W}_{H}_{resolution} naming."},"PredictionRequest":{"type":"object","title":"PredictionRequest","properties":{"id":{"type":"string","title":"Id","nullable":true},"input":{"$ref":"#/components/schemas/Input"},"context":{"type":"object","title":"Context","nullable":true,"additionalProperties":{"type":"string"}},"webhook":{"type":"string","title":"Webhook","format":"uri","nullable":true,"maxLength":65536,"minLength":1},"created_at":{"type":"string","title":"Created At","format":"date-time","nullable":true},"output_file_prefix":{"type":"string","title":"Output File Prefix","nullable":true},"webhook_events_filter":{"type":"array","items":{"$ref":"#/components/schemas/WebhookEvent"},"title":"Webhook Events Filter","default":["start","output","logs","completed"],"nullable":true}}},"PredictionResponse":{"type":"object","title":"PredictionResponse","properties":{"id":{"type":"string","title":"Id","nullable":true},"logs":{"type":"string","title":"Logs","default":""},"error":{"type":"string","title":"Error","nullable":true},"input":{"$ref":"#/components/schemas/Input"},"output":{"$ref":"#/components/schemas/Output"},"status":{"allOf":[{"$ref":"#/components/schemas/Status"}]},"metrics":{"type":"object","title":"Metrics","nullable":true,"additionalProperties":true},"version":{"type":"string","title":"Version","nullable":true},"created_at":{"type":"string","title":"Created At","format":"date-time","nullable":true},"started_at":{"type":"string","title":"Started At","format":"date-time","nullable":true},"completed_at":{"type":"string","title":"Completed At","format":"date-time","nullable":true}}},"HTTPValidationError":{"type":"object","title":"HTTPValidationError","properties":{"detail":{"type":"array","items":{"$ref":"#/components/schemas/ValidationError"},"title":"Detail"}}},"sequential_image_generation":{"enum":["disabled","auto"],"type":"string","title":"Sequential Image Generation","description":"Group image generation mode."}}}}