{"title":"Wan | v2.6 | Image to Video | Flash","slug":"wan-v2-6-image-to-video-flash","version":"0.0.1","output_type":"video","request_schema":{"properties":{"audio_url":{"description":"URL of the audio file for audio-visual synchronization. Supports WAV and MP3. Duration: 3-30 seconds. Max 15MB.","format":"uri","title":"Audio URL","type":["string","null"]},"duration":{"default":"15","description":"Video duration in seconds. Duration: 2-15 seconds.","enum":["2","3","4","5","6","7","8","9","10","11","12","13","14","15"],"title":"Duration","type":"string"},"enable_prompt_expansion":{"default":true,"description":"Enable LLM-based prompt rewriting for better video quality. Default: true.","title":"Enable Prompt Expansion","type":["boolean","null"]},"image_url":{"description":"URL of the image to use as the first frame. Supports JPEG, JPG, PNG, BMP, WEBP. Dimensions: 240-8000px on each side. Max 10MB.","format":"uri","title":"Image URL","type":"string"},"multi_shots":{"default":false,"description":"Enable multiple shots with scene transitions. Requires enable_prompt_expansion to be true. Default: false.","title":"Multi Shots","type":["boolean","null"]},"negative_prompt":{"description":"Text describing content to avoid in the generated video. Max 500 characters.","maxLength":500,"title":"Negative Prompt","type":["string","null"]},"prompt":{"description":"Text prompt describing the desired video motion and content. Supports Chinese and English. Max 1500 characters.","maxLength":1500,"title":"Prompt","type":"string"},"resolution":{"default":"1080p","description":"Video output resolution. 720p: lower resolution, faster generation. 1080p: higher quality output (default).","enum":["720p","1080p"],"title":"Resolution","type":"string"},"seed":{"description":"Random seed for reproducibility. Range: 0-2147483647. If not provided, a random seed is chosen.","maximum":2147483647,"minimum":0,"title":"Seed","type":["integer","null"]}},"required":["prompt","image_url"],"type":"object"},"openapi_schema":{"components":{"schemas":{"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"},"WanV26ImageToVideoFlashInput":{"properties":{"audio_url":{"description":"URL of the audio file for audio-visual synchronization. Supports WAV and MP3. Duration: 3-30 seconds. Max 15MB.","format":"uri","nullable":true,"title":"Audio URL","type":"string"},"duration":{"default":"15","description":"Video duration in seconds. Duration: 2-15 seconds.","enum":["2","3","4","5","6","7","8","9","10","11","12","13","14","15"],"title":"Duration","type":"string"},"enable_prompt_expansion":{"default":true,"description":"Enable LLM-based prompt rewriting for better video quality. Default: true.","nullable":true,"title":"Enable Prompt Expansion","type":"boolean"},"image_url":{"description":"URL of the image to use as the first frame. Supports JPEG, JPG, PNG, BMP, WEBP. Dimensions: 240-8000px on each side. Max 10MB.","format":"uri","title":"Image URL","type":"string"},"multi_shots":{"default":false,"description":"Enable multiple shots with scene transitions. Requires enable_prompt_expansion to be true. Default: false.","nullable":true,"title":"Multi Shots","type":"boolean"},"negative_prompt":{"description":"Text describing content to avoid in the generated video. Max 500 characters.","maxLength":500,"nullable":true,"title":"Negative Prompt","type":"string"},"prompt":{"description":"Text prompt describing the desired video motion and content. Supports Chinese and English. Max 1500 characters.","maxLength":1500,"title":"Prompt","type":"string"},"resolution":{"default":"1080p","description":"Video output resolution. 720p: lower resolution, faster generation. 1080p: higher quality output (default).","enum":["720p","1080p"],"title":"Resolution","type":"string"},"seed":{"description":"Random seed for reproducibility. Range: 0-2147483647. If not provided, a random seed is chosen.","maximum":2147483647,"minimum":0,"nullable":true,"title":"Seed","type":"integer"}},"required":["prompt","image_url"],"type":"object","x-eachlabs-order-properties":["prompt","image_url","resolution","audio_url","duration","negative_prompt","enable_prompt_expansion","multi_shots","seed"]}},"securitySchemes":{"bearerAuth":{"description":"API key passed as `Authorization: Bearer \u003capi_key\u003e`","scheme":"bearer","type":"http"}}},"info":{"description":"Wan 2.6 Image-to-Video Flash is a lightweight model that quickly transforms images into videos with smooth motion and consistent visuals.","title":"Wan | v2.6 | Image to Video | Flash","version":"1.0.0","x-eachlabs-model-slug":"wan-v2-6-image-to-video-flash","x-eachlabs-output-type":"video"},"openapi":"3.0.4","paths":{"/v1/prediction":{"post":{"description":"Creates a new prediction for Wan | v2.6 | Image to Video | Flash.","operationId":"createPrediction","requestBody":{"content":{"application/json":{"schema":{"properties":{"input":{"$ref":"#/components/schemas/WanV26ImageToVideoFlashInput"},"model":{"description":"Model slug or identifier.","enum":["wan-v2-6-image-to-video-flash"],"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.075 per second, depending on resolution","description":"Pricing is an estimate and may change as rates are updated.","min":0.05,"max":0.075,"depends_on":["resolution"],"rows":[{"label":"720p","value":0.05},{"label":"1080p (default)","value":0.075}]}}
