Simple Golang Client to interact with Dall-E API. See the API documentation here.
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)
}
}
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.
This repository is under MIT License. edoardoottavianelli.it to contact me.