Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/speakeasy-sdks/leapml-ts-sdk
- Owner: speakeasy-sdks
- Created: 2023-02-08T19:21:54.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-02T21:12:39.000Z (7 months ago)
- Last Synced: 2024-04-28T05:14:46.060Z (6 months ago)
- Topics: image-generation, sdk, ts, typescript
- Language: TypeScript
- Homepage: https://docs.leapml.dev/reference/
- Size: 139 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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)