For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
StatusSupportDiscussionsLog inSign Up
Docs HomeAPI ReferenceVideo on DemandAI FeaturesLive StreamingVideo PlayerVideo DataCloud PlayoutRecipes
Docs HomeAPI ReferenceVideo on DemandAI FeaturesLive StreamingVideo PlayerVideo DataCloud PlayoutRecipes
    • Docs Home
  • Getting started
    • Welcome to FastPix
    • Activate your account
    • Set up a workspace
    • Upload and play your first video
  • Webhooks
    • Set up webhooks
    • Webhook event reference
  • Language SDKs
    • Choose an SDK
    • Node.js SDK
    • Python SDK
    • Go SDK
    • Java SDK
    • PHP SDK
    • Ruby SDK
    • C# SDK
  • Integrations
    • Integrate FastPix with WordPress
    • Build a video sharing app with StreamGate
  • Account and billing
    • Manage usage and billing
    • Understand FastPix pricing
  • Changelog
    • Release notes
LogoLogo
StatusSupportDiscussionsLog inSign Up
On this page
  • Before you begin
  • Upload your video
  • Upload from a URL
  • Upload from your device
  • Get your playback ID
  • Play your video
  • What’s next
Getting started

Upload and play your first video

Upload a video to FastPix from a URL or your device, then play it back.
Was this page helpful?
Previous

Set up webhooks

Transmit event data from FastPix to a designated destination using HTTP requests.
Next
Built with

This guide walks you through uploading a video to FastPix, either from a URL or from your device and playing it back.

Before you begin

  • A FastPix account with an Access Token ID and Secret Key (from Settings > Access Tokens).
  • A Development or Production workspace set up in your dashboard.

Upload your video

Choose one of the following upload methods.

Upload from a URL

Using the dashboard

  1. Go to Media > Create first media.
  2. Choose Pull Video and paste your video URL.
  3. Click Import. FastPix fetches and processes the video automatically.
  4. When the status shows Ready, copy the Playback ID from the Media Details page.

Using the API

$curl -X POST "https://api.fastpix.com/v1/on-demand" \
> -u {ACCESS_TOKEN_ID}:{SECRET_KEY} \
> -H "Content-Type: application/json" \
> -d '{
> "inputs": [{ "type": "video", "url": "https://static.fastpix.com/fp-sample-video.mp4" }],
> "accessPolicy": "public"
> }'

Save the id from the response, this is your mediaId.


Upload from your device

Using the dashboard

  1. Go to Media > Create first media.
  2. Choose Push Video, then click Upload Video and select your file.
  3. Wait for the progress bar to reach 100%. When the status shows Ready, copy the Playback ID from the Media Details page.

Using the API

$curl -X POST "https://api.fastpix.com/v1/on-demand/upload" \
> -u {ACCESS_TOKEN_ID}:{SECRET_KEY} \
> -H "Content-Type: application/json" \
> -d '{
> "corsOrigin": "*",
> "pushMediaSettings": {
> "accessPolicy": "public",
> "maxResolution": "1080p"
> }
> }'

The response includes a signedUrl. Use it to upload your file:

$curl -X PUT "{SIGNED_URL}" \
> -H "Content-Type: video/mp4" \
> --data-binary @/path/to/your/video.mp4

Save the id from the response as your mediaId.


Get your playback ID

From the dashboard: Open the video’s Media Details page and copy the Playback ID.

Using the API:

$curl -X GET "https://api.fastpix.com/v1/on-demand/{MEDIA_ID}" \
> -u {ACCESS_TOKEN_ID}:{SECRET_KEY}

Look for the id inside the playbackIds array in the response.

NOTE:
The video status must be ready before playback is available.


Play your video

Instant browser preview, open this URL in any browser:

https://play.fastpix.com/?playbackId={PLAYBACK_ID}

Embed with the FastPix Player:

1<script src="https://cdn.jsdelivr.net/npm/@fastpix/fp-player@latest/dist/player.js"></script>
2
3<fastpix-player playback-id="{PLAYBACK_ID}" stream-type="on-demand"></fastpix-player>

Use the HLS stream URL with any compatible player (HLS.js, Video.js, Shaka, AVPlayer, ExoPlayer):

https://stream.fastpix.com/{PLAYBACK_ID}.m3u8

What’s next

Next stepDescription
Secure your playbackAdd JWT tokens and DRM protection.
Transform your videoAdd watermarks, subtitles, clips, and more.
Live streamingGo live with RTMPS or SRT.
Video analyticsMonitor playback performance with Video Data.
Set up webhooksGet notified when media status changes.