For apps

Video calls for your app

A video call API and SDK for Next.js, Laravel, Django and any other stack. Calls between two people ring in every tab and app of the one called, always connect and are encrypted end to end, and the call screen is ready to use, so there is nothing for you to run.

Or try the live demo: open it in two browsers and call from one to the other.

The best pricing for WebSockets, unlimited 1-to-1 calls with TURN servers worldwide, and group calls and live streaming with an allowance included. From $11.99 a month for 1,000 concurrent connections, billed yearly, or $14.99 billed monthly.

Group calls above your plan: $0.20 per 1,000 minutes, $0.10 on audio.

Your server

Next.js on the server, and React on the page.

app/api/call-token/route.ts
export async function GET( request: Request ) {
    const me = await currentUserId();
    const ask = new URL( request.url ).searchParams;
    const to = ask.get( 'to' )!;

    // Your own check, whatever your app needs.
    if ( ! me || ! await mayCall( me, to ) ) {
        return new Response( null, { status: 403 } );
    }

    const token = await realtime.callToken( me, to, {
        type: ask.get( 'type' ),
    } );

    return Response.json( { token } );
}
Your app

Hooks and components for any React app, on any of the servers above.

components/CallAnn.jsx
'use client';   // in Next.js

import { CallButton, CallScreen } from '@wordplus/realtime/react';

// Inside <RealtimeProvider>, once for the whole app.
export function CallAnn() {
    return (
        <>
            <CallScreen />
            <CallButton to={ 34 } tokenUrl="/api/call-token"
                type="video" name="Ann">
                Call Ann
            </CallButton>
        </>
    );
}
A video call between two people, as each of them sees it

Try a video call

Start a call here, then answer it from your phone or a second window. No account needed.

These are the screens the SDK gives your app. Your browser asks for your camera and microphone, nothing is recorded, and the demo ends after 10 minutes.

Calls between two people

Every call connects

A call rings in every tab and app the person called has open, and stops ringing everywhere once they answer on one. Then it takes the best path the two networks allow, with no TURN server of yours to keep.

  1. DirectlyBetween the two devices, on most networks. The fastest path.
  2. Through our relaysWhen a firewall blocks the direct path. They answer on the ports of the web, so a call gets through wherever websites do.
  3. Through our media serversWhen even the relays cannot reach. The call moves there and goes on, without hanging up.

Encrypted end to end on every path, and included in every plan.

Where calls connect

Our relays and media servers run close to your users, and each call goes through the one nearest the people in it.

How we connect your users

Your server decides

Place, answer and run a call

Who may call whom is up to your app. Your server gives the page a token for each call it allows, and the page starts the call with it, from a button or your own code. Here is a call to Ann, a task at a time.

Your server

Next.js on the server, and React on the page.

Give the page a token

Who may call whom is your app's own logic, so it lives in a route of your own. Check whatever your app needs, then answer with a token. A token starts one call, and nothing rings without one. mayCall is your own check.

app/api/call-token/route.ts
export async function GET( request: Request ) {
    const me = await currentUserId();
    const ask = new URL( request.url ).searchParams;
    const to = ask.get( 'to' )!;

    // Your own check, whatever your app needs.
    if ( ! me || ! await mayCall( me, to ) ) {
        return new Response( null, { status: 403 } );
    }

    const token = await realtime.callToken( me, to, {
        type: ask.get( 'type' ),
    } );

    return Response.json( { token } );
}

Calls in each stack, with the whole setup:

Or step by step, in a real app: How to implement video calls in Next.js

Ready-made or yours

A call screen ready to use, or your own

The call screen is ready to use: call buttons, the ring and the call window, on the web, iOS and Android. Change its colours and words, swap a piece of it for your own, or build your own interface on the same SDK.

A video call ringing: one browser shows the incoming call with Answer and Decline, the other is calling

Calls between two people are encrypted end to end on every path, and a group call is when your server says so.

More than two people? Group calls run on our media servers, with hosts, speakers and listeners.

Use cases

What people build with calls

Each is a whole app in the docs, with its server in Node.js, PHP and Python.

Calls from a button

A Call support button that rings the agent in every tab they have open.

Consultations by booking

A video visit with a doctor, a lawyer, a tutor or a coach, open only to the two booked, at its time.

Team meetings

A video meeting for each team or event, with screen sharing, which the lead ends for everyone.

Classes and audio rooms

A teacher or a panel speaks and the rest listen, raising a hand to speak.

Waiting and breakout rooms

Guests wait until the host admits them, and the host sends people to smaller rooms and back.

Charging for calls

Your server learns how long each person talked, counted on our servers, to bill by the minute.

Pricing

Priced by connections, never by messages

From $11.99 a month for 1,000 concurrent connections, billed yearly, or $14.99 billed monthly.

Group calls above your plan: $0.20 per 1,000 minutes, $0.10 on audio.

One price at every resolution. Bandwidth, relays and messages are never charged, and calls between two people are included. We run our own relays and media servers, which keeps these prices low.

Priced by concurrent connections, starting from 1,000, billed monthly or yearly. Calls between two people are unlimited.

With 1,000 connections, group calls are unmetered up to 32 people on video at once, a person on audio counting half, with no limit on people in a call. Each further 1,000 connections add 12 people on video. Above that, each extra person on video takes a credit a minute, on audio half, and your plan adds 5,000 credits a month for each 1,000 connections.

Questions

Frequently asked

Do I need my own TURN or media servers?

No. A call between two people goes straight between the two devices when it can, through our relays when a firewall blocks the direct path, and through our media servers when even the relays cannot reach it. Group calls run on our media servers in several regions. There is nothing for you to host.

Which stacks can use the video call SDK?

Next.js and Express, Laravel and plain PHP, Django, FastAPI and Flask, Capacitor, iOS and Android, each with a guide. A server in any other language uses the HTTP API. Flutter apps have calls on iOS and Android, and React Native apps on iOS for now.

How many people can join a group call?

There is no limit on people in a call. With 1,000 connections, up to 32 people on video at once take no credits, a person on audio counting half, and each further 1,000 connections add 12. Above that, each extra person on video takes a credit a minute.

Are the calls encrypted?

Yes. The media of a call between two people is encrypted end to end on every path, also when our relays or media servers carry it. A group call is encrypted end to end when your server says so, with a key only your server gives out.

Where are your servers?

Our relays and media servers run in these countries: Germany, France, United Kingdom, Poland, Canada and Singapore. Each call goes through the one nearest the people in it. Coming next: United States, Australia, India and Italy. The realtime servers that carry your events run in Germany.

Who decides who may call whom?

Your app. Your server gives the page a token for each call it allows, and for each person who joins a group call, saying who speaks and who only listens, and who hosts. So who may do what is your own logic, and nothing starts without a token. The cloud enforces every token, and your server can take access back at any moment.

Can I build my own call interface?

Yes. The call screen is optional. Change its colours and words, or place, answer and draw calls yourself on the SDK, down to every person in a group call.

Can I charge my users for calls?

Yes. WordPlus Cloud tells your server by webhook how long each call lasted and when each person joined and left a group call, counted on its own servers, so your app can bill by the minute.

Questions about your integration? Write to us: we help with the SDKs, the call screen and your stack.