Claude Opus 4.8 supports text generation, streaming responses, and tool calling through an OpenAI-compatible API. This route may include additional upstream context. For the cleanest native API experience, choose the Claude Opus 4.8 AWS model.

Provider: Anthropic

Category: text generation

Endpoint: /v1/chat/completions

Status: Available

Cost: --

Back to models
AnthropicText APIOnline

Claude Opus 4.8

Claude Opus 4.8 supports text generation, streaming responses, and tool calling through an OpenAI-compatible API. This route may include additional upstream context. For the cleanest native API experience, choose the Claude Opus 4.8 AWS model.

Use in your agent

API access

Endpoint

POST /v1/chat/completions

Base URL

https://api.hiapi.ai

OpenAI Chat Completions compatible. Use one HiAPI key across all available models.

Input price

4,588.235294 Credits

/ 1M tokens

Output price

22,941.176471 Credits

/ 1M tokens

Context

1M

context window

Max output

128K

output tokens

Try Claude Opus 4.8

Ask a question, upload images, or paste from clipboard. Then inspect the streamed answer, token usage, latency, and estimated cost.

Upload or paste up to 4 images, 10 MB each. Images are safety reviewed.

Claude Opus 4.8 API Quickstart

Call Claude Opus 4.8 with the OpenAI-compatible Chat Completions format. Copy a ready-to-use cURL, Python, or Node.js example below.

Code Example
API Endpoint:/v1/chat/completions
curl -X POST "https://api.hiapi.ai/v1/chat/completions" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "claude-opus-4-8",
  "stream": false,
  "messages": [
    {
      "role": "user",
      "content": "A cat walking on the beach at sunset"
    }
  ]
}'

Tip: Replace YOUR_API_KEY with your actual API key from the API Keys page.

Compatible with the OpenAI Chat Completions format. Set the base URL, API key, and model name to get started.

Image understanding example

Combine text and image_url in the Chat Completions content array. Use a public HTTPS image URL.

API Endpoint:/v1/chat/completions
curl -X POST "https://api.hiapi.ai/v1/chat/completions" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "claude-opus-4-8",
  "stream": false,
  "messages": [
    {
      "role": "user",
      "content": [
        {
          "type": "text",
          "text": "Describe the main subject, setting, and important visual details."
        },
        {
          "type": "image_url",
          "image_url": {
            "url": "https://static.hiapi.ai/example/subject-1.jpg"
          }
        }
      ]
    }
  ]
}'

Tip: Replace YOUR_API_KEY with your actual API key from the API Keys page.

Compatible with the OpenAI Chat Completions format. Set the base URL, API key, and model name to get started.

Claude Opus 4.8 full API documentationManage API keysUse the same HiAPI key across all available models.

Claude Opus 4.8 API Pricing

Billing follows the input, output, and cache token categories actually reported in usage. All prices below are shown per 1 million tokens.

Input tokens
4,588.235294 Credits/ 1M tokens

Prompts and context sent to the model

Output tokens
22,941.176471 Credits/ 1M tokens

Responses generated by the model

Cache read
458.823529 Credits/ 1M tokens
Cache write
5,735.294118 Credits/ 1M tokens
Cache write (1h)
9,176.470588 Credits/ 1M tokens

Claude Opus 4.8 Model Specifications

These specifications reflect the current public HiAPI text request contract. Undisclosed capabilities are not inferred by the page.

Streaming
Supported
Tool calling
Not supported
Structured JSON
Not supported
Reasoning
Not supported
Input modalities
text · image · file
Output modalities
text
Reasoning efforts
-
Max output
128K

About Claude Opus 4.8

Claude Opus 4.8 supports text generation, streaming responses, and tool calling through an OpenAI-compatible API. This route may include additional upstream context. For the cleanest native API experience, choose the Claude Opus 4.8 AWS model.

HiAPI exposes this model through /v1/chat/completions. Test prompts and parameters in the Playground, then use the same HiAPI API key in your server application.

Provider
Anthropic
Endpoint
/v1/chat/completions
Context window
1M
Released
Not disclosed

How to Use Claude Opus 4.8

The Playground and API share the same model ID, so three steps take a prompt into production.

  1. Step 1

    Validate online

    Test the system prompt, temperature, and output length in the Playground.

  2. Step 2

    Manage API keys

    View an existing key or create another after signing in; one key works across all available models.

  3. Step 3

    Integrate your server

    Send requests to /v1/chat/completions and track cost with the usage object.

Need to compare models and billing tiers?View live pricing for all models

Frequently asked questions

What is the Claude Opus 4.8 API?

The Claude Opus 4.8 API is a text generation endpoint available through one HiAPI API key.

How is the Claude Opus 4.8 API priced?

Claude Opus 4.8 API uses usage-based pricing. This page includes pricing, parameters, examples, and integration code.

How do I call the Claude Opus 4.8 API?

Send a POST request to /v1/chat/completions with the model name, messages, and one API key. This page includes cURL, Python, and Node.js examples.