Sora 2 API

Access Sora 2 AI video generation using Puter.js API.

Get Started

Model Card

Sora 2 is OpenAI's video and audio generation model designed for speed and flexibility, ideal for rapid iteration, concepting, and social media content where quick turnaround matters more than ultra-high fidelity. It generates videos from text prompts or images with synchronized dialogue and sound effects.

Max Duration N/A

seconds

Frame Rate N/A

fps

Aspect Ratio N/A

supported

Release Date Mar 25, 2025

 

API Usage Example

Add Sora 2 video generation to your app with just a few lines of code.
No API keys, no backend, no configuration required.

// npm install @heyputer/puter.js
import { puter } from '@heyputer/puter.js';

puter.ai.txt2vid("A cat playing with a ball of yarn", {
    model: "openai/sora-2"
}).then(video => {
    document.body.appendChild(video);
});
<html>
<body>
    <script src="https://js.puter.com/v2/"></script>
    <script>
        puter.ai.txt2vid("A cat playing with a ball of yarn", {
            model: "openai/sora-2"
        }).then(video => {
            document.body.appendChild(video);
        });
    </script>
</body>
</html>

View full documentation →

Frequently Asked Questions

What is this Sora 2 API about?

The Sora 2 API gives you access to OpenAI's video generation model through Puter.js. With just a few lines of JavaScript, you can integrate Sora 2 into any web app or Node.js project — no API keys, no backend, and no configuration required.

Who created Sora 2?

Sora 2 was created by OpenAI and released on Mar 25, 2025.

How do I access the Sora 2 API?

You can access the Sora 2 API with just a few lines of JavaScript — no API keys, no backend, and no configuration required. Include the Puter.js library in your project and start making calls right away. For more details, check out our documentation.

Does the Sora 2 API work with React / Vue / Vanilla JS / Node / etc.?

Yes — the Sora 2 API works with any JavaScript framework, Node.js, or plain HTML through Puter.js. Just include the library and start building. See the documentation for more details.

Get started with Puter.js

Add Sora 2 video generation to your app without worrying about API keys or setup.

Read the Docs View Tutorials