fooocusapi-client

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

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

  • API version: 0.1.0
  • Package version: 1.0.0
  • Generator version: 7.4.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

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 fooocusapi_client

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 fooocusapi_client

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import fooocusapi_client
from fooocusapi_client.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 = fooocusapi_client.Configuration(
    host = "http://localhost"
)



# Enter a context with an instance of the API client
with fooocusapi_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = fooocusapi_client.DefaultApi(api_client)

    try:
        # All Models
        api_response = api_instance.all_models_v1_engines_all_models_get()
        print("The response of DefaultApi->all_models_v1_engines_all_models_get:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling DefaultApi->all_models_v1_engines_all_models_get: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
DefaultApi all_models_v1_engines_all_models_get GET /v1/engines/all-models All Models
DefaultApi all_styles_v1_engines_styles_get GET /v1/engines/styles All Styles
DefaultApi describe_image_v1_tools_describe_image_post POST /v1/tools/describe-image Describe Image
DefaultApi get_history_v1_generation_job_history_get GET /v1/generation/job-history Get History
DefaultApi home_get GET / Home
DefaultApi img_inpaint_or_outpaint_v1_generation_image_inpaint_outpaint_post POST /v1/generation/image-inpaint-outpaint Img Inpaint Or Outpaint
DefaultApi img_inpaint_or_outpaint_v2_v2_generation_image_inpaint_outpaint_post POST /v2/generation/image-inpaint-outpaint Img Inpaint Or Outpaint V2
DefaultApi img_prompt_v1_generation_image_prompt_post POST /v1/generation/image-prompt Img Prompt
DefaultApi img_prompt_v2_generation_image_prompt_post POST /v2/generation/image-prompt Img Prompt
DefaultApi img_upscale_or_vary_v1_generation_image_upscale_vary_post POST /v1/generation/image-upscale-vary Img Upscale Or Vary
DefaultApi img_upscale_or_vary_v2_v2_generation_image_upscale_vary_post POST /v2/generation/image-upscale-vary Img Upscale Or Vary V2
DefaultApi job_queue_v1_generation_job_queue_get GET /v1/generation/job-queue Job Queue
DefaultApi ping_ping_get GET /ping Ping
DefaultApi query_job_v1_generation_query_job_get GET /v1/generation/query-job Query Job
DefaultApi refresh_models_v1_engines_refresh_models_post POST /v1/engines/refresh-models Refresh Models
DefaultApi stop_v1_generation_stop_post POST /v1/generation/stop Stop
DefaultApi text2img_generation_v1_generation_text_to_image_post POST /v1/generation/text-to-image Text2Img Generation
DefaultApi text_to_img_with_ip_v2_generation_text_to_image_with_ip_post POST /v2/generation/text-to-image-with-ip Text To Img With Ip

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Author