Quickstart

Quickstart

Get from zero to your first generation in a few minutes.

Create an account

Sign up at crustoff.app/signup. New accounts start with free credits to try it out.

Create an API key

In the dashboard, create an API key. It looks like sk-crustoff-… and is shown once — copy it somewhere safe. Keys are machine credentials; keep them server-side, never in client code.

Add credits (optional)

Free starter credits are enough to experiment. When you’re ready, top up from the dashboard via Stripe ($5 / $20 / $50). Billing is prepaid — you can never be charged more than your balance.

Make a request

Point any OpenAI SDK at the Crustoff base URL.

from openai import OpenAI
 
client = OpenAI(
    api_key="sk-crustoff-...",
    base_url="https://api.crustoff.app/v1",
)
 
resp = client.chat.completions.create(
    model="qwen2.5-7b-instruct",
    messages=[{"role": "user", "content": "Write a haiku about GPUs."}],
)
print(resp.choices[0].message.content)

Generate an image

img = client.images.generate(
    model="flux-schnell",
    prompt="an astronaut riding a horse on mars, cinematic",
    size="1024x1024",
)
 
# Images come back as base64 — decode and save.
import base64
with open("out.png", "wb") as f:
    f.write(base64.b64decode(img.data[0].b64_json))

Check your balance

curl https://api.crustoff.app/v1/credits \
  -H "Authorization: Bearer $CRUSTOFF_API_KEY"
# {"user_id": "...", "credits": 994271, "usd": 0.994271}

Credits are micro-dollars: 1,000,000 credits = $1.00.