Skip to content

Commit 7fb57f8

Browse files
committed
Merge remote-tracking branch 'origin/main'
# Conflicts: # MyApp/_pages/ai-server/index.md
2 parents 517c47e + ce81a43 commit 7fb57f8

31 files changed

+126
-23
lines changed

MyApp/_pages/ai-server/chat.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@ title: AI Server API Usage
44

55
AI Server provides a unified API to process requests for AI services to access LLMs, Image Generation, Transcription, and more. The API is designed to be simple to use and easy to integrate into your applications providing many supported languages and frameworks.
66

7+
## Chat UI
8+
9+
AI Server's Chat UI lets upi send Open AI Chat requests with custom system prompts to any of its active LLMs:
10+
11+
<div class="not-prose">
12+
<h3 class="text-4xl text-center text-indigo-800 pb-3"><span class="text-gray-300">https://localhost:5006</span>/Chat
13+
</h3>
14+
</div>
15+
16+
![](/img/pages/ai-server/uis/Chat.webp)
17+
718
## Making a Chat Request
819

920
To make a chat request to AI Server, you can use the `/api/OpenAiChatCompletion` endpoint. This endpoint requires a `OpenAiChatCompletion` request DTO that contains a property matching the `OpenAI` API.

MyApp/_pages/ai-server/image-to-image.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22
title: Image to Image
33
---
44

5+
## Image to Image UI
6+
7+
AI Server's Image to Image UI lets you create custom Images from a blueprint image from its active Comfy UI Agents:
8+
9+
<div class="not-prose">
10+
<h3 class="text-4xl text-center text-indigo-800 pb-3">
11+
<span class="text-gray-300">https://localhost:5006</span>/ImageToImage
12+
</h3>
13+
</div>
14+
15+
![](/img/pages/ai-server/uis/ImageToImage.webp)
16+
517
## Using Image to Image Endpoints
618

719
::include ai-server/endpoint-usage.md::

MyApp/_pages/ai-server/image-to-text.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22
title: Image to Text
33
---
44

5+
## Image to Text UI
6+
7+
AI Server's Image to Text UI lets you request image classifications from its active Comfy UI Agents:
8+
9+
<div class="not-prose">
10+
<h3 class="text-4xl text-center text-indigo-800 pb-3">
11+
<span class="text-gray-300">https://localhost:5006</span>/ImageToText
12+
</h3>
13+
</div>
14+
15+
![](/img/pages/ai-server/uis/ImageToText.webp)
16+
517
## Using Image to Text Endpoints
618

719
::include ai-server/endpoint-usage.md::

MyApp/_pages/ai-server/image-upscale.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22
title: Image Upscale
33
---
44

5+
## Image Upscale UI
6+
7+
AI Server's Image Upscale UI lets you use AI to 2x upscale and image from its active Comfy UI Agents:
8+
9+
<div class="not-prose">
10+
<h3 class="text-4xl text-center text-indigo-800 pb-3">
11+
<span class="text-gray-300">https://localhost:5006</span>/ImageUpscale
12+
</h3>
13+
</div>
14+
15+
![](/img/pages/ai-server/uis/ImageUpscale.webp)
16+
517
## Using Image Upscale Endpoints
618

719
::include ai-server/endpoint-usage.md::

MyApp/_pages/ai-server/index.md

Lines changed: 33 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,27 @@ title: Quick Start
33
description: Get AI Server up and running quickly
44
---
55

