Loading lesson…
Sora 2 moved from consumer-only to API in 2026. 60-second 1080p video from a prompt, callable from code.
Sora launched in 2024 as a consumer demo. In 2026 OpenAI opened an API. Developers can now generate 1080p video up to 60 seconds from a text prompt, an image, or another video — programmatically.
from openai import OpenAI
client = OpenAI()
response = client.videos.generate(
model="sora-2",
prompt="A librarian places a book on a shelf, soft afternoon light.",
duration_seconds=10,
resolution="1080p",
aspect_ratio="16:9",
)
print(response.video_url)A minimal Sora 2 API call (syntax current as of April 2026)15 questions · take it digitally for instant feedback at tendril.neural-forge.io/learn/quiz/end-latest-sora-2-api-creators
What is the core idea behind "Sora 2 API — video generation, programmable"?
Which term best describes a foundational idea in "Sora 2 API — video generation, programmable"?
A learner studying Sora 2 API — video generation, programmable would need to understand which concept?
Which of these is directly relevant to Sora 2 API — video generation, programmable?
Which of the following is a key point about Sora 2 API — video generation, programmable?
Which of these does NOT belong in a discussion of Sora 2 API — video generation, programmable?
What is the key insight about "Know the ethics line" in the context of Sora 2 API — video generation, programmable?
What is the recommended tip about "Use AI as a co-creator" in the context of Sora 2 API — video generation, programmable?
Which statement accurately describes an aspect of Sora 2 API — video generation, programmable?
Which best describes the scope of "Sora 2 API — video generation, programmable"?
Which of the following is a concept covered in Sora 2 API — video generation, programmable?
Which of the following is a concept covered in Sora 2 API — video generation, programmable?
Which of the following is a concept covered in Sora 2 API — video generation, programmable?
Which of the following is a concept covered in Sora 2 API — video generation, programmable?
Which of the following is a concept covered in Sora 2 API — video generation, programmable?