{"code":200,"message":"success","data":{"components":{"schemas":{"Input":{"additionalProperties":false,"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","1:2","2:1","1:3","3:1","2:3","3:2","3:4","4:3","4:5","5:4","9:16","16:9","9:21","21:9"],"type":"string","x-placeholder":"Select aspect ratio"},"images":{"description":"List of URLs of input images for editing.","items":{"type":"string"},"maxItems":16,"type":"array"},"mask_image":{"description":"Optional mask for the first input image: white marks the area to edit, black the area to keep (a PNG where transparent marks the area to edit is also accepted). It is resized to the first image.","type":"string","x-mask-submit-format":"url","x-ui-component":"mask"},"output_format":{"default":"png","description":"The format of the output image.","enum":["png","jpeg","webp"],"type":"string"},"prompt":{"description":"The positive prompt for the generation.","type":"string"},"quality":{"default":"medium","description":"Rendering quality tier. Higher tiers add detail and cost more: low is the fastest draft tier, medium is the balanced default, high and xhigh add fidelity, max is the highest-fidelity tier.","enum":["low","medium","high","xhigh","max"],"type":"string"},"resolution":{"default":"1k","description":"The resolution of the output image.","enum":["1k","2k","4k"],"type":"string"}},"required":["prompt","images"],"type":"object","x-order-properties":["prompt","images","mask_image","aspect_ratio","resolution","quality","output_format"]},"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/openai/gpt-image-2.5-flare/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"}]}}