Zum Hauptinhalt springen
POST
Generate an AI Story

Autorisierungen

Authorization
string
header
erforderlich

Send your API key in the Authorization header: Bearer vf_live_...

Body

application/json
prompt
string
erforderlich
Required string length: 10 - 5000
referenceImageUrl
string<uri>
erforderlich
directorInput
object

Optional, versioned creative/scene direction. Feature-gated; job-specific capabilities determine which fields and control modes can execute. Omit to retain existing generation behavior. Locked mode requires scenes with unique IDs; maximum 80,000 serialized characters.

styleTemplateId
enum<string>
Verfügbare Optionen:
fruit-drama,
toy-soap,
claymotion,
anime-romance,
educational-explainer,
custom
styleReferenceImageUrl
string<uri>
duration
enum<string>
Verfügbare Optionen:
short,
medium
engine
enum<string>
Verfügbare Optionen:
grok
platform
enum<string>
Verfügbare Optionen:
tiktok,
reels,
shorts,
youtube,
linkedin
topic
string
Required string length: 3 - 5000
name
string
Required string length: 1 - 200

Antwort

AI Story job accepted.

jobId
string
erforderlich
offeringId
enum<string>
erforderlich
Verfügbare Optionen:
ai_story_generation
projectId
string
erforderlich
status
enum<string>
erforderlich
Verfügbare Optionen:
queued,
processing,
awaiting_selection,
completed,
failed,
cancelled
pollUrl
string
erforderlich
creditsReserved
integer
erforderlich
duration
enum<string>
erforderlich
Verfügbare Optionen:
short,
medium
sceneCount
integer
erforderlich
instanceId
string | null