Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/edoardottt/dalle
- Owner: edoardottt
- License: mit
- Created: 2022-11-04T14:36:30.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-29T09:59:03.000Z (12 months ago)
- Last Synced: 2024-06-21T03:18:49.876Z (5 months ago)
- Topics: api-client, dall-e, golang, openapi
- Language: Go
- Homepage: https://edoardoottavianelli.it
- Size: 35.2 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
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).
Usage 🚀
-------```Go
package mainimport (
"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.