MarketSupport← Back to app

Claude

Claude chat models are called through one simple endpoint: send a messages array plus the model slug and get the reply text back. This family exposes 13 models.

Overview

Send a standard messages array (user / assistant / system roles). Billing is deducted from your credit balance per response; the response includes your remaining balance.

Authentication

Create an API key at /api-keys, then send it as a Bearer token. Requests from the browser while logged in also work via the session cookie.

Authorization: Bearer <YOUR_API_KEY>

OpenAI-compatible Chat Completions

POST
POST https://api.lithovas.com/v1/chat/completions

Use this endpoint for developer integrations: point your OpenAI SDK base_url to https://api.lithovas.com/v1 and send a Lithovas API key.

Python SDK
Python
from openai import OpenAI

client = OpenAI(
    api_key="YOUR_LITHOVAS_API_KEY",
    base_url="https://api.lithovas.com/v1",
)

completion = client.chat.completions.create(
    model="chat/claude-haiku-5-5",
    messages=[
        {"role": "system", "content": "You are a helpful assistant."},
        {"role": "user", "content": "Hello!"},
    ],
)

print(completion.choices[0].message.content)
cURL
cURL
curl -X POST https://api.lithovas.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "chat/claude-haiku-5-5",
    "messages": [
      { "role": "system", "content": "You are a helpful assistant." },
      { "role": "user", "content": "Hello!" }
    ]
  }'

Chat Completions

POST
POST https://api.lithovas.com/api/chat

Body: { "model": "<slug>", "messages": [{ "role": "user", "content": "…" }] }

Response: { "text": "<assistant reply>", "credits": <billed>, "balance": <remaining> }

Models

ModelProvidermodel slug
Claude Haiku 5.5Anthropicchat/claude-haiku-5-5
Claude Sonnet 5.5Anthropicchat/claude-sonnet-5-5
Claude Opus 5.5Anthropicchat/claude-opus-5-5
Claude Opus 5Anthropicchat/claude-opus-5
Claude Opus 4.8Anthropicchat/claude-opus-4-8
Claude Opus 4.7Anthropicchat/claude-opus-4-7
Claude Opus 4.6Anthropicchat/claude-opus-4-6
Claude Opus 4.5Anthropicchat/claude-opus-4-5
Claude Sonnet 5Anthropicchat/claude-sonnet-5
Claude Sonnet 4.6Anthropicchat/claude-sonnet-4-6
Claude Sonnet 4.5Anthropicchat/claude-sonnet-4-5
Claude Fable 5Anthropicchat/claude-fable-5
Claude Haiku 4.5Anthropicchat/claude-haiku-4-5

Claude Haiku 5.5

POST/v1/chat/completions
cURL
curl -X POST https://api.lithovas.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "chat/claude-haiku-5-5",
    "messages": [{ "role": "user", "content": "Hello!" }]
  }'

Claude Sonnet 5.5

POST/v1/chat/completions
cURL
curl -X POST https://api.lithovas.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "chat/claude-sonnet-5-5",
    "messages": [{ "role": "user", "content": "Hello!" }]
  }'

Claude Opus 5.5

POST/v1/chat/completions
cURL
curl -X POST https://api.lithovas.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "chat/claude-opus-5-5",
    "messages": [{ "role": "user", "content": "Hello!" }]
  }'

Claude Opus 5

POST/v1/chat/completions
cURL
curl -X POST https://api.lithovas.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "chat/claude-opus-5",
    "messages": [{ "role": "user", "content": "Hello!" }]
  }'

Claude Opus 4.8

POST/v1/chat/completions
cURL
curl -X POST https://api.lithovas.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "chat/claude-opus-4-8",
    "messages": [{ "role": "user", "content": "Hello!" }]
  }'

Claude Opus 4.7

POST/v1/chat/completions
cURL
curl -X POST https://api.lithovas.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "chat/claude-opus-4-7",
    "messages": [{ "role": "user", "content": "Hello!" }]
  }'

Claude Opus 4.6

POST/v1/chat/completions
cURL
curl -X POST https://api.lithovas.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "chat/claude-opus-4-6",
    "messages": [{ "role": "user", "content": "Hello!" }]
  }'

Claude Opus 4.5

POST/v1/chat/completions
cURL
curl -X POST https://api.lithovas.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "chat/claude-opus-4-5",
    "messages": [{ "role": "user", "content": "Hello!" }]
  }'

Claude Sonnet 5

POST/v1/chat/completions
cURL
curl -X POST https://api.lithovas.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "chat/claude-sonnet-5",
    "messages": [{ "role": "user", "content": "Hello!" }]
  }'

Claude Sonnet 4.6

POST/v1/chat/completions
cURL
curl -X POST https://api.lithovas.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "chat/claude-sonnet-4-6",
    "messages": [{ "role": "user", "content": "Hello!" }]
  }'

Claude Sonnet 4.5

POST/v1/chat/completions
cURL
curl -X POST https://api.lithovas.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "chat/claude-sonnet-4-5",
    "messages": [{ "role": "user", "content": "Hello!" }]
  }'

Claude Fable 5

POST/v1/chat/completions
cURL
curl -X POST https://api.lithovas.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "chat/claude-fable-5",
    "messages": [{ "role": "user", "content": "Hello!" }]
  }'

Claude Haiku 4.5

POST/v1/chat/completions
cURL
curl -X POST https://api.lithovas.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "chat/claude-haiku-4-5",
    "messages": [{ "role": "user", "content": "Hello!" }]
  }'