# CueFrame Media Finalize

> CueFrame Media Finalize is a paid API for AI agents from api.cueframe.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-17).

Confirms upload bytes reached the presigned URL and triggers processing for a previously uploaded media file (audio, video, or image).

## Facts

- Endpoint: POST https://api.cueframe.ai/v1/media/:id/finalize?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cueframe-media-finalize-4089dd3a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aj_y2uJecyxWjkObdyoV7

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability cueframe-media-finalize-4089dd3a -d '<json body>'
```

Example prompt: I just finished uploading the audio file to the presigned URL — go ahead and finalize media ID abc123 on CueFrame and mark it as a voiceover track so it starts processing.

## When to prefer this

Use this endpoint immediately after a successful file upload to the presigned URL obtained from POST /v1/media. This is the required second step in CueFrame's two-step media ingest flow; without calling finalize, the uploaded bytes will not be processed or made available in the project. Choose this when you need to declare an audio role (vo, music, sfx, ambience) at ingest time.

## Known failure modes

- Media ID not found — 404 if the :id doesn't correspond to a reserved media record
- Bytes not yet received at presigned URL — processing may fail or return an error if upload isn't complete
- Already finalized — calling finalize on an already-processed media record may return a conflict or no-op
- Invalid audio role value — submitting a role outside vo, music, sfx, ambience may cause validation failure
- Network timeout — async processing initiation may not confirm in time

## How this service works

Confirm the bytes reached the presigned URL and start processing, the step after POST /v1/media. Audio and video move to processing while images complete at once; optionally declare an audio role of vo, music, sfx, or ambience.

## Output

Returns the updated media record with its processing state — for audio and video, the asset moves into an async processing queue; for images, processing completes synchronously. The response includes the media ID, status, and relevant processing metadata.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cueframe-media-finalize-4089dd3a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.cueframe.ai](https://www.zero.xyz/host/api.cueframe.ai/llms.txt)
