New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@space-runners/ablo-ts-sdk

Package Overview
Dependencies
Maintainers
0
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@space-runners/ablo-ts-sdk

A TypeScript SDK for Ablo Services

  • 1.0.1
  • npm
  • Socket score

Version published
Weekly downloads
61
increased by24.49%
Maintainers
0
Weekly downloads
 
Created
Source

Ablo Typescript SDK

This is the official Ablo Typescript SDK.

Installation

npm install ablo-ts-sdk

Usage

To use the Ablo Typescript SDK, you need to initialize it with your API key. Here's a basic example of how to use the SDK:

import { Ablo } from 'ablo-ts-sdk'

const ablo = new Ablo('your-api-key')

// Example usage of the SDK
// GET /styles
const styles = await ablo.styles.getAll()
console.log('Styles:', styles)
// Background Removal
const backgroundRemovalResult = await ablo.backgroundRemoval.byUrl(
  imageUrl: 'https://example.com/image.jpg',
)
console.log('Background removed image:', backgroundRemovalResult.image)

// FontMaker
const fontMakerResult = await ablo.fontMaker.run({
  text: 'Hello World',
  styleId: 'some-fontmaker-style-id',
})
console.log('FontMaker generated images:', fontMakerResult.images)

// Image Maker
const imageMakerResult = await ablo.imageMaker.run({
  freeText: 'A beautiful sunset over the ocean',
  styleId: 'some-imagemaker-style-id',
})
console.log('Image Maker generated images:', imageMakerResult.images)

// Photo Transformer
const photoTransformerResult = await ablo.photoTransformer.fromUrl({
  imageUrl: 'https://example.com/image.jpg',
  styleId: 'some-phototransformer-style-id',
})
console.log('Photo Transformer result:', photoTransformerResult.images)

Keywords

FAQs

Package last updated on 08 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc