Studio API
Generate video for agent dynamically using the Holoworld Studio API.
Last updated
Generate video for agent dynamically using the Holoworld Studio API.
Last updated
All API requests require authentication using an API key. The API key should be included in the request headers as x-api-key
.
To obtain an API key:
Register for an account at Holoworld
Navigate to your profile > settings
Copy the API key. From now on, this key be referenced as YOUR_API_KEY
Ensure you have an Agent with a valid body created on Holoworld (consult Create Agent for more information). Go to your agent's profile page and copy the Agent ID (the agent ID is the last part of the URL after the slash on the Agent's profile page)
From now on, this will be referenced as YOUR_AGENT_ID.
Currently only Live2D models are supported. 3D support coming soon...
You will also need Holo credits. Whenever you submit a new Job Render and the Job starts executing, credits will be detracted from your account. For more information about Holo Credits and how to purchase them see Credits System. For more information about API pricing, please see Pricing
/api/studio/render`
Initiates a new video rendering job with the specified parameters.
URL: https://app.holoworld.com/api/studio/render
Method: POST
Headers:
Content-Type: application/json
x-api-key: YOUR_API_KEY
Request Body
Response
api/studio/render/{renderId}`
Retrieves the current status of a video rendering job.
URL: https://app.holoworld.com/api/studio/render/{renderId}
Method: GET
Headers:
Content-Type: application/json
x-api-key: YOUR_API_KEY
Response
All requests and responses are in JSON format.
aspectRatio
string
Yes
Aspect ratio of the output video. Options: "1/1"
, "9
/16"
withCaption
boolean
Yes
Whether to include captions/subtitles in the video.
brainrot
boolean
Yes
Generate a brainrot-style video.
scenes
array
Yes
Array of scene objects that make up the video.
text
string
Yes
The text that will be spoken by the AI model
background
object
Yes
Configuration for the scene background
includeOutro
boolean
Yes
Whether your agent should include an emote after speaking is done speaking.
modelConfig
object
Yes
Configuration for the AI model in this scene
type
string
Yes
Type of background. Options: "image"
More options coming soon...
source
string
Yes
URL for image. Use 1200 x 1200 for 1/1 and 1080 x 1920 for 9/16
id
string
Yes
ID of the Agent to use. This will be used to determined the voice, body, and personality to use during the video.
scale
number
Yes
x
number
Yes
y
number
Yes
Maximum text length: try to keep the text under 200 characters per scene
Maximum scenes: 5 per video
Supported background image formats: JPG, PNG
Maximum file size for background images: try to keep the images under 5MB
Each scene costs 0.3 credits. If a scene also has subtitles that adds an extra 0.1 credits.
We provide these sample background to easily getting up and running. But you can always add your own! (Just make sure the sizes are correct!)
Size of the model relative to the frame (0.1-2.0). You can figure this out from
Horizontal position of the model. You can figure this out from
Vertical position of the model. You can figure this out from