Fake Sora API

API for SoraWebui , This API will be called to generate video from text.

There is no Sora API for OpenAI yet, but you can still call me to see examples of text-to-video.

API Reference

Request url

POST https://fake-sora-api.sorawebui.com/v1/video/generations

Request body


prompt  string  Required

A text description of the desired video. The maximum length is 1000 characters.


model  string  Optional Defaults to sora-1.0-turbo

The model to use for video generation.


size  string  Optional Defaults to 1920X1080

The size of the generated video.

Example request


curl https://fake-sora-api.sorawebui.com/v1/video/generations \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-d '{
  "model": "sora-1.0-turbo",
  "prompt": "A cute baby sea otter",
  "size": "1920x1080"
}'
                    

Example response body

{
  "data": [
    {
      "revised_prompt": "",
      "url": "https://XXXXXX.mp4"
    }
  ]
}

What is FakeSoraAPI

FakeSoraAPI is an open-source project designed to simulate the yet-to-be-released OpenAI Sora API.

It provides a platform for developers to start developing and testing their projects using a mock version of the Sora API.

This allows them to prepare for integration with the actual Sora API once it becomes available, facilitating early development and testing in a simulated environment.

The FakeSoraAPI mimics the expected functionality of the official API, making it a valuable tool for developers anticipating the release of OpenAI's Sora model.

How FakeSoraAPI works

We have implemented FakeSoraAPI by mimicking the interface request method, parameters, and response data format of OpenAI's DALL-E model.

This allows users to debug their Sora applications using FakeSoraAPI, as it provides a simulated environment similar to the actual Sora API.

By replicating the functionality of the DALL-E model's API, FakeSoraAPI enables developers to test and refine their applications before the official release of the Sora model's API, facilitating smoother integration and development processes.