abliteration (Elixir)

Auto-generated Elixir client for the abliteration.org catalog API. Covers every route on /api/v1 with typed models.

Requires Elixir 1.12+. Uses Tesla as the HTTP layer.

Install

Add to mix.exs:

def deps do
[
{:abliteration, "~> 0.1"}
]
end

Then:

mix deps.get

Get a key

Generate a Bearer token at https://abliteration.org/shop/account#api-keys.

Quick start

key = System.get_env("ABLITERATION_API_KEY")
config = Abliteration.Connection.new(bearer: key)
{:ok, envelope} = Abliteration.Api.Models.list_models(
config,
method: "M4",
limit: 5
)
Enum.each(envelope.data, fn m ->
IO.puts("#{m.id} - #{m.downloads}")
end)
IO.puts("spent: #{envelope.cost}, wallet: #{envelope.credits_remaining}")

Full API docs: https://abliteration.org/api

Available APIs

Alternatives

License

MIT.


This client is auto-generated from the OpenAPI spec at /api/v1/openapi.json using openapi-generator.