Skip to content

Every account gets 10,000 free minutes every month for video, voice and chat in your app.How the free minutes work

VoltKit RTC

Free account required

React video call SDK: hooks and components for React and Next.js

Voice calls from ₹39 (≈ $0.41), Full HD video at ₹99 (≈ $1.04) per 1,000 participant-minutes, billed per second.

@voltkit-rtc/react is the React layer over the JavaScript SDK. A provider owns the connection, hooks give your components the room as state, and two components, VideoTrack and AudioTrack, play the video and the sound. Nothing connects until the browser, so a Next.js page renders on the server and hydrates without a mismatch.

Every account gets 10,000 free participant-minutes every month, shared by all your projects, at any quality. Use them up and the rest is billed from your wallet or plan at the same rates; they reset on the 1st of each month (UTC). How the free minutes work

  • React 18 and 19
  • Safe to render on the server
  • Types included
  • Chat on the same connection
  • Billed per second
Video calls and chat: a glossy blue 3D video camera circled by chat bubbles.

Code

A call page, its token route, a tile and a chat box

The call page is a client component, and the page around it stays a server component. A route handler mints the token on your server and returns it with the wsUrl.

$ npm install @voltkit-rtc/react @voltkit-rtc/client
// app/calls/[callId]/call-page.tsx
"use client";

// … imports, and CallPage, which fetches the token and puts VoltkitProvider around this: the whole file is in the guide

function Call({ onRetry }: { onRetry: () => void }) {
  const { state, info, error, leave } = useRoom();
  const local = useLocalMedia();
  const videos = useRemoteTracks({ kind: "video" });
  const sounds = useRemoteTracks({ kind: "audio" });
  // … errors, and the joining and reconnecting lines

  return (
    <main>
      <section className="tiles">
        {videos.map((t) => (
          <figure key={t.producerId} className="tile">
            <VideoTrack track={t.track} producerId={t.producerId} />
            <figcaption>{t.identity}</figcaption>
          </figure>
        ))}
      </section>
      {sounds.map((t) => (
        <AudioTrack key={t.producerId} track={t.track} />
      ))}
      {/* … your own tile, and the Mute, Camera and Leave buttons */}
    </main>
  );
}
The API secret stays on your server; the browser only gets a short-lived token.The step-by-step guide

Built in

What the SDK handles, and what your app builds

What @voltkit-rtc/react does

  • Makes the client in the browser, connects it, and closes it on unmount; under StrictMode that is still one socket and one connect
  • Gives you the connection, the people in the room, the tracks, your camera and microphone, network quality and who is speaking as state
  • Renders a component again only when what it reads has changed
  • Receives each remote video at the size it is shown and pauses it while it is off screen, once you pass producerId to VideoTrack
  • Reconnects by itself with backoff and publishes again; a reconnect shows as state, without unmounting anything
  • Hands a new token for the same session to the live call, with no reconnect

What your app builds

  • Your token route and your sign-in
  • The call page: the grid, the tiles, the buttons and the words while it reconnects
  • The chat box, from the client's message events
  • A banner when call credit runs low, from useWalletLow
  • Ringing: your push channel rings the other person

With no options, publish() sends the highest quality the project allows, 1080p unless its settings say otherwise: about 8.4 Mbps of upload from a computer. Pass { quality: "720p" } (about 4 Mbps) where that matters more than the picture.

Next.js

Next.js video calling: what runs where

The rules are short, and the package is safe to import from a server component.

  • The token routeA route handler on your server, with the Node.js SDK, checks the user and returns token and wsUrl. The secret never reaches the browser. See Token server.
  • The call pageA client component, with "use client" at the top of its file, because it calls hooks and passes callbacks. The page around it stays a server component.
  • On the serverThe provider makes its client in an effect, which the server never runs: no socket opens and no browser API is read. Hooks return their defaults and the components render empty video and audio elements, so the page hydrates without a mismatch.
  • Never during renderDo not make a StreamClient during render: useState(() => new StreamClient(wsUrl, token)) runs on the server too. Let the provider make it, or make yours in an effect and pass it as client.
  • A server component and the providerA server component may render the provider with wsUrl and token props, for example from a token it minted with the Node.js SDK. Callbacks and token refresh still need a client component.
  • A secure pagenavigator.mediaDevices is read only inside publish(), and browsers offer it only on HTTPS or localhost.

All of it: server rendering and Next.js, and the whole call page, with its join button.

The package

The components and hooks

