# SEE2AI Video Upscaling

Upscale a video to 720p or 1080p and keep its audio.

Supply a public HTTPS video URL (up to 300 seconds and 500 MB) with verifiable
movie and track headers. A standard, non-fragmented MP4 is suitable. Choose fast, standard, professional or generative (default standard). Resolution is 720p or 1080p (default). Omit fps to retain the source rate, or set an integer from 15 to 60. Input short edge 360–1440 pixels and long edge 360–2560. Generative mode requires SDR and limits the short and long edges to 1080 and 1920 pixels.

| Method | Path | Purpose |
| --- | --- | --- |
| `POST` | `/api/platform/v1/actions/see2ai_video_upscale_v1/async` | Submit with an optional X-Idempotency-Key. |
| `GET` | `/api/platform/v1/actions/see2ai_video_upscale_v1/status/{task_id}` | Poll the video task. |

## Submit

`POST /api/platform/v1/actions/see2ai_video_upscale_v1/async` requires a service bearer token plus its acting user's token and accepts an optional
`X-Idempotency-Key`. Reuse the key for the same request. A different body with the
same key returns HTTP 409. On acceptance the response includes `task_id`,
`status="running"`, `estimated_cost` (held points), and `cost_points=0`.

```sh
curl -X POST 'https://see2ai.com/api/platform/v1/actions/see2ai_video_upscale_v1/async' -H "Authorization: Bearer $SERVICE_TOKEN" \
  -H "X-Platform-User-Token: $USER_TOKEN" \
  -H 'Content-Type: application/json' -H 'X-Idempotency-Key: clip-001' \
  -d '{"video_url":"https://media.example/input.mp4"}'
```

## Poll

`GET /api/platform/v1/actions/see2ai_video_upscale_v1/status/{task_id}` returns the current status. Poll until success
or failure, respecting `retry_after_seconds` when present.

```sh
curl "https://see2ai.com/api/platform/v1/actions/see2ai_video_upscale_v1/status/$TASK_ID" -H "Authorization: Bearer $SERVICE_TOKEN" \
  -H "X-Platform-User-Token: $USER_TOKEN"
```

Example success response (delivery and billing fields):

```json
{
  "task_id": "example-task",
  "status": "success",
  "result_urls": [
    "https://media.example/result.mp4"
  ],
  "video_url": "https://media.example/result.mp4",
  "width": 1080,
  "height": 1880,
  "duration_seconds": 5,
  "has_audio": true,
  "mode": "standard",
  "cost_points": 12500,
  "fps": 30,
  "resolution": "1080p"
}
```

Per delivered minute at up to 30 fps, the 720p / 1080p rates in points are fast 20,000 / 40,000, standard 75,000 / 150,000, professional 750,000 / 1,500,000, and generative 250,000 / 500,000. Higher frame rates through 60 fps cost twice as much. Audio restoration, when needed, adds 3,000 / 6,000 points per minute at 720p / 1080p. Only successful delivery is charged, up to the original hold. A failed task returns `status="failed"`, an empty `result_urls`,
and zero points. Insufficient funds return 402, invalid inputs return 400 or 422,
and an unknown or inaccessible task returns 404.
