{"title":"Alibaba | Wan | 3.0 | Image to Video","slug":"alibaba-wan-3-0-image-to-video","version":"0.0.1","output_type":"video","request_schema":{"additionalProperties":false,"properties":{"audio":{"default":true,"description":"Whether to generate an audio track for the output video.","title":"Audio","type":"boolean"},"duration":{"default":"5","description":"Generated video duration. Select Auto to let the model determine the duration automatically.","enum":["auto","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30"],"enumNames":["Auto","2 seconds","3 seconds","4 seconds","5 seconds","6 seconds","7 seconds","8 seconds","9 seconds","10 seconds","11 seconds","12 seconds","13 seconds","14 seconds","15 seconds","16 seconds","17 seconds","18 seconds","19 seconds","20 seconds","21 seconds","22 seconds","23 seconds","24 seconds","25 seconds","26 seconds","27 seconds","28 seconds","29 seconds","30 seconds"],"title":"Duration","type":"string"},"first_frame":{"description":"URL of the image to use as the first frame. Supported formats: JPEG, JPG, PNG without alpha, BMP, WEBP. Resolution: 240-8000px per side. Aspect ratio: 1:8 to 8:1. Maximum file size: 20 MB.","format":"uri","title":"First Frame","type":"string"},"last_frame":{"description":"Optional URL of the image to use as the last frame. When provided, first-and-last-frame video generation is used.","format":"uri","title":"Last Frame","type":["string","null"]},"prompt":{"description":"Text description to guide video generation. Optional but recommended for better results. Maximum 20,000 characters.","maxLength":20000,"title":"Prompt","type":["string","null"]},"prompt_extend":{"default":true,"description":"Enable automatic prompt rewriting. Enabled by default. Disabling it may reduce latency but can reduce generation quality.","title":"Prompt Extend","type":"boolean"},"ratio":{"default":"adaptive","description":"Output video aspect ratio. Adaptive lets the model choose a suitable ratio based on the input image.","enum":["adaptive","16:9","4:3","1:1","3:4","9:16"],"title":"Aspect Ratio","type":"string"},"resolution":{"default":"1080P","description":"Output video resolution.","enum":["480P","720P","1080P"],"title":"Resolution","type":"string"},"seed":{"description":"Random seed for reproducibility. The same seed may produce similar, but not identical, results.","maximum":2147483647,"minimum":0,"title":"Seed","type":["integer","null"]}},"required":["first_frame"],"type":"object"},"openapi_schema":{"components":{"schemas":{"AlibabaWan30ImageToVideoInput":{"additionalProperties":false,"properties":{"audio":{"default":true,"description":"Whether to generate an audio track for the output video.","title":"Audio","type":"boolean"},"duration":{"default":"5","description":"Generated video duration. Select Auto to let the model determine the duration automatically.","enum":["auto","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30"],"enumNames":["Auto","2 seconds","3 seconds","4 seconds","5 seconds","6 seconds","7 seconds","8 seconds","9 seconds","10 seconds","11 seconds","12 seconds","13 seconds","14 seconds","15 seconds","16 seconds","17 seconds","18 seconds","19 seconds","20 seconds","21 seconds","22 seconds","23 seconds","24 seconds","25 seconds","26 seconds","27 seconds","28 seconds","29 seconds","30 seconds"],"title":"Duration","type":"string"},"first_frame":{"description":"URL of the image to use as the first frame. Supported formats: JPEG, JPG, PNG without alpha, BMP, WEBP. Resolution: 240-8000px per side. Aspect ratio: 1:8 to 8:1. Maximum file size: 20 MB.","format":"uri","title":"First Frame","type":"string"},"last_frame":{"description":"Optional URL of the image to use as the last frame. When provided, first-and-last-frame video generation is used.","format":"uri","nullable":true,"title":"Last Frame","type":"string"},"prompt":{"description":"Text description to guide video generation. Optional but recommended for better results. Maximum 20,000 characters.","maxLength":20000,"nullable":true,"title":"Prompt","type":"string"},"prompt_extend":{"default":true,"description":"Enable automatic prompt rewriting. Enabled by default. Disabling it may reduce latency but can reduce generation quality.","title":"Prompt Extend","type":"boolean"},"ratio":{"default":"adaptive","description":"Output video aspect ratio. Adaptive lets the model choose a suitable ratio based on the input image.","enum":["adaptive","16:9","4:3","1:1","3:4","9:16"],"title":"Aspect Ratio","type":"string"},"resolution":{"default":"1080P","description":"Output video resolution.","enum":["480P","720P","1080P"],"title":"Resolution","type":"string"},"seed":{"description":"Random seed for reproducibility. The same seed may produce similar, but not identical, results.","maximum":2147483647,"minimum":0,"nullable":true,"title":"Seed","type":"integer"}},"required":["first_frame"],"type":"object","x-eachlabs-order-properties":["prompt","first_frame","last_frame","ratio","resolution","duration","audio","prompt_extend","seed"]},"Error":{"properties":{"details":{"description":"Optional validation or request details for client errors.","nullable":true},"error":{"description":"Safe user-facing error message.","type":"string"},"status":{"description":"HTTP status code, when returned by the shared error handler.","type":"integer"}},"required":["error"],"type":"object"}},"securitySchemes":{"bearerAuth":{"description":"API key passed as `Authorization: Bearer \u003capi_key\u003e`","scheme":"bearer","type":"http"}}},"info":{"description":"Alibaba Wan 3.0 Image-to-Video turns first-frame or first-and-last-frame images into AI video with motion, audio, duration, and resolution controls.","title":"Alibaba | Wan | 3.0 | Image to Video","version":"1.0.0","x-eachlabs-model-slug":"alibaba-wan-3-0-image-to-video","x-eachlabs-output-type":"video"},"openapi":"3.0.4","paths":{"/v1/prediction":{"post":{"description":"Creates a new prediction for Alibaba | Wan | 3.0 | Image to Video.","operationId":"createPrediction","requestBody":{"content":{"application/json":{"schema":{"properties":{"input":{"$ref":"#/components/schemas/AlibabaWan30ImageToVideoInput"},"model":{"description":"Model slug or identifier.","enum":["alibaba-wan-3-0-image-to-video"],"type":"string"},"webhook_secret":{"description":"Optional secret used to sign webhook requests.","type":"string"},"webhook_url":{"description":"Optional webhook URL to receive the prediction result asynchronously.","format":"uri","type":"string"}},"required":["model","input"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"message":{"description":"Human-readable message about the prediction creation.","type":"string"},"predictionID":{"description":"Unique prediction identifier.","type":"string"},"status":{"description":"Status of the prediction creation request.","example":"success","type":"string"}},"type":"object"}}},"description":"Prediction created successfully."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Invalid request."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Internal server error."}},"summary":"Create a prediction"}},"/v1/prediction/{id}":{"get":{"description":"Retrieves the status and results of a prediction by its ID.","operationId":"getPrediction","parameters":[{"description":"Prediction ID.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"fallback":{"description":"Present when the request selected a fallback config. Status stays non-terminal until the requested model or a fallback model ends the request.","properties":{"requested_model":{"description":"Model the request named.","nullable":true,"type":"string"},"resolved":{"description":"False while a model in the chain is still running.","type":"boolean"},"selector":{"description":"Fallback config the request selected.","type":"string"},"served_by":{"description":"Model whose result this prediction returns; null until resolved.","nullable":true,"type":"string"},"used":{"description":"True once a fallback model ran because the requested model failed.","type":"boolean"}},"type":"object"},"id":{"description":"Unique prediction identifier.","type":"string"},"input":{"additionalProperties":true,"description":"Input parameters used for the prediction.","type":"object"},"logs":{"description":"Execution logs from the prediction.","nullable":true,"type":"string"},"metrics":{"description":"Performance and cost metrics.","properties":{"cost":{"description":"Cost of the prediction in USD.","type":"number"},"predict_time":{"description":"Time taken for prediction in seconds.","type":"number"}},"type":"object"},"output":{"description":"Prediction output (output_type: video).","nullable":true,"oneOf":[{"type":"string"},{"items":{},"type":"array"},{"type":"object"}]},"status":{"description":"Current status of the prediction.","enum":["created","starting","processing","success","error","cancelled"],"type":"string"},"urls":{"description":"Related API endpoints.","properties":{"cancel":{"description":"URL to cancel the prediction.","format":"uri","type":"string"},"get":{"description":"URL to get the prediction.","format":"uri","type":"string"}},"type":"object"}},"type":"object"}}},"description":"Prediction retrieved successfully."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Prediction not found."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Internal server error."}},"summary":"Get a prediction"}},"/v1/prediction/{id}/cancel":{"post":{"description":"Cancels a running prediction by ID. Cancellation is record-only: the execution record is set to cancelled and no upstream cancellation is attempted — in-flight provider work runs to completion and its result is discarded.","operationId":"cancelPrediction","parameters":[{"description":"Prediction ID.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"message":{"description":"Human-readable cancellation message.","type":"string"},"predictionID":{"description":"Unique prediction identifier.","type":"string"},"status":{"description":"Cancellation status returned when the request succeeds.","enum":["success"],"type":"string"}},"type":"object"}}},"description":"Prediction cancelled."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Prediction not found."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Internal server error."}},"summary":"Cancel a prediction"}}},"security":[{"bearerAuth":[]}],"servers":[{"url":"https://api.eachlabs.ai"}]},"cost":{"currency":"USD","type":"usage_based","amount":null,"unit":"second","estimate":"$0.05–$0.20 per second, depending on resolution","description":"Pricing is an estimate and may change as rates are updated.","min":0.05,"max":0.2,"depends_on":["resolution"],"rows":[{"label":"480P","value":0.05},{"label":"720P","value":0.1},{"label":"1080P (default)","value":0.2}]}}
