mentortools/libs/: fal-ai-connector-0.1.0+2253467561 metadata and description

Homepage Simple index Newer version available

Fal.ai Video Connector

author OpenAPI Generator Community
author_email team@openapitools.org
classifiers
  • License :: OSI Approved
  • Programming Language :: Python :: 3
  • Programming Language :: Python :: 3.8
  • Programming Language :: Python :: 3.9
  • Programming Language :: Python :: 3.10
  • Programming Language :: Python :: 3.11
  • Programming Language :: Python :: 3.12
  • Programming Language :: Python :: 3.13
  • Programming Language :: Python :: 3.14
description_content_type text/markdown
keywords OpenAPI,OpenAPI-Generator,Fal.ai Video Connector
license Unlicense
project_urls
  • Repository, https://github.com/GIT_USER_ID/GIT_REPO_ID
requires_dist
  • urllib3 (>=1.25.3)
  • python-dateutil (>=2.8.2)
  • aiohttp (>=3.8.4)
  • pydantic (>=1.10.5,<2.0.0)
  • aenum (>=3.1.11)
requires_python >=3.8,<4.0
File Tox results History
fal_ai_connector-0.1.0+2253467561-py3-none-any.whl
Size
30 KB
Type
Python Wheel
Python
3
fal_ai_connector-0.1.0+2253467561.tar.gz
Size
23 KB
Type
Source

fal-ai-connector

FastAPI connector for fal.ai video generation using Wan 2.6 model

This Python package is automatically generated by the OpenAPI Generator project:

Requirements.

Python 3.7+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import fal_ai_connector

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import fal_ai_connector

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import time
import fal_ai_connector
from fal_ai_connector.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = fal_ai_connector.Configuration(
    host = "http://localhost"
)



# Enter a context with an instance of the API client
async with fal_ai_connector.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = fal_ai_connector.VideoGenerationApi(api_client)
    image_to_video_api_request = fal_ai_connector.ImageToVideoApiRequest() # ImageToVideoApiRequest | 

    try:
        # Generate video from image
        api_response = await api_instance.generate_video_from_image_video_v1_image_to_video_post(image_to_video_api_request)
        print("The response of VideoGenerationApi->generate_video_from_image_video_v1_image_to_video_post:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling VideoGenerationApi->generate_video_from_image_video_v1_image_to_video_post: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
VideoGenerationApi generate_video_from_image_video_v1_image_to_video_post POST /video/v1/image_to_video Generate video from image
VideoGenerationApi generate_video_from_text_video_v1_text_to_video_post POST /video/v1/text_to_video Generate video from text

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Author