Hemmingway Pricing Log in Try free

Blog · Guide

OpenAI-compatible writing API

Connect any OpenAI SDK app to https://hemmingway.io/v1 with model hemmingway-1.5: 262k context, $0.72/1M input tokens, prepaid credit from $5, zero training.

By the Hemmingway team ·

Use Hemmingway-1.5 through the API

OpenAI-compatible endpoint at https://hemmingway.io/v1 with model hemmingway-1.5 · 262,144 context · $0.72 input, $0.072 cached input, $2.70 output per 1M tokens · prepaid credit from $5.

Get an API keyRead the docs

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

SettingValue
Base URLhttps://hemmingway.io/v1
Modelshemmingway-1.5 (27B, newest), hemmingway-1 (27B)
Context window262,144 tokens
Input price$0.72 per million tokens ($0.072 cached input)
Output price$2.70 per million tokens
BillingPrepaid API credit from $5 on the API platform (chat plans are separate, or keys can draw on an active plan allowance)
PrivacyNothing 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

  1. 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.
  2. 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).
  3. 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.

Read next

  • Choosing the best LLM API for writingWhat to look for in an LLM API for writing features: human-sounding output, no commentary around the message, context, OpenAI compatibility and open weights.
  • OpenAI-compatible APIAn OpenAI-compatible API takes requests in OpenAI's format, so your code needs a new base URL, key and model name. What stays the same and what may differ.
  • SillyTavern APIWhat an API connection is in SillyTavern, the kinds you can use, where the API key goes, and how to add a custom OpenAI-compatible endpoint, step by step.
  • How to run Hemmingway-1.5 locallyRun Hemmingway-1.5 on your own GPUs: the vLLM and Transformers commands from its model card, the settings it was tested with, and the memory a 27B model needs.