Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/speakeasy-sdks/leapml-python-sdk
- Owner: speakeasy-sdks
- Created: 2023-02-08T19:16:09.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-02T21:12:38.000Z (7 months ago)
- Last Synced: 2024-04-28T05:14:46.066Z (6 months ago)
- Topics: image-generation, ml, python, sdk
- Language: Python
- Homepage: https://docs.leapml.dev/reference
- Size: 294 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LeapML Python SDK
## 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, shareds = 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)