Reference

API reference

Endpoints, headers and what's supported.

Base URL: https://api.gethephaestus.com. The API mirrors Anthropic's, so Anthropic's own Messages API docs are the full reference for request and response fields. This page covers what is specific to Hephaestus.

Endpoints

MethodPathNotes
POST/v1/messagesCreate a message. Streaming and non-streaming. Billed per token.
POST/v1/messages/count_tokensCount tokens before sending. Free.
GET/v1/modelsList the available model IDs.

Headers

HeaderRequired
x-api-keyone ofYour hph_live_ key.
Authorizationone ofBearer hph_live_…
anthropic-versionrecommendedDefaults to 2023-06-01.
anthropic-betaoptionalPassed through unchanged for beta features.
content-typeyesapplication/json

Not available

  • Batches API, Files API and Skills: not offered.
  • Fast mode (speed: "fast"): returns 400.
  • Code execution tool (code_execution_*): returns 400.

Everything else in the Messages API, including server-side web search and web fetch, works.

Response headers

request-id is passed through. Quote it if you contact support about a specific request.

Errors

Errors use Anthropic's format so SDKs parse them natively. See Errors.