Build with AI
Use Claude Code, Cursor, GitHub Copilot, ChatGPT, or any AI coding tool to build with Metered. We provide machine-readable reference files that give your AI tool the complete context it needs to write working code with our APIs and SDKs.
Reference Files
All reference files in one place. Use the product-specific file when working with a single product to keep the AI's context focused.
| Product | Reference File | Size |
|---|---|---|
| Embed SDK | llms-embed.txt | ~14 KB |
| Video SDK | llms-video-sdk.txt | ~48 KB |
| TURN Server | llms-turn-server.txt | ~22 KB |
| Global Cloud SFU | llms-sfu.txt | ~17 KB |
| Everything | llms-full.txt | ~101 KB |
OpenAPI 3.0 spec for the Video SDK REST API: apidoc.yaml
- Download the reference file for your product from the table above (right-click → Save link as…)
- Give it to your AI agent — drop the
.txtfile into Claude Code, Cursor, Copilot, ChatGPT, or any AI coding tool - Describe what you want to build — pick a prompt template from What Are You Building? below, or write your own
What Are You Building?
Pick your use case — each one links to the right reference file and a ready-to-use prompt.
I want to add video chat to my app in minutes
Use the Embed SDK — drop an iframe-based video chat into any website or app with a few lines of code. No complex WebRTC setup needed.
Quick start with AI:
Read https://www.metered.ca/docs/llms-embed.txt
Help me embed Metered video chat into my app:
- Create a MeteredFrame component
- Auto-join a specific room on page load
- Listen for participant join/leave events
- Add a button to toggle the chat panel
The room URL is: YOUR_APP_NAME.metered.live/YOUR_ROOM_NAME
Reference file: llms-embed.txt | Full docs: Embed SDK Guide
I want to build a custom video/voice calling app
Use the Video SDK — full control over the video calling experience with a JavaScript SDK for the client and a REST API for room management, recording, live streaming, composition, and RTMP out.
Quick start with AI:
Read https://www.metered.ca/docs/llms-video-sdk.txt
Build a group video calling application with:
- Create a room via the REST API
- Join the room using the JavaScript SDK
- Display local and all remote video streams
- Mute/unmute audio and pause/resume video controls
- Show list of online participants
- Handle participants joining and leaving
Use vanilla JavaScript with the Metered CDN SDK.
My Metered app name is: YOUR_APP_NAME
My secret key is: YOUR_SECRET_KEY
Reference file: llms-video-sdk.txt | Full docs: Video SDK Basic Guide
I need a TURN server for my WebRTC app
Use the TURN Server Service — a globally distributed relay network (31+ regions, 99.999% uptime) that guarantees WebRTC connectivity through NATs and firewalls. Works with any WebRTC app, not just Metered.
Quick start with AI:
Read https://www.metered.ca/docs/llms-turn-server.txt
Help me build a Node.js service that:
- Creates TURN credentials via the Metered REST API
- Sets credentials to auto-expire after 24 hours
- Serves the ICE server configuration to my WebRTC client
- Monitors usage per credential
My Metered app name is: YOUR_APP_NAME
My secret key is: YOUR_SECRET_KEY
Reference file: llms-turn-server.txt | Full docs: TURN Server Overview
I want to build a custom real-time streaming platform
Use the Global Cloud SFU — a pub-sub service for audio, video, and data channels using native WebRTC API and HTTP. No SDK required. Build broadcasting, surveillance, AR/VR, or any custom real-time app.
Quick start with AI:
Read https://www.metered.ca/docs/llms-sfu.txt
Build a broadcasting app where:
- A publisher connects to the SFU and publishes their camera + microphone
- Viewers can subscribe to the published tracks
- Use the native WebRTC API (no external SDK)
- Use fetch() for all HTTP API calls to the SFU
My SFU App ID is: YOUR_SFU_APP_ID
My SFU Secret is: YOUR_SFU_SECRET
Reference file: llms-sfu.txt | Full docs: SFU Quick Start Guide
More Prompt Templates
Once you've picked your product, here are additional prompts for common tasks.
Video SDK
Add recording to an existing app
Read https://www.metered.ca/docs/llms-video-sdk.txt
I have an existing Metered video call app. Help me add:
- Start/stop recording via the REST API
- List all recordings for a room
- Download a specific recording
- Delete old recordings
Show me the REST API calls needed with fetch() examples.
My app name is: YOUR_APP_NAME
My secret key is: YOUR_SECRET_KEY
Set up live streaming with HLS
Read https://www.metered.ca/docs/llms-video-sdk.txt
Help me set up HLS live streaming for a Metered video meeting:
- Create a room with live streaming enabled
- Start the live stream
- Build a viewer page that plays the HLS stream
- Stop the stream when the meeting ends
My app name is: YOUR_APP_NAME
My secret key is: YOUR_SECRET_KEY
Stream to YouTube Live / Twitch via RTMP
Read https://www.metered.ca/docs/llms-video-sdk.txt
Help me stream a Metered video meeting to YouTube Live via RTMP:
- Create a room with RTMP out enabled
- Configure the RTMP ingest URL from YouTube
- Start and stop the stream
My app name is: YOUR_APP_NAME
My secret key is: YOUR_SECRET_KEY
TURN Server
Set up TURN with region pinning for GDPR
Read https://www.metered.ca/docs/llms-turn-server.txt
I need to restrict TURN server traffic to the EU region for GDPR compliance.
Help me:
- Identify the correct EU region-specific TURN endpoints
- Configure my ICE servers to use only EU relays
- Create credentials pinned to the EU region
My Metered app name is: YOUR_APP_NAME
My secret key is: YOUR_SECRET_KEY
Set up multi-tenant TURN with projects
Read https://www.metered.ca/docs/llms-turn-server.txt
I have a multi-tenant app and need separate TURN credential management per tenant.
Help me:
- Create a TURN project per tenant via the REST API
- Set usage quotas per project
- Create and manage credentials within each project
- Monitor usage per project
My Metered app name is: YOUR_APP_NAME
My secret key is: YOUR_SECRET_KEY
Embed SDK
Embed video chat in a React app
Read https://www.metered.ca/docs/llms-embed.txt
Help me embed Metered video chat into my React application:
- Create a VideoChat component using MeteredFrame
- Auto-join a specific room on mount
- Listen for participantJoined and participantLeft events
- Add a button to toggle the chat panel
- Clean up on unmount
The room URL is: YOUR_APP_NAME.metered.live/YOUR_ROOM_NAME
Setting Up Your AI Tool
Claude Code
One-liner — paste this and start building:
Read https://www.metered.ca/docs/llms-video-sdk.txt and help me build a video calling app.
Or reference a downloaded file with @llms-video-sdk.txt in your prompt.
Cursor
- Cursor Settings > Features > Docs
- Add:
https://www.metered.ca/docs/llms-video-sdk.txt - In chat, use
@Docsto reference it
GitHub Copilot
In Copilot Chat, include the URL in your message:
Using the Metered Video SDK docs at https://www.metered.ca/docs/llms-video-sdk.txt,
help me add screen sharing to my video call app.
ChatGPT / GPT Codex
Upload the .txt file or paste its contents, then describe what you want to build. For Codex agents, include the reference file URL in your task description.
Windsurf / Other AI Tools
Most AI coding tools accept URLs or file contents as context. Download the appropriate .txt file and provide it to your tool however it accepts external documentation.
Tips
- Use the product-specific file rather than
llms-full.txt— smaller context means more focused, accurate responses - Include your app name and secret key in the prompt so the AI can write working code. Use environment variables in production — never commit secrets.
- Iterate — start with a prompt template, then ask follow-up questions to refine
- Reference the OpenAPI spec (
apidoc.yaml) if your AI tool supports OpenAPI natively