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-ts-sdk

LeapML Typescript SDK
https://github.com/speakeasy-sdks/leapml-ts-sdk

image-generation sdk ts typescript

Last synced: 2 days ago
JSON representation

LeapML Typescript SDK

Awesome Lists containing this project

README

        

# LeapML Typescript SDK

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

## SDK Installation

### NPM

```bash
npm add @leapml/sdk
```

### Yarn

```bash
yarn add @leapml/sdk
```

## Authentication

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

## SDK Example Usage

```typescript
import { LeapMLAPI, withSecurity} from "@leapml/sdk";
import { ModelsControllerCreateRequest, ModelsControllerCreateResponse } from "@leapml/sdk/src/sdk/models/operations";
import { AxiosError } from "axios";

const sdk = new LeapMLAPI();

const req: ModelsControllerCreateRequest = {
security: {
bearer: {
authorization: "Bearer YOUR_BEARER_TOKEN_HERE",
},
},
request: {
subjectIdentifier: "unde",
subjectKeyword: "deserunt",
title: "porro",
},
};

sdk.fineTuning.modelsControllerCreate(req).then((res: ModelsControllerCreateResponse | AxiosError) => {
// handle response
});
```

## SDK Available Operations

### fineTuning

* `modelsControllerCreate` - Create Model
* `modelsControllerFindAll` - List All Models
* `modelsControllerFindOne` - Retrieve a Single Model
* `modelsControllerQueue` - Queue Training Job
* `samplesControllerCreate` - Upload Image Samples
* `samplesControllerFindAll` - List Image Samples
* `samplesControllerFindOne` - Get Image Sample
* `samplesControllerRemove` - Archive Image Sample
* `versionsControllerFindAll` - List All Model Versions
* `versionsControllerFindOne` - Get Model Version

### generatingImages

* `inferencesControllerCreate` - Generate Image
* `inferencesControllerFindAll` - List Inference Jobs
* `inferencesControllerFindOne` - Get Single Inference Job
* `inferencesControllerRemove` - Delete Inference

### imageEditing

* `editControllerCreate` - Edit a photo
* `editControllerFindOne` - Get an edit

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