{"info":{"title":"bitdance","version":"1.0.0","description":"The OpenAPI schema for the bitdance model."},"paths":{"/":{"post":{"summary":"bitdance","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Output"}}},"description":"Successful Response"}},"operationId":"post_v1_bitdance","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Input"}}},"required":true}}}},"openapi":"3.1.0","components":{"schemas":{"Input":{"type":"object","title":"Input","required":["prompt"],"properties":{"seed":{"type":"integer","title":"Seed","x-order":4,"nullable":true,"description":"Random seed for reproducibility. The same seed and prompt will produce the same image."},"prompt":{"type":"string","title":"Prompt","x-order":0,"description":"Text prompt for image generation."},"image_size":{"anyOf":[{"$ref":"#/components/schemas/ImageSize"},{"enum":["square_hd","square","portrait_4_3","portrait_16_9","landscape_4_3","landscape_16_9"],"type":"string"}],"title":"Image Size","default":"square_hd","x-order":1,"description":"The size of the generated image. Will be snapped to the nearest supported resolution."},"num_images":{"type":"integer","title":"Num Images","default":1,"maximum":4,"minimum":1,"x-order":5,"description":"Number of images to generate."},"output_format":{"allOf":[{"$ref":"#/components/schemas/OutputFormat"}],"title":"Output Format","default":"jpeg","x-order":7,"description":"The format of the generated image."},"guidance_scale":{"type":"number","title":"Guidance Scale","default":7.5,"maximum":15,"minimum":1,"x-order":3,"description":"Classifier-free guidance scale. Higher values follow the prompt more closely."},"num_inference_steps":{"type":"integer","title":"Num Inference Steps","default":25,"maximum":100,"minimum":10,"x-order":2,"description":"Number of diffusion sampling steps per decoding step. Higher values (e.g. 50) improve quality at the cost of speed."},"enable_safety_checker":{"type":"boolean","title":"Enable Safety Checker","default":true,"x-order":6,"description":"If set to true, the safety checker will be enabled."}}},"Output":{"type":"array","items":{"type":"string","format":"uri"},"title":"Output"},"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}}},"OutputFormat":{"enum":["jpeg","png"],"type":"string","title":"OutputFormat","description":"An enumeration."}}}}