Skip to main content
POST
Submit Prompt

Overview

Submit a prompt to a chapter, describing what to build. The system processes the prompt and creates the chapter content, typically completing in 30-90 seconds.
If a chapter already has a prompt being processed, this endpoint returns a 409 Conflict error unless you set force: true to override.

Request

Path Parameters

string
required
The project ID
string
required
The chapter ID

Headers

string
required
Bearer token with your API key
string
required
Must be application/json

Body

string
required
The prompt text describing the video content you want to create (1-5000 characters)
boolean
default:"false"
Force processing even if another prompt is already being processed for this chapter

Response

string
Unique identifier for the submitted prompt
string
Processing status: processing, completed, or failed
string
Human-readable status message
string
Estimated processing time (e.g., “30-90 seconds”)

Examples

Response Example

Error Responses

400
Invalid prompt content
409
Another prompt is already being processed for this chapter
404
Project or chapter not found

Best Practices

Be specific about what you want in your video. Include details about:
  • Visual style and aesthetics
  • Text content and messaging
  • Transitions and animations
  • Mood and tone
After submitting a prompt, the video content is created asynchronously. Use the Get Chapter endpoint to check when processing is complete:
If you get a 409 error, decide whether to:
  1. Wait for the current prompt to complete
  2. Override with force: true (use cautiously)
If you’ve uploaded assets, reference them in your prompts:

Next Steps

Get Chapter

Check processing status

Export Project

Export your completed video

Video Creation Guide

Learn more about creating videos