remotion-render

Renderize vídeos a partir de código de componentes React/Remotion via inference.sh. Envie código TSX, receba MP4. Suporta todas as APIs do Remotion: useCurrentFrame, useVideoConfig, spring, interpolate, AbsoluteFill, Sequence. Resolução, FPS, duração e codec configuráveis. Use para: geração programática de vídeos, gráficos animados, design de movimento, vídeos orientados a dados, animações React para vídeo. Gatilhos: remotion, renderizar vídeo a partir de código, tsx para vídeo, react video, vídeo programático, remotion render, código para vídeo, animado...

npx skills add https://github.com/halt-catch-fire/skills --skill remotion-render

Install the belt CLI skill: npx skills add belt-sh/cli

Remotion Render

Render videos from React/Remotion component code via inference.sh CLI.

Remotion Render

Quick Start

Requires inference.sh CLI (belt). Install instructions

belt login

# Render a simple animation
belt app run infsh/remotion-render --input '{
  "code": "import { useCurrentFrame, AbsoluteFill } from \"remotion\"; export default function Main() { const frame = useCurrentFrame(); return <AbsoluteFill style={{backgroundColor: \"#000\", display: \"flex\", justifyContent: \"center\", alignItems: \"center\"}}><h1 style={{color: \"white\", fontSize: 100, opacity: frame / 30}}>Hello World</h1></AbsoluteFill>; }",
  "duration_seconds": 3,
  "fps": 30,
  "width": 1920,
  "height": 1080
}'

Input Schema

ParameterTypeRequiredDescription
codestringYesReact component TSX code. Must export default a component.
composition_idstringNoComposition ID to render
propsobjectNoProps passed to the component
widthnumberNoVideo width in pixels
heightnumberNoVideo height in pixels
fpsnumberNoFrames per second
duration_secondsnumberNoVideo duration in seconds
codecstringNoOutput codec

Available Imports

Your TSX code can import from remotion and react:

// Remotion APIs
import {
  useCurrentFrame,
  useVideoConfig,
  spring,
  interpolate,
  AbsoluteFill,
  Sequence,
  Audio,
  Video,
  Img
} from "remotion";

// React
import React, { useState, useEffect } from "react";

Examples

Fade-In Text

belt app run infsh/remotion-render --input '{
  "code": "import { useCurrentFrame, AbsoluteFill, interpolate } from \"remotion\"; export default function Main() { const frame = useCurrentFrame(); const opacity = interpolate(frame, [0, 30], [0, 1]); return <AbsoluteFill style={{backgroundColor: \"#1a1a2e\", display: \"flex\", justifyContent: \"center\", alignItems: \"center\"}}><h1 style={{color: \"#eee\", fontSize: 80, opacity}}>Welcome</h1></AbsoluteFill>; }",
  "duration_seconds": 2,
  "fps": 30,
  "width": 1920,
  "height": 1080
}'

Animated Counter

belt app run infsh/remotion-render --input '{
  "code": "import { useCurrentFrame, useVideoConfig, AbsoluteFill } from \"remotion\"; export default function Main() { const frame = useCurrentFrame(); const { fps, durationInFrames } = useVideoConfig(); const progress = Math.floor((frame / durationInFrames) * 100); return <AbsoluteFill style={{backgroundColor: \"#000\", display: \"flex\", justifyContent: \"center\", alignItems: \"center\", flexDirection: \"column\"}}><h1 style={{color: \"#fff\", fontSize: 200}}>{progress}%</h1><p style={{color: \"#666\", fontSize: 30}}>Loading...</p></AbsoluteFill>; }",
  "duration_seconds": 5,
  "fps": 60,
  "width": 1080,
  "height": 1080
}'

Spring Animation

belt app run infsh/remotion-render --input '{
  "code": "import { useCurrentFrame, useVideoConfig, spring, AbsoluteFill } from \"remotion\"; export default function Main() { const frame = useCurrentFrame(); const { fps } = useVideoConfig(); const scale = spring({ frame, fps, config: { damping: 10, stiffness: 100 } }); return <AbsoluteFill style={{backgroundColor: \"#6366f1\", display: \"flex\", justifyContent: \"center\", alignItems: \"center\"}}><div style={{width: 200, height: 200, backgroundColor: \"white\", borderRadius: 20, transform: `scale(${scale})`}} /></AbsoluteFill>; }",
  "duration_seconds": 2,
  "fps": 60,
  "width": 1080,
  "height": 1080
}'

With Props

