API Keys

Loading API keys...

MIRAGE API Reference

REST API JSON

Base URL: https://api.easychroma.com/v1

Authentication

All API requests require a Bearer token in the Authorization header:

HTTP Header
Authorization: Bearer YOUR_API_KEY

Quick Start

  1. Create an API key from the API Keys tab
  2. Get a presigned upload URL using POST /mirage/upload-url
  3. Upload your video to the presigned URL (PUT request)
  4. Submit the job using POST /mirage/submit
  5. Poll status using GET /mirage/status/:taskId
  6. Download outputs using GET /mirage/outputs/:taskId

Endpoints

POST /mirage/upload-url

Get a presigned S3 URL to upload your video

curl
curl -X POST https://api.easychroma.com/v1/mirage/upload-url \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"filename": "video.mp4"}'
POST /mirage/submit

Submit a video for background removal processing

curl
curl -X POST https://api.easychroma.com/v1/mirage/submit \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"sourceKey": "KEY_FROM_UPLOAD", "filename": "video.mp4"}'
GET /mirage/status/:taskId

Check the status of a processing job

curl
curl https://api.easychroma.com/v1/mirage/status/TASK_ID \
  -H 'Authorization: Bearer YOUR_API_KEY'

Rate Limits

Plan Requests/min Concurrent Jobs
Starter 60 2
Pro 300 10
Enterprise Custom Custom

Error Codes

Code Description
400 Bad Request - Invalid parameters
401 Unauthorized - Invalid or missing API key
429 Rate Limited - Too many requests
500 Server Error - Something went wrong