If your product generates emails, outreach messages, product descriptions, support replies, or long-form articles, switching to a specialized writing model should not require rewriting your client stack. Hemmingway exposes a drop-in OpenAI-compatible endpoint at https://hemmingway.io/v1 serving Hemmingway-1.5 (hemmingway-1.5) and Hemmingway-1 (hemmingway-1).
Two changes in your existing OpenAI client are enough: point baseURL at https://hemmingway.io/v1 and pass your Hemmingway API key.
Endpoint specification
| Setting | Value |
|---|---|
| Base URL | https://hemmingway.io/v1 |
| Models | hemmingway-1.5 (27B, newest), hemmingway-1 (27B) |
| Context window | 262,144 tokens |
| Input price | $0.72 per million tokens ($0.072 cached input) |
| Output price | $2.70 per million tokens |
| Billing | Prepaid API credit from $5 on the API platform (chat plans are separate, or keys can draw on an active plan allowance) |
| Privacy | Nothing you send and nothing the model writes is logged or used for training |
Quick start (Node.js & Python)
```js import OpenAI from "openai";
const client = new OpenAI({ apiKey: process.env.HEMMINGWAY_API_KEY, baseURL: "https://hemmingway.io/v1", });
const reply = await client.chat.completions.create({ model: "hemmingway-1.5", temperature: 1.0, messages: [{ role: "user", content: "Write a short, friendly check-in to a client after a quiet month." }], }); console.log(reply.choices[0].message.content); ```
```python from openai import OpenAI import os
client = OpenAI( api_key=os.environ["HEMMINGWAY_API_KEY"], base_url="https://hemmingway.io/v1", )
res = client.chat.completions.create( model="hemmingway-1.5", temperature=1.0, messages=[{"role": "user", "content": "Write a concise follow-up email asking for feedback on yesterday's proposal."}], ) print(res.choices[0].message.content) ```
Why teams swap a general chat endpoint for Hemmingway-1.5
- No wrapper commentary to strip. General assistants frequently wrap a three-line email in
"Here is a draft:", bullet options, and sign-off advice. Hemmingway returns the message itself. - Reads like human prose. Across 1,848 first-try texts in our evaluation, 90% passed GPTZero, Pangram, and four open detectors (vs 86% human baseline, and 13%–26% for competing frontier models on the same 80 everyday asks).
- Open weights safety net. Because Hemmingway-1.5 has open weights under CC BY-NC 4.0 on Hugging Face (
HemmingwayAI/Hemmingway-1.5), you are not permanently locked into one vendor if you later move workloads onto your own GPUs or negotiate a commercial hosting agreement.
Need adult fiction or SillyTavern roleplay over a custom OpenAI endpoint? Use Hemmingway Unlocked's API at https://wise.hemmingway.io/v1. Full endpoint details, streaming, thinking controls, and key management are in the API documentation and the platform dashboard.