1. Authenticate
Create an API key in your Medux account and send it as a Bearer token. Keep the key on your server, not in browser code.
Manage API keys →API Reference > Overview
Developer documentationBuild AI image, video, avatar and voice workflows with Medux API and MCP. Start with free trial credits; learn authentication, uploads, tasks and model inputs.
New users receive 3,000 free trial credits for eligible tasks. API and MCP share your Workshop balance and plan limits. Compare credits and usage limits.
Use the same four-step pattern for most creation and processing workflows. Endpoint pages provide the exact fields and response contracts.
Create an API key in your Medux account and send it as a Bearer token. Keep the key on your server, not in browser code.
Manage API keys →Request an upload URL, PUT the file to that URL, and use the returned file_id in a media endpoint.
Upload address API →Choose a generation, cloning, or processing endpoint. Many media operations return an asynchronous task rather than a finished file.
Image to Video API →Save the task ID, check its status, and use the output URL or produced asset ID when the task succeeds.
Task status API →Upload media only when an endpoint needs a file. Keep the returned file_id and task ID so your application can continue the workflow.
1. POST https://api.medux.io/api/app/v1/upload_urls
2. PUT {upload_url} # Use the complete upload_url returned in step 1
3. POST https://api.medux.io/api/app/v1/generate/video/image_to_video
4. GET https://api.medux.io/api/app/v1/tasks/{task_id}The API base URL is https://api.medux.io. Send API requests with an Authorization: Bearer header. For the PUT step, upload the file bytes to the complete upload_url returned in step 1 without adding the API base URL. Endpoint pages provide the required fields and response contracts for each capability.
Media creation is often asynchronous. A successful task-creation response is the start of a job, not the finished output.
Store the returned data.task.id and poll the status endpoint for that task type. When the status becomes SUCCEEDED, read the output URL or produced asset ID described by that endpoint. Handle FAILED and EXPIRED as terminal states.
Medux responses include an application code and message. Check both the HTTP response and the application code before reading data. Review the error codes and the relevant task-status page for retry and failure handling.
Use REST endpoints for direct product integrations. Medux also exposes media capabilities through MCP tools for compatible AI agents.
The endpoint pages document request fields, response fields, examples, and related operations. Where available, they also identify the corresponding MCP tool.