Sora-2 - Image To Video
Creative sora 2 image to video. Stunning AI animation for creating high-fidelity video assets from photos.
POST
sora-2 (Image To Video)
Authentication
- Sign up for a GPTProto account at https://gptproto.com
- Navigate to the API Keys section in your dashboard
- Generate a new API key (sk-xxxxx)
- Copy and securely store your API key For authentication details, please refer to the Authentication section.
Initiate Request
Query result
How to obtain the id
After submitting your video generation request to/v1/videos, the response will contain the id you need for querying results.
Query Task Status
Retrieve detailed information about the video generation task, including status, progress, and video URL.Query Video Content
Directly output the video content for immediate use or download.Parameters
| Parameter | Type | Required | Default | Range | Description |
|---|---|---|---|---|---|
prompt | string | ✅ Yes | - | - | Text prompt that describes the video to generate. |
input_reference | file | ❌ No | - | - | Optional image reference that guides generation. |
model | string | ❌ No | sora-2 | sora-2sora-2-pro | The video generation model to use. Defaults to sora-2. |
seconds | string | ❌ No | 4 | 4812 | Clip duration in seconds. Defaults to 4 seconds. |
size | string | ❌ No | 720x1280 | 720x12801280x7201024x17921792x1024 | Output resolution formatted as width x height. Defaults to 720x1280.Note: 1024x1792 and 1792x1024 are only supported by sora2-pro model. |
Error Codes
Common Error Codes
| Error Code | Error Name | Description |
|---|---|---|
| 401 | Unauthorized | API key is missing or invalid |
| 403 | Forbidden | Your API key doesn’t have permission to access this resource, or insufficient balance for the requested operation |
| 429 | Too Many Requests | You’ve exceeded your rate limit |
| 500 | Internal server error | An internal server error occurred |
| 503 | Content policy violation | Content blocked due to safety concerns (actual status code is 400) |

