Create a real-time directing World. Supports standard mode (natural-language prompt) and script mode (structured ScriptList); the API immediately returns an encrypted World ID, the World builds asynchronously in the background, and the client polls the build progress until it completes.
Scope
Create a Directing World. Before calling, confirm the following:
-
Authentication: Only the primary API Key is supported; temporary API Keys cannot be used (error code
403003).- Get the primary API Key: Get and configure an API Key.
-
Call mode: Asynchronous mode is recommended.
- Asynchronous mode (default):
async=true, the API immediately returnsencryptedWorldId; poll Query World Build Status for progress. - Synchronous mode:
async=false, the server polls internally (every 3s, up to 120s) and returns when the build completes; on timeout it falls back to asynchronous and the client keeps polling.
- Asynchronous mode (default):
-
Endpoint restrictions: This endpoint can only create a Directing World. You do not need to pass
mode(the server writes2; passing a value other than2returns400000).creationModelsupportssimple(standard mode, default) andscriptlist(script mode); the enter-room version is fixed tostoryV2, andaspectRatioandmaxExperienceTimeSecare fixed tonull.
HTTP request
Singapore
POST https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/api/v2/apps/happyoyster-1.0-directing/openapi/v1/worlds
Replace {WorkspaceId} with your actual Workspace ID.
US (Virginia)
POST https://{WorkspaceId}.us-east-1.maas.aliyuncs.com/api/v2/apps/happyoyster-1.0-directing/openapi/v1/worlds
Replace {WorkspaceId} with your actual Workspace ID.
Standard mode (creationModel=simple)
Request parameters | Standard mode · plain text (async create)Standard mode · text + reference image (async create) |
Content-Type Request content type. This parameter must be set to | |
Authorization API Key authentication. Only the primary API Key is supported; it starts with | |
Request Body | |
async Whether to create asynchronously. Defaults to
| |
creationModel Creation sub-mode; pass
See Additional notes for a description of each endpoint. | |
eventStyle Applies to
| |
refWorldId Derive a new creation from an existing Directing World. Must be a Directing encrypted World ID under the current primary account; a World from another model or another primary account returns | |
prompt World theme description; Chinese and English are supported. Non-empty, up to 2000 characters. | |
resolution Video resolution. Allowed values:
| |
layout Camera movement style (how the camera moves and how hard it cuts). Allowed values:
| |
narrative Narrative style (how dense the drama is and how strong the emotion is). Allowed values:
| |
firstFrameImage When provided, it is reused directly as the World's first frame, skipping AI first-frame generation.
| |
inputImages Used for script generation and character reference images, up to 6 images, independent of
|
Script mode (creationModel=scriptlist)
Request parameters | Script mode (async create) |
Content-Type Request content type. This parameter must be set to | |
Authorization API Key authentication. Only the primary API Key is supported; it starts with | |
Request Body | |
async Whether to create asynchronously. Defaults to
| |
creationModel Creation sub-mode; pass
Note eventStyle is not consumed by scriptlist creation; do not pass it. | |
refWorldId Derive a new creation from an existing Directing World. Must be a Directing encrypted World ID under the current primary account; a World from another model or another primary account returns | |
resolution Video resolution. Allowed values:
| |
firstFrameImage An image reference reused directly as the World's first frame.
| |
scriptList Structured script. Must include |
Response parameters | Async create |
code Return code. | |
message Error message. | |
data Response data. |
Additional notes
-
Character counting: The "up to N characters" limits in this document are counted by character (Unicode characters), regardless of Chinese or English — Chinese characters, English letters, digits, spaces, and punctuation each count as 1 character.
-
ScriptList submission requirements: When creating a World,
actsis limited to 45 entries but is not required to be exactly 45; the full 45 entries are only required when calling update-script during Travel. -
Travel control endpoints: The endpoint names listed under
creationModelare server-side endpoints that can be called during the Travel phase after the World is created, not enum values for this endpoint's input. Their meanings are as follows:instruct: send text process instructions to a running Travel; standard mode only.pause: pause the Travel.resume: resume playback.rewind: rewind to a specified time point; requires pausing first.end: end the Travel.update-script: fully replace the script; script mode only.
Error codes
If the model call fails and returns an error, see HappyOyster Error Codes to resolve it.
Next steps
After creating successfully, you can:
- Query World Build Status: poll every 3–5 seconds until the World enters
ready. - After the World enters
ready, call Get Travel Credential to exchange for a single-useticket. - Query World Detail: query the full creation metadata and ScriptList.