Use Claude through an OpenAI-compatible API
Connect a listed Claude model to your existing OpenAI SDK or compatible coding tool. ExosAI provides one endpoint and API key, with model details and usage in your dashboard.
Choose a Claude model
Open the live model catalog and search for Claude. Copy the exact model ID and check input, output and cache prices, context size and supported features. Listed versions and availability can change.
Call Claude with Python
Replace MODEL_ID_FROM_THE_CATALOG with the Claude ID you selected. Use the OpenAI chat-completions format at https://api.exosai.tech/v1.
from openai import OpenAI
client = OpenAI(base_url="https://api.exosai.tech/v1", api_key="YOUR_EXOSAI_KEY")
reply = client.chat.completions.create(
model="MODEL_ID_FROM_THE_CATALOG",
messages=[{"role": "user", "content": "Hello!"}],
)
print(reply.choices[0].message.content)
Streaming, image input and tools
Set stream: true for streaming on models that support it. Check the Claude entry before sending images or function definitions. For tool calls, execute the requested function in your app and send its result back; the API does not execute your local tools.
This guide uses the OpenAI-compatible endpoint. Compatibility with the native Anthropic API is a separate capability and must be checked in the catalog.
Use Claude in a coding tool
Follow the Cursor, Cline and Continue setup guide with your selected Claude model ID. Test the same prompt in the AI playground and review token usage before integrating it into your app.
Questions
Do I need an Anthropic API key?
An ExosAI API key is enough for Claude models listed on ExosAI. Your ExosAI account permissions and balance determine access.
Is Claude free on ExosAI?
Do not assume so. Check the selected Claude model’s catalog price and eligibility. Paid models require paid credit.
Which Claude version should I use?
Choose from the current catalog and copy its exact ID. This guide does not guarantee a particular version will remain available.
ExosAI