{"code":200,"message":"success","data":{"components":{"schemas":{"Input":{"additionalProperties":false,"allOf":[{"if":{"required":["audio_bitrate_kbps"]},"then":{"properties":{"output_format":{"enum":["mp3","aac"]}},"required":["output_format"]}},{"if":{"properties":{"output_format":{"const":"mp3"}},"required":["output_format","audio_bitrate_kbps"]},"then":{"properties":{"audio_bitrate_kbps":{"enum":[32,40,48,56,64,80,96,112,128,160,192,224,256,320]}}}},{"if":{"properties":{"output_format":{"const":"aac"}},"required":["output_format","audio_bitrate_kbps"]},"then":{"properties":{"audio_bitrate_kbps":{"maximum":256}}}}],"properties":{"audio_bitrate_kbps":{"description":"Optional MP3 or AAC bitrate in kbps. Leave empty for automatic encoding.","maximum":320,"minimum":32,"type":"integer","x-ui-component":"slider"},"duration":{"default":30,"description":"Sound duration in seconds, from 0.1 to 600.","maximum":600,"minimum":0.1,"type":"number","x-ui-component":"slider"},"negative_prompt":{"description":"Sounds to avoid, such as music, voices, or traffic.","maxLength":1000,"type":"string","x-rows":2,"x-ui-component":"textarea"},"output_format":{"default":"wav","description":"Output audio format.","enum":["wav","mp3","aac","flac"],"type":"string"},"prompt":{"description":"Describe the sound effects or ambience to generate.","maxLength":2000,"minLength":1,"pattern":"\\S","type":"string","x-rows":4,"x-ui-component":"textarea"},"seed":{"description":"Random seed. Leave empty for random generation.","maximum":2147483647,"minimum":0,"type":"integer"}},"required":["prompt"],"type":"object","x-order-properties":["prompt","negative_prompt","duration","audio_bitrate_kbps","output_format","seed"]},"PredictionResponse":{"properties":{"created_at":{"description":"ISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”).","format":"date-time","type":"string"},"id":{"description":"Unique identifier for the prediction, the ID of the prediction to get.","type":"string"},"model":{"description":"Model ID used for the prediction.","type":"string"},"outputs":{"description":"Array of generated outputs (empty when status is not completed). Items are usually URL strings, but may be text strings or structured result objects, depending on the model.","items":{"oneOf":[{"type":"string"},{"type":"object"}]},"type":"array"},"status":{"description":"Status of the task: created, processing, completed, or failed.","type":"string"},"urls":{"description":"Object containing related API endpoints.","type":"object"}},"type":"object"}},"securitySchemes":{"apiKeyAuth":{"in":"header","name":"Authorization","type":"apiKey"}}},"info":{"description":"The WaveSpeed API.","title":"WaveSpeed API","version":"3.0.0"},"openapi":"3.0.0","paths":{"/api/v3/mirelo-ai/sfx-2.0/text-to-audio":{"post":{"description":"Submit a request to run the model and create a prediction.","operationId":"createPrediction","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Input"}}},"description":"Input parameters for the model.","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PredictionResponse"}}},"description":"Prediction request accepted."}},"summary":"Create prediction"},"x-api-name":"model_run"},"/api/v3/predictions/{request_id}/result":{"get":{"description":"Retrieve the current status and result of a prediction.","operationId":"getPredictionResult","parameters":[{"description":"The ID of the prediction request.","in":"path","name":"request_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PredictionResponse"}}},"description":"Prediction result."}},"summary":"Get prediction result"},"x-api-name":"model_result"}},"security":[{"apiKeyAuth":[]}],"servers":[{"url":"https://api.wavespeed.ai"}]}}