Inference

Models

List the models available to your project, their capabilities, limits and prices.

Models are addressed by a stable gateway ID such as claude-sonnet or gpt-5-mini. The gateway maps each ID to the provider's current upstream model, so your code does not change when the provider's model name does.

List models

GET/v1/models

Returns the models that can serve requests on this deployment right now. Any valid API key can call it; no scope is required. The endpoint is not rate limited.

Shell
curl https://www.hushcompute.xyz/v1/models \
  -H "Authorization: Bearer $HUSH_API_KEY"
200 OK
{
  "object": "list",
  "data": [
    {
      "id": "claude-sonnet",
      "object": "model",
      "created": 1781049600,
      "owned_by": "anthropic",
      "display_name": "Claude Sonnet 5",
      "status": "live",
      "privacy_tier": "standard",
      "capabilities": ["chat", "streaming", "tools", "reasoning"],
      "context_window": 1000000,
      "max_output_tokens": 32000,
      "pricing": {
        "unit": "micro_usd_per_million_tokens",
        "input": "2200000",
        "output": "11000000"
      }
    }
  ]
}

Model object

FieldTypeDescription
idstringThe model ID to pass as model in requests.
objectstringAlways model.
createdintegerUnix time the model was added to the catalog.
owned_bystringUpstream provider: openai, anthropic, google, openrouter, or dev.
display_namestringHuman-readable name.
statusstringlive, beta or preview. See Statuses.
privacy_tierstringRouting privacy tier. Only standard is currently available.
capabilitiesstring[]Features the model supports. See Capabilities.
context_windowintegerMaximum context length in tokens, as published by the provider.
max_output_tokensintegerGateway cap on output tokens per request. Larger max_completion_tokens values are reduced to this.
pricingobjectunit is micro_usd_per_million_tokens; input and output are integer µUSD prices as decimal strings.

Catalog

The platform catalog defines the models below. Whether each one is served depends on the providers configured on your deployment; GET /v1/models is the authoritative list.

Model IDProviderStatusCapabilitiesContextMax outputSampling
claude-opusAnthropicLivechatstreamingtoolsreasoning1,000,00032,000Ignored
claude-sonnetAnthropicLivechatstreamingtoolsreasoning1,000,00032,000Ignored
claude-haikuAnthropicLivechatstreamingtools200,00016,000Yes
gpt-5OpenAILivechatstreamingtoolsreasoning400,00032,000Ignored
gpt-5-miniOpenAILivechatstreamingtoolsreasoning400,00032,000Ignored
gemini-2.5-proGoogleBetachatstreamingreasoning200,00032,000Yes
gemini-2.5-flashGoogleBetachatstreaming1,000,00032,000Yes
llama-3.3-70bOpenRouterPreviewchatstreamingtools128,00016,000Yes

Sampling indicates whether temperature and top_p are forwarded. For models marked Ignored the parameters are accepted and silently dropped. When max_completion_tokens is omitted, requests default to 4,096 output tokens or the model's cap, whichever is lower.

Capabilities

CapabilityMeaning
chatAccepts Chat Completions and Responses requests.
streamingSupports stream: true.
toolsAccepts function tools. Sending tools to a model without this capability returns 400 invalid_request.
reasoningThe upstream model performs internal reasoning. Reasoning content is not returned.
jsonThe upstream model supports structured output. The gateway does not yet accept response_format; the field is ignored.
visionReserved. Image inputs are not yet supported by the gateway.

Statuses

  • Live Production model with list pricing verified by the operator.
  • Beta Available, but behaviour or pricing may change.
  • Preview Early access through a routing provider; expect changes.

Models whose provider is not configured are omitted from the list. dev-echo, a deterministic model for local testing, appears only on non-production deployments with the development provider enabled.

Pricing

Prices are integer µUSD per one million tokens and include the platform margin configured by the operator. Read them from GET /v1/models rather than hardcoding them. The cost of a request is computed separately for input and output and rounded up to the next µUSD:

Cost formula
cost = ceil(input_tokens  × input_price  / 1,000,000)
     + ceil(output_tokens × output_price / 1,000,000)

example: 480 input tokens at 1,100,000 µUSD/M  →    528 µUSD
         310 output tokens at 5,500,000 µUSD/M →  1,705 µUSD
         total                                  →  2,233 µUSD ($0.002233)

The example response above shows illustrative prices. Reservations, settlement and budgets are described in Usage.

Availability

  • An unknown model ID returns model_not_found (HTTP 404).
  • A catalog model that is unavailable, or whose provider is not configured on the deployment, returns service_unavailable (HTTP 503).
  • A model excluded by the project policy or the key's allowlist returns model_not_allowed (HTTP 403).