Skip to content

Basic API wrapper for fusionbrain.ai image generator for Scriptable.app.

License

Notifications You must be signed in to change notification settings

rvelasq/scriptable-fusionbrain-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FusionBrain.AI API Wrapper

An API wrapper for FusionBrain.AI's image generator written for the Scriptable.app.

You can generate your API keys on https://fusionbrain.ai/en/keys/.

Example usage:

const prompt = 'a view of a person writing Javascript code'

const { FusionBrain } = importModule('fusionbrain-ai-api')
const fb = new FusionBrain({
    key: 'your-api-key',
    secret: 'your-api-secret'
})

const models = await fb.getModels()
const model = models[0].id // only 1 model as of this writing

const images = await fb.generateImage({ prompt, model })
console.log(images)

//output ["/9j/4AAQSkZJRgABAQAAAQABAAD..."]

const actualImage = Image.fromData(Data.fromBase64String(images[0]))
await QuickLook.present(actualImage)

Notice of Non-Affiliation and Disclaimer

I am not affiliated, associated, authorized, endorsed by, or in any way officially connected to FusionBrain.ai or the AIRI Institute.

The names Fusion Brain,FusionBrain.AI as well as related names, marks, emblems and images are registered trademarks of their respective owners.

About

Basic API wrapper for fusionbrain.ai image generator for Scriptable.app.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published