Interrupts bill fairly
Pressing Esc mid-answer aborts the upstream request. You are billed only for the tokens generated before the stop, not the full answer.
What is not supported
PDF document blocks, Anthropic server tools (their hosted web search and code execution), and extended thinking output are not available through Gondola. Regular client-side tools (file edits, shell commands, the full Claude Code toolset) work, including images in tool results on vision models.
Cap the price on unattended runs
Set ANTHROPIC_CUSTOM_HEADERS="x-gondola-max-factor: 0.6" (a value from 0 to 1) to refuse any request priced above that ceiling instead of silently paying more, useful for long agentic sessions with no one watching the meter. Omit it and a request with no cheaper capacity can fall through to Gondola's own backup key at Venice list price, flagged by an X-Gondola-House: true response header. For a hard dollar limit rather than a relative one, set ANTHROPIC_CUSTOM_HEADERS="x-gondola-max-charge-usd: 0.50" and any request whose estimated charge would exceed it is refused with a 402 (a billing_error on this surface) before anything is billed.
The endpoint also works with the Anthropic SDK directly:
import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic({
baseURL: "https://api.gondola-ai.com",
apiKey: "gnd_xxxx",
});
const msg = await client.messages.create({
model: "claude-sonnet-5",
max_tokens: 1024,
messages: [{ role: "user", content: "Hello from Gondola" }],
});
If a request fails with a billing error, top up at /wallet. Model not found means the id is not in the live catalog: check /v1/models and remember the small, fast model override.