{"info":{"title":"Cog","version":"0.1.0"},"paths":{"/":{"get":{"summary":"Root","responses":{"200":{"content":{"application/json":{"schema":{"title":"Response Root  Get"}}},"description":"Successful Response"}},"operationId":"root__get"}},"/shutdown":{"post":{"summary":"Start Shutdown","responses":{"200":{"content":{"application/json":{"schema":{"title":"Response Start Shutdown Shutdown Post"}}},"description":"Successful Response"}},"operationId":"start_shutdown_shutdown_post"}},"/predictions":{"post":{"summary":"Predict","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PredictionResponse"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"parameters":[{"in":"header","name":"prefer","schema":{"type":"string","title":"Prefer"},"required":false}],"description":"Run a single prediction on the model","operationId":"predict_predictions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PredictionRequest"}}}}}},"/health-check":{"get":{"summary":"Healthcheck","responses":{"200":{"content":{"application/json":{"schema":{"title":"Response Healthcheck Health Check Get"}}},"description":"Successful Response"}},"operationId":"healthcheck_health_check_get"}},"/predictions/{prediction_id}":{"put":{"summary":"Predict Idempotent","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PredictionResponse"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"parameters":[{"in":"path","name":"prediction_id","schema":{"type":"string","title":"Prediction ID"},"required":true},{"in":"header","name":"prefer","schema":{"type":"string","title":"Prefer"},"required":false}],"description":"Run a single prediction on the model (idempotent creation).","operationId":"predict_idempotent_predictions__prediction_id__put","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PredictionRequest"}],"title":"Prediction Request"}}},"required":true}}},"/predictions/{prediction_id}/cancel":{"post":{"summary":"Cancel","responses":{"200":{"content":{"application/json":{"schema":{"title":"Response Cancel Predictions  Prediction Id  Cancel Post"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"parameters":[{"in":"path","name":"prediction_id","schema":{"type":"string","title":"Prediction ID"},"required":true}],"description":"Cancel a running prediction","operationId":"cancel_predictions__prediction_id__cancel_post"}}},"openapi":"3.0.2","components":{"schemas":{"Input":{"type":"object","title":"Input","properties":{"seed":{"type":"integer","title":"Seed","x-order":14,"description":"Seed for random number generator. If None or -1, a random seed will be used."},"top_k":{"type":"integer","title":"Top K","default":250,"x-order":9,"description":"Reduces sampling to the k most likely tokens."},"top_p":{"type":"number","title":"Top P","default":0,"x-order":10,"description":"Reduces sampling to tokens with cumulative probability of p. When set to  `0` (default), top_k sampling is used."},"prompt":{"type":"string","title":"Prompt","x-order":1,"description":"A description of the music you want to generate."},"duration":{"type":"integer","title":"Duration","default":8,"x-order":3,"description":"Duration of the generated audio in seconds."},"input_audio":{"type":"string","title":"Input Audio","format":"uri","x-order":2,"description":"An audio file that will influence the generated music. If `continuation` is `True`, the generated music will be a continuation of the audio file. Otherwise, the generated music will mimic the audio file's melody."},"temperature":{"type":"number","title":"Temperature","default":1,"x-order":11,"description":"Controls the 'conservativeness' of the sampling process. Higher temperature means more diversity."},"continuation":{"type":"boolean","title":"Continuation","default":false,"x-order":4,"description":"If `True`, generated music will continue from `input_audio`. Otherwise, generated music will mimic `input_audio`'s melody."},"model_version":{"allOf":[{"$ref":"#/components/schemas/model_version"}],"default":"stereo-melody-large","x-order":0,"description":"Model to use for generation"},"output_format":{"allOf":[{"$ref":"#/components/schemas/output_format"}],"default":"wav","x-order":13,"description":"Output format for generated audio."},"continuation_end":{"type":"integer","title":"Continuation End","minimum":0,"x-order":6,"description":"End time of the audio file to use for continuation. If -1 or None, will default to the end of the audio clip."},"continuation_start":{"type":"integer","title":"Continuation Start","default":0,"minimum":0,"x-order":5,"description":"Start time of the audio file to use for continuation."},"multi_band_diffusion":{"type":"boolean","title":"Multi Band Diffusion","default":false,"x-order":7,"description":"If `True`, the EnCodec tokens will be decoded with MultiBand Diffusion. Only works with non-stereo models."},"normalization_strategy":{"allOf":[{"$ref":"#/components/schemas/normalization_strategy"}],"default":"loudness","x-order":8,"description":"Strategy for normalizing audio."},"classifier_free_guidance":{"type":"integer","title":"Classifier Free Guidance","default":3,"x-order":12,"description":"Increases the influence of inputs on the output. Higher values produce lower-varience outputs that adhere more closely to inputs."}}},"Output":{"type":"string","title":"Output","format":"uri"},"Status":{"enum":["starting","processing","succeeded","canceled","failed"],"type":"string","title":"Status","description":"An enumeration."},"WebhookEvent":{"enum":["start","output","logs","completed"],"type":"string","title":"WebhookEvent","description":"An enumeration."},"model_version":{"enum":["stereo-melody-large","stereo-large","melody-large","large"],"type":"string","title":"model_version","description":"An enumeration."},"output_format":{"enum":["wav","mp3"],"type":"string","title":"output_format","description":"An enumeration."},"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"}}},"PredictionRequest":{"type":"object","title":"PredictionRequest","properties":{"id":{"type":"string","title":"Id"},"input":{"$ref":"#/components/schemas/Input"},"webhook":{"type":"string","title":"Webhook","format":"uri","maxLength":65536,"minLength":1},"created_at":{"type":"string","title":"Created At","format":"date-time"},"output_file_prefix":{"type":"string","title":"Output File Prefix"},"webhook_events_filter":{"type":"array","items":{"$ref":"#/components/schemas/WebhookEvent"},"default":["start","output","logs","completed"]}}},"PredictionResponse":{"type":"object","title":"PredictionResponse","properties":{"id":{"type":"string","title":"Id"},"logs":{"type":"string","title":"Logs","default":""},"error":{"type":"string","title":"Error"},"input":{"$ref":"#/components/schemas/Input"},"output":{"$ref":"#/components/schemas/Output"},"status":{"$ref":"#/components/schemas/Status"},"metrics":{"type":"object","title":"Metrics"},"version":{"type":"string","title":"Version"},"created_at":{"type":"string","title":"Created At","format":"date-time"},"started_at":{"type":"string","title":"Started At","format":"date-time"},"completed_at":{"type":"string","title":"Completed At","format":"date-time"}}},"HTTPValidationError":{"type":"object","title":"HTTPValidationError","properties":{"detail":{"type":"array","items":{"$ref":"#/components/schemas/ValidationError"},"title":"Detail"}}},"normalization_strategy":{"enum":["loudness","clip","peak","rms"],"type":"string","title":"normalization_strategy","description":"An enumeration."}}}}