Vidu AI API Overview
At Vidu AI, we empower developers with a comprehensive suite of APIs designed to seamlessly integrate our advanced AI tools into your applications. Whether you’re building a custom solution or enhancing your existing platform, our APIs provide the flexibility and power you need to generate and manage AI-driven content. To access our APIs, you’ll need to generate an API Key in your personal cabinet. This key is your gateway to all of Vidu AI’s services and should be used to authenticate your API requests.
Below is a detailed list of the available API calls. Each endpoint is designed to offer specific functionalities, from generating images to managing your content in the cloud. The base URL for all API requests is https://api.vidu.org
.
Generate Image
- URL:
POST https://api.vidu.org/generate-image
- Parameters:
api_key
(string, required): Your API Key for authentication.prompt
(string, required): Text description for generating the image.style
(string, optional): Desired style for the image (e.g., “realistic”, “abstract”).resolution
(string, optional): Image resolution (e.g., “1024×1024”).
Generate Video
- URL:
POST https://api.vidu.org/generate-video
- Parameters:
api_key
(string, required): Your API Key for authentication.script
(string, required): Text or storyboard for generating the video.style
(string, optional): Desired style for the video.duration
(int, optional): Length of the video in seconds.resolution
(string, optional): Video resolution (e.g., “1920×1080”).
Convert Image to Video
- URL:
POST https://api.vidu.org/convert-image-to-video
- Parameters:
api_key
(string, required): Your API Key for authentication.image_url
(string, required): URL of the image to convert.motion_style
(string, optional): Type of motion to apply (e.g., “pan”, “zoom”).duration
(int, optional): Length of the resulting video in seconds.
Store Content
- URL:
POST https://api.vidu.org/store-content
- Parameters:
api_key
(string, required): Your API Key for authentication.content_url
(string, required): URL of the content to store.content_type
(string, required): Type of content (“image”, “video”).metadata
(json, optional): Additional metadata for the content.
Retrieve Stored Content
- URL:
GET https://api.vidu.org/retrieve-content
- Parameters:
api_key
(string, required): Your API Key for authentication.content_id
(string, required): ID of the content to retrieve.
Delete Stored Content
- URL:
DELETE https://api.vidu.org/delete-content
- Parameters:
api_key
(string, required): Your API Key for authentication.content_id
(string, required): ID of the content to delete.
List All Stored Content
- URL:
GET https://api.vidu.org/list-content
- Parameters:
api_key
(string, required): Your API Key for authentication.content_type
(string, optional): Filter by content type (“image”, “video”).
Generate Thumbnail
- URL:
POST https://api.vidu.org/generate-thumbnail
- Parameters:
api_key
(string, required): Your API Key for authentication.video_url
(string, required): URL of the video for which to generate a thumbnail.timestamp
(int, required): Time in seconds at which to capture the thumbnail.
Update Content Metadata
- URL:
PUT https://api.vidu.org/update-metadata
- Parameters:
api_key
(string, required): Your API Key for authentication.content_id
(string, required): ID of the content to update.metadata
(json, required): New metadata to associate with the content.
Analyze Image Content
- URL:
POST https://api.vidu.org/analyze-image
- Parameters:
api_key
(string, required): Your API Key for authentication.image_url
(string, required): URL of the image to analyze.analysis_type
(string, required): Type of analysis (e.g., “object_detection”, “color_analysis”).
Analyze Video Content
- URL:
POST https://api.vidu.org/analyze-video
- Parameters:
api_key
(string, required): Your API Key for authentication.video_url
(string, required): URL of the video to analyze.analysis_type
(string, required): Type of analysis (e.g., “motion_detection”, “scene_detection”).
Generate GIF from Video
- URL:
POST https://api.vidu.org/generate-gif
- Parameters:
api_key
(string, required): Your API Key for authentication.video_url
(string, required): URL of the video to convert into a GIF.start_time
(int, required): Start time in seconds for the GIF.duration
(int, required): Duration of the GIF in seconds.
Embed Content
- URL:
POST https://api.vidu.org/embed-content
- Parameters:
api_key
(string, required): Your API Key for authentication.content_id
(string, required): ID of the content to embed.platform
(string, required): Platform where the content will be embedded (e.g., “web”, “app”).
Search Content
- URL:
GET https://api.vidu.org/search-content
- Parameters:
api_key
(string, required): Your API Key for authentication.query
(string, required): Search query.content_type
(string, optional): Filter by content type (“image”, “video”).
Transcode Video
- URL:
POST https://api.vidu.org/transcode-video
- Parameters:
api_key
(string, required): Your API Key for authentication.video_url
(string, required): URL of the video to transcode.format
(string, required): Desired output format (e.g., “mp4”, “webm”).resolution
(string, optional): Desired resolution for the transcoded video.
We are continuously enhancing our developer tools, and we’re excited to announce that we’re working on JavaScript and Python SDKs that will incorporate this entire API list. These SDKs will simplify integration and accelerate your development process, providing you with robust tools to fully leverage Vidu AI’s capabilities. Stay tuned for updates!