Claude Opus 4.8

Review Claude Opus 4.8 model IDs, endpoint, request parameters, and response examples for HopsAPI.

Claude Opus 4.8 is a chat model in the HopsAPI catalog. This page documents only gateway-verified protocols, endpoints, and model IDs; context length, vision, tools, reasoning, and JSON capabilities depend on the current upstream and live response.

Model information

ItemValue
ProtocolAnthropic Messages
EndpointPOST /v1/messages
AvailabilityUse the current API key's GET /v1/models response
PricingUse the console pricing page and account coefficient

Model IDs

Model IDNotes
claude-opus-4-8Use this ID when returned by the current API key's model list

Do not assume that the model is enabled for your account from this page alone. Before calling it, query GET /v1/models and use the returned model ID, endpoint, and optional responses_endpoint exactly.

Core request parameters

ParameterRequiredDescription
modelYesUse an ID above that is returned by the model list
messagesYesMessage array in the protocol's native format
max_tokensYesLimits model output length
temperatureNoSampling parameter; accepted range depends on the current upstream
streamNoUse the protocol-specific streaming endpoint or field

Request example

curl https://hopsapi.com/v1/messages \
  -H "x-api-key: sk-YOUR_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "content-type: application/json" \
  -d '{"model":"claude-opus-4-8","max_tokens":512,
       "messages":[{"role":"user","content":"Introduce this model in one sentence."}]}'

Response example

This example shows the protocol shape only. Text, token counts, and additional fields such as id and model come from the live response.

{
  "type": "message",
  "role": "assistant",
  "content": [
    { "type": "text", "text": "This chat model is called through the Anthropic Messages protocol." }
  ],
  "stop_reason": "end_turn",
  "usage": { "input_tokens": 18, "output_tokens": 22 }
}

The gateway passes through native protocol responses and streaming events. See Anthropic format.

On this page

On this page