Introduction

Crustoff API

Crustoff is an affordable, OpenAI-compatible API for open-weight generative models. We run the models ourselves on cheap GPUs and pass the savings on — you pay per token for text and per megapixel for images, prepaid, with no subscriptions.

  • OpenAI-compatible. Point any OpenAI SDK at our base URL and go — no rewrites.
  • Text and image, one API. Chat, completions and embeddings, plus /v1/images/generations for Stable Diffusion and FLUX.
  • Open models, fair prices. Transparent per-token and per-megapixel pricing. No lock-in.

Base URL

https://api.crustoff.app/v1

All endpoints below are relative to this base URL. Authenticate with an API key (sk-crustoff-…) from your dashboard.

Hello, Crustoff

from openai import OpenAI
 
client = OpenAI(
    api_key="sk-crustoff-...",
    base_url="https://api.crustoff.app/v1",
)
 
# Text
chat = client.chat.completions.create(
    model="qwen2.5-7b-instruct",
    messages=[{"role": "user", "content": "Say hello in one sentence."}],
)
print(chat.choices[0].message.content)
 
# Image
img = client.images.generate(
    model="sdxl",
    prompt="a red fox in the snow, golden hour",
    size="1024x1024",
)
print(img.data[0].b64_json[:32], "...")

Next steps