Scope
- Only the primary API Key is supported; temporary API Keys cannot be used (error code
403003). - Asynchronous mode is recommended:
async=true, the API immediately returnsencryptedWorldId; poll Query World Build Status for progress. - This endpoint can only create a Directing World. You do not need to pass
mode(the server writes2; passing a value other than2returns400000).creationModelsupportssimpleandscriptlist; the enter-room version is fixed tostoryV2, andaspectRatioandmaxExperienceTimeSecare fixed tonull.
Authorizations
QwenCloud API Key. Only the primary API Key (sk- prefix) is supported. See Get an API Key.
Header Parameters
Request content type. This parameter must be set to application/json.
API Key authentication. Only the primary API Key is supported; it starts with sk-, e.g. sk-xxx. It is typically configured as the environment variable $DASHSCOPE_API_KEY. A temporary API Key (starting with st-) returns 403003.
Body
application/jsonVideo resolution.
Whether to create asynchronously. Defaults to true. true: returns immediately; the World builds in the background. false: the server polls every 3 seconds for up to 120 seconds and returns when the build completes.
Creation sub-mode. simple (standard mode, default): natural-language prompt, the server generates the full script. scriptlist (script mode): structured script provided by the user.
Event style, used to select the script-generation template. Defaults to normal.
Derive a new creation from an existing Directing World. Must be a Directing encrypted World ID under the current primary account.
World theme description; Chinese and English are supported. Non-empty, up to 2000 characters. Required for simple mode.
Camera movement style. Optional for simple mode.
Narrative style. Optional for simple mode.
An image reference reused directly as the World's first frame. url and base64 are mutually exclusive (choose one). Image constraints: format JPG/JPEG/PNG/WebP; strictly less than 6 MB per image; aspect ratio must be landscape, width/height of 1.5-2.0; failing content-safety or copyright/IP verification returns 403004/403005.
Used for script generation and character reference images, up to 6 images, independent of firstFrameImage. Optional for simple mode.
Structured script. Required for scriptlist mode. Must include synopsis and a non-empty acts.