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: 5 months 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 (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-10T09:17:05.000Z (over 1 year ago)
- Last Synced: 2025-04-08T06:21:22.882Z (12 months ago)
- Topics: api-client, dall-e, golang, openapi
- Language: Go
- Homepage: https://edoardottt.com/
- Size: 38.1 KB
- Stars: 4
- Watchers: 2
- 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 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).
[edoardottt.com](https://edoardottt.com) to contact me.