Documentation
¶
Overview ¶
Package runway implements engine.Engine for the Runway API.
Video generation is async: POST /v1/image_to_video or /v1/text_to_video creates a task, then GET /v1/tasks/{id} polls for completion. Auth: Authorization: Bearer {key}, env RUNWAY_API_KEY. Requires header X-Runway-Version.
Index ¶
Constants ¶
const ( ModelGen4Turbo = "gen4_turbo" ModelGen3ATurbo = "gen3a_turbo" )
Model constants.
Variables ¶
var (
ErrMissingPrompt = errors.New("runway: missing prompt in workflow graph")
)
Functions ¶
func ConfigSchema ¶
func ConfigSchema() []engine.ConfigField
ConfigSchema returns the configuration fields required by the Runway engine.
func DefaultProvider ¶ added in v0.15.0
DefaultProvider returns preset engine configurations for runway.
func ModelInfos ¶ added in v0.16.0
ModelInfos returns i18n metadata for all Runway models.
func ModelsByCapability ¶
ModelsByCapability returns all known Runway models grouped by capability.
Types ¶
type Config ¶
type Config struct {
APIKey string
BaseURL string
Model string
APIVersion string
HTTPClient *http.Client
WaitForCompletion bool
PollInterval time.Duration
OnProgress epoll.OnProgress
}
Config configures the Runway engine.
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine implements engine.Engine for Runway.
func (*Engine) Capabilities ¶
func (e *Engine) Capabilities() engine.Capability
Capabilities implements engine.Describer.