Language and code generation for your applications with hosted models (DeepSeek, GLM and others, served via Doubleword through Orrery Relay). Use familiar chat completions, streaming and tool-call formats.
Model and route access depends on your account. Query GET /v1/models for the catalogue. A route name is not a guarantee of answer quality. Arbiter: available on request. Contact kt@ephemerent.com.
QUICKSTART
Your first request.
Choose a task. Copy an example. Keep your API key on the server.
BASE URLhttps://api.ephemerent.com/v1Authorization: Bearer <key>
POST/chat/completionsGenerate a response
Send model, messages and max_tokens (up to 8,192; the default). Set stream: true for incremental output. Other OpenAI fields outside the supported set, such as max_completion_tokens, seed and n, are ignored or rejected. Tools use the OpenAI function-calling schema; supported behavior depends on the serving model.
Returns choices and token usage. Inspect x-orrery-provider, x-orrery-route-alias and, when present, x-orrery-fallback-product. Optional Idempotency-Key supports replaying non-streaming requests.
POST/sentinel/decideChoose an action
Required: state and question. Add options, a map of 2–16 names to descriptions, for multiple choice. Without options, the request is yes/no.
Named choices return answer, confidence and per-option p. Yes/no returns answer and p_yes. Scores compare the supplied options; verify important decisions against evidence. Sentinel is not a chat model.
POST/sentinel/rankRank candidates
Send context and 2–32 candidates, with an optional question. The response contains ranked pairs of candidate and score, best first.
GET/modelsDiscover models and routes
List the catalogue using your API key. Use chat models with chat completions and sentinel-1 with its dedicated endpoints.
GET/usageCheck your credits
Inspect monthly pools, used and remaining credits, and your purchased balance. The console provides the same account view.
GET/sentinel/statusCheck Sentinel availability
Check availability with your API key. If a decision endpoint returns 503, respect Retry-After and use your application's fallback behavior.
Hosted models are metered at the serving model's provider list rate, drawn from your plan's monthly pool, then from purchased credits. Fallback answers are metered at the fallback model's rate. Review your balance, current plan and credit packs in the console before sending paid requests.
Review your account's zero data retention setting for generation. Sentinel request and response bodies are not retained for training; usage metadata is recorded.