Claude API / Documentation

OpenAI-compatible quickstart

An illustrative Claude integration in a familiar SDK. The endpoint below is a design example, not a functioning inference API.

Point your SDK

A compatible gateway typically uses a base URL and server-side API key. Never put real keys in browser bundles, source control, or public examples.

import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://claudeapi.lat/v1",
  apiKey: "YOUR_FUTURE_API_KEY",
});

const response = await client.chat.completions.create({
  model: "anthropic/claude-sonnet-4.6",
  messages: [{ role: "user", content: "Hello!" }],
});

Verify the model and interface

This example demonstrates the request shape only. Verify supported model names, headers, message types, and streaming behavior with your actual provider.

What the preview does

The action button checks your account and subscription, then shows a waiting demonstration. It does not execute the code sample, consume tokens, or return model output.

Preview only · No live API access · Test payments only

Read the quickstart