{"code":200,"message":"success","data":{"components":{"schemas":{"Input":{"additionalProperties":false,"allOf":[{"not":{"properties":{"reference_images":{"minItems":4}},"required":["mask_url","reference_images"]}}],"properties":{"aspect_ratio":{"description":"The aspect ratio of the generated image. If not specified, it is determined automatically from the input image.","enum":["1:1","4:3","3:4","3:2","2:3","16:9","9:16"],"type":"string","x-placeholder":"Select aspect ratio","x-ui-component":"select"},"edit_precision":{"default":"regular","description":"Regular applies prompt-based edits. High restores unchanged pixels and keeps the source image's size.","enum":["regular","high"],"type":"string","x-ui-component":"select"},"image":{"description":"Source image to edit. Supply a publicly accessible image URL.","minLength":1,"type":"string"},"mask_url":{"description":"Upload a mask image or provide its URL. Use the same dimensions as the source. Black pixels mark the edit area and white pixels preserve the image. Include both black and white regions.","minLength":1,"type":"string","x-accept":"image/*","x-ui-component":"uploader"},"prompt":{"description":"Describe the changes to make to the source image.","maxLength":10000,"minLength":1,"type":"string","x-rows":5,"x-ui-component":"textarea"},"quality":{"default":"medium","description":"Editing quality and price tier.","enum":["very_low","low","medium","high"],"type":"string","x-ui-component":"select"},"reference_images":{"description":"Optional guidance images. Up to four without a mask, or three when mask_url is supplied.","items":{"minLength":1,"type":"string"},"maxItems":4,"type":"array"},"resolution":{"default":"1k","description":"Output size tier. Does not change the price. Ignored when mask_url is set or edit_precision is high, which keep the source image's size.","enum":["1k","2k"],"type":"string","x-ui-component":"select"}},"required":["image","prompt"],"type":"object","x-order-properties":["image","prompt","reference_images","mask_url","aspect_ratio","resolution","edit_precision","quality"]},"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/ideogram-ai/ideogram-v4.5/edit":{"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"}]}}