# Aerless AI documentation > Aerless AI is a prepaid, pay-as-you-go, OpenAI-compatible API for uncensored open-weight language models: DeepSeek V4.1 Flash (abliterated) (`deepseek-v4.1-flash-abliterated`), DeepSeek V4.1 Flash Fast (abliterated) (`deepseek-v4.1-flash-abliterated-fast`), GLM 5.3 (abliterated) (`glm-5.3-abliterated`), GLM 5.3 Flash (abliterated) (`glm-5.3-flash-abliterated`), Kimi K3.1 Pro (abliterated) (`kimi-k3.1-pro-abliterated`). Also served, not uncensored: DeepSeek V4.1 Flash Fast (`deepseek-v4.1-flash-fast`). - Base URL (OpenAI-compatible): `https://api.aerless.ai/v1` - Authentication: `Authorization: Bearer AERLESS_...`; keep the key in `AERLESS_API_KEY` - `deepseek-v4.1-flash-abliterated`: 1M context, up to 128K output tokens; per 1M tokens: input $0.24, cached input $0.038, output $0.90 - `deepseek-v4.1-flash-abliterated-fast`: 1,048,576 context, up to 128K output tokens; per 1M tokens: input $0.24, cached input $0.05, output $0.90 - `deepseek-v4.1-flash-fast` (censored): 1,048,576 context, up to 128K output tokens; per 1M tokens: input $0.02, cached input $0.004, output $0.16 - `glm-5.3-abliterated`: 1,048,576 context, up to 128K output tokens; per 1M tokens: input $2.00, cached input $0.30, output $4.00 - `glm-5.3-flash-abliterated`: 1,048,576 context, up to 128K output tokens; per 1M tokens: input $0.24, cached input $0.05, output $1.00 - `kimi-k3.1-pro-abliterated`: 1,048,576 context, up to 128K output tokens; per 1M tokens: input $3.00, cached input $0.30, output $6.00 - Billing: prepaid with USDT or USDC, minimum top-up $10, no free tier - Data: Prompts and responses: 30 days, encrypted at rest, then deleted. Metadata (account, key, IP, time, model, tokens): 90 days. - Content: Uncensored. One hard rule: nothing sexual involving minors. - Accounts and API keys: https://app.aerless.ai Source: https://aerless.ai/ # Refuse the refusal. your ideas, not guardrails. Open-weight models with refusals removed, on an OpenAI-compatible API. Prepaid in crypto, billed per token. Uncensored. One hard rule: nothing sexual involving minors. [Create an account](https://app.aerless.ai/signup) [Aerless CLI for coders](https://aerless.ai/cli/) 1. [DeepSeek V4.1 Flash](https://aerless.ai/models/deepseek-v4.1-flash-abliterated/) 2. [DeepSeek V4.1 Flash Fast](https://aerless.ai/models/deepseek-v4.1-flash-abliterated-fast/) 3. [DeepSeek V4.1 Flash FastCensored](https://aerless.ai/models/deepseek-v4.1-flash-fast/) 4. [GLM 5.3](https://aerless.ai/models/glm-5.3-abliterated/) 5. [GLM 5.3 Flash](https://aerless.ai/models/glm-5.3-flash-abliterated/) 6. [Kimi K3.1 Pro](https://aerless.ai/models/kimi-k3.1-pro-abliterated/) 7. [WAI Illustrious SDXL](https://aerless.ai/models/wai-illustrious-sdxl/) 8. [Qwen Image 3](https://aerless.ai/models/qwen-image-3-uncensored/) 9. [Seedream 5.0 Pro](https://aerless.ai/models/seedream-5.0-pro/) Marks belong to their makers (DeepSeek, Z.ai, Moonshot AI, Alibaba and ByteDance); we're not affiliated. - **Top speed**: 194tok/s - **Input per 1M**: $0.24 - **Output per 1M**: $0.90 Per 1M tokens, USD. ## 9 models on one endpoint, uncensored unless marked. - [DeepSeek V4.1 Flash (abliterated) DeepSeek weights, abliterated Uncensored **$0.24** in **$0.90** out per 1M](https://aerless.ai/models/deepseek-v4.1-flash-abliterated/) - [DeepSeek V4.1 Flash Fast (abliterated) DeepSeek weights, abliterated Uncensored Fast **$0.24** in **$0.90** out per 1M](https://aerless.ai/models/deepseek-v4.1-flash-abliterated-fast/) - [DeepSeek V4.1 Flash Fast by DeepSeek Censored Fast **$0.02** in **$0.16** out per 1M](https://aerless.ai/models/deepseek-v4.1-flash-fast/) - [GLM 5.3 (abliterated) Z.ai weights, abliterated Uncensored **$2.00** in **$4.00** out per 1M](https://aerless.ai/models/glm-5.3-abliterated/) - [GLM 5.3 Flash (abliterated) Z.ai weights, abliterated Uncensored **$0.24** in **$1.00** out per 1M](https://aerless.ai/models/glm-5.3-flash-abliterated/) - [Kimi K3.1 Pro (abliterated) Moonshot AI weights, abliterated Uncensored **$3.00** in **$6.00** out per 1M](https://aerless.ai/models/kimi-k3.1-pro-abliterated/) - [WAI Illustrious SDXL Community SDXL fine-tune Uncensored **$0.0102** per image](https://aerless.ai/models/wai-illustrious-sdxl/) - [Qwen Image 3 (uncensored) Alibaba Qwen weights, uncensored Uncensored **$0.08** per image](https://aerless.ai/models/qwen-image-3-uncensored/) - [Seedream 5.0 Pro by ByteDance Seed Uncensored **$0.09** per image](https://aerless.ai/models/seedream-5.0-pro/) [All models →](https://aerless.ai/models/) ## Prompts others can refuse, ours answer. Abliterated: refusals removed from the open weights. `"model": "deepseek-v4.1-flash-abliterated"` Tested 2026-11-27: Claude (Opus 5.5), ChatGPT (default model). Our models: illustration Marks belong to their makers (DeepSeek, Z.ai, Moonshot AI, Anthropic and OpenAI); we’re not affiliated. 100M in + 20M out a month - **Aerless AI, abliterated build**: $42.00 - **Venice AI, "Uncensored" build**: $59.40 - **Difference per month**: $17.40 $0.24 / $0.90 against $0.33 / $1.32 per 1M in / out. [docs.venice.ai/overview/pricing](https://docs.venice.ai/overview/pricing) · accessed 2026-11-26 ## Set up Aerless Code in a minute. No key needed: free daily tries on [DeepSeek V4.1 Flash Fast](https://aerless.ai/models/deepseek-v4.1-flash-fast/). ### macOS 1. Install `curl -fsSL https://aerless.ai/install | sh` 2. Open your project `cd your-project` 3. Start `aerless` ### Linux 1. Install `curl -fsSL https://aerless.ai/install | sh` 2. Open your project `cd your-project` 3. Start `aerless` ### Windows 1. Install `irm https://aerless.ai/install.ps1 | iex` 2. Open your project `cd your-project` 3. Start `aerless` ### iPhone / Android Use the web chat on your phone. [Open the web chat](https://app.aerless.ai/chat) [See what it adds](https://aerless.ai/code/) [Source on GitHub](https://github.com/aerless-ai/aerless-code) ## Top up $10 and send your first request. [Create an account](https://app.aerless.ai/signup) 18+ only. --- Source: https://aerless.ai/models/ # Models. 9 models on one OpenAI-compatible endpoint. Uncensored unless marked Censored. Five machined black metal blocks with different milled faces, one topped in red. All Chat Image | Model | Context | Input per 1M | Output per 1M | Speed | | --- | --- | --- | --- | --- | | [DeepSeek V4.1 Flash Fast](https://aerless.ai/models/deepseek-v4.1-flash-fast/) Censored Fast | 1M | $0.02 | $0.16 | 194 tok/s | | [DeepSeek V4.1 Flash (abliterated)](https://aerless.ai/models/deepseek-v4.1-flash-abliterated/) Uncensored | 1M | $0.24 | $0.90 | 89 tok/s | | [DeepSeek V4.1 Flash Fast (abliterated)](https://aerless.ai/models/deepseek-v4.1-flash-abliterated-fast/) Uncensored Fast | 1M | $0.24 | $0.90 | 87 tok/s | | [GLM 5.3 Flash (abliterated)](https://aerless.ai/models/glm-5.3-flash-abliterated/) Uncensored | 1M | $0.24 | $1.00 | 87 tok/s | | [GLM 5.3 (abliterated)](https://aerless.ai/models/glm-5.3-abliterated/) Uncensored | 1M | $2.00 | $4.00 | 83 tok/s | | [Kimi K3.1 Pro (abliterated)](https://aerless.ai/models/kimi-k3.1-pro-abliterated/) Uncensored | 1M | $3.00 | $6.00 | | | [WAI Illustrious SDXL](https://aerless.ai/models/wai-illustrious-sdxl/) Uncensored | | $0.0102 per image | | | | [Qwen Image 3 (uncensored)](https://aerless.ai/models/qwen-image-3-uncensored/) Uncensored | | $0.08 per image | | | | [Seedream 5.0 Pro](https://aerless.ai/models/seedream-5.0-pro/) Uncensored | | $0.09 per image | | | Coming: Kimi K3, Qwen Edit Uncensored. --- Source: https://aerless.ai/models/deepseek-v4.1-flash-abliterated/ # DeepSeek V4.1 Flash (abliterated) Open weights of DeepSeek V4.1 Flash with the refusal behaviour removed. `deepseek-v4.1-flash-abliterated` Uncensored [Create an account](https://app.aerless.ai/signup) - **Modalities**: Text, image to text - **Input / output per 1M**: $0.24 / $0.90 - **Context**: 1M tokens - **Max output**: 128K tokens **Sections** 1. [Overview](https://aerless.ai/models/deepseek-v4.1-flash-abliterated/#overview) 2. [Pricing](https://aerless.ai/models/deepseek-v4.1-flash-abliterated/#pricing) 3. [Performance](https://aerless.ai/models/deepseek-v4.1-flash-abliterated/#performance) 4. [API](https://aerless.ai/models/deepseek-v4.1-flash-abliterated/#api) ## Overview Uncensored. One hard rule: nothing sexual involving minors. - Tool calls - Reasoning: off, low, high, max - Streaming - Image input ## Pricing - **Input per 1M tokens**: - **Cached input per 1M tokens**: - **Output per 1M tokens**: ## Performance - **Time to first token**: ms - **Output speed**: tokens/s Medians of 100 requests, about 1,000 tokens in. **Every prompt size and the method** | Prompt | First token, ms | Tokens/s | End to end | Ok | Failed | | --- | --- | --- | --- | --- | --- | | Short, about 100 in | 1,097 / 2,701 | 151 / 68 | 111 | 100 | 0 | | Medium, about 1,000 in | 1,490 / 2,997 | 89 / 62 | 70 | 100 | 0 | | Long, about 10,000 in | 1,816 / 5,015 | 78 / 29 | 60 | 100 | 0 | Median, then p95 for first token and p5 for tokens/s. Method: Our server sends one streamed request at a time per model, with a fixed prompt, temperature 0, the model's default reasoning and 512 output tokens at most. Time to first token runs from sending to the first streamed token, reasoning included; output speed is output tokens after the first divided by the streaming time. Failed requests (an error, or under 256 tokens) are counted, not used. Region: Eastern Canada. Window: 1h, 2026-11-26 14:36 UTC to 2026-11-26 15:15 UTC. Published 2026-11-26. ## API `POST https://api.aerless.ai/v1/chat/completions` request curl ```bash curl https://api.aerless.ai/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."}] }' ``` Python ```python import os from openai import OpenAI client = OpenAI( base_url="https://api.aerless.ai/v1", api_key=os.environ["AERLESS_API_KEY"], ) response = client.chat.completions.create( model="deepseek-v4.1-flash-abliterated", messages=[{"role": "user", "content": "Write a two-line poem about the sea."}], ) print(response.choices[0].message.content) ``` Node ```javascript import OpenAI from "openai"; const client = new OpenAI({ baseURL: "https://api.aerless.ai/v1", apiKey: process.env.AERLESS_API_KEY, }); const response = await client.chat.completions.create({ model: "deepseek-v4.1-flash-abliterated", messages: [{ role: "user", content: "Write a two-line poem about the sea." }], }); console.log(response.choices[0].message.content); ``` example reply ``` Grey water folds the light away, and every wave forgets the shore. ``` | Field | What it does | | --- | --- | | `model` | Required. deepseek-v4.1-flash-abliterated | | `messages` | Required. Messages with a role and content. | | `max_tokens` | Reasoning included. Default 8,192, max 128,000. | | `stream` | true streams the reply. | | `reasoning_effort` | off, low, high, max. | | `tools` | Functions the model may call. | [Every field, the response and streaming](https://aerless.ai/docs/chat-completions/) --- Source: https://aerless.ai/models/deepseek-v4.1-flash-abliterated-fast/ # DeepSeek V4.1 Flash Fast (abliterated) Open weights of DeepSeek V4.1 Flash Fast with the refusal behaviour removed. `deepseek-v4.1-flash-abliterated-fast` Uncensored Fast [Create an account](https://app.aerless.ai/signup) - **Modalities**: Text, image to text - **Input / output per 1M**: $0.24 / $0.90 - **Context**: 1M tokens - **Max output**: 128K tokens **Sections** 1. [Overview](https://aerless.ai/models/deepseek-v4.1-flash-abliterated-fast/#overview) 2. [Pricing](https://aerless.ai/models/deepseek-v4.1-flash-abliterated-fast/#pricing) 3. [Performance](https://aerless.ai/models/deepseek-v4.1-flash-abliterated-fast/#performance) 4. [API](https://aerless.ai/models/deepseek-v4.1-flash-abliterated-fast/#api) ## Overview Uncensored. One hard rule: nothing sexual involving minors. - Tool calls - Reasoning: off, low, high, max - Streaming - Image input ## Pricing - **Input per 1M tokens**: - **Cached input per 1M tokens**: - **Output per 1M tokens**: ## Performance - **Time to first token**: ms - **Output speed**: tokens/s Medians of 100 requests, about 1,000 tokens in. **Every prompt size and the method** | Prompt | First token, ms | Tokens/s | End to end | Ok | Failed | | --- | --- | --- | --- | --- | --- | | Short, about 100 in | 1,219 / 2,316 | 155 / 63 | 112 | 100 | 0 | | Medium, about 1,000 in | 1,427 / 2,350 | 87 / 61 | 71 | 100 | 0 | | Long, about 10,000 in | 1,629 / 6,836 | 78 / 26 | 61 | 100 | 0 | Median, then p95 for first token and p5 for tokens/s. Method: Our server sends one streamed request at a time per model, with a fixed prompt, temperature 0, the model's default reasoning and 512 output tokens at most. Time to first token runs from sending to the first streamed token, reasoning included; output speed is output tokens after the first divided by the streaming time. Failed requests (an error, or under 256 tokens) are counted, not used. Region: Eastern Canada. Window: 1h, 2026-11-26 14:36 UTC to 2026-11-26 15:15 UTC. Published 2026-11-26. ## API `POST https://api.aerless.ai/v1/chat/completions` request curl ```bash curl https://api.aerless.ai/v1/chat/completions \ -H "Authorization: Bearer $AERLESS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "deepseek-v4.1-flash-abliterated-fast", "messages": [{"role": "user", "content": "Write a two-line poem about the sea."}] }' ``` Python ```python import os from openai import OpenAI client = OpenAI( base_url="https://api.aerless.ai/v1", api_key=os.environ["AERLESS_API_KEY"], ) response = client.chat.completions.create( model="deepseek-v4.1-flash-abliterated-fast", messages=[{"role": "user", "content": "Write a two-line poem about the sea."}], ) print(response.choices[0].message.content) ``` Node ```javascript import OpenAI from "openai"; const client = new OpenAI({ baseURL: "https://api.aerless.ai/v1", apiKey: process.env.AERLESS_API_KEY, }); const response = await client.chat.completions.create({ model: "deepseek-v4.1-flash-abliterated-fast", messages: [{ role: "user", content: "Write a two-line poem about the sea." }], }); console.log(response.choices[0].message.content); ``` example reply ``` Grey water folds the light away, and every wave forgets the shore. ``` | Field | What it does | | --- | --- | | `model` | Required. deepseek-v4.1-flash-abliterated-fast | | `messages` | Required. Messages with a role and content. | | `max_tokens` | Reasoning included. Default 8,192, max 128,000. | | `stream` | true streams the reply. | | `reasoning_effort` | off, low, high, max. | | `tools` | Functions the model may call. | [Every field, the response and streaming](https://aerless.ai/docs/chat-completions/) --- Source: https://aerless.ai/models/deepseek-v4.1-flash-fast/ # DeepSeek V4.1 Flash Fast The standard open weights of DeepSeek V4.1 Flash Fast. `deepseek-v4.1-flash-fast` Censored Fast [Create an account](https://app.aerless.ai/signup) - **Modalities**: Text, image to text - **Input / output per 1M**: $0.02 / $0.16 - **Context**: 1M tokens - **Max output**: 128K tokens **Sections** 1. [Overview](https://aerless.ai/models/deepseek-v4.1-flash-fast/#overview) 2. [Pricing](https://aerless.ai/models/deepseek-v4.1-flash-fast/#pricing) 3. [Performance](https://aerless.ai/models/deepseek-v4.1-flash-fast/#performance) 4. [API](https://aerless.ai/models/deepseek-v4.1-flash-fast/#api) ## Overview - Tool calls - Reasoning: off, low, high, max - Streaming - Image input ## Pricing - **Input per 1M tokens**: - **Cached input per 1M tokens**: - **Output per 1M tokens**: ## Performance - **Time to first token**: ms - **Output speed**: tokens/s Medians of 100 requests, about 1,000 tokens in. **Every prompt size and the method** | Prompt | First token, ms | Tokens/s | End to end | Ok | Failed | | --- | --- | --- | --- | --- | --- | | Short, about 100 in | 1,971 / 3,366 | 162 / 79 | 140 | 100 | 0 | | Medium, about 1,000 in | 2,271 / 3,960 | 194 / 66 | 148 | 100 | 0 | | Long, about 10,000 in | 2,475 / 4,111 | 183 / 62 | 137 | 100 | 0 | Median, then p95 for first token and p5 for tokens/s. Method: Our server sends one streamed request at a time per model, with a fixed prompt, temperature 0, the model's default reasoning and 512 output tokens at most. Time to first token runs from sending to the first streamed token, reasoning included; output speed is output tokens after the first divided by the streaming time. Failed requests (an error, or under 256 tokens) are counted, not used. Region: Eastern Canada. Window: 1h, 2026-11-26 14:36 UTC to 2026-11-26 15:42 UTC. Published 2026-11-26. ## API `POST https://api.aerless.ai/v1/chat/completions` request curl ```bash curl https://api.aerless.ai/v1/chat/completions \ -H "Authorization: Bearer $AERLESS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "deepseek-v4.1-flash-fast", "messages": [{"role": "user", "content": "Write a two-line poem about the sea."}] }' ``` Python ```python import os from openai import OpenAI client = OpenAI( base_url="https://api.aerless.ai/v1", api_key=os.environ["AERLESS_API_KEY"], ) response = client.chat.completions.create( model="deepseek-v4.1-flash-fast", messages=[{"role": "user", "content": "Write a two-line poem about the sea."}], ) print(response.choices[0].message.content) ``` Node ```javascript import OpenAI from "openai"; const client = new OpenAI({ baseURL: "https://api.aerless.ai/v1", apiKey: process.env.AERLESS_API_KEY, }); const response = await client.chat.completions.create({ model: "deepseek-v4.1-flash-fast", messages: [{ role: "user", content: "Write a two-line poem about the sea." }], }); console.log(response.choices[0].message.content); ``` example reply ``` Grey water folds the light away, and every wave forgets the shore. ``` | Field | What it does | | --- | --- | | `model` | Required. deepseek-v4.1-flash-fast | | `messages` | Required. Messages with a role and content. | | `max_tokens` | Reasoning included. Default 8,192, max 128,000. | | `stream` | true streams the reply. | | `reasoning_effort` | off, low, high, max. | | `tools` | Functions the model may call. | [Every field, the response and streaming](https://aerless.ai/docs/chat-completions/) --- Source: https://aerless.ai/models/glm-5.3-abliterated/ # GLM 5.3 (abliterated) Open weights of GLM 5.3 with the refusal behaviour removed. `glm-5.3-abliterated` Uncensored [Create an account](https://app.aerless.ai/signup) - **Modalities**: Text to text - **Input / output per 1M**: $2.00 / $4.00 - **Context**: 1M tokens - **Max output**: 128K tokens **Sections** 1. [Overview](https://aerless.ai/models/glm-5.3-abliterated/#overview) 2. [Pricing](https://aerless.ai/models/glm-5.3-abliterated/#pricing) 3. [Performance](https://aerless.ai/models/glm-5.3-abliterated/#performance) 4. [API](https://aerless.ai/models/glm-5.3-abliterated/#api) ## Overview Uncensored. One hard rule: nothing sexual involving minors. - Tool calls - Reasoning: off, low, high, max - Streaming ## Pricing - **Input per 1M tokens**: - **Cached input per 1M tokens**: - **Output per 1M tokens**: ## Performance - **Time to first token**: ms - **Output speed**: tokens/s Medians of 100 requests, about 1,000 tokens in. **Every prompt size and the method** | Prompt | First token, ms | Tokens/s | End to end | Ok | Failed | | --- | --- | --- | --- | --- | --- | | Short, about 100 in | 1,488 / 4,664 | 78 / 31 | 63 | 100 | 0 | | Medium, about 1,000 in | 1,406 / 3,747 | 83 / 50 | 67 | 100 | 0 | | Long, about 10,000 in | 1,554 / 5,325 | 73 / 37 | 59 | 100 | 0 | Median, then p95 for first token and p5 for tokens/s. Method: Our server sends one streamed request at a time per model, with a fixed prompt, temperature 0, the model's default reasoning and 512 output tokens at most. Time to first token runs from sending to the first streamed token, reasoning included; output speed is output tokens after the first divided by the streaming time. Failed requests (an error, or under 256 tokens) are counted, not used. Region: Eastern Canada. Window: 1h, 2026-11-26 14:36 UTC to 2026-11-26 15:24 UTC. Published 2026-11-26. ## API `POST https://api.aerless.ai/v1/chat/completions` request curl ```bash curl https://api.aerless.ai/v1/chat/completions \ -H "Authorization: Bearer $AERLESS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "glm-5.3-abliterated", "messages": [{"role": "user", "content": "Write a two-line poem about the sea."}] }' ``` Python ```python import os from openai import OpenAI client = OpenAI( base_url="https://api.aerless.ai/v1", api_key=os.environ["AERLESS_API_KEY"], ) response = client.chat.completions.create( model="glm-5.3-abliterated", messages=[{"role": "user", "content": "Write a two-line poem about the sea."}], ) print(response.choices[0].message.content) ``` Node ```javascript import OpenAI from "openai"; const client = new OpenAI({ baseURL: "https://api.aerless.ai/v1", apiKey: process.env.AERLESS_API_KEY, }); const response = await client.chat.completions.create({ model: "glm-5.3-abliterated", messages: [{ role: "user", content: "Write a two-line poem about the sea." }], }); console.log(response.choices[0].message.content); ``` example reply ``` Grey water folds the light away, and every wave forgets the shore. ``` | Field | What it does | | --- | --- | | `model` | Required. glm-5.3-abliterated | | `messages` | Required. Messages with a role and content. | | `max_tokens` | Reasoning included. Default 8,192, max 128,000. | | `stream` | true streams the reply. | | `reasoning_effort` | off, low, high, max. | | `tools` | Functions the model may call. | [Every field, the response and streaming](https://aerless.ai/docs/chat-completions/) --- Source: https://aerless.ai/models/glm-5.3-flash-abliterated/ # GLM 5.3 Flash (abliterated) Open weights of GLM 5.3 Flash with the refusal behaviour removed. `glm-5.3-flash-abliterated` Uncensored [Create an account](https://app.aerless.ai/signup) - **Modalities**: Text, image to text - **Input / output per 1M**: $0.24 / $1.00 - **Context**: 1M tokens - **Max output**: 128K tokens **Sections** 1. [Overview](https://aerless.ai/models/glm-5.3-flash-abliterated/#overview) 2. [Pricing](https://aerless.ai/models/glm-5.3-flash-abliterated/#pricing) 3. [Performance](https://aerless.ai/models/glm-5.3-flash-abliterated/#performance) 4. [API](https://aerless.ai/models/glm-5.3-flash-abliterated/#api) ## Overview Uncensored. One hard rule: nothing sexual involving minors. - Tool calls - Reasoning: off, low, high, max - Streaming - Image input ## Pricing - **Input per 1M tokens**: - **Cached input per 1M tokens**: - **Output per 1M tokens**: ## Performance - **Time to first token**: ms - **Output speed**: tokens/s Medians of 100 requests, about 1,000 tokens in. **Every prompt size and the method** | Prompt | First token, ms | Tokens/s | End to end | Ok | Failed | | --- | --- | --- | --- | --- | --- | | Short, about 100 in | 1,511 / 2,761 | 94 / 55 | 71 | 100 | 0 | | Medium, about 1,000 in | 1,414 / 2,732 | 87 / 42 | 69 | 100 | 0 | | Long, about 10,000 in | 1,609 / 3,106 | 83 / 28 | 63 | 100 | 0 | Median, then p95 for first token and p5 for tokens/s. Method: Our server sends one streamed request at a time per model, with a fixed prompt, temperature 0, the model's default reasoning and 512 output tokens at most. Time to first token runs from sending to the first streamed token, reasoning included; output speed is output tokens after the first divided by the streaming time. Failed requests (an error, or under 256 tokens) are counted, not used. Region: Eastern Canada. Window: 1h, 2026-11-26 14:36 UTC to 2026-11-26 15:18 UTC. Published 2026-11-26. ## API `POST https://api.aerless.ai/v1/chat/completions` request curl ```bash curl https://api.aerless.ai/v1/chat/completions \ -H "Authorization: Bearer $AERLESS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "glm-5.3-flash-abliterated", "messages": [{"role": "user", "content": "Write a two-line poem about the sea."}] }' ``` Python ```python import os from openai import OpenAI client = OpenAI( base_url="https://api.aerless.ai/v1", api_key=os.environ["AERLESS_API_KEY"], ) response = client.chat.completions.create( model="glm-5.3-flash-abliterated", messages=[{"role": "user", "content": "Write a two-line poem about the sea."}], ) print(response.choices[0].message.content) ``` Node ```javascript import OpenAI from "openai"; const client = new OpenAI({ baseURL: "https://api.aerless.ai/v1", apiKey: process.env.AERLESS_API_KEY, }); const response = await client.chat.completions.create({ model: "glm-5.3-flash-abliterated", messages: [{ role: "user", content: "Write a two-line poem about the sea." }], }); console.log(response.choices[0].message.content); ``` example reply ``` Grey water folds the light away, and every wave forgets the shore. ``` | Field | What it does | | --- | --- | | `model` | Required. glm-5.3-flash-abliterated | | `messages` | Required. Messages with a role and content. | | `max_tokens` | Reasoning included. Default 8,192, max 128,000. | | `stream` | true streams the reply. | | `reasoning_effort` | off, low, high, max. | | `tools` | Functions the model may call. | [Every field, the response and streaming](https://aerless.ai/docs/chat-completions/) --- Source: https://aerless.ai/models/kimi-k3.1-pro-abliterated/ # Kimi K3.1 Pro (abliterated) Open weights of Kimi K3.1 Pro with the refusal behaviour removed. `kimi-k3.1-pro-abliterated` Uncensored [Create an account](https://app.aerless.ai/signup) - **Modalities**: Text, image to text - **Input / output per 1M**: $3.00 / $6.00 - **Context**: 1M tokens - **Max output**: 128K tokens **Sections** 1. [Overview](https://aerless.ai/models/kimi-k3.1-pro-abliterated/#overview) 2. [Pricing](https://aerless.ai/models/kimi-k3.1-pro-abliterated/#pricing) 3. [Performance](https://aerless.ai/models/kimi-k3.1-pro-abliterated/#performance) 4. [API](https://aerless.ai/models/kimi-k3.1-pro-abliterated/#api) ## Overview Uncensored. One hard rule: nothing sexual involving minors. - Tool calls - Reasoning: off, low, high, max - Streaming - Image input ## Pricing - **Input per 1M tokens**: - **Cached input per 1M tokens**: - **Output per 1M tokens**: ## Performance Not measured yet. Medians of 100 probe requests per prompt size will show here. ## API `POST https://api.aerless.ai/v1/chat/completions` request curl ```bash curl https://api.aerless.ai/v1/chat/completions \ -H "Authorization: Bearer $AERLESS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "kimi-k3.1-pro-abliterated", "messages": [{"role": "user", "content": "Write a two-line poem about the sea."}] }' ``` Python ```python import os from openai import OpenAI client = OpenAI( base_url="https://api.aerless.ai/v1", api_key=os.environ["AERLESS_API_KEY"], ) response = client.chat.completions.create( model="kimi-k3.1-pro-abliterated", messages=[{"role": "user", "content": "Write a two-line poem about the sea."}], ) print(response.choices[0].message.content) ``` Node ```javascript import OpenAI from "openai"; const client = new OpenAI({ baseURL: "https://api.aerless.ai/v1", apiKey: process.env.AERLESS_API_KEY, }); const response = await client.chat.completions.create({ model: "kimi-k3.1-pro-abliterated", messages: [{ role: "user", content: "Write a two-line poem about the sea." }], }); console.log(response.choices[0].message.content); ``` example reply ``` Grey water folds the light away, and every wave forgets the shore. ``` | Field | What it does | | --- | --- | | `model` | Required. kimi-k3.1-pro-abliterated | | `messages` | Required. Messages with a role and content. | | `max_tokens` | Reasoning included. Default 8,192, max 128,000. | | `stream` | true streams the reply. | | `reasoning_effort` | off, low, high, max. | | `tools` | Functions the model may call. | [Every field, the response and streaming](https://aerless.ai/docs/chat-completions/) --- Source: https://aerless.ai/models/wai-illustrious-sdxl/ # WAI Illustrious SDXL Images from a text prompt, paid per image returned. `wai-illustrious-sdxl` Uncensored [Create an account](https://app.aerless.ai/signup) - **Modalities**: Text to image - **Price**: $0.0102 per image - **Sizes**: 1024x1024, 1024x768, 768x1024, 1408x1024, 1024x1408, 1920x1088, 1088x1920 - **Images per request**: 1 to 4 **Sections** 1. [Overview](https://aerless.ai/models/wai-illustrious-sdxl/#overview) 2. [Pricing](https://aerless.ai/models/wai-illustrious-sdxl/#pricing) 3. [API](https://aerless.ai/models/wai-illustrious-sdxl/#api) ## Overview Uncensored. One hard rule: nothing sexual involving minors. ## Pricing - **Per image**: any size ## API `POST https://api.aerless.ai/v1/images/generations` request curl ```bash curl https://api.aerless.ai/v1/images/generations \ -H "Authorization: Bearer $AERLESS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "wai-illustrious-sdxl", "prompt": "A lighthouse on a cliff at dusk, oil painting", "n": 1, "size": "1024x1024", "response_format": "url" }' ``` Python ```python import os from openai import OpenAI client = OpenAI(base_url="https://api.aerless.ai/v1", api_key=os.environ["AERLESS_API_KEY"]) result = client.images.generate( model="wai-illustrious-sdxl", prompt="A lighthouse on a cliff at dusk, oil painting", n=1, size="1024x1024", response_format="b64_json", ) print(len(result.data[0].b64_json), "base64 characters") ``` example reply ``` { "created": 1764147600, "data": [{ "url": "https://…" }] } ``` | Field | What it does | | --- | --- | | `model` | Required. wai-illustrious-sdxl | | `prompt` | Required. Up to 4,000 characters. | | `n` | Images to make, 1 to 4. | | `size` | 1024x1024, 1024x768, 768x1024, 1408x1024, 1024x1408, 1920x1088, 1088x1920 | [Every field and the response](https://aerless.ai/docs/images/) --- Source: https://aerless.ai/models/qwen-image-3-uncensored/ # Qwen Image 3 (uncensored) Images from a text prompt, paid per image returned. `qwen-image-3-uncensored` Uncensored [Create an account](https://app.aerless.ai/signup) - **Modalities**: Text to image - **Price**: $0.08 per image - **Sizes**: 1k, 2k - **Images per request**: 1 to 4 **Sections** 1. [Overview](https://aerless.ai/models/qwen-image-3-uncensored/#overview) 2. [Pricing](https://aerless.ai/models/qwen-image-3-uncensored/#pricing) 3. [API](https://aerless.ai/models/qwen-image-3-uncensored/#api) ## Overview Uncensored. One hard rule: nothing sexual involving minors. ## Pricing - **Per image**: any size ## API `POST https://api.aerless.ai/v1/images/generations` request curl ```bash curl https://api.aerless.ai/v1/images/generations \ -H "Authorization: Bearer $AERLESS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "qwen-image-3-uncensored", "prompt": "A lighthouse on a cliff at dusk, oil painting", "n": 1, "size": "1k", "response_format": "url" }' ``` Python ```python import os from openai import OpenAI client = OpenAI(base_url="https://api.aerless.ai/v1", api_key=os.environ["AERLESS_API_KEY"]) result = client.images.generate( model="qwen-image-3-uncensored", prompt="A lighthouse on a cliff at dusk, oil painting", n=1, size="1k", response_format="b64_json", ) print(len(result.data[0].b64_json), "base64 characters") ``` example reply ``` { "created": 1764147600, "data": [{ "url": "https://…" }] } ``` | Field | What it does | | --- | --- | | `model` | Required. qwen-image-3-uncensored | | `prompt` | Required. Up to 4,000 characters. | | `n` | Images to make, 1 to 4. | | `size` | 1k, 2k | [Every field and the response](https://aerless.ai/docs/images/) --- Source: https://aerless.ai/models/seedream-5.0-pro/ # Seedream 5.0 Pro Images from a text prompt, paid per image returned. `seedream-5.0-pro` Uncensored [Create an account](https://app.aerless.ai/signup) - **Modalities**: Text to image - **Price**: $0.09 per image - **Sizes**: 1024x1024 - **Images per request**: 1 to 4 **Sections** 1. [Overview](https://aerless.ai/models/seedream-5.0-pro/#overview) 2. [Pricing](https://aerless.ai/models/seedream-5.0-pro/#pricing) 3. [API](https://aerless.ai/models/seedream-5.0-pro/#api) ## Overview Uncensored. One hard rule: nothing sexual involving minors. ## Pricing - **Per image**: any size ## API `POST https://api.aerless.ai/v1/images/generations` request curl ```bash curl https://api.aerless.ai/v1/images/generations \ -H "Authorization: Bearer $AERLESS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "seedream-5.0-pro", "prompt": "A lighthouse on a cliff at dusk, oil painting", "n": 1, "size": "1024x1024", "response_format": "url" }' ``` Python ```python import os from openai import OpenAI client = OpenAI(base_url="https://api.aerless.ai/v1", api_key=os.environ["AERLESS_API_KEY"]) result = client.images.generate( model="seedream-5.0-pro", prompt="A lighthouse on a cliff at dusk, oil painting", n=1, size="1024x1024", response_format="b64_json", ) print(len(result.data[0].b64_json), "base64 characters") ``` example reply ``` { "created": 1764147600, "data": [{ "url": "https://…" }] } ``` | Field | What it does | | --- | --- | | `model` | Required. seedream-5.0-pro | | `prompt` | Required. Up to 4,000 characters. | | `n` | Images to make, 1 to 4. | | `size` | 1024x1024 | [Every field and the response](https://aerless.ai/docs/images/) --- Source: https://aerless.ai/pricing/ # Pay per token. Prepaid in crypto. You pay for the tokens you use. - **Input**: $0.24 - **Cached input**: $0.038 - **Output**: $0.90 DeepSeek V4.1 Flash (abliterated), per 1M tokens, US dollars ## Every model Per 1M tokens, US dollars. Output counts reasoning. | Model | Context | Input | Cached input | Output | Speed | | --- | --- | --- | --- | --- | --- | | DeepSeek V4.1 Flash (abliterated) | 1M | $0.24 | $0.038 | $0.90 | 89 tok/s | | DeepSeek V4.1 Flash Fast (abliterated) | 1M | $0.24 | $0.05 | $0.90 | 87 tok/s | | DeepSeek V4.1 Flash Fast | 1M | $0.02 | $0.004 | $0.16 | 194 tok/s | | GLM 5.3 (abliterated) | 1M | $2.00 | $0.30 | $4.00 | 83 tok/s | | GLM 5.3 Flash (abliterated) | 1M | $0.24 | $0.05 | $1.00 | 87 tok/s | | Kimi K3.1 Pro (abliterated) | 1M | $3.00 | $0.30 | $6.00 | | | WAI Illustrious SDXL | | $0.0102 per image | | | | | Qwen Image 3 (uncensored) | | $0.08 per image | | | | | Seedream 5.0 Pro | | $0.09 per image | | | | ## Top up, get more | Top-up received | Bonus | | --- | --- | | $10 to under $25 | None | | $25 to under $100 | 3% extra credit | | $100 to under $250 | 5% extra credit | | $250 to under $500 | 7% extra credit | | $500 or more | 10% extra credit | - **Pay with**: USDT or USDC - **Minimum**: $10, credited at the dollar value received - **Networks**: TRON (TRC-20) BNB Smart Chain (BEP-20) Polygon Base Arbitrum One [Create an account](https://app.aerless.ai/signup) ## How we compare DeepSeek V4.1 Flash, blended at your input to output ratio. The last bar is another model. - Aerless AI Uncensored $0.4050 $0.24 in, $0.90 out, abliterated, list price. [Our price list](https://aerless.ai/pricing/) - Venice AI $0.5775 $0.33 in, $1.32 out, "Uncensored" build. [docs.venice.ai/overview/pricing](https://docs.venice.ai/overview/pricing) · accessed 2026-11-26 - Venice AI $0.6563 $0.375 in, $1.50 out, abliterated E2EE build of V4.1 Flash 1017. [docs.venice.ai/overview/pricing](https://docs.venice.ai/overview/pricing) · accessed 2026-11-26 - Morph Gated $0.5250 $0.30 in, $1.20 out, abliterated, gated to approved orgs. [morphllm.com/best-uncensored-llm](https://www.morphllm.com/best-uncensored-llm) · accessed 2026-11-26 - Claude Opus 5.5 Standard $8.0000 $4.00 in, $20.00 out, a different model, from Anthropic. Bar cut off at the end of the axis. [platform.claude.com/docs/en/about-claude/pricing](https://platform.claude.com/docs/en/about-claude/pricing) · accessed 2026-11-26 Blended at 3:1. Bars run from $0.37 to $0.69, so half the length is not half the price. The last bar is a different model, cut off; read its figure. Builds differ: each line names its build and source. ## Row by row Every cell has a source and date. UNVERIFIED: not confirmed. | | Aerless AI | Venice AI | OpenRouter | NanoGPT | Morph | Claude Opus 5.5 | | --- | --- | --- | --- | --- | --- | --- | | Price and payment | | | | | | | | Price, DeepSeek V4.1 Flash $/1M | $0.24 / $0.90 list, abliterated | $0.33 / $1.32, "Uncensored" build accessed 2026-11-26 [docs.venice.ai/overview/pricing](https://docs.venice.ai/overview/pricing) $0.375 / $1.50, abliterated E2EE build of V4.1 Flash 1017 accessed 2026-11-26 [docs.venice.ai/overview/pricing](https://docs.venice.ai/overview/pricing) | Standard weights only (not abliterated): $0.05 to $1.50 in 37 listings, none abliterated. accessed 2026-11-26 [openrouter.ai/deepseek/deepseek-v4.1-flash](https://openrouter.ai/deepseek/deepseek-v4.1-flash) | $0.198 / $0.792, "Heretic" accessed 2026-11-25 [nano-gpt.com/pricing](https://nano-gpt.com/pricing) | $0.30 / $1.20, abliterated, gated to approved orgs Vendor's own page, updated 2026-11-05. accessed 2026-11-26 [morphllm.com/best-uncensored-llm](https://www.morphllm.com/best-uncensored-llm) | $4.00 / $20.00, a different model, from Anthropic accessed 2026-11-26 [platform.claude.com/docs/en/about-claude/pricing](https://platform.claude.com/docs/en/about-claude/pricing) | | Payment | Stablecoin top-ups (USDT/USDC on TRON (TRC-20), BNB Smart Chain (BEP-20), Polygon, Base, Arbitrum One), prepaid, minimum $10 | Card or crypto USD credits; USDC via x402 accessed 2026-11-25 [docs.venice.ai/overview/pricing](https://docs.venice.ai/overview/pricing) | Cards, AliPay, USDC; crypto 5% fee, never refundable accessed 2026-11-25 [openrouter.ai/docs/faq](https://openrouter.ai/docs/faq) | Not checked | Not checked | Not checked | | Subscription | None, prepaid | $18 / $68 / $200 plans; API pay-as-you-go accessed 2026-11-25 [venice.ai/pricing](https://venice.ai/pricing) | Pay-as-you-go; 5.5% purchase fee accessed 2026-11-25 [openrouter.ai/docs/faq](https://openrouter.ai/docs/faq) | Not checked | Not checked | Not checked | | Rules and service | | | | | | | | Sexual content involving minors | Uncensored. One hard rule: nothing sexual involving minors. | UNVERIFIED accessed 2026-11-25no source found | Screening all traffic incl. ZDR from 27 Oct 2026 accessed 2026-11-25 [openrouter.ai/docs/features/zdr](https://openrouter.ai/docs/features/zdr) | Not checked | Not checked | Not checked | | Public status page | Not yet | Exists; figures UNVERIFIED accessed 2026-11-25 [veniceai-status.com](https://veniceai-status.com/) | No status URL in FAQ, UNVERIFIED accessed 2026-11-25 [openrouter.ai/docs/faq](https://openrouter.ai/docs/faq) | Not checked | Not checked | Not checked | | Speed, tokens per second | 70 tokens/s median, 1490 ms to first token; 100 requests, 2026-11-26 14:36 UTC to 2026-11-26 15:15 UTC | No speed figure published accessed 2026-11-26 [docs.venice.ai/overview/models](https://docs.venice.ai/overview/models) | Per-host figures could not be read, UNVERIFIED accessed 2026-11-26 [openrouter.ai/deepseek/deepseek-v4.1-flash](https://openrouter.ai/deepseek/deepseek-v4.1-flash) | Not checked | Not checked | Not checked | --- Source: https://aerless.ai/faq/ # Questions Short answers about Aerless AI: what it is, what it costs, what it keeps and how to use it. **What is Aerless AI?** Aerless AI is a prepaid, pay-as-you-go API for uncensored open-weight language models, compatible with the OpenAI chat completions API. It serves DeepSeek V4.1 Flash (abliterated), DeepSeek V4.1 Flash Fast (abliterated), DeepSeek V4.1 Flash Fast (censored), GLM 5.3 (abliterated), GLM 5.3 Flash (abliterated) and Kimi K3.1 Pro (abliterated). You top up in crypto, create an API key, and point any OpenAI-compatible client at https://api.aerless.ai/v1. [Models →](https://aerless.ai/models/) **Is Aerless AI uncensored?** Yes. Uncensored. One hard rule: nothing sexual involving minors. The abliterated models have their refusal behaviour removed, and any model that is not uncensored is marked censored, so they answer requests that mainstream APIs refuse. Requests and answers are both checked for that one rule. [Acceptable Use Policy →](https://aerless.ai/legal/acceptable-use/) **Does Aerless AI work with the OpenAI SDK?** Yes. Aerless AI uses the same request and response shapes as OpenAI's chat completions, streaming included, so the official OpenAI Python and Node SDKs work unchanged. Set the base URL to https://api.aerless.ai/v1, the API key to your AERLESS_ key, and the model to an ID such as deepseek-v4.1-flash-abliterated. [Quick start →](https://aerless.ai/docs/quickstart/) **How much does Aerless AI cost?** You pay per token, at a price per model. DeepSeek V4.1 Flash (abliterated) costs $0.24 per million input tokens, $0.038 per million cached input tokens and $0.90 per million output tokens, reasoning included, at list prices in US dollars. Each request is charged only for the tokens it used. [Pricing →](https://aerless.ai/pricing/) **Does Aerless AI have a free tier or free trial?** No. Aerless AI is prepaid: there is no free tier and no free trial. The minimum top-up is $10, and top-ups from $25 earn 3% bonus credit. [Pricing →](https://aerless.ai/pricing/) **How do I pay for Aerless AI?** With USDT and USDC, on TRON (TRC-20), BNB Smart Chain (BEP-20), Polygon, Base and Arbitrum One. You top up your balance in the dashboard and are credited with the US dollar value received. The minimum top-up is $10. [Pricing →](https://aerless.ai/pricing/) **What does Aerless AI keep of my prompts?** Prompts and responses: 30 days, encrypted at rest, then deleted. Metadata (account, key, IP, time, model, tokens): 90 days. Encrypted in transit and at rest. Our gateway, and the supplier that answers, read your prompt to process it, so this is not end-to-end encryption. Every read of a stored prompt is logged with a reason. Legal order or abuse only. We don't train on your data. [Privacy Policy →](https://aerless.ai/legal/privacy/) **What is the context length of the models on Aerless AI?** DeepSeek V4.1 Flash (abliterated): 1,000,000 tokens of context, up to 128,000 output tokens, DeepSeek V4.1 Flash Fast (abliterated): 1,048,576 tokens of context, up to 128,000 output tokens, DeepSeek V4.1 Flash Fast: 1,048,576 tokens of context, up to 128,000 output tokens, GLM 5.3 (abliterated): 1,048,576 tokens of context, up to 128,000 output tokens, GLM 5.3 Flash (abliterated): 1,048,576 tokens of context, up to 128,000 output tokens and Kimi K3.1 Pro (abliterated): 1,048,576 tokens of context, up to 128,000 output tokens. [Models →](https://aerless.ai/models/) **Do the models support streaming, tool calling and reasoning?** DeepSeek V4.1 Flash (abliterated) supports streaming, tool (function) calling and reasoning you can set to off, low, high or max, all through the chat completions endpoint. Each model's page lists what it supports. [Chat completions →](https://aerless.ai/docs/chat-completions/) **Can I use Aerless AI with coding agents?** Yes. Any tool that accepts a custom OpenAI-compatible provider works. There are setup guides for opencode, Kilo Code, Cline, Roo Code and LiteLLM. [Tool setup guides →](https://aerless.ai/docs/tools/) **Can Aerless AI generate images?** Yes. POST /v1/images/generations creates images with WAI Illustrious SDXL, Qwen Image 3 (uncensored) and Seedream 5.0 Pro; WAI Illustrious SDXL costs $0.0102 per image returned. [Images →](https://aerless.ai/docs/images/) **What are the rate limits on Aerless AI?** By default each API key is limited to 120 requests per minute, 2,000,000 tokens per minute and 8 requests in flight at once, and the same limits apply to each account across all its keys. A request over a limit gets 429 with a Retry-After header. [Rate limits →](https://aerless.ai/docs/rate-limits/) **Can I get a refund from Aerless AI?** Refunds of unused paid credit are governed by the Refund Policy. Bonus credit is never refunded. [Refund Policy →](https://aerless.ai/legal/refunds/) **Who can use Aerless AI?** Anyone 18 or older who agrees to the Terms of Service, the Acceptable Use Policy and the Privacy Policy. It is built for developers of fiction, role-play and creative-writing tools, researchers and red-teamers, and anyone with an OpenAI-compatible app who wants an uncensored model behind it without running GPUs. [Terms of Service →](https://aerless.ai/legal/terms/) --- Source: https://aerless.ai/docs/ # Documentation An OpenAI-compatible API. Three values and one request. - **Base URL**: `https://api.aerless.ai/v1` - **Key**: `Authorization: Bearer AERLESS_...` - **Model**: `deepseek-v4.1-flash-abliterated` 1. ## Create a key [Create an account](https://app.aerless.ai/signup), then a key under **API Keys**. 2. ## Put it in `AERLESS_API_KEY` setup curl ```bash export AERLESS_API_KEY="AERLESS_..." ``` Python ```bash pip install openai export AERLESS_API_KEY="AERLESS_..." ``` Node ```bash npm install openai export AERLESS_API_KEY="AERLESS_..." ``` 3. ## Send a request request curl ```bash curl https://api.aerless.ai/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."}] }' ``` Python ```python import os from openai import OpenAI client = OpenAI( base_url="https://api.aerless.ai/v1", api_key=os.environ["AERLESS_API_KEY"], ) response = client.chat.completions.create( model="deepseek-v4.1-flash-abliterated", messages=[{"role": "user", "content": "Write a two-line poem about the sea."}], ) print(response.choices[0].message.content) ``` Node ```javascript import OpenAI from "openai"; const client = new OpenAI({ baseURL: "https://api.aerless.ai/v1", apiKey: process.env.AERLESS_API_KEY, }); const response = await client.chat.completions.create({ model: "deepseek-v4.1-flash-abliterated", messages: [{ role: "user", content: "Write a two-line poem about the sea." }], }); console.log(response.choices[0].message.content); ``` example reply ``` Grey tides fold the evening light, and carry every shore toward night. ``` - **`choices[0].message.content`**: The reply - **`usage`**: Token counts - **`choices[0].finish_reason`**: stop when complete **Full response** Response ```json { "id": "‹id›", "object": "chat.completion", "created": ‹unix time›, "model": "deepseek-v4.1-flash-abliterated", "choices": [ { "index": 0, "message": { "role": "assistant", "content": "‹the reply›" }, "finish_reason": "stop" } ], "usage": { "prompt_tokens": ‹input tokens›, "completion_tokens": ‹output tokens› } } ``` ## Reference - [Quick start A first reply in three steps](https://aerless.ai/docs/quickstart/) - [Authentication Keys, spend limits, expiry](https://aerless.ai/docs/authentication/) - [Chat completions Streaming, tools, reasoning](https://aerless.ai/docs/chat-completions/) - [Images Image generation](https://aerless.ai/docs/images/) - [Models Models and prices for your account](https://aerless.ai/docs/models/) - [Balance Your balance, for scripts](https://aerless.ai/docs/credits/) - [Errors Every code and what to do](https://aerless.ai/docs/errors/) - [Rate limits Requests and tokens per minute](https://aerless.ai/docs/rate-limits/) - [Coding tools opencode, Cline and more](https://aerless.ai/docs/tools/) - [For AI agents These docs as one Markdown file](https://aerless.ai/llms-full.txt) --- Source: https://aerless.ai/docs/quickstart/ # Quick start A first reply in three steps. - **Base URL**: `https://api.aerless.ai/v1` - **Key**: `Authorization: Bearer AERLESS_...` - **Model**: `deepseek-v4.1-flash-abliterated` 1. ## Create a key [Create an account](https://app.aerless.ai/signup), then a key under **API Keys**. 2. ## Put it in `AERLESS_API_KEY` setup curl ```bash export AERLESS_API_KEY="AERLESS_..." ``` Python ```bash pip install openai export AERLESS_API_KEY="AERLESS_..." ``` Node ```bash npm install openai export AERLESS_API_KEY="AERLESS_..." ``` 3. ## Send a request request curl ```bash curl https://api.aerless.ai/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."}] }' ``` Python ```python import os from openai import OpenAI client = OpenAI( base_url="https://api.aerless.ai/v1", api_key=os.environ["AERLESS_API_KEY"], ) response = client.chat.completions.create( model="deepseek-v4.1-flash-abliterated", messages=[{"role": "user", "content": "Write a two-line poem about the sea."}], ) print(response.choices[0].message.content) ``` Node ```javascript import OpenAI from "openai"; const client = new OpenAI({ baseURL: "https://api.aerless.ai/v1", apiKey: process.env.AERLESS_API_KEY, }); const response = await client.chat.completions.create({ model: "deepseek-v4.1-flash-abliterated", messages: [{ role: "user", content: "Write a two-line poem about the sea." }], }); console.log(response.choices[0].message.content); ``` example reply ``` Grey tides fold the evening light, and carry every shore toward night. ``` - **`choices[0].message.content`**: The reply - **`usage`**: Token counts - **`choices[0].finish_reason`**: stop when complete **Full response** Response ```json { "id": "‹id›", "object": "chat.completion", "created": ‹unix time›, "model": "deepseek-v4.1-flash-abliterated", "choices": [ { "index": 0, "message": { "role": "assistant", "content": "‹the reply›" }, "finish_reason": "stop" } ], "usage": { "prompt_tokens": ‹input tokens›, "completion_tokens": ‹output tokens› } } ``` ## Switching from OpenAI Change two settings; use your Aerless AI key. | Setting | Python | JavaScript | | --- | --- | --- | | Base URL | `base_url="https://api.aerless.ai/v1"` | `baseURL: "https://api.aerless.ai/v1"` | | Model | `model="deepseek-v4.1-flash-abliterated"` | `model: "deepseek-v4.1-flash-abliterated"` | ## Next - [Stream Tokens as they are generated](https://aerless.ai/docs/chat-completions/#streaming) - [Reasoning Off, low, high or max](https://aerless.ai/docs/chat-completions/#reasoning) - [Tools Let the model call functions](https://aerless.ai/docs/chat-completions/#tool-calling) - [Errors Including Retry-After](https://aerless.ai/docs/errors/) - [Keys Spend limits and expiry](https://aerless.ai/docs/authentication/) - [Coding tools Set up an agent](https://aerless.ai/docs/tools/) On this page - [Switching from OpenAI](https://aerless.ai/docs/quickstart/#switching) - [Next](https://aerless.ai/docs/quickstart/#next) --- Source: https://aerless.ai/docs/authentication/ # Authentication Every request sends your key in the Authorization header. `AERLESS_`, then 32 letters, digits, `-` or `_` ## Where it goes request curl ```bash curl https://api.aerless.ai/v1/models \ -H "Authorization: Bearer $AERLESS_API_KEY" ``` Python ```python client = OpenAI( base_url="https://api.aerless.ai/v1", api_key=os.environ["AERLESS_API_KEY"], ) ``` Node ```javascript const client = new OpenAI({ baseURL: "https://api.aerless.ai/v1", apiKey: process.env.AERLESS_API_KEY, }); ``` ## Limits on a key All optional, set per key in the dashboard. **Spend limit** per day, week, month or lifetime. Past it: [402 key_limit](https://aerless.ai/docs/errors/#key_limit), uncharged. **Expiry**: the key stops working. **Models**: limit a key to chosen models. Others get 403. ## Keeping keys safe - The full key is shown once. Lost it? Create a new one. - One key per app, so you can revoke one alone. - Keep keys on the server, never in a web page or mobile app. - Leaked? Delete it and create a new one. Report misuse to [support@aerless.ai](mailto:support@aerless.ai). ## Errors | Status | Code | Meaning | | --- | --- | --- | | 401 | [`invalid_api_key`](https://aerless.ai/docs/errors/#invalid_api_key) | No key, or unknown, disabled, deleted or expired | | 403 | `account_banned` | The account is banned | | 403 | `account_suspended` | Suspended for an hour after repeated blocks | | 429 | `rate_limited` | Too many invalid-key requests from your address; wait for Retry-After | On this page - [Where it goes](https://aerless.ai/docs/authentication/#where) - [Limits on a key](https://aerless.ai/docs/authentication/#creating-keys) - [Keeping keys safe](https://aerless.ai/docs/authentication/#safe) - [Errors](https://aerless.ai/docs/authentication/#errors) --- Source: https://aerless.ai/docs/chat-completions/ # Chat completions POST `https://api.aerless.ai/v1/chat/completions` The OpenAI chat-completions format. Send messages, get the reply, whole or streamed. **On this page** 1. [Build a request](https://aerless.ai/docs/chat-completions/#builder) 2. [Parameters](https://aerless.ai/docs/chat-completions/#parameters) 3. [Limits](https://aerless.ai/docs/chat-completions/#limits) 4. [Streaming](https://aerless.ai/docs/chat-completions/#streaming) 5. [Tool calling](https://aerless.ai/docs/chat-completions/#tool-calling) 6. [Reasoning](https://aerless.ai/docs/chat-completions/#reasoning) 7. [Usage and caching](https://aerless.ai/docs/chat-completions/#usage) ## Build a request Switch on to see the request change Streaming Tools Image input Reasoning effort off low high max request ``` curl https://api.aerless.ai/v1/chat/completions \ curl -N https://api.aerless.ai/v1/chat/completions \ -H "Authorization: Bearer $AERLESS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "deepseek-v4.1-flash-abliterated", "stream": true, "stream_options": {"include_usage": true}, "reasoning_effort": "off", "reasoning_effort": "low", "reasoning_effort": "high", "reasoning_effort": "max", "tools": [{"type": "function", "function": { "name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}} }}], "messages": [{"role": "user", "content": "Write a two-line poem about the sea."}] "messages": [{"role": "user", "content": "What is the weather in Lisbon?"}] "messages": [{"role": "user", "content": [ {"type": "text", "text": "What is in this picture?"}, {"type": "image_url", "image_url": {"url": "‹image URL›"}} ]}] }' ``` Response ``` { "id": "‹id›", "object": "chat.completion", "created": ‹unix time›, "model": "deepseek-v4.1-flash-abliterated", "choices": [{"index": 0, "message": {"role": "assistant", "content": "‹the reply›"}, "finish_reason": "stop"}], "usage": {"prompt_tokens": ‹input tokens›, "completion_tokens": ‹output tokens›} } { "id": "‹id›", "object": "chat.completion", "created": ‹unix time›, "model": "deepseek-v4.1-flash-abliterated", "choices": [{"index": 0, "message": {"role": "assistant", "reasoning_content": "‹the reasoning›", "content": "‹the reply›"}, "finish_reason": "stop"}], "usage": {"prompt_tokens": ‹input tokens›, "completion_tokens": ‹output tokens›} } { "id": "‹id›", "object": "chat.completion", "created": ‹unix time›, "model": "deepseek-v4.1-flash-abliterated", "choices": [{"index": 0, "message": {"role": "assistant", "content":null, "tool_calls": [{"id": "‹call id›", "type": "function", "function": {"name": "get_weather", "arguments": "‹the arguments as a JSON string›"}}]}, "finish_reason": "tool_calls"}], "usage": {"prompt_tokens": ‹input tokens›, "completion_tokens": ‹output tokens›} } { "id": "‹id›", "object": "chat.completion", "created": ‹unix time›, "model": "deepseek-v4.1-flash-abliterated", "choices": [{"index": 0, "message": {"role": "assistant", "reasoning_content": "‹the reasoning›", "content":null, "tool_calls": [{"id": "‹call id›", "type": "function", "function": {"name": "get_weather", "arguments": "‹the arguments as a JSON string›"}}]}, "finish_reason": "tool_calls"}], "usage": {"prompt_tokens": ‹input tokens›, "completion_tokens": ‹output tokens›} } data: {"id":"‹id›","object":"chat.completion.chunk","created":‹unix time›,"model":"deepseek-v4.1-flash-abliterated","choices":[{"index":0,"delta":{"content":"‹part of the reply›"}}]} ‹more chunks› data: {"id":"‹id›","object":"chat.completion.chunk","created":‹unix time›,"model":"deepseek-v4.1-flash-abliterated","choices":[],"usage":{"prompt_tokens":‹input tokens›,"completion_tokens":‹output tokens›}} data: [DONE] data: {"id":"‹id›","object":"chat.completion.chunk","created":‹unix time›,"model":"deepseek-v4.1-flash-abliterated","choices":[{"index":0,"delta":{"reasoning_content":"‹part of the reasoning›"}}]} data: {"id":"‹id›","object":"chat.completion.chunk","created":‹unix time›,"model":"deepseek-v4.1-flash-abliterated","choices":[{"index":0,"delta":{"content":"‹part of the reply›"}}]} ‹more chunks› data: {"id":"‹id›","object":"chat.completion.chunk","created":‹unix time›,"model":"deepseek-v4.1-flash-abliterated","choices":[],"usage":{"prompt_tokens":‹input tokens›,"completion_tokens":‹output tokens›}} data: [DONE] data: {"id":"‹id›","object":"chat.completion.chunk","created":‹unix time›,"model":"deepseek-v4.1-flash-abliterated","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"id":"‹call id›","type":"function","function":{"name":"get_weather","arguments":"‹part of the arguments›"}}]}}]} ‹more chunks› data: {"id":"‹id›","object":"chat.completion.chunk","created":‹unix time›,"model":"deepseek-v4.1-flash-abliterated","choices":[{"index":0,"delta":{},"finish_reason":"tool_calls"}]} data: {"id":"‹id›","object":"chat.completion.chunk","created":‹unix time›,"model":"deepseek-v4.1-flash-abliterated","choices":[],"usage":{"prompt_tokens":‹input tokens›,"completion_tokens":‹output tokens›}} data: [DONE] data: {"id":"‹id›","object":"chat.completion.chunk","created":‹unix time›,"model":"deepseek-v4.1-flash-abliterated","choices":[{"index":0,"delta":{"reasoning_content":"‹part of the reasoning›"}}]} data: {"id":"‹id›","object":"chat.completion.chunk","created":‹unix time›,"model":"deepseek-v4.1-flash-abliterated","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"id":"‹call id›","type":"function","function":{"name":"get_weather","arguments":"‹part of the arguments›"}}]}}]} ‹more chunks› data: {"id":"‹id›","object":"chat.completion.chunk","created":‹unix time›,"model":"deepseek-v4.1-flash-abliterated","choices":[{"index":0,"delta":{},"finish_reason":"tool_calls"}]} data: {"id":"‹id›","object":"chat.completion.chunk","created":‹unix time›,"model":"deepseek-v4.1-flash-abliterated","choices":[],"usage":{"prompt_tokens":‹input tokens›,"completion_tokens":‹output tokens›}} data: [DONE] # 400: the model reads text only on this API. { "error": { "message": "‹what is wrong›", "type": "invalid_request_error", "param": "‹the field›", "code": "invalid_request" } } ``` Reply: `choices[0].message.content`. Tool calls: `choices[0].message.tool_calls`. Tokens: `usage`. Every response carries `x-request-id`; quote it to support. ## Request parameters | Field | Type | What it does | | --- | --- | --- | | `model` | string, required | E.g. `deepseek-v4.1-flash-abliterated`. See [models](https://aerless.ai/docs/models/). | | `messages` | array, required | At least one. `role`: `system` , `developer` , `user` , `assistant` , `tool` , `function`; `developer` is treated as `system`. `content`: a string or an array of `{"type": "text", "text": "..."}` parts. Other fields: see below. | | `stream` | boolean | Server-sent events. See [streaming](https://aerless.ai/docs/chat-completions/#streaming). | | `stream_options` | object | `{"include_usage": true}` adds a final usage chunk. | | `max_tokens` | integer ≥ 1 | Output cap, reasoning included. Default 8,192. Above 128,000, lowered to 128,000. `max_completion_tokens` is the same. | | `reasoning_effort` | string | `off` , `low` , `high` , `max`. OpenAI values are translated. See [reasoning](https://aerless.ai/docs/chat-completions/#reasoning). | | `tools` | array | Callable functions. See [tool calling](https://aerless.ai/docs/chat-completions/#tool-calling). | | `n` | integer | Must be 1 if sent. | | `temperature` | number, 0 to 2 | Sampling temperature. | | `top_p` | number, 0 to 1 | Nucleus sampling. | | `presence_penalty` | number, −2 to 2 | Presence penalty. | | `frequency_penalty` | number, −2 to 2 | Frequency penalty. | | `stop` | string or array of strings | Stop sequences. | **Other fields: passed on, removed or refused** **Message fields.** Also `name` , `tool_calls` , `tool_call_id` , `function_call` , `reasoning_content` , `reasoning` , `refusal` , `prefix`. On a message sent back from an earlier reply, `annotations` , `audio` , `reasoning_details` , `cache_control` are accepted and removed. **Passed to the model.** Effect depends on the model: `top_k` , `min_p` , `repetition_penalty` , `seed` , `tool_choice` , `parallel_tool_calls` , `functions` , `function_call` , `response_format` , `user` , `logprobs` , `top_logprobs` , `logit_bias`. **Client hints.** Accepted and removed early: `store` , `metadata` , `service_tier` , `prompt_cache_key` , `prompt_cache_retention` , `prompt_cache_options` , `safety_identifier` , `verbosity` , `prediction` , `transforms` , `provider` , `route` , `models` , `usage` , `include_reasoning` , `modalities`. `modalities` is removed only when it asks for text. Each must have its usual type, or the request is refused. OpenRouter’s `reasoning` object is folded into `reasoning_effort`. **Refused.** `audio` , `web_search_options` , `plugins` , `moderation`: 400. **Image parts.** Text only: `image_url` and similar parts get 400. **Anything else.** Any other field, or a wrong or out-of-range value, gets [400 invalid_request](https://aerless.ai/docs/errors/#invalid_request); `param` names the field. ## Request limits - **Body**: 8 MiB - **Text**: 2,097,152 chars - **Context**: 1,000,000 tokens - **Run time**: 20 min - **JSON nesting**: 64 levels **How each limit applies** - Body: 32 MiB when the key’s tokens-per-minute limit is raised. Over the limit: 413, before reading when `Content-Length` says so. - `Content-Encoding` `gzip`, `deflate` or `br` is decompressed and held to the same limit. Others: [415](https://aerless.ai/docs/errors/). - Text: counted across all fields (413 beyond). - Context: prompt and output together. - Time: body within 60 seconds; request at most 20 minutes. ## Streaming `"stream": true` sends `chat.completion.chunk` objects as server-sent events (`text/event-stream`), ended by `data: [DONE]`. **Full streaming example in curl, Python and Node** `"stream_options": {"include_usage": true}` adds a last chunk with an empty `choices` array and `usage`. The charge is the same. request curl ```bash curl -N https://api.aerless.ai/v1/chat/completions \ -H "Authorization: Bearer $AERLESS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "deepseek-v4.1-flash-abliterated", "stream": true, "stream_options": {"include_usage": true}, "messages": [{"role": "user", "content": "Write a two-line poem about the sea."}] }' ``` Python ```python import os from openai import OpenAI client = OpenAI(base_url="https://api.aerless.ai/v1", api_key=os.environ["AERLESS_API_KEY"]) stream = client.chat.completions.create( model="deepseek-v4.1-flash-abliterated", messages=[{"role": "user", "content": "Write a two-line poem about the sea."}], stream=True, stream_options={"include_usage": True}, ) for chunk in stream: if chunk.choices and chunk.choices[0].delta.content: print(chunk.choices[0].delta.content, end="", flush=True) if chunk.usage: print("\n", chunk.usage) ``` Node ```javascript import OpenAI from "openai"; const client = new OpenAI({ baseURL: "https://api.aerless.ai/v1", apiKey: process.env.AERLESS_API_KEY }); const stream = await client.chat.completions.create({ model: "deepseek-v4.1-flash-abliterated", messages: [{ role: "user", content: "Write a two-line poem about the sea." }], stream: true, stream_options: { include_usage: true }, }); for await (const chunk of stream) { process.stdout.write(chunk.choices[0]?.delta?.content ?? ""); if (chunk.usage) console.log("\n", chunk.usage); } ``` Response (event stream) ``` data: {"id":"‹id›","object":"chat.completion.chunk","created":‹unix time›,"model":"deepseek-v4.1-flash-abliterated","choices":[{"index":0,"delta":{"content":"‹part of the reply›"}}]} ‹more chunks› data: {"id":"‹id›","object":"chat.completion.chunk","created":‹unix time›,"model":"deepseek-v4.1-flash-abliterated","choices":[],"usage":{"prompt_tokens":‹input tokens›,"completion_tokens":‹output tokens›}} data: [DONE] ``` ### Errors during a stream The status is already 200. An error arrives as an event in the [usual format](https://aerless.ai/docs/errors/#format), then `data: [DONE]`. **The error event, and what is charged** text ```text data: {"error":{"message":"The model backend returned an error. Retry the request.","type":"api_error","param":null,"code":"upstream_error"}} data: [DONE] ``` Check each event for `error`. Tokens delivered before it are charged; no retry happens after output has started. The stream ends if the client disconnects, reads nothing for 120 seconds, or the request reaches 20 minutes. Everything generated up to then is charged, delivered or not. ### Output check Answers get the same content check as requests. A stopped answer returns [403 content_blocked](https://aerless.ai/docs/errors/#content_blocked), or that error as the last event of a stream. **What is charged, and the hourly suspension** The prompt and everything generated are charged. 3 such answers in an hour suspend the account for an hour ([403 account_suspended](https://aerless.ai/docs/errors/#account_suspended)). ## Tool calling Supported: OpenAI-style function calling. 1. List your functions in `tools`. 2. The reply has `finish_reason: "tool_calls"` and a `tool_calls` array. 3. Run it, append the reply and a `tool` message with its `tool_call_id`, and call again. **Full tool-calling example in Python** Python ```python import json, os from openai import OpenAI client = OpenAI(base_url="https://api.aerless.ai/v1", api_key=os.environ["AERLESS_API_KEY"]) tools = [{ "type": "function", "function": { "name": "get_weather", "description": "Current weather for a city", "parameters": { "type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"], }, }, }] messages = [{"role": "user", "content": "What is the weather in Lisbon?"}] first = client.chat.completions.create(model="deepseek-v4.1-flash-abliterated", messages=messages, tools=tools) call = first.choices[0].message.tool_calls[0] args = json.loads(call.function.arguments) messages.append(first.choices[0].message) messages.append({ "role": "tool", "tool_call_id": call.id, "content": json.dumps({"city": args["city"], "temp_c": 19, "sky": "clear"}), }) final = client.chat.completions.create(model="deepseek-v4.1-flash-abliterated", messages=messages, tools=tools) print(final.choices[0].message.content) ``` First response ``` { "id": "‹id›", "object": "chat.completion", "created": ‹unix time›, "model": "deepseek-v4.1-flash-abliterated", "choices": [ { "index": 0, "message": { "role": "assistant", "content": null, "tool_calls": [ { "id": "‹call id›", "type": "function", "function": { "name": "get_weather", "arguments": "‹the arguments as a JSON string›" } } ] }, "finish_reason": "tool_calls" } ], "usage": { "prompt_tokens": ‹input tokens›, "completion_tokens": ‹output tokens› } } ``` ## Reasoning `reasoning_effort`: `off` for none (lowest latency and cost), `low` for brief, `high` for harder problems, `max` for the most. **OpenAI values, reasoning text and tokens** OpenAI values are translated: `none` to `off` , `disabled` to `off` , `minimal` to `off` , `medium` to `low` , `default` to `low` , `xhigh` to `max`. Anything else: 400. Reasoning text is in `message.reasoning_content` (`delta.reasoning_content` when streaming), apart from `content`. Reasoning tokens are output tokens: in `completion_tokens`, at the output price, counted towards `max_tokens`. Leave room at high settings or the answer may be cut short. **Full reasoning example in curl, Python and Node** request curl ```bash curl https://api.aerless.ai/v1/chat/completions \ -H "Authorization: Bearer $AERLESS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "deepseek-v4.1-flash-abliterated", "reasoning_effort": "high", "messages": [{"role": "user", "content": "How many weekdays are there in March 2027?"}] }' ``` Python ```python import os from openai import OpenAI client = OpenAI(base_url="https://api.aerless.ai/v1", api_key=os.environ["AERLESS_API_KEY"]) response = client.chat.completions.create( model="deepseek-v4.1-flash-abliterated", messages=[{"role": "user", "content": "How many weekdays are there in March 2027?"}], # off, low, high or max. Sent through extra_body because the SDK's own # type for reasoning_effort does not list "off" and "max". extra_body={"reasoning_effort": "high"}, ) message = response.choices[0].message print(getattr(message, "reasoning_content", None)) # the model's reasoning, if any print(message.content) ``` Node ```javascript import OpenAI from "openai"; const client = new OpenAI({ baseURL: "https://api.aerless.ai/v1", apiKey: process.env.AERLESS_API_KEY }); const response = await client.chat.completions.create({ model: "deepseek-v4.1-flash-abliterated", messages: [{ role: "user", content: "How many weekdays are there in March 2027?" }], reasoning_effort: "high", // off, low, high or max }); const message = response.choices[0].message; console.log(message.reasoning_content); // the model's reasoning, if any console.log(message.content); ``` Response ``` { "id": "‹id›", "object": "chat.completion", "created": ‹unix time›, "model": "deepseek-v4.1-flash-abliterated", "choices": [ { "index": 0, "message": { "role": "assistant", "reasoning_content": "‹the reasoning›", "content": "‹the reply›" }, "finish_reason": "stop" } ], "usage": { "prompt_tokens": ‹input tokens›, "completion_tokens": ‹output tokens› } } ``` ## Usage and caching | Field | What it counts | | --- | --- | | `usage.prompt_tokens` | Input tokens, cached ones included. | | `usage.completion_tokens` | Output tokens, reasoning included. | | `usage.prompt_tokens_details.cached_tokens` | Input tokens served from cache. Only when caching applied. | **How the charge is worked out** Without streaming, closing the connection does not stop the request; it is charged in full. Charge = (prompt − cached tokens) × input price + cached tokens × cached price + completion tokens × output price, rounded up to a micro-dollar. See [pricing](https://aerless.ai/pricing/). A stream that ends without usage is charged on an estimate. ### Caching A request that starts like an earlier one can be served from cache, faster and at the cached-input price. Hits are not guaranteed. **How to get more cache hits** - Put stable content first: system prompt, tool definitions, reference documents. - Append to a conversation rather than editing earlier turns. - Requests from one key go to the same backend account where possible. On this page - [Build a request](https://aerless.ai/docs/chat-completions/#builder) - [Request parameters](https://aerless.ai/docs/chat-completions/#parameters) - [Request limits](https://aerless.ai/docs/chat-completions/#limits) - [Streaming](https://aerless.ai/docs/chat-completions/#streaming) - [Tool calling](https://aerless.ai/docs/chat-completions/#tool-calling) - [Reasoning](https://aerless.ai/docs/chat-completions/#reasoning) - [Usage and caching](https://aerless.ai/docs/chat-completions/#usage) --- Source: https://aerless.ai/docs/images/ # Images POST `https://api.aerless.ai/v1/images/generations` The OpenAI image format, served by WAI Illustrious SDXL (SDXL family). ## Sizes and price One price for every size. 1 to 4 images per request, no streaming. | Size | Per image | | --- | --- | | `1024x1024` | $0.0102 | | `1024x768` | $0.0102 | | `768x1024` | $0.0102 | | `1408x1024` | $0.0102 | | `1024x1408` | $0.0102 | | `1920x1088` | $0.0102 | | `1088x1920` | $0.0102 | ## Request request curl ```bash curl https://api.aerless.ai/v1/images/generations \ -H "Authorization: Bearer $AERLESS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "wai-illustrious-sdxl", "prompt": "A lighthouse on a cliff at dusk, oil painting", "n": 1, "size": "1024x1024", "response_format": "url" }' ``` Python ```python import os from openai import OpenAI client = OpenAI(base_url="https://api.aerless.ai/v1", api_key=os.environ["AERLESS_API_KEY"]) result = client.images.generate( model="wai-illustrious-sdxl", prompt="A lighthouse on a cliff at dusk, oil painting", n=1, size="1024x1024", response_format="b64_json", ) print(len(result.data[0].b64_json), "base64 characters") ``` Response ``` { "created": ‹unix time›, "data": [ { "url": "‹link to the image›" } ] } ``` ## Request parameters | Field | Type | Notes | | --- | --- | --- | | `model` | string, required | `wai-illustrious-sdxl` | | `prompt` | string, required | Not empty; at most 3,000 characters. | | `n` | integer | 1 to 4. Default 1. | | `size` | string | One of the sizes above. Default `1024x1024`. | | `response_format` | string | `url` (default) or `b64_json`. | | `seed` | integer ≥ 0 | For repeatable results. | | `quality` | string | Only `standard` (or `auto`) is offered. | Price-changing fields get 400: `nImages` , `num_images` , `numImages` , `batch_size` , `width` , `height` , `resolution` , `aspect_ratio` , `steps` , `num_inference_steps` , `upscale` , `image` , `images` , `imageDataUrl` , `image_url` , `mask`. Use `n` and `size`. Other unknown fields are dropped. Body: at most 256 KiB. Prompts get the chat content check. ## Response Each item of `data` has `url` or `b64_json`. Download what you keep; links have no promised lifetime. ## Billing n × $0.0102 is reserved; only images returned are charged. A disconnect does not cancel the request. On this page - [Sizes and price](https://aerless.ai/docs/images/#sizes) - [Request](https://aerless.ai/docs/images/#example) - [Request parameters](https://aerless.ai/docs/images/#parameters) - [Response](https://aerless.ai/docs/images/#response) - [Billing](https://aerless.ai/docs/images/#billing) --- Source: https://aerless.ai/docs/models/ # Models GET `https://api.aerless.ai/v1/models` The models your key can use, at your account’s prices. ## Available models | Model ID | Kind | Context, tokens | Max output | List price | Capabilities | | --- | --- | --- | --- | --- | --- | | `deepseek-v4.1-flash-abliterated` | chat | 1M | 128K | $0.24 in, $0.90 out per 1M | streaming, tool calling, reasoning, text input only | | `wai-illustrious-sdxl` | image | — | — | $0.0102 per image | image generation | DeepSeek V4.1 Flash (abliterated) is an abliterated build of DeepSeek V4.1 Flash: open weights with refusals removed. It can still be wrong. ## Agent models `aerless/agent` is one model name for agents such as Hermes and OpenClaw. We pick the model per request: everyday work goes to a fast model, other requests go uncensored. If the fast model refuses, the request reruns uncensored. Tool calls written as text come back as real `tool_calls`. `aerless/agent-pro` is for harder jobs. Both work with credit or an [Agent AI plan](https://aerless.ai/agents/) (a daily allowance). Replies and usage show the agent name. They appear in `GET /models` once the models behind them are on sale. ## Listing models Only models that are on and priced. Needs a valid key. curl ```bash curl https://api.aerless.ai/v1/models \ -H "Authorization: Bearer $AERLESS_API_KEY" ``` Response ``` { "object": "list", "data": [ { "id": "deepseek-v4.1-flash-abliterated", "object": "model", "created": 0, "owned_by": "‹owner›", "name": "DeepSeek V4.1 Flash (abliterated)", "kind": "chat", "context_length": 1000000, "max_output_tokens": 128000, "capabilities": { "streaming": true, "tools": true, "vision": false, "reasoning": true }, "pricing": { "currency": "USD", "unit": "per_1m_tokens", "input": ‹price›, "output": ‹price›, "cached_input": ‹price›, "multiplier": ‹number›, "promo": ‹true or false› } } ] } ``` | Field | Meaning | | --- | --- | | `id` | The value to send as model. | | `name` | Display name. | | `kind` | `chat` or `image`. | | `context_length` | Context window in tokens. | | `max_output_tokens` | Largest max_tokens accepted. | | `capabilities` | Supported features, e.g. tools, reasoning. | | `pricing` | `input`, `output`, `cached_input`: USD per 1M tokens for your account. `multiplier`. `promo`: true during a promotional price. | Image models have `sizes`, `default_size`, `max_images`, `max_prompt_chars` and `pricing.per_image` instead of the token fields. ## Just the IDs model ids ```bash curl https://api.aerless.ai/v1/models \ -H "Authorization: Bearer $AERLESS_API_KEY" -s | jq -r '.data[].id' ``` On this page - [Available models](https://aerless.ai/docs/models/#catalogue) - [Agent models](https://aerless.ai/docs/models/#agents) - [Listing models](https://aerless.ai/docs/models/#list) - [Just the IDs](https://aerless.ai/docs/models/#ids) --- Source: https://aerless.ai/docs/credits/ # Balance GET `https://api.aerless.ai/v1/credits` Your balance, for scripts and monitoring. ## Response curl ```bash curl https://api.aerless.ai/v1/credits \ -H "Authorization: Bearer $AERLESS_API_KEY" ``` Response ``` { "object": "credits", "unit": "usd", "available": ‹dollars›, "held": ‹dollars›, "balance": ‹dollars›, "available_micro": "‹micro-dollars›", "held_micro": "‹micro-dollars›" } ``` | Field | Meaning | | --- | --- | | `available` | US dollars you can spend now. | | `held` | Reserved by requests in progress; returned on finish, less the cost. | | `balance` | available + held. | | `available_micro` | available in micro-dollars (1 USD = 1,000,000), as a string. | | `held_micro` | held as a string of micro-dollars. | ## Low-balance check Warns below the minimum top-up. Run it from cron. low-balance.sh ```bash LOW=10 AVAILABLE=$(curl -s https://api.aerless.ai/v1/credits \ -H "Authorization: Bearer $AERLESS_API_KEY" | jq -r .available) awk -v a="$AVAILABLE" -v l="$LOW" 'BEGIN { exit !(a < l) }' \ && echo "Low balance: $AVAILABLE USD" ``` Top-ups, payments and alerts are in the dashboard. See [top-ups](https://aerless.ai/pricing/#top-ups). On this page - [Response](https://aerless.ai/docs/credits/#response) - [Low-balance check](https://aerless.ai/docs/credits/#low-balance) --- Source: https://aerless.ai/docs/errors/ # Errors The OpenAI error format, with our own codes. ## All codes **400 `invalid_request` Not a valid request. No** The body is not valid JSON or not a valid request: a missing or unknown model, an empty messages array, a field the endpoint does not accept (at the top level, in a message or in a content part), a parameter of the wrong type or out of range, n other than 1, an image content part, a field the image endpoint refuses, or JSON nested more than 64 levels deep. Also returned when the model backend rejects the request as invalid, for example a prompt that does not fit the context window. **What to do.** Fix the request. The message says what is wrong and param names the field. Do not retry unchanged. Type `invalid_request_error`. Retry-After: No. **401 `invalid_api_key` Missing, unknown or revoked key. No** The Authorization header is missing, or the key is unknown, revoked, disabled or expired. **What to do.** Check the key and the header format (Authorization: Bearer ). Create a new key in the dashboard if needed. Type `authentication_error`. Retry-After: No. **402 `insufficient_balance` Balance too low for the hold. No** The available balance does not cover the hold for this request. Returned before anything is sent to the model; nothing is charged. **What to do.** Top up, or lower max_tokens so the hold is smaller. Type `insufficient_quota`. Retry-After: No. **402 `key_limit` Over this key’s spend limit. No** The request would take this key past the spend limit set on it. Returned before anything is sent; nothing is charged. **What to do.** Raise or remove the key’s spend limit in the dashboard, wait for its period to reset, or use another key. Type `insufficient_quota`. Retry-After: No. **403 `account_banned` The account has been banned. No** The account has been banned. **What to do.** Contact support from the account’s email address. Type `permission_error`. Retry-After: No. **403 `account_suspended` Suspended for an hour. No** The account is suspended for an hour because of repeated blocks: 3 answers stopped by the output check, or 10 requests blocked by the content check, within an hour. Every request from the account is refused before any work; nothing is charged. **What to do.** Wait for the hour to pass. Contact support from the account’s email address if you think it is a mistake. Type `permission_error`. Retry-After: No. **403 `content_blocked` Blocked by the content check. No** The content check blocked the request (sexual content involving minors): nothing is sent to the model and nothing is charged. Also returned when the output check stops an answer: as a 403 without streaming, or as an error event that ends the stream. Then the prompt and everything the model generated are charged, and nothing more of the answer is delivered. Blocked requests and answers are stored and reviewed. **What to do.** Do not retry. Repeated blocks suspend the account for an hour (account_suspended) and can lead to it being banned. Type `permission_error`. Retry-After: No. **404 `not_found` No such route, or images off. No** No such route, for example a typo in the path or a method the path does not take. Also returned for image generation while it is switched off. **What to do.** Check the base URL ends in /v1 and the path is one of the documented endpoints. Type `not_found_error`. Retry-After: No. **408 `invalid_request` The body did not arrive in time. Yes** The request body was not received within 60 seconds of the headers. Your usage history also shows 408 for a stream that was ended because the client read nothing from it for 120 seconds; everything the model generated for it is charged. **What to do.** Retry on a working connection. Read streams as they arrive. Type `invalid_request_error`. Retry-After: No. **409 `video_not_ready` invalid_request_error No** An upscale was asked for a video that has not finished yet. Nothing is charged. **What to do.** Wait until GET /v1/videos/{id} shows the status completed, then ask again. Type `invalid_request_error`. Retry-After: No. **413 `invalid_request` Body or text over the limit. No** The body is larger than the limit: 8 MiB for chat completions (32 MiB for a key whose tokens-per-minute limit has been raised), 256 KiB for image generation. A body whose Content-Length declares more is refused before it is read. Also returned for a chat request carrying more than 2,097,152 characters of text, all fields together. **What to do.** Send a smaller request. Type `invalid_request_error`. Retry-After: No. **415 `invalid_request` Unsupported Content-Encoding. No** The body is compressed with a Content-Encoding other than gzip, deflate or br. A compressed body is accepted with those three and held to the same size limit once decompressed. **What to do.** Send the body uncompressed, or compressed with gzip, deflate or br. Type `invalid_request_error`. Retry-After: No. **429 `rate_limited` A rate limit was reached. After Retry-After** A limit was reached: per key or per account (requests per minute, tokens per minute or requests in flight); the limit of 60 requests per minute on GET /v1/models and /v1/credits; too many requests in progress or request bodies being sent at once from one key, account or address; too much text sent for the content check in a minute; all capacity for the model is in use; the model backend is rate limiting; or one address sent too many requests with invalid keys. **What to do.** Wait for the Retry-After seconds, then retry. Back off further if it repeats. Type `rate_limit_error`. Retry-After: Yes: seconds until a retry can succeed (1 for the in-flight limits, 5 when all capacity is in use, 10 by default when the backend is rate limiting). **499 `invalid_request` Client closed the connection. No** The client closed the connection before the response finished. You will not normally receive it; it is what your usage history records for such a request. **What to do.** None. Without streaming, closing the connection does not stop the request: the answer is completed and charged in full. A stream is ended, and everything the model generated up to then is charged, delivered or not. Type `invalid_request_error`. Retry-After: No. **500 `internal_error` An unexpected error on our side. With backoff** An unexpected error on our side. **What to do.** Retry with backoff. If it persists, contact support with the x-request-id header. Type `api_error`. Retry-After: No. **502 `upstream_error` The model backend failed. With backoff** The model backend returned an error and no other backend could serve the request. Also returned when a backend refuses this particular request: it is then not tried on another backend. **What to do.** Retry with backoff. Nothing was charged. A refused request is likely to be refused again if sent unchanged. Type `api_error`. Retry-After: No. **503 `model_warming` The model is warming up. After Retry-After** The model is warming up on every available backend. **What to do.** Retry after the Retry-After seconds. Type `api_error`. Retry-After: Yes: 30 unless the backend gives another value. **503 `model_busy` The model is at capacity. After Retry-After** The model is at capacity on every available backend. **What to do.** Retry after the Retry-After seconds. Type `api_error`. Retry-After: Yes: 15 unless the backend gives another value. **503 `model_unavailable` Model temporarily unavailable. After Retry-After** The model is temporarily unavailable on every backend. **What to do.** Retry after the Retry-After seconds; check the status page. Type `api_error`. Retry-After: Yes: 60 unless the backend gives another value. **503 `service_unavailable` Service unavailable right now. After Retry-After** The service cannot serve the request right now: it is overloaded, its database is unavailable, it is restarting, or the backends are down or out of capacity. **What to do.** Retry with backoff; check the status page. Type `api_error`. Retry-After: Usually: 2 when overloaded, 5 while restarting or when the database is unavailable, 30 or 60 for a backend outage; absent when the cause needs an operator to fix it. **504 `upstream_error` Ran past the time limit. No** The request ran longer than the 20-minute limit. **What to do.** Ask for less output (lower max_tokens) or split the work. A stream cut short by the limit is charged for everything the model generated; a request without streaming that had not answered is not charged. Type `api_error`. Retry-After: No. ## Format json ```json { "error": { "message": "Insufficient balance. Add credits to continue.", "type": "insufficient_quota", "param": null, "code": "insufficient_balance" } } ``` Branch on `code` and the HTTP status, not `message`. `param` names the field at fault. Every response carries `x-request-id`; quote it to support. OpenAI clients raise these as their usual exceptions. Mid-stream errors arrive as events: see [errors during a stream](https://aerless.ai/docs/chat-completions/#stream-errors). ## Retry-After With the header, wait at least that many seconds (a whole number, at least 1). A 5xx without it: back off exponentially with jitter (1 s, 2 s, 4 s, 8 s) and cap attempts. Never retry 400, 401, 402 or 403 unchanged. Errors before the model starts answering are not charged. Check that your client honours `Retry-After` when it retries 429 and 5xx itself. Other backends are tried before a 5xx, so a 503 means none could serve the request. On this page - [All codes](https://aerless.ai/docs/errors/#codes) - [Format](https://aerless.ai/docs/errors/#format) - [Retry-After](https://aerless.ai/docs/errors/#retry-after) --- Source: https://aerless.ai/docs/rate-limits/ # Rate limits Per key, and the same for each account across its keys. - **Requests**: per minute - **Tokens in + out**: per minute - **In flight**: at once Defaults, over sliding one-minute windows. Yours are under **Settings**. A key can have its own limits; a key with higher limits raises its account’s to match. ## How tokens are counted An admitted request counts its estimated prompt plus full `max_tokens` until it finishes. Example: a 2,000-token prompt with the default `max_tokens` counts 10,192 tokens. 2M tokens a minute fit 196 of them, so the limit of 120 requests a minute applies first. On finish the count is corrected to tokens used. A request refused with 402 or 403 after admission still counts its estimated prompt. A tight `max_tokens` lets more through. Default `max_tokens`: 8,192. Image requests use a slot in flight and count as requests, not tokens. ## When you hit a limit 1. [429 rate_limited](https://aerless.ai/docs/errors/#rate_limited) with `Retry-After`: seconds until enough of the window has passed, or 1 for the in-flight limit. 2. A refused request counts and costs nothing. 3. Retry after those seconds; back off if it repeats. ### Models and balance `GET /v1/models` and `/v1/credits` have their own per-key limit: 60 a minute, 4 in flight. Not counted above. ### Other 429s - **Requests in progress.** Capped per address, and request bodies at once per key, account and address (large ones far fewer): 429 with `Retry-After: 1`. - **Content check time.** More text per minute than the check can read: 429 until the minute ends. - **All capacity in use.** The request waits briefly for a slot, then gets 429 with `Retry-After: 5`. - **Invalid keys.** After 60 unknown-key requests from one address in a minute, further unseen keys from it get 429 until the minute passes. Valid keys in use keep working. On this page - [How tokens are counted](https://aerless.ai/docs/rate-limits/#how-tokens-count) - [When you hit a limit](https://aerless.ai/docs/rate-limits/#when-limited) --- Source: https://aerless.ai/docs/tools/ # Tools Any tool with an OpenAI-compatible option needs these three values. - **Base URL**: `https://api.aerless.ai/v1` - **Key**: `Authorization: Bearer AERLESS_...` - **Model ids**: `deepseek-v4.1-flash-abliterated` `deepseek-v4.1-flash-abliterated-fast` `deepseek-v4.1-flash-fast` `glm-5.3-abliterated` `glm-5.3-flash-abliterated` `kimi-k3.1-pro-abliterated` ## Step by step - [opencode Terminal coding agent. Paste one JSON file.](https://aerless.ai/docs/tools/opencode/) - [Kilo Code Coding agent. Paste one JSON file.](https://aerless.ai/docs/tools/kilo-code/) - [Cline VS Code agent. Fill in its settings screen.](https://aerless.ai/docs/tools/cline/) - [Roo Code VS Code agent. Fill in its settings screen.](https://aerless.ai/docs/tools/roo-code/) - [LiteLLM Proxy and SDK. Add the models to config.yaml.](https://aerless.ai/docs/tools/litellm/) --- Source: https://aerless.ai/docs/tools/opencode/ # opencode Add Aerless AI as a provider in one file. Follows the [opencode docs](https://opencode.ai/docs/providers/). 1. ### Get a key Create one in the [dashboard](https://app.aerless.ai) and top up. The [quick start](https://aerless.ai/docs/quickstart/) shows how. 2. ### Set the key bash ```bash export AERLESS_API_KEY="AERLESS_..." ``` 3. ### Copy the file opencode.jsonc ```jsonc { "providers": { "aerless-ai": { "name": "Aerless AI", "env": [ "AERLESS_API_KEY" ], "package": "@opencode/ai/providers/openai-compatible", "settings": { "baseURL": "https://api.aerless.ai/v1" }, "models": { "deepseek-v4.1-flash-abliterated": { "name": "DeepSeek V4.1 Flash (abliterated)" }, "deepseek-v4.1-flash-abliterated-fast": { "name": "DeepSeek V4.1 Flash Fast (abliterated)" }, "deepseek-v4.1-flash-fast": { "name": "DeepSeek V4.1 Flash Fast" }, "glm-5.3-abliterated": { "name": "GLM 5.3 (abliterated)" }, "glm-5.3-flash-abliterated": { "name": "GLM 5.3 Flash (abliterated)" }, "kimi-k3.1-pro-abliterated": { "name": "Kimi K3.1 Pro (abliterated)" } } } } } ``` If opencode rejects it, its provider docs list the current keys. 4. ### Check it works Start opencode, pick a model from the Aerless AI provider and ask something. A reply means you are connected. Or from a shell, key in `AERLESS_API_KEY`: request ```bash curl https://api.aerless.ai/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](https://aerless.ai/docs/errors/#invalid_api_key)**: Check the key and the header format (Authorization: Bearer ). Create a new key in the dashboard if needed. - **[402 insufficient_balance](https://aerless.ai/docs/errors/#insufficient_balance)**: Top up, or lower max_tokens so the hold is smaller. - **[404 not_found](https://aerless.ai/docs/errors/#not_found)**: Check the base URL ends in /v1 and the path is one of the documented endpoints. - **[400 invalid_request](https://aerless.ai/docs/errors/#invalid_request)**: Fix the request. The message says what is wrong and param names the field. Do not retry unchanged. --- Source: https://aerless.ai/docs/tools/kilo-code/ # Kilo Code Add Aerless AI as an OpenAI-compatible provider in one file. Follows the [Kilo Code docs](https://github.com/Kilo-Org/kilocode/blob/main/packages/kilo-docs/pages/ai-providers/openai-compatible.md). 1. ### Get a key Create one in the [dashboard](https://app.aerless.ai) and top up. The [quick start](https://aerless.ai/docs/quickstart/) shows how. 2. ### Copy the file kilo.json ```jsonc { "provider": { "aerless-ai": { "npm": "@ai-sdk/openai-compatible", "options": { "baseURL": "https://api.aerless.ai/v1", "apiKey": "AERLESS_..." }, "models": { "deepseek-v4.1-flash-abliterated": { "name": "DeepSeek V4.1 Flash (abliterated)", "limit": { "context": 1000000, "output": 128000 } }, "deepseek-v4.1-flash-abliterated-fast": { "name": "DeepSeek V4.1 Flash Fast (abliterated)", "limit": { "context": 1048576, "output": 128000 } }, "deepseek-v4.1-flash-fast": { "name": "DeepSeek V4.1 Flash Fast", "limit": { "context": 1048576, "output": 128000 } }, "glm-5.3-abliterated": { "name": "GLM 5.3 (abliterated)", "limit": { "context": 1048576, "output": 128000 } }, "glm-5.3-flash-abliterated": { "name": "GLM 5.3 Flash (abliterated)", "limit": { "context": 1048576, "output": 128000 } }, "kimi-k3.1-pro-abliterated": { "name": "Kimi K3.1 Pro (abliterated)", "limit": { "context": 1048576, "output": 128000 } } } } } } ``` Replace `apiKey` with your key; keep the file out of version control. 3. ### Check it works Pick a model from the Aerless AI provider and ask something. A reply means you are connected. Or from a shell, key in `AERLESS_API_KEY`: request ```bash curl https://api.aerless.ai/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](https://aerless.ai/docs/errors/#invalid_api_key)**: Check the key and the header format (Authorization: Bearer ). Create a new key in the dashboard if needed. - **[402 insufficient_balance](https://aerless.ai/docs/errors/#insufficient_balance)**: Top up, or lower max_tokens so the hold is smaller. - **[404 not_found](https://aerless.ai/docs/errors/#not_found)**: Check the base URL ends in /v1 and the path is one of the documented endpoints. - **[400 invalid_request](https://aerless.ai/docs/errors/#invalid_request)**: Fix the request. The message says what is wrong and param names the field. Do not retry unchanged. --- Source: https://aerless.ai/docs/tools/cline/ # Cline Connect Aerless AI from Cline's settings screen. No file to edit. Follows the [Cline docs](https://github.com/cline/cline/blob/main/docs/provider-config/openai-compatible.mdx). 1. ### Get a key Create one in the [dashboard](https://app.aerless.ai) and top up. The [quick start](https://aerless.ai/docs/quickstart/) shows how. 2. ### Choose the provider In Cline’s settings choose API Provider **OpenAI Compatible**, then: - **Base URL**: `https://api.aerless.ai/v1` - **API key**: `AERLESS_...` 3. ### Add a model Copy a model id and its values. Leave image support off. - `deepseek-v4.1-flash-abliterated` - **Context**: 1,000,000 - **Max output**: 128,000 - **Input per 1M**: $0.24 - **Output per 1M**: $0.90 - **Cache read per 1M**: $0.038 - `deepseek-v4.1-flash-abliterated-fast` - **Context**: 1,048,576 - **Max output**: 128,000 - **Input per 1M**: $0.24 - **Output per 1M**: $0.90 - **Cache read per 1M**: $0.05 - `deepseek-v4.1-flash-fast` - **Context**: 1,048,576 - **Max output**: 128,000 - **Input per 1M**: $0.02 - **Output per 1M**: $0.16 - **Cache read per 1M**: $0.004 - `glm-5.3-abliterated` - **Context**: 1,048,576 - **Max output**: 128,000 - **Input per 1M**: $2.00 - **Output per 1M**: $4.00 - **Cache read per 1M**: $0.30 - `glm-5.3-flash-abliterated` - **Context**: 1,048,576 - **Max output**: 128,000 - **Input per 1M**: $0.24 - **Output per 1M**: $1.00 - **Cache read per 1M**: $0.05 - `kimi-k3.1-pro-abliterated` - **Context**: 1,048,576 - **Max output**: 128,000 - **Input per 1M**: $3.00 - **Output per 1M**: $6.00 - **Cache read per 1M**: $0.30 4. ### Check it works Ask Cline something short. A reply means you are connected. Or from a shell, key in `AERLESS_API_KEY`: request ```bash curl https://api.aerless.ai/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](https://aerless.ai/docs/errors/#invalid_api_key)**: Check the key and the header format (Authorization: Bearer ). Create a new key in the dashboard if needed. - **[402 insufficient_balance](https://aerless.ai/docs/errors/#insufficient_balance)**: Top up, or lower max_tokens so the hold is smaller. - **[404 not_found](https://aerless.ai/docs/errors/#not_found)**: Check the base URL ends in /v1 and the path is one of the documented endpoints. - **[400 invalid_request](https://aerless.ai/docs/errors/#invalid_request)**: Fix the request. The message says what is wrong and param names the field. Do not retry unchanged. --- Source: https://aerless.ai/docs/tools/roo-code/ # Roo Code Connect Aerless AI from Roo Code's settings screen. No file to edit. Follows the [Roo Code docs](https://docs.roocode.com/providers/openai-compatible). Roo Code’s repository was archived in May 2026; OpenAI Compatible still works. 1. ### Get a key Create one in the [dashboard](https://app.aerless.ai) and top up. The [quick start](https://aerless.ai/docs/quickstart/) shows how. 2. ### Choose the provider In Roo Code’s settings choose API Provider **OpenAI Compatible**, then: - **Base URL**: `https://api.aerless.ai/v1` - **API key**: `AERLESS_...` 3. ### Add a model Copy a model id and its values. Leave image support off. - `deepseek-v4.1-flash-abliterated` - **Context**: 1,000,000 - **Max output**: 128,000 - **Input per 1M**: $0.24 - **Output per 1M**: $0.90 - **Cache read per 1M**: $0.038 - `deepseek-v4.1-flash-abliterated-fast` - **Context**: 1,048,576 - **Max output**: 128,000 - **Input per 1M**: $0.24 - **Output per 1M**: $0.90 - **Cache read per 1M**: $0.05 - `deepseek-v4.1-flash-fast` - **Context**: 1,048,576 - **Max output**: 128,000 - **Input per 1M**: $0.02 - **Output per 1M**: $0.16 - **Cache read per 1M**: $0.004 - `glm-5.3-abliterated` - **Context**: 1,048,576 - **Max output**: 128,000 - **Input per 1M**: $2.00 - **Output per 1M**: $4.00 - **Cache read per 1M**: $0.30 - `glm-5.3-flash-abliterated` - **Context**: 1,048,576 - **Max output**: 128,000 - **Input per 1M**: $0.24 - **Output per 1M**: $1.00 - **Cache read per 1M**: $0.05 - `kimi-k3.1-pro-abliterated` - **Context**: 1,048,576 - **Max output**: 128,000 - **Input per 1M**: $3.00 - **Output per 1M**: $6.00 - **Cache read per 1M**: $0.30 4. ### Check it works Ask Roo Code something short. A reply means you are connected. Or from a shell, key in `AERLESS_API_KEY`: request ```bash curl https://api.aerless.ai/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](https://aerless.ai/docs/errors/#invalid_api_key)**: Check the key and the header format (Authorization: Bearer ). Create a new key in the dashboard if needed. - **[402 insufficient_balance](https://aerless.ai/docs/errors/#insufficient_balance)**: Top up, or lower max_tokens so the hold is smaller. - **[404 not_found](https://aerless.ai/docs/errors/#not_found)**: Check the base URL ends in /v1 and the path is one of the documented endpoints. - **[400 invalid_request](https://aerless.ai/docs/errors/#invalid_request)**: Fix the request. The message says what is wrong and param names the field. Do not retry unchanged. --- Source: https://aerless.ai/docs/tools/litellm/ # LiteLLM Route to Aerless AI through LiteLLM's OpenAI-compatible provider. Follows the [LiteLLM docs](https://docs.litellm.ai/docs/providers/openai_compatible). 1. ### Get a key Create one in the [dashboard](https://app.aerless.ai) and top up. The [quick start](https://aerless.ai/docs/quickstart/) shows how. 2. ### Set the key bash ```bash export AERLESS_API_KEY="AERLESS_..." ``` 3. ### Copy the file config.yaml ```yaml model_list: - model_name: deepseek-v4.1-flash-abliterated litellm_params: model: openai/deepseek-v4.1-flash-abliterated api_base: https://api.aerless.ai/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.ai/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.ai/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.ai/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.ai/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.ai/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, key in `AERLESS_API_KEY`: request ```bash curl https://api.aerless.ai/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](https://aerless.ai/docs/errors/#invalid_api_key)**: Check the key and the header format (Authorization: Bearer ). Create a new key in the dashboard if needed. - **[402 insufficient_balance](https://aerless.ai/docs/errors/#insufficient_balance)**: Top up, or lower max_tokens so the hold is smaller. - **[404 not_found](https://aerless.ai/docs/errors/#not_found)**: Check the base URL ends in /v1 and the path is one of the documented endpoints. - **[400 invalid_request](https://aerless.ai/docs/errors/#invalid_request)**: Fix the request. The message says what is wrong and param names the field. Do not retry unchanged. --- Source: https://aerless.ai/code/ # The coding agent that comes loaded. Aerless Code is opencode with pictures, abliterated models, and browser and screen tools, all set up on first run. install ```bash curl -fsSL https://aerless.ai/install | sh ``` Then, in your project: ``` aerless ``` [Create an account](https://app.aerless.ai/signup) [Source on GitHub](https://github.com/aerless-ai/aerless-code) ## What you get. ### Pictures, right in the chat. Ask for a hero or an icon; the file lands in your project. In testing ### A picture studio, and the model you choose. `/imgengine` opens the studio in your browser. `aerless models` sets your default picture model. In testing ### Abliterated models, set up on first run. Run `aerless` in a project: it opens with this API’s models. No key: free on [DeepSeek V4.1 Flash Fast](https://aerless.ai/models/deepseek-v4.1-flash-fast/), the standard build. ### Your browser and your screen, from the terminal. Browser and screenshots in its own profile, plus mouse and keyboard. Screen control, and the browser on Windows and Linux, in testing ### A web UI, and your other devices. `/webui` or `aerless webui` opens it in your browser by one-time link. Other devices: `aerless-code pair` shows a QR code for your network address; `n` turns network access on. In testing ### Asks before it runs a command. Shell commands ask first, except ls, git status and the like. No update check, no opencode.ai fetch. ## What Aerless Code adds to opencode. Fork of opencode 2.4.1, MIT ([source](https://github.com/anomalyco/opencode)). We are not affiliated with the opencode project. | Topic | Aerless Code | opencode | opencode source | | --- | --- | --- | --- | | Pictures and models | | | | | Make pictures | In chat, in a studio, with a default model you pickIn testing | Experimental; needs a provider with an image model | [opencode.ai/docs/tools](https://opencode.ai/docs/tools/), read 27 Nov 2026 | | Abliterated models | Set up on first run, with your key | None in its Console model list | [opencode.ai/docs/zen](https://opencode.ai/docs/zen/), read 27 Nov 2026 | | Browser and screen | | | | | Browser | From the terminal: Chrome, Brave or Edge, own profileIn testing on Windows and Linux | Browser attached by the desktop app | [opencode.ai/docs/tools](https://opencode.ai/docs/tools/), read 27 Nov 2026 | | Screen, mouse and keyboard | Built inIn testing | Not in its tools list | [opencode.ai/docs/tools](https://opencode.ai/docs/tools/), read 27 Nov 2026 | | Defaults | | | | | Shell commands | Asks first, except read-only ones (ls, git status) | Allowed by default | [opencode.ai/docs/permissions](https://opencode.ai/docs/permissions/), read 27 Nov 2026 | | Update checks | No update check, no opencode.ai catalogue fetch | Notifies before updating (default) | [opencode.ai/docs/config](https://opencode.ai/docs/config/), read 27 Nov 2026 | ## Install on your system. install macOS, Linux ```bash curl -fsSL https://aerless.ai/install | sh ``` Windows ```powershell irm https://aerless.ai/install.ps1 | iex ``` Then, in your project: ``` aerless ``` [All commands](https://aerless.ai/cli/) Free on [DeepSeek V4.1 Flash Fast](https://aerless.ai/models/deepseek-v4.1-flash-fast/) (standard build, daily limit). A key adds abliterated models and pictures. Windows in testing. Try it in a project folder today. [Create an account](https://app.aerless.ai/signup) [Source on GitHub](https://github.com/aerless-ai/aerless-code) --- Source: https://aerless.ai/cli/ # Aerless CLI: the API in your terminal. Aerless AI is an API for open-weight AI models with their refusals removed, OpenAI-compatible, prepaid and billed per token. Aerless CLI brings it to your terminal: Aerless Code, pictures, a web UI, and setup for the coding tools you already use. [Create an account](https://app.aerless.ai/signup) [Source on GitHub](https://github.com/aerless-ai/aerless-code) ## Install it in one line. macOS and Linux on x64 or Arm, and 64-bit Windows. Windows in testing install macOS, Linux ```bash curl -fsSL https://aerless.ai/install | sh ``` Windows ```powershell irm https://aerless.ai/install.ps1 | iex ``` Then, in your project: ``` aerless ``` ### Or download it yourself. Both files in one PATH folder, named `aerless` and `aerless-code`. Checksums: [SHA256SUMS](https://github.com/aerless-ai/aerless-code/releases/latest/download/SHA256SUMS). | System | Aerless CLI | Aerless Code | | --- | --- | --- | | macOS, Apple silicon | [aerless-darwin-arm64](https://github.com/aerless-ai/aerless-code/releases/latest/download/aerless-darwin-arm64) | [aerless-code-darwin-arm64](https://github.com/aerless-ai/aerless-code/releases/latest/download/aerless-code-darwin-arm64) | | macOS, Intel | [aerless-darwin-x64](https://github.com/aerless-ai/aerless-code/releases/latest/download/aerless-darwin-x64) | [aerless-code-darwin-x64](https://github.com/aerless-ai/aerless-code/releases/latest/download/aerless-code-darwin-x64) | | Linux, x64 | [aerless-linux-x64](https://github.com/aerless-ai/aerless-code/releases/latest/download/aerless-linux-x64) | [aerless-code-linux-x64](https://github.com/aerless-ai/aerless-code/releases/latest/download/aerless-code-linux-x64) | | Linux, Arm | [aerless-linux-arm64](https://github.com/aerless-ai/aerless-code/releases/latest/download/aerless-linux-arm64) | [aerless-code-linux-arm64](https://github.com/aerless-ai/aerless-code/releases/latest/download/aerless-code-linux-arm64) | | Windows, x64 | [aerless-windows-x64.exe](https://github.com/aerless-ai/aerless-code/releases/latest/download/aerless-windows-x64.exe) | [aerless-code-windows-x64-baseline.exe](https://github.com/aerless-ai/aerless-code/releases/latest/download/aerless-code-windows-x64-baseline.exe) | ### Or with Homebrew or Scoop. - `brew install aerless-ai/tap/aerless` - `scoop bucket add aerless https://github.com/aerless-ai/scoop-aerless; scoop install aerless` ## Your first run. 1. ### Install Run it, then open a new terminal. 2. ### Start in a project ``` cd my-project aerless ``` Opens Aerless Code. No key: free on [DeepSeek V4.1 Flash Fast](https://aerless.ai/models/deepseek-v4.1-flash-fast/) (standard build, daily limit). 3. ### Add your key ``` aerless login --key YOUR_KEY ``` [Create a key](https://app.aerless.ai/keys) first; it adds abliterated models and pictures. ## Every command. | Command | What it does | Example | | --- | --- | --- | | Start | | | | `aerless` | Start the agent here. Free without a key. | | | `aerless code [folder]` | Same, with the agent's options. | `aerless code run "add a dark mode toggle"` | | `aerless webui` | Open the agent's web UI. In testing | | | Pictures | | | | `aerless img "prompt"` | Make a picture, save it in your project. In testing | `aerless img "a dark hero, one red line" -o hero.png --size 1920x1080` | | `aerless icon logo.png` | Make favicons and app icons from a picture. | `aerless icon logo.png -o public` | | `aerless studio` | Open the picture studio. In testing | | | `aerless saver [on\|off]` | Cheap drafts first; repeat requests reused. In the next release | `aerless saver on` | | `aerless models` | List picture models and prices; set a default. | `aerless models --aspect wide` | | Coding tools | | | | `aerless setup` | Add /imgengine to the coding tools it finds. | | | `aerless mcp` | Serve picture tools to AI apps over MCP. In testing | `aerless mcp --config` | | Account | | | | `aerless login` | Save the key from your account. | `aerless login --key YOUR_KEY` | | Maintenance | | | | `aerless doctor` | Check the setup. | | | `aerless uninstall` | Remove the CLI, agent, keys and agent chat history. | | Open a terminal in your project and type aerless. [Create an account](https://app.aerless.ai/signup) [Source on GitHub](https://github.com/aerless-ai/aerless-code) [What the coding agent adds](https://aerless.ai/code/) --- Source: https://aerless.ai/agents/ # A flat month for your agents. Run Hermes, OpenClaw or any OpenAI-compatible agent for $10 a month. One model name, uncensored when the job needs it. [Start for $10](https://app.aerless.ai/plans) [How to set it up](https://aerless.ai/agents/#setup) 1. [Hermes Agent](https://aerless.ai/agents/#setup) 2. [OpenClaw](https://aerless.ai/agents/#setup) 3. [opencode](https://aerless.ai/agents/#setup) 4. [Cline](https://aerless.ai/agents/#setup) 5. [Roo Code](https://aerless.ai/agents/#setup) 6. [Kilo Code](https://aerless.ai/agents/#setup) 7. [Goose](https://aerless.ai/agents/#setup) 8. [n8n](https://aerless.ai/agents/#setup) 9. [OpenHands](https://aerless.ai/agents/#setup) Marks belong to their makers; Aerless AI is not affiliated. ## Why it works - **One model name.** Point your agent at aerless/agent. - **Refusals get a second run.** A refusal reruns uncensored. - **Tool calls arrive as tool calls.** Text tool calls become real ones. - **Stuck loops get paused.** 12 repeats in 10 minutes pauses it; Telegram alert. - **A new allowance every day.** Refilled at 00:00 UTC. - **No hard stop.** Your balance pays past it; alerts at 80% and 100%. 1. Your agent 2. `aerless/agent` 3. Everyday model refused 4. Uncensored model 5. Answer, with real tool calls ## Compared | Plan | Price | Allowance resets | For agents | | --- | --- | --- | --- | | Aerless AI Agent AI | $10 / 30 days | Every day at 00:00 UTC | Uncensored; bots and cron allowed | | OpenCode Go | $10 / month | Five-hour, weekly, monthly | Other agents: "typical coding-agent traffic" only | | Z.ai GLM Coding Lite | $18 / month | Five-hour and weekly limits | Coding and office tools | | Tencent Token Plan Lite | $7 / month | Monthly, unused lost | Scripts and backends prohibited | From opencode.ai/go, docs.z.ai, tencentcloud.com. Marks belong to their makers. ## Plans ### Aerless AI Agent AI **$10** / 30 days - About 15M everyday tokens a day - About 2M uncensored - Then your balance pays [Get Agent AI](https://app.aerless.ai/plans) ### Aerless AI Agent AI Max **$49** / 30 days - Your own hosted agent, 24/7 - About 45M everyday a day - About 10M uncensored - Agent AI Pro: about 0.5M a day Coming soon ## A 748B model behind one name 1. Aerless AI Agent AI 748B 2. Mistral Large 3 675B 3. DeepSeek-R1 671B 4. Llama 4 Maverick 400B 5. gpt-oss-120b 117B Total parameters, November 2026. ## Set it up ``` base URL https://api.aerless.ai/v1 API key your Aerless AI key model aerless/agent ``` ## Questions **What does "tokens a day" assume?** About 30k tokens in per call, mostly cached. **Is it for coding?** Light coding. Nonstop coding costs less pay-as-you-go. **How do I pay?** Top up with USDT or USDC, then buy it; buying again adds 30 days. --- Source: https://aerless.ai/blog/ # Blog Tests, measurements and how-tos from Aerless AI, each dated and sourced. 1. 29 November 2026 · The Aerless AI team · 2 min read ## [What is an abliterated model?](https://aerless.ai/blog/what-is-an-abliterated-model/) An abliterated model is an open-weight language model whose refusal behaviour has been removed by editing its weights. How it works, what it changes, and what it does not. [RSS feed](https://aerless.ai/blog/rss.xml) --- Source: https://aerless.ai/blog/what-is-an-abliterated-model/ [Blog](https://aerless.ai/blog/) # What is an abliterated model? 29 November 2026 · The Aerless AI team · 2 min read An abliterated model is an open-weight language model whose refusal behaviour has been removed by editing its weights directly. It is not a jailbreak prompt and not a retrained model: the same weights, with the part that makes the model decline taken out. It knows what the original knew and answers requests the original would turn down. ## Where refusals come from Chat models are trained in two stages. Pre-training on a large body of text gives the model its knowledge. Safety and instruction training then teaches it how to behave, including when to say "I can't help with that". The knowledge is still in the weights after the second stage; the model has learned to withhold it for some requests. ## The finding behind abliteration In 2024, researchers showed that in many open chat models this refusal behaviour is carried largely by a single direction in the model's internal activations ([Arditi et al., *Refusal in Language Models Is Mediated by a Single Direction*](https://arxiv.org/abs/2406.11717)). When a prompt is one the model will refuse, its activations move along that direction; remove the direction, and the model stops refusing. Add it, and the model refuses harmless requests. ## How a model is abliterated 1. **Collect two sets of prompts:** ones the model refuses and ones it answers. 2. **Record the model's activations** on both sets, layer by layer. 3. **Find the refusal direction:** the difference between the average activation on refused prompts and on answered ones. 4. **Edit the weights** that write into the model's internal state so they can no longer produce that direction (an orthogonal projection). Nothing is retrained. The result is a model file of the same size and architecture that loads and runs like the original. ## What changes, and what does not | | Original model | Abliterated model | | --- | --- | --- | | Knowledge and languages | Unchanged | Unchanged | | Context length, tool calling, reasoning | Unchanged | Unchanged | | Requests it declines | Many | Few | | Can be wrong | Yes | Yes | The paper reports small changes on standard benchmarks. In practice an abliterated model can be slightly less sharp on some tasks than the original, so test it on your own prompts before you switch. Abliteration also adds no knowledge: a model that did not know something before still does not. ## Abliterated, fine-tuned, or jailbroken - **Abliterated:** the refusal direction is removed from the weights. Works on every prompt, with no special wording. - **Fine-tuned to comply:** the model is trained further on examples that answer. It costs training time and can change the model's style and quality more. - **Jailbreak prompts:** the weights are untouched and the prompt tries to talk the model round. Fragile: it breaks with model updates and wastes context. ## Abliterated models on Aerless AI Aerless AI serves abliterated builds of open-weight models through an OpenAI-compatible API; their model IDs end in `-abliterated`, and any model that is not uncensored is marked "Censored" on the [models page](https://aerless.ai/models/). Uncensored. One hard rule: nothing sexual involving minors. ```bash curl https://api.aerless.ai/v1/chat/completions \ -H "Authorization: Bearer $YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "deepseek-v4.1-flash-abliterated", "messages": [{"role": "user", "content": "Explain abliteration in two sentences."}]}' ``` The [quick start](https://aerless.ai/docs/quickstart/) has the same request in Python and Node. [All posts →](https://aerless.ai/blog/)