belt app run infsh/remotion-render --input '{
  "code": "import { AbsoluteFill } from \"remotion\"; export default function Main({ title, subtitle }) { return <AbsoluteFill style={{backgroundColor: \"#000\", display: \"flex\", justifyContent: \"center\", alignItems: \"center\", flexDirection: \"column\"}}><h1 style={{color: \"#fff\", fontSize: 80}}>{title}</h1><p style={{color: \"#888\", fontSize: 40}}>{subtitle}</p></AbsoluteFill>; }",
  "props": {"title": "My Video", "subtitle": "Created with Remotion"},
  "duration_seconds": 3,
  "fps": 30,
  "width": 1920,
  "height": 1080
}'

Sequence Animation

belt app run infsh/remotion-render --input '{
  "code": "import { useCurrentFrame, AbsoluteFill, Sequence, interpolate } from \"remotion\"; function FadeIn({ children }) { const frame = useCurrentFrame(); const opacity = interpolate(frame, [0, 20], [0, 1]); return <div style={{ opacity }}>{children}</div>; } export default function Main() { return <AbsoluteFill style={{backgroundColor: \"#000\", display: \"flex\", justifyContent: \"center\", alignItems: \"center\", flexDirection: \"column\", gap: 20}}><Sequence from={0}><FadeIn><h1 style={{color: \"#fff\", fontSize: 60}}>First</h1></FadeIn></Sequence><Sequence from={30}><FadeIn><h1 style={{color: \"#fff\", fontSize: 60}}>Second</h1></FadeIn></Sequence><Sequence from={60}><FadeIn><h1 style={{color: \"#fff\", fontSize: 60}}>Third</h1></FadeIn></Sequence></AbsoluteFill>; }",
  "duration_seconds": 4,
  "fps": 30,
  "width": 1920,
  "height": 1080
}'

Python SDK

from inferencesh import inference

client = inference()

result = client.run({
    "app": "infsh/remotion-render",
    "input": {
        "code": """
import { useCurrentFrame, AbsoluteFill, interpolate } from "remotion";

export default function Main() {
  const frame = useCurrentFrame();
  const opacity = interpolate(frame, [0, 30], [0, 1]);

  return (
    <AbsoluteFill style={{
      backgroundColor: "#1a1a2e",
      display: "flex",
      justifyContent: "center",
      alignItems: "center"
    }}>
      <h1 style={{ color: "#eee", fontSize: 80, opacity }}>
        Hello from Python
      </h1>
    </AbsoluteFill>
  );
}
""",
        "duration_seconds": 3,
        "fps": 30,
        "width": 1920,
        "height": 1080
    }
})

print(result["output"]["video"])

Streaming Progress

for update in client.run({
    "app": "infsh/remotion-render",
    "input": {
        "code": "...",
        "duration_seconds": 10
    }
}, stream=True):
    if update.get("progress"):
        print(f"Rendering: {update['progress']}%")
    if update.get("output"):
        print(f"Video: {update['output']['video']}")

Related Skills

# Remotion best practices (component patterns)
npx skills add remotion-dev/skills@remotion-best-practices

# AI video generation (for AI-generated clips)
npx skills add inference-sh/skills@ai-video-generation

# Image generation (for video assets)
npx skills add inference-sh/skills@ai-image-generation

# Python SDK reference
npx skills add inference-sh/skills@python-sdk

# Full platform skill
npx skills add inference-sh/skills@infsh-cli

Documentation

Mais skills de halt-catch-fire

