Pika21Model<T>
Models & Types · AiDotNet.Diffusion.Video
Pika 2.1 short-form video with creative effects.
Inheritance: DiffusionModelBase<T> → LatentDiffusionModelBase<T> → VideoDiffusionModelBase<T> → Pika21Model<T>
For Beginners
Pika 2.1 specializes in short-form video generation with creative physics effects like crush, inflate, and melt. It is designed for social media content creation with fun, viral-ready video effects.
How It Works
References:
- Reference: Pika Labs Pika 2.1 (2025)
Pika 2.1 specializes in short-form video generation with creative effects like crush, inflate, melt, and explode. Features scene ingredients for visual consistency across different scenes and real-time editing capabilities. Optimized for creative and marketing use cases.
Technical specifications:
- Architecture: DiT + Creative Effects Engine
- Latent channels: 16
- Default: 72 frames at 24 FPS
- Supports I2V: Yes | T2V: Yes | V2V: No
Example
var options = new DiffusionModelOptions<float> { LatentChannels = 16, DefaultInferenceSteps = 30 };
var noise = Tensor<float>.CreateRandom(new[] { 1, 16, 72, 90, 160 });
var trainX = Tensor<float>.CreateRandom(4, 8);
var trainY = Tensor<float>.CreateRandom(4, 2);
var result = new AiModelBuilder<float, Tensor<float>, Tensor<float>>()
.ConfigureModel(new Pika21Model<float>(options: options))
.Build(trainX, trainY);
var video = result.Predict(noise);
Constructors
| Constructor | Summary |
|---|---|
Pika21Model(NeuralNetworkArchitecture<T> architecture, DiffusionModelOptions<T> options, INoiseScheduler<T> scheduler, DiTNoisePredictor<T> predictor, TemporalVAE<T> temporalVAE, IConditioningModule<T> conditioner, int defaultNumFrames, int defaultFPS, int? seed) |
Initializes a new instance of Pika21Model with full customization support. |
Properties
| Property | Summary |
|---|---|
IConditioningModule<T> Conditioner { get; } |
|
INoisePredictor<T> NoisePredictor { get; } |
|
IVAEModel<T> TemporalVAE { get; } |
|
IVAEModel<T> VAE { get; } |
|
bool SupportsImageToVideo { get; } |
|
bool SupportsTextToVideo { get; } |
|
bool SupportsVideoToVideo { get; } |
|
int LatentChannels { get; } |
Methods
| Method | Summary |
|---|---|
ModelMetadata<T> GetModelMetadata() |