HiAPI
OverviewModel MarketplaceAPI KeysUsage StatisticsCall LogsBillingReferralPlaygroundStorageChangelogContact UsSettings
Display unit
N
Powered by hiapi
Settings

Welcome

Contact Us

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

-

context window

Max output

-

output tokens

PlaygroundAPIPricingCapabilitiesOverview

Run settings

The Playground charges the signed-in account balance without requiring an extra API key. Server-side API calls still require a HiAPI API key.

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 documentation
Manage API keys
Use 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 and reasoning 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
Supported
Structured JSON
Not disclosed
Reasoning
Supported
Input modalities
text · image
Output modalities
text
Reasoning efforts
low · medium · high · max
Max output
-

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
-
Released
Not disclosed

How to Use claude-opus-4-8

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

  1. Step 1

    Validate online

    Test the system prompt, output length, and model-supported reasoning options 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.