Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/edoardottt/dalle

Simple Golang Client to interact with Dall-E API
https://github.com/edoardottt/dalle

api-client dall-e golang openapi

Last synced: about 1 month ago
JSON representation

Simple Golang Client to interact with Dall-E API

Awesome Lists containing this project

README

        

# dalle

Simple Golang Client to interact with Dall-E API. See the [API documentation here](https://beta.openai.com/docs/api-reference).


workflows


goreportcard

Usage 🚀
-------

```Go
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](https://github.com/edoardottt/dalle/issues) / [pull request](https://github.com/edoardottt/dalle/pulls).

Before opening a pull request, download [golangci-lint](https://golangci-lint.run/usage/install/) and run

```bash
golangci-lint run
```

If there aren't errors, go ahead :)

Inspired by [liamg/hackerone](https://github.com/liamg/hackerone).

License 📝
-------

This repository is under [MIT License](https://github.com/edoardottt/dalle/blob/main/LICENSE).
[edoardoottavianelli.it](https://www.edoardoottavianelli.it) to contact me.