State comes from hooks. Everything else is on the client, one hook away.

  • VideoTrack and AudioTrackVideoTrack is a video element showing one track, and takes every video prop. AudioTrack plays one track, with a volume for this element only. Sound is always AudioTrack's: a VideoTrack is muted.
  • VoltkitProviderHolds one client for the components below it. onClosed says why a session ended: left, kicked, room-closed, gave-up or replaced. A closed session stays closed, so joining again is a new key and a fresh token.
  • The roomuseRoom, useConnectionState, useParticipants and useRemoteTracks, which filters by person, kind and source. A hook outside the provider does not throw: it keeps returning its default.
  • Your camera and microphoneuseLocalMedia publishes, mutes, switches the camera off, changes quality while live and shares a screen from a click. Its permissions say what the project lets this client publish, so offer only those.
  • Who is speakinguseActiveSpeakers, most active first, and useIsSpeaking, which renders again only when its answer changes, so it suits every tile. useAudioLevels gives everyone's sound about four times a second.
  • The connection and the devicesuseNetworkQuality, useStreamFallback for a video held back on a poor connection, useMediaWarnings for a silent microphone or a slow camera, useCpuConstrained and useDevices.
  • Credit running lowuseWalletLow turns the wallet's warnings into state, for the moments the credits your project may spend cover less than about a minute. A recharge clears it.
  • Everything elseuseVoltkitClient returns the client, for chat, moderation, slots, music and stats, and useVoltkitEvent listens to any of its events. Everything on the JavaScript SDK page still applies.

Limits

What it does not do

Worth knowing before you plan a release on it.

  • React Native: this package is for the browser. React Native apps add @voltkit-rtc/react-native.
  • A ready-made call screen: VideoTrack and AudioTrack show one track each, and your components draw the rest.
  • Chat hooks: chat is on the client, through useVoltkitEvent and useVoltkitClient, and your components draw the chat box.
  • Switching devices from a hook: useDevices lists them, and the client's switchDevice switches to one.
  • Connecting on the server: hooks return their defaults there, and the client is made right after, in the browser.
  • Ringing: your push channel rings the other person.

The package is MIT licensed and has no price of its own: you pay per second for what each person sends or receives. Every rate is on the pricing page, and each vendor's are on compare video APIs. No framework, or not React? Use the JavaScript SDK.

Prices are in Indian rupees; dollar figures are approximate, at ₹95 per US dollar on 24 October 2026, for orientation only. You are billed in rupees.

What you can build with it: Video calling API, Voice calling API, Live chat, Voice chat rooms and Music sharing.

Guides and articles: How to Add a Video Call to a Next.js App, Add Live Chat and Reactions Without a Chat Server and How to Choose a Video Calling SDK in 2026.

The React SDK: questions

Is there a React SDK for video calls?

Yes: @voltkit-rtc/react 0.1.7, on npm, on top of the JavaScript SDK, @voltkit-rtc/client 0.9.20. Install both, so your app and the hooks share one copy. It needs React and react-dom 18 or 19, includes its types, and works as ES modules or CommonJS.

Does it work with Next.js?

Yes. For Next.js video calling, the call page is a client component and the page around it stays a server component. Every module of the package starts with "use client", so importing it from a server component is fine. The provider makes its client in an effect, so no socket opens on the server and the page hydrates without a mismatch. Your token endpoint is a route handler on the server.

Is there a React video chat component?

There are two components: VideoTrack shows one video and AudioTrack plays one sound, and each takes the props of its video or audio element. There is no ready-made call screen: your components draw the tiles and the buttons with them, and the guide has a whole call page to start from.

How do I add chat?

Every room has a chat channel, on the connection the call already holds, and it has no hooks of its own: listen with useVoltkitEvent("message", ...) and send with sendMessage on the client from useVoltkitClient(). React escapes the text, so a message shows as text; never put one in the page with dangerouslySetInnerHTML.

Where does a React app get its token?

From your backend, which holds the API secret, checks who the user is and mints a token with the role you decide. In Next.js that is a route handler using the Node.js server SDK; the server SDKs for Node.js, Python, Go, PHP and Java, or two REST calls, do the same from any backend. A token lives ten minutes by default, so ask for one right before joining; the service refreshes it during the session.

Does every tile render again when one person's track changes?

No. A hook renders again only when what it returns has changed, and arrays and objects keep their identity while nothing in them changed, so they work as useEffect dependencies and with memoized components. One person's tile does not render again when someone else's track changes.

Does it work in React Native?

This package is for the browser. React Native apps use @voltkit-rtc/react-native 0.1.8 beside it, which is tested on Android, with iOS in preview.

What does a React video call cost?

A 10-minute 1:1 call is 20 participant-minutes: 1.98 credits, ₹1.98 (≈ $0.02) at today's rate, charged per second. The SDK has no price of its own.

Add video calls to your React app

Create a free account, make an RTC project, switch on the media you need in its settings, and follow the guide to put two browsers in one call.

Talk to us:contact@voltkit.inWhatsApp