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
| Item | Value |
|---|---|
| Protocol | Anthropic Messages |
| Endpoint | POST /v1/messages |
| Availability | Use the current API key's GET /v1/models response |
| Pricing | Use the console pricing page and account coefficient |
Model IDs
| Model ID | Notes |
|---|---|
claude-opus-4-8 | Use 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
| Parameter | Required | Description |
|---|---|---|
model | Yes | Use an ID above that is returned by the model list |
messages | Yes | Message array in the protocol's native format |
max_tokens | Yes | Limits model output length |
temperature | No | Sampling parameter; accepted range depends on the current upstream |
stream | No | Use 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.