Prompt Generation
POST
/api/prompt/generateGenerate platform prompts
Compiles a .ws script and generates per-scene prompts optimized for AI video platforms.
Request body:
json
{
"source": "Film \"AI Demo\"\n mood: cinematic\n\nScene \"Open\" intent: reveal\n show \"The future is here\"\n size: hero",
"platform": "sora",
"theme": "corporate-blue"
}
| Field | Type | Default | Description |
|---|---|---|---|
source |
string | required | The .ws source text |
platform |
string | generic |
Target: generic, sora, runway, kling, veo |
theme |
string | — | ThemePack to influence color language |
Response:
json
{
"scenes": [
{
"sceneId": "scene_001",
"prompt": "Slow cinematic camera push through atmospheric space...",
"negative_prompt": "text, UI elements, watermarks",
"camera": { "motion": "push-in", "speed": "slow" },
"duration": 5
}
]
}
Supported Platforms
| Platform | Behavior |
|---|---|
generic |
Standard prompt, no constraints |
sora |
Duration clamped to 20s, resolution fields |
runway |
Camera mapped to Runway format |
kling |
Motion scaling for Kling |
veo |
Google Veo API format |
Next Steps
- Platform Adapters — the orchestration workflow
- Sandwich Architecture — deterministic + AI generation