6-
To get started with AI Server, we need can use the following steps:
6+
Install AI Server by running [install.sh](https://github.com/ServiceStack/ai-server/blob/main/install.sh):
77

8-
- **Clone the Repository**: Clone the AI Server repository from GitHub.
9-
- **Run the Installer**: Run the `install.sh` to set up the AI Server and ComfyUI Agent.
8+
### 1. Clone the Repository
109

11-
### Supported OS
10+
Clone the AI Server repository from GitHub:
1211

13-
The AI Server installer is supported on Linux, macOS, and Windows with WSL2, and all require Docker and Docker Compose to be installed at a minimum.
12+
```sh
13+
git clone https://github.com/ServiceStack/ai-server
14+
```
1415

15-
### Quick Start Commands
16+
### 2. Run the Installer
1617

1718
```sh
18-
git clone https://github.com/ServiceStack/ai-server
1919
cd ai-server
2020
cat install.sh | bash
2121
```
22-
### Running the Installer
2322

2423
The installer will detect common environment variables for the supported AI Providers like OpenAI, Google, Anthropic, and others, and prompt ask you if you want to add them to your AI Server configuration.
2524

2625
<div data-asciicinema="/pages/ai-server/ai-server-install.cast"
27-
data-options="{loop:true,poster:'npt:00:08',theme:'dracula',rows:13}"></div>
26+
data-options="{loop:true,poster:'npt:00:21',theme:'dracula',rows:13}"></div>
2827

2928
Alternatively, you can specify which providers you want and provide the APIs before continuing with the installation.
3029

@@ -40,13 +39,29 @@ You can reset the process by deleting your local `App_Data` directory and rerunn
4039

4140
You will then be able to make requests to the AI Server API endpoints, and access the Admin Portal user interface like the [Chat interface](http://localhost:5005/admin/Chat) to use your AI Provider models.
4241

43-
### Optional ComfyUI Agent
42+
### Optional - Install ComfyUI Agent
43+
44+
If your server also has a GPU you can ask the installer to also install the [ComfyUI Agent](/ai-server/comfy-extension) locally:
4445

45-
The installer will also ask if you want to install the ComfyUI Agent locally if you run AI server from the installer.
46+
<div data-asciicinema="https://docs.servicestack.net/pages/ai-server/agent-comfy-install.cast"
47+
data-options="{loop:true,poster:'npt:00:09',theme:'dracula',rows:16}"></div>
4648

47-
If you choose to run AI Server, it will prompt you to install the ComfyUI Agent as well, and assume you want to run it locally.
49+
The ComfyUI Agent is a separate Docker agent for running [ComfyUI](https://www.comfy.org),
50+
[Whisper](https://github.com/openai/whisper) and [FFmpeg](https://www.ffmpeg.org) on servers with GPUs to handle
51+
AI Server's [Image](/ai-server/transform/image) and
52+
[Video transformations](/ai-server/transform/video) and Media Requests, including:
4853

49-
If you want to run the ComfyUI Agent separately, you can follow these steps:
54+
- [Text to Image](/ai-server/text-to-image)
55+
- [Image to Text](/ai-server/image-to-text)
56+
- [Image to Image](/ai-server/image-to-image)
57+
- [Image with Mask](/ai-server/image-with-mask)
58+
- [Image Upscale](/ai-server/image-upscale)
59+
- [Speech to Text](/ai-server/speech-to-text)
60+
- [Text to Speech](/ai-server/text-to-speech)
61+
62+
#### Comfy UI Agent Installer
63+
64+
To install the ComfyUI Agent on a separate server (with a GPU), you can clone and run the ComfyUI Agent installer from there instead:
5065

5166
```sh
5267
git clone https://github.com/ServiceStack/agent-comfy.git
@@ -62,6 +77,11 @@ These should be the accessible URLs for your AI Server and ComfyUI Agent. When r
6277
If you want to reset the ComfyUI Agent settings, remember to remove the provider from the AI Server Admin Portal.
6378
:::
6479

80+
### Supported OS
81+
82+
The AI Server installer is supported on Linux, macOS, and Windows with WSL2, and all require Docker and Docker Compose to be installed at a minimum.
83+
84+
6585
### Prerequisites AI Server - Windows with WSL2
6686

6787
Windows with WSL2 requires the following prerequisites:

MyApp/_pages/ai-server/speech-to-text.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@ title: Speech to Text
44

55
AI Server can transcribe audio files to text using the Speech-to-Text provider. This is powered by the Whisper model and is hosted on your own ComfyUI Agent.
66

7+
## Speech to Text UI
8+
9+
AI Server's Speech to Text UI lets you transcribe audio files from its active Comfy UI Agents:
10+
11+
<div class="not-prose">
12+
<h3 class="text-4xl text-center text-indigo-800 pb-3">
13+
<span class="text-gray-300">https://localhost:5006</span>/SpeechToText
14+
</h3>
15+
</div>
16+
17+
![](/img/pages/ai-server/uis/SpeechToText.webp)
18+
719
## Using Speech to Text Endpoints
820

921
::include ai-server/endpoint-usage.md::

MyApp/_pages/ai-server/text-to-image.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22
title: Text to Image
33
---
44

5+
## Text to Image UI
6+
7+
AI Server's Text to Image UI lets send Text to Image requests to any of its active Comfy UI Agents Models, Diffusion
8+
or DALL·E 3 API Providers:
9+
10+
<div class="not-prose">
11+
<h3 class="text-4xl text-center text-indigo-800 pb-3">
12+
<span class="text-gray-300">https://localhost:5006</span>/TextToImage
13+
</h3>
14+
</div>
15+
16+
![](/img/pages/ai-server/uis/TextToImage.webp)
17+
518
## Using Text to Image Endpoints
619

720
::include ai-server/endpoint-usage.md::

MyApp/_pages/ai-server/text-to-speech.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,19 @@
22
title: Text to Speech
33
---
44

5-
## Using Text to Speech Endpoints
5+
## Text to Speech UI
6+
7+
AI Server's Text to Speech UI lets you create audio files from its active Comfy UI Agents or Open AI Text to Speech models:
8+
9+
<div class="not-prose">
10+
<h3 class="text-4xl text-center text-indigo-800 pb-3">
11+
<span class="text-gray-300">https://localhost:5006</span>/TextToSpeech
12+
</h3>
13+
</div>
614

15+
![](/img/pages/ai-server/uis/TextToSpeech.webp)
16+
17+
## Using Text to Speech Endpoints
718

819
::include ai-server/endpoint-usage.md::
920

MyApp/_pages/ai-server/transform/image.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ description: Processing images with AI Server
55

66
AI Server incorporates various image processing capabilities. It wraps some common operations into easier-to-use endpoints, such as:
77

8-
- **Crop Image**: Crop an image to a specific size.
9-
- **Convert Image**: Convert an image to a different format.
10-
- **Scale Image**: Scale an image to a different resolution.
11-
- **Watermark Image**: Add a watermark to an image.
8+
- **Crop Image** - Crop an image to a specific size
9+
- **Convert Image** - Convert an image to a different format
10+
- **Scale Image** - Scale an image to a different resolution
11+
- **Watermark Image** - Add a watermark to an image
1212

1313
:::info
1414
These operations are processed on the AI Server itself, rather than an external API or agent.

MyApp/_pages/ai-server/transform/video.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ description: Processing videos with AI Server
55

66
Also incorporated into the ComfyUI Agent is FFmpeg, which can be used to process videos. AI Server wraps some common operations into easier-to-use endpoints, such as:
77

8-
- **Crop Video**: Crop a video to a specific size.
9-
- **Convert Video**: Convert a video to a different format.
10-
- **Scale Video**: Scale a video to a different resolution.
11-
- **Watermark Video**: Add a watermark to a video.
12-
- **Trim Video**: Trim a video to a specific length.
8+
- **Crop Video** - Crop a video to a specific size
9+
- **Convert Video** - Convert a video to a different format
10+
- **Scale Video** - Scale a video to a different resolution
11+
- **Watermark Video** - Add a watermark to a video
12+
- **Trim Video** - Trim a video to a specific length
1313

1414
## Using Video Endpoints
1515

0 commit comments

Comments
 (0)