{"id":18384438,"url":"https://github.com/speakeasy-sdks/leonardo-ts-sdk","last_synced_at":"2025-04-11T23:47:47.502Z","repository":{"id":65855177,"uuid":"601410805","full_name":"speakeasy-sdks/leonardo-ts-sdk","owner":"speakeasy-sdks","description":"Typescript SDK for the Leonardo AI","archived":false,"fork":false,"pushed_at":"2024-04-02T21:12:42.000Z","size":119,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-11T23:47:43.831Z","etag":null,"topics":["ai","api","image-processing","sdk","ts"],"latest_commit_sha":null,"homepage":"https://docs.leonardo.ai/reference/get_me","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/speakeasy-sdks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-14T02:10:01.000Z","updated_at":"2023-02-14T06:45:02.000Z","dependencies_parsed_at":"2024-04-02T21:47:06.249Z","dependency_job_id":"7f2236a3-58e4-4f4d-bce4-454ee167baad","html_url":"https://github.com/speakeasy-sdks/leonardo-ts-sdk","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/speakeasy-sdks%2Fleonardo-ts-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/speakeasy-sdks%2Fleonardo-ts-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/speakeasy-sdks%2Fleonardo-ts-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/speakeasy-sdks%2Fleonardo-ts-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/speakeasy-sdks","download_url":"https://codeload.github.com/speakeasy-sdks/leonardo-ts-sdk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248497890,"owners_count":21113983,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","api","image-processing","sdk","ts"],"created_at":"2024-11-06T01:14:33.549Z","updated_at":"2025-04-11T23:47:47.478Z","avatar_url":"https://github.com/speakeasy-sdks.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Leonardo TS SDK\n\n\u003cdiv align=\"center\"\u003e\n   \u003cp\u003eThe API for creating stunning game assets with AI.\u003c/p\u003e\n   \u003ca href=\"https://github.com/speakeasy-sdks/leonardo-ts-sdk/actions\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/speakeasy-sdks/leonardo-ts-sdk/speakeasy_sdk_generation.yml?style=for-the-badge\" /\u003e\u003c/a\u003e\n   \u003ca href=\"https://docs.leonardo.ai/\"\u003e\u003cimg src=\"https://img.shields.io/static/v1?label=Docs\u0026message=API Ref\u0026color=000\u0026style=for-the-badge\" /\u003e\u003c/a\u003e\n   \u003ca href=\"https://discord.gg/leonardo-ai\"\u003e\u003cimg src=\"https://img.shields.io/static/v1?label=Discord\u0026message=2564 online\u0026color=7289da\u0026style=for-the-badge\" /\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n\u003c!-- Start SDK Installation --\u003e\n## SDK Installation\n\n### NPM\n\n```bash\nnpm add @leonardo/sdk\n```\n\n### Yarn\n\n```bash\nyarn add @leonardo/sdk\n```\n\u003c!-- End SDK Installation --\u003e\n\n## Authentication\n\nTo get access to the API and fetch an API key please sign up for [access](https://leonardo.ai/). \n\n## SDK Example Usage\n\u003c!-- Start SDK Example Usage --\u003e\n```typescript\nimport { Leonardo, withSecurity} from \"@leonardo/sdk\";\nimport { DeleteDatasetsIdRequest, DeleteDatasetsIdResponse } from \"@leonardo/sdk/src/sdk/models/operations\";\nimport { AxiosError } from \"axios\";\n\nconst sdk = new Leonardo(withSecurity(\n  security: {\n    bearerAuth: {\n      authorization: \"Bearer YOUR_BEARER_TOKEN_HERE\",\n    },\n  }\n));\n    \nconst req: DeleteDatasetsIdRequest = {\n  pathParams: {\n    id: \"unde\",\n  },\n};\n\nsdk.creatingDatasets.deleteDatasetsId(req).then((res: DeleteDatasetsIdResponse | AxiosError) =\u003e {\n   // handle response\n});\n```\n\u003c!-- End SDK Example Usage --\u003e\n\n\u003c!-- Start SDK Available Operations --\u003e\n## SDK Available Operations\n\n\n### creatingDatasets\n\n* `deleteDatasetsId` - Delete a Single Dataset by ID\n* `getDatasetsId` - Get a Single Dataset by ID\n* `postDatasets` - Create a Dataset\n* `postDatasetsDatasetIdUpload` - Upload dataset image\n* `postDatasetsDatasetIdUploadGen` - Upload a Single Generated Image to a Dataset\n\n### generatingImages\n\n* `deleteGenerationsId` - Delete a Single Generation\n* `getGenerationsUserUserId` - Get generations by user ID\n* `getGenerationsId` - Get a Single Generation\n* `postGenerations` - Create a Generation of Images\n\n### imageVariations\n\n* `getVariationsId` - Get variation by ID\n* `postVariationsUpscale` - Create upscale\n\n### initImages\n\n* `deleteInitImageId` - Delete init image\n* `getInitImageId` - Get single init image\n* `postInitImage` - Upload init image\n\n### trainingModels\n\n* `deleteModelsId` - Delete a Single Custom Model by ID\n* `getModelsId` - Get a Single Custom Model by ID\n* `postModels` - Train a Custom Model\n\n### userInformation\n\n* `getMe` - Get user information\n\u003c!-- End SDK Available Operations --\u003e\n\n### SDK Generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspeakeasy-sdks%2Fleonardo-ts-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspeakeasy-sdks%2Fleonardo-ts-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspeakeasy-sdks%2Fleonardo-ts-sdk/lists"}