https://github.com/chaiyokung/azure-openai-dalle3-nodejs
Application utilizes Azure OpenAI's API to generate images based on a given prompt. The generated images are saved to the local filesystem.
https://github.com/chaiyokung/azure-openai-dalle3-nodejs
ai azure-openai dall-e-3 nodejs text-to-image
Last synced: 3 months ago
JSON representation
Application utilizes Azure OpenAI's API to generate images based on a given prompt. The generated images are saved to the local filesystem.
- Host: GitHub
- URL: https://github.com/chaiyokung/azure-openai-dalle3-nodejs
- Owner: ChaiyoKung
- Created: 2025-02-18T19:04:54.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-02-19T16:58:10.000Z (8 months ago)
- Last Synced: 2025-03-01T18:18:33.669Z (7 months ago)
- Topics: ai, azure-openai, dall-e-3, nodejs, text-to-image
- Language: TypeScript
- Homepage:
- Size: 901 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Azure OpenAI DALL-E 3 Node.js
This application utilizes Azure OpenAI's API to generate images based on a given prompt. The generated images are saved to the local filesystem.

## Preparation
Login to Azure and create a new resource for OpenAI. Ensure that you assign the "Cognitive Services OpenAI User" role to access the OpenAI API.
```bash
az login
```## Getting Started
Create a `.env` file and configure the environment variables:
```bash
cp .env.example .env
```Install dependencies:
```bash
bun install
```Run the application:
Modify the `prompt` and `size` variables in the code to adjust the style and resolution of the generated images.
```bash
bun start
```Run unit tests:
```bash
bun test
bun test:watch
```---
This project was created using `bun init` in bun v1.2.2. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.