LiteLLM

Route to Aerless AI through LiteLLM's OpenAI-compatible provider.

Follows the LiteLLM docs.

  1. Get a key

    Create one in the dashboard and top up. The quick start shows how.

  2. Set the key

    bash
    export AERLESS_API_KEY="AERLESS_..."
  3. Copy the file

    config.yaml
    model_list:
      - model_name: deepseek-v4.1-flash-abliterated
        litellm_params:
          model: openai/deepseek-v4.1-flash-abliterated
          api_base: https://api.aerless.si/v1
          api_key: os.environ/AERLESS_API_KEY
      - model_name: deepseek-v4.1-flash-abliterated-fast
        litellm_params:
          model: openai/deepseek-v4.1-flash-abliterated-fast
          api_base: https://api.aerless.si/v1
          api_key: os.environ/AERLESS_API_KEY
      - model_name: deepseek-v4.1-flash-fast
        litellm_params:
          model: openai/deepseek-v4.1-flash-fast
          api_base: https://api.aerless.si/v1
          api_key: os.environ/AERLESS_API_KEY
      - model_name: glm-5.3-abliterated
        litellm_params:
          model: openai/glm-5.3-abliterated
          api_base: https://api.aerless.si/v1
          api_key: os.environ/AERLESS_API_KEY
      - model_name: glm-5.3-flash-abliterated
        litellm_params:
          model: openai/glm-5.3-flash-abliterated
          api_base: https://api.aerless.si/v1
          api_key: os.environ/AERLESS_API_KEY
      - model_name: kimi-k3.1-pro-abliterated
        litellm_params:
          model: openai/kimi-k3.1-pro-abliterated
          api_base: https://api.aerless.si/v1
          api_key: os.environ/AERLESS_API_KEY
  4. Check it works

    Start the proxy and send it a request for one of the models. A reply means you are connected. Or from a shell, with your key in AERLESS_API_KEY:

    request
    curl https://api.aerless.si/v1/chat/completions \
      -H "Authorization: Bearer $AERLESS_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "model": "deepseek-v4.1-flash-abliterated",
        "messages": [{"role": "user", "content": "Write a two-line poem about the sea."}]
      }'
    example reply
    Grey tides fold the evening light,
    and carry every shore toward night.
    Not working?
    401 invalid_api_key
    Check the key and the header format (Authorization: Bearer <key>). Create a new key in the dashboard if needed.
    402 insufficient_balance
    Top up, or lower max_tokens so the hold is smaller.
    404 not_found
    Check the base URL ends in /v1 and the path is one of the documented endpoints.
    400 invalid_request
    Fix the request. The message says what is wrong and param names the field. Do not retry unchanged.