API reference · Account
A pasted script broken into scenes and shots
POST/api/studio/direct/scriptSigned in session
One chat call on the signed in account under strict JSON, by the director plan's writer and billed like it: the script in its order as scenes, each with a heading and its shots, every line of dialogue in the shot it is said in with who says it. A line said on screen is marked lipsync only while a lip sync model and stored media are on. Nothing is kept. What it cost is in micros and x-antimatter-cost-micros, refused or not. Open while jobs are off. Same origin only.
Request body
application/json, required
| Field | Type | What it is |
|---|---|---|
| scriptrequired | string | The script as the person pasted it: a screenplay or plain prose. At most 20000 characters. |
| seconds | number | Seconds a shot, when the person has a length in mind. |
| style | string | At most 500 characters. |
| aspect | string | One of "16:9", "9:16", "1:1". |
Example
{
"script": "string",
"seconds": 0,
"style": "string",
"aspect": "16:9"
}Answer 200
The scenes.
| Field | Type | What it is |
|---|---|---|
| title | string | |
| scenes | array of object | |
| scenes[] | string | |
| scenes[] | array of object | |
| scenes[] | string | |
| scenes[] | string | The shot as a video prompt, without its camera move. |
| scenes[] | string or null | One of "push-in", "pull-out", "orbit", "crane-up", "dolly-zoom", "tracking", "handheld", "drone", "whip-pan", "static", null. |
| scenes[] | string or null | A colour grade the shot takes in the cut. One of "teal-orange", "noir", "bleach", "dusk", "nebula", "film", "vivid", null. |
| scenes[] | number | |
| scenes[] | string or null | A video model the studio offers now that makes it from words alone. |
| scenes[] | string | The line said in the shot, word for word. |
| scenes[] | string | Who says the line; absent for a narrator. |
| scenes[] | boolean | The line is said on screen by a face the shot shows. |
| scenes[] | boolean | The line is said on screen and a lip sync model is offered now; absent, it is speech heard over the shot. |
| lipsync | boolean | A lip sync model is offered now. |
| micros | integer | |
| model | string | |
| modelName | string | The writer's name as a person reads it. |
Errors
- 400OpenAI shaped error.
- 401OpenAI shaped error.
- 402OpenAI shaped error.
- 403OpenAI shaped error.
- 429OpenAI shaped error.
- 502OpenAI shaped error.
- 503OpenAI shaped error.
Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.