Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/speakeasy-sdks/leapml-python-sdk

Python SDK for LeapML API
https://github.com/speakeasy-sdks/leapml-python-sdk

image-generation ml python sdk

Last synced: 2 days ago
JSON representation

Python SDK for LeapML API

Awesome Lists containing this project

README

        

# LeapML Python SDK


Generate images, edit them, fine tune models, and more with an easy-to-use API.







## SDK Installation

```bash
pip install leapml
```

## Authentication

Signup for [access](https://www.leapml.dev/signup) to LeapML to use the API.

## SDK Example Usage

```python
import leapmlapi
from leapmlapi.models import operations, shared

s = leapmlapi.LeapMLAPI()

req = operations.ModelsControllerRemoveRequest(
security=operations.ModelsControllerRemoveSecurity(
bearer=shared.SchemeBearer(
authorization="Bearer YOUR_BEARER_TOKEN_HERE",
),
),
path_params=operations.ModelsControllerRemovePathParams(
model_id="unde",
),
)

res = s.fine_tuning.models_controller_remove(req)

if res.status_code == 200:
# handle response
```

## SDK Available Operations

### fine_tuning

* `models_controller_remove` - Delete a Model
* `samples_controller_create` - Upload Image Samples
* `samples_controller_create_url` - Upload Image Samples Via Url
* `samples_controller_find_all` - List Image Samples
* `samples_controller_find_one` - Get Image Sample
* `samples_controller_remove` - Archive Image Sample
* `versions_controller_find_all` - List All Model Versions
* `versions_controller_find_one` - Get Model Version
* `create_model` - Create Model
* `list_all_models` - List All Models
* `queue_training_job` - Queue Training Job
* `retrieve_single_model` - Retrieve a Single Model

### generating_images

* `inferences_controller_create` - Generate Image
* `inferences_controller_find_all` - List Inference Jobs
* `inferences_controller_find_one` - Get Single Inference Job
* `inferences_controller_remove` - Delete Inference

### image_editing

* `edit_controller_create` - Edit an image
* `edit_controller_create_with_url` - Edit an image from URL
* `edit_controller_find_one` - Get an edit

### SDK Generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)