Skip to main content
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

NameValueRefDownload
chillout_mix3a17d0deffa4592fd91c711a798031a258ab44041809ade8b4591c0225ea9401link to civitaidownload
clarity627a6f5c8bf7669d4a224ac041d527debc65d2d435b16e54ead8ee2c901d1634link to civitaidownload
anything-v4.5-pruned6e430eb51421ce5bf18f04e2dbe90b2cad437311948be4ef8c33658a73c86b2alink to huggingfacedownload

LoRas

NameValueRefDownload
koreanDollLikeness_v1062efe75048d55a096a238c6e8c4e12d61b36bf59e388a90589335f750923954clink to civitaidownload
stLouisLuxuriousWheels_v1f1efd7b748634120b70343bc3c3b425c06c51548431a1264a2fcb5368352349flink to civitaidownload
taiwanDollLikeness_v105bbaabc04553d5821a3a45e4de5a02b2e66ecb00da677dd8ae862efd8ba59050link to civitaidownload
kobeni_v103e5d8fe726b4c0f1e7f0905f32ea3d1c9ce89a54028209e8179d64d323048daclink to civitaidownload
thickerLinesAnimeStyle_loraVersion759d6fdf539f44f6991efd27ef1767c7779ac8884defc71dd909e5808b5ea74blink to civitaidownload

Samplers

  • DPM++ SDE Karras
  • Euler a
  • Euler
  • DPM++ SDE
  • LMS
  • DDIM

Authentication

  • Bearer DAN_API_KEY.
  • Public anonymous DAN_API_KEY is:
sk-000000000000000000000000000000000000000000000000
Security Scheme Type:http
HTTP Authorization Scheme:bearer