VisionStableClaude Haiku

Claude Haiku 4.5

anthropic/claude-haiku-4.5

StreamingVision
Pricing
Input / 1M tokens
$0.60
Output / 1M tokens
$3.00
Example workload
$1.35 · 1M in + 250K out
Metered from your APIRaven balance. Normalized usage ships in every response.

Call it from any OpenAI SDK

Use the official SDK with a custom base URL. The example below is complete — swap the model id to hit a different model in the catalog.

curl https://api.apiraven.com/v1/chat/completions \
  -H "Authorization: Bearer $APIRAVEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "anthropic/claude-haiku-4.5",
    "messages": [
      { "role": "user", "content": [
    { "type": "text", "text": "Describe this chart in two bullet points." },
    {
      "type": "image_url",
      "image_url": {
        "url": "https://example.com/revenue-chart.png",
        "detail": "high"
      }
    }
  ] }
    ],
    "max_tokens": 512,
    "stream": false
  }'
Set stream: true for server-sent events with the same response shape.

Standardized parameters

Parameters behave the same on every backend. Values that cannot be honored are either mapped to the closest equivalent or safely dropped — never silently corrupted.

ParameterTypeDefaultRangeStatus
Core
messages

Same Chat Completions shape for every model.

array——Supported
System prompt

First message with role: system.

string——Supported
stream

SSE chunks are normalized to chat.completion.chunk.

booleanfalse—Supported
Sampling
temperaturenumber0.70 – 2Supported
top_pnumber10 – 1Supported
top_k

Normalized to the closest backend equivalent.

integer—0 – 100Supported
frequency_penaltynumber0-2 – 2Supported
presence_penaltynumber0-2 – 2Supported
Limits
max_tokens

Aliases like max_completion_tokens are collapsed into this field.

integermodel max1 – model maxSupported
stop

stop_sequences and stop_token_ids are translated to this field.

string | string[]——Supported
seed

Deterministic output where the backend supports it.

integerrandom—Supported
Tools & format
response_format

json_object and json_schema are supported.

objecttext—Supported
tools

Three upstream tool-call formats become one OpenAI shape.

array——Supported
tool_choicestring | objectauto—Supported
Reasoning
reasoning_effort

Applies to reasoning models; ignored by the rest.

enummediumlow | medium | highSupported
Vision
image content part

URL or base64, up to 10 images per request.

object——Supported
image detail

low downscales tokens, high tiles at full resolution.

enumautolow | high | autoSupported

Sending images

Images travel as an image_url content part — a public URL or a data: base64 URI. Set detail to control how many tokens each image costs: low downscales, high tiles at full resolution.

{
  "role": "user",
  "content": [
    { "type": "text", "text": "Describe this chart in two bullet points." },
    {
      "type": "image_url",
      "image_url": {
        "url": "https://example.com/revenue-chart.png",
        "detail": "high"
      }
    }
  ]
}

Using Claude Haiku 4.5 on APIRaven

Which provider actually runs my request?+

APIRaven routes each request across a pool of managed inference backends. The model id, request shape and response are identical no matter which backend serves it — you never manage provider accounts, keys or regions.

Is the API OpenAI-compatible?+

Yes. Point any OpenAI SDK at https://api.apiraven.com/v1 with your APIRaven key. Chat, vision, images, embeddings and audio all follow the OpenAI request and response shapes.

What happens when a backend degrades?+

Requests are retried and failed over automatically before the first token is returned. If a model is temporarily unavailable, the API returns one stable error envelope instead of a provider-specific failure.

How is usage billed?+

Per token for text, per image for generation and per minute for transcription — deducted from your APIRaven balance. Every response includes normalized usage so you can meter cost per request.

Ship with anthropic/claude-haiku-4.5

One base URL, one balance, every model. Point your OpenAI SDK at APIRaven and switch models with a single string.

Get your API key