Skip to content

edoardottt/dalle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dalle

Simple Golang Client to interact with Dall-E API. See the API documentation here.

workflows goreportcard

Usage 🚀

package main

import (
 "context"
 "fmt"

 "github.com/edoardottt/dalle"
)

func main() {
 d := dalle.New("API-KEY")

 models, err := d.Services.ListModels(context.TODO())

 if err != nil {
  fmt.Println(err)
 }

 for _, model := range models.Data {
  fmt.Println(model.ID)
 }
}

Contributing 🛠

Just open an issue / pull request.

Before opening a pull request, download golangci-lint and run

golangci-lint run

If there aren't errors, go ahead :)

Inspired by liamg/hackerone.

License 📝

This repository is under MIT License.
edoardoottavianelli.it to contact me.