Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Nodoka4318 authored Aug 20, 2022
1 parent b20754f commit 7af094d
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,32 @@
Craiyon.NET
# Craiyon.NET
### Overview
An unofficial API wrapper for [Craiyon](https://craiyon.com) (formerly DAL-E-MINI) to generate awesome images from text tokens.\
Simplest and easiest to use.

Inspired by [craiyon.py](https://github.com/FireHead90544/craiyon.py).

## Installation
TODO

## Usage
### Generate and save images
```csharp
var craiyon = new Craiyon.CraiyonClient(); // Create new instance
var images = craiyon.GenerateImage("what you want to see"); // Generate image
images.SaveImages("directory"); // Save images
```

### Generate images asynchronously
```csharp
var craiyon = new Craiyon.CraiyonClient(); // Create new instance
var images = craiyon.GenerateImageAsync("what you want to see"); // Generate image
```

### Generate images and convert into System.Drawing.Bitmap
```csharp
var craiyon = new Craiyon.CraiyonClient(); // Create new instance
var images = craiyon.GenerateImageAsync("what you want to see"); // Generate image
Bitmap[] bmps = images.ToBitmaps(); // Get bitmaps
```

0 comments on commit 7af094d

Please sign in to comment.