create_asset
Create a new character, location, prop, or legacy text-only style asset in a workspace. Character, location, and prop prompts generate a reference image. Style assets do not generate images; routine projects should store their global visual style in edit.style instead. existingMediaUrl may attach an explicit user-supplied reference image.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Asset name | |
| type | Yes | Type of asset to create | |
| editId | No | Edit ID — REQUIRED when creating assets within an edit context. Assets without editId will NOT appear in the editor Assets tab. | |
| prompt | No | Prompt for generating a character, location, or prop reference image. For a legacy style asset, this is normalized into its text description and no image is generated. Ignored if existingMediaUrl is provided. | |
| modelId | No | Model ID for character, location, or prop image generation. Pass the user's preferred model from MODEL_PREFERENCES if set. Defaults to Nano Banana Pro (google-gemini-3-image). Ignored for style assets and when existingMediaUrl is provided. | |
| folderId | No | Folder to place the asset in | |
| description | No | Asset description. For style assets, this must be one short sentence describing only the visual aesthetic shared by every shot; do not list characters, locations, props, actions, or shot-specific objects. | |
| workspaceId | Yes | The workspace ID | |
| existingMediaUrl | No | Download URL of an existing image to use as the asset reference image (e.g. from a user-attached file). When provided, skips image generation and uses this image directly. | |
| voiceDescription | No | For character assets: voice/accent/personality description used for speech generation, e.g. "slow casual Gen Z woman, vocal fry, Valley girl / LA accent". | |
| existingMediaFileName | No | Original file name for existingMediaUrl. Used when copying the uploaded image into workspace media storage. | |
| existingMediaMimeType | No | MIME type for existingMediaUrl. Used when copying the uploaded image into workspace media storage. |