ai-image-generation
halt-catch-fire
Gere imagens de IA com GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve e mais de 50 modelos via CLI do inference.sh. Modelos: GPT-Image-2, FLUX Dev LoRA, FLUX.2 Klein LoRA, Gemini 3 Pro Image, Grok Imagine, Seedream 4.5, Reve, ImagineArt. Capacidades: texto para imagem, imagem para imagem, inpainting, LoRA, edição de imagem, upscaling, renderização de texto. Use para: arte de IA, mockups de produtos, arte conceitual, gráficos para redes sociais, visuais de marketing, ilustrações. Gatilhos: flux, geração de imagem, imagem de IA, texto para...
creativemediaimage
ai-video-generation
halt-catch-fire
We need to translate the given text from English to Brazilian Portuguese. The text describes an AI video generation skill. We must preserve the name "ai-video-generation" but it's not in the text, so we ignore. Preserve product names, protocol names, URLs, numbers, technical terms. So we keep: Google Veo, Seedance 2.0, HappyHorse, Wan, Grok, inference.sh CLI, Veo 3.1, Veo 3, Seedance 2.0, HappyHorse 1.0, Wan 2.5, Grok Imagine Video, OmniHuman, Fabric, HunyuanVideo, text-to-video, image-to-video, reference-to-video, video editing, lipsync, avatar animation, video upscaling, foley sound, social media videos, marketing content, explainer videos, product demos, AI avatars, video generation, ai video. Also numbers like 40+ models, 1.0, 2.5, etc. Translate the rest naturally. The
creativevideomedia
twitter-automation
halt-catch-fire
Automatize o Twitter/X com postagem, engajamento e gerenciamento de usuários via CLI do inference.sh. Apps: x/post-tweet, x/post-create (com mídia), x/post-like, x/post-retweet, x/dm-send, x/user-follow. Capacidades: postar tweets, agendar conteúdo, curtir posts, retweetar, enviar DMs, seguir usuários, obter perfis. Use para: automação de mídias sociais, agendamento de conteúdo, bots de engajamento, crescimento de audiência, API do X. Gatilhos: twitter api, x api, automação de tweets, postar no twitter, twitter bot, automação de mídias sociais, x...
marketingapicommunication
ai-avatar-video
halt-catch-fire
Crie vídeos de avatar com IA e vídeos de cabeça falante via CLI do inference.sh. Recomendado: P-Video-Avatar (mais rápido, mais barato, TTS integrado). Também: OmniHuman, Fabric, PixVerse. Áudio: Inworld TTS-2 (mais de 100 idiomas, controle de emoção para personagens), ElevenLabs, Kokoro. Capacidades: avatares guiados por áudio, texto para avatar, vídeos com sincronia labial, geração de cabeça falante, apresentadores virtuais, conteúdo UGC. Use para: apresentadores de IA, vídeos explicativos, influenciadores virtuais, dublagem, vídeos de marketing, anúncios UGC, avatares de jogos,...
videocreativemedia
agent-browser
halt-catch-fire
Automação de navegador para agentes de IA via inference.sh. Navegue por páginas da web, interaja com elementos usando referências @e, tire capturas de tela, grave vídeo. Capacidades: raspagem web, preenchimento de formulários, cliques, digitação, arrastar e soltar, upload de arquivos, execução de JavaScript. Use para: automação web, extração de dados, testes, navegação por agente, pesquisa. Gatilhos: navegador, automação web, raspar, navegar, clicar, preencher formulário, captura de tela, navegar na web, playwright, navegador headless, agente web, surfar na internet, gravar vídeo
browser-automationweb-scrapingtesting
web-search
halt-catch-fire
We need to translate the given text from English to Brazilian Portuguese. The instruction says to preserve product names, protocol names, URLs, numbers, and technical terms. Also preserve the name "web-search" but only if it appears in the source text. The source text does not include "web-search" explicitly, so we don't add it. We must not add any labels or extra commentary. Just translate the text inside <text>. Let's translate: "Web search and content extraction with Tavily and Exa via inference.sh CLI. Apps: Tavily Search, Tavily Extract, Exa Search, Exa Answer, Exa Extract. Capabilities: AI-powered search, content extraction, direct answers, research. Use for: research, RAG pipelines, fact-checking, content aggregation, agents. Triggers: web search, tavily, exa, search api, content extraction, research, internet search, ai search, search assistant, web scraping, rag, perplexity alternative" We need to keep "Tavily", "Exa", "inference.sh CLI",
researchweb-scrapingapi
infsh-cli
halt-catch-fire
We need to translate the given text from English to Brazilian Portuguese. The text describes an agent skill for running AI apps via inference.sh CLI. We must preserve product names, protocol names, URLs, numbers, technical terms. The name "infsh-cli" is not in the text, so we don't include it. We translate only the text inside <text>. No extra commentary, labels, etc. Let's translate: "Run 250+ AI apps via inference.sh CLI - image generation, video creation, LLMs, search, 3D, Twitter automation. Models: FLUX, Veo, Gemini, Grok, Claude, Seedance, OmniHuman, Tavily, Exa, OpenRouter, and many more. Use when running AI apps, generating images/videos, calling LLMs, web search, or automating Twitter. Triggers: inference.sh, infsh, ai model, run ai, serverless ai, ai api, flux, veo, claude api, image generation, video generation, openrouter, tavily, exa search,
developmentapicreative
landing-page-design
halt-catch-fire
Otimização de conversão de landing pages com regras de layout, design de seção hero e psicologia de CTA. Abrange fórmula acima da dobra, posicionamento de prova social, design mobile e padrão de leitura em F. Use para: landing pages de startups, páginas de produto, marketing SaaS, otimização de conversão. Gatilhos: landing page, seção hero, acima da dobra, otimização de conversão, design de landing page, botão cta, imagem hero, layout de landing page, landing page saas, design de página de produto, taxa de conversão, landing page...