Version: 1.0.0
DAN API
Conventions
The base URL to send all API requests is
https://api.opendan.ai
HTTPS is required for all API requests.
The DAN API follows RESTful conventions when possible, with most operations performed via GET, POST, PATCH, and DELETE requests on page and database resources. Request and response bodies are encoded as JSON.
At present, only HTTP requests are supported to complete image generation tasks.
The APIs has similar respones.
On success, dan server will response http status code
200 and an object in JSON as below:
{
"code": 200,
"data": `The returned object`,
"message": "success"
}
On failure, dan server will response a non-ok http status code
(i.e. not 200, may be 401 for an example) and an object JSON as below:
{
"code": `Error code`,
"message": `A string describe the error`
}
Supported list values
Under rapid expansion, please stay tuned.
Models
Name | Value | Ref | Download |
---|---|---|---|
chillout_mix | 3a17d0deffa4592fd91c711a798031a258ab44041809ade8b4591c0225ea9401 | link to civitai | download |
clarity | 627a6f5c8bf7669d4a224ac041d527debc65d2d435b16e54ead8ee2c901d1634 | link to civitai | download |
anything-v4.5-pruned | 6e430eb51421ce5bf18f04e2dbe90b2cad437311948be4ef8c33658a73c86b2a | link to huggingface | download |
LoRas
Name | Value | Ref | Download |
---|---|---|---|
koreanDollLikeness_v10 | 62efe75048d55a096a238c6e8c4e12d61b36bf59e388a90589335f750923954c | link to civitai | download |
stLouisLuxuriousWheels_v1 | f1efd7b748634120b70343bc3c3b425c06c51548431a1264a2fcb5368352349f | link to civitai | download |
taiwanDollLikeness_v10 | 5bbaabc04553d5821a3a45e4de5a02b2e66ecb00da677dd8ae862efd8ba59050 | link to civitai | download |
kobeni_v10 | 3e5d8fe726b4c0f1e7f0905f32ea3d1c9ce89a54028209e8179d64d323048dac | link to civitai | download |
thickerLinesAnimeStyle_loraVersion | 759d6fdf539f44f6991efd27ef1767c7779ac8884defc71dd909e5808b5ea74b | link to civitai | download |
Samplers
- DPM++ SDE Karras
- Euler a
- Euler
- DPM++ SDE
- LMS
- DDIM
Authentication
- HTTP: Bearer Auth
- Bearer DAN_API_KEY.
- Public anonymous DAN_API_KEY is:
sk-000000000000000000000000000000000000000000000000
- Please refer to the Authentication section on how to obtain a private DAN_API_KEY.
Security Scheme Type: | http |
---|---|
HTTP Authorization Scheme: | bearer |