Skip to content

C API for Video Generation #3304

@sgonorov

Description

@sgonorov

Context

The Text2VideoPipeline C++ class (src/cpp/include/openvino/genai/video_generation/text2video_pipeline.hpp) currently has no C API bindings. Other pipelines like LLMPipeline already have a working C API — the goal is to follow the same pattern and expose video generation functionality through a C interface.

What to do:

  • Add a new header src/c/include/openvino/genai/c/text2video_pipeline.h following the conventions in src/c/include/openvino/genai/c/llm_pipeline.h
  • Implement the C wrapper in src/c/src/ — see src/c/src/llm_pipeline.cpp for reference
  • Expose at minimum: pipeline creation/destruction, generate(), and config get/set
  • Add a sample under samples/c/ similar to existing C samples in samples/c/text_generation/
  • Add corresponding tests

AI notice — Important! We encourage contributors to use AI tools responsibly when creating Pull Requests. While AI can be a valuable aid, it is essential to ensure that your contributions meet the task requirements, build successfully, include relevant tests, and pass all linters. Submissions that do not meet these standards may be closed without warning to maintain the quality and integrity of the project. Please take the time to understand the changes you are proposing and their impact.

Metadata

Metadata

Assignees

Projects

Status

Contributors Needed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions