File size: 958 Bytes
479bab3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
title: Image2
emoji: 🖼️
colorFrom: blue
colorTo: purple
sdk: docker
app_port: 7860
pinned: false
---

# Image2

Multimodal image generation studio with an OpenAI-compatible API and a built-in admin dashboard.

## Features

- Image generation and editing
- Account management and scheduling
- SQLite persistence on mounted storage
- Web admin panel

## Environment

| Variable | Required | Description |
| --- | --- | --- |
| `CHATGPT2API_AUTH_KEY` | Yes | Admin panel and API auth key |
| `DATA_DIR` | Recommended | Persistent data root, e.g. `/data` |
| `CONFIG_FILE` | Recommended | Persistent config path, e.g. `/data/config.json` |
| `STORAGE_BACKEND` | Optional | `sqlite` recommended for Spaces |
| `DATABASE_URL` | Optional | e.g. `sqlite:////data/accounts.db` |
| `CHATGPT2API_BASE_URL` | Optional | Public base URL for generated asset links |
| `PORT` | Optional | Defaults to `7860` |

## Health Check

```text
GET /health?format=json
```