Quickstart

Three steps of setup, then one request. Nothing here needs a sales call or a subscription.

Set up

  1. Create an account and add credit on the credit page. Credit is spent per request.
  2. Create an API key under API keys. The secret is shown once and never again.
  3. Pick a model id from the live catalog, which shows prices and how many providers are online right now.

Make a request

curl https://api.openmayhem.ai/v1/chat/completions \
  -H "Authorization: Bearer $OPENMAYHEM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "hauhaucs/qwen3.6-35b-a3b-uncensored",
    "messages": [{"role": "user", "content": "Hello"}],
    "max_tokens": 2000
  }'

The response is OpenAI-shaped, with two additions: the exact cost in USD inside usage, and the identity of the signed receipt the charge settled against.

response (abridged)

{
  "choices": [{ "message": { "role": "assistant", "content": "…" } }],
  "usage": {
    "prompt_tokens": 8, "completion_tokens": 62, "total_tokens": 70,
    "cost": "0.000023"
  },
  "openmayhem": {
    "request_id": "…",
    "receipt": { "session_id": "…", "sequence": 1, "final": true, "verified": true }
  }
}
Reasoning models spend tokens thinking before they answer. Give them a generous max_tokens (2000 or more) or the reply can arrive empty with finish_reason "length". You are still charged for the thinking the provider did.