InferenceDirect.com Docs Pricing Status Sign in

SDK — bring the client you already have

InferenceDirect speaks the OpenAI API and Anthropic's /v1/messages natively. There's no InferenceDirect SDK to install — change the base URL in the client you already use.

Python — openai SDK

# pip install openai — nothing else client = OpenAI( base_url="https://api.inferencedirect.com/n/ml-platform", api_key=os.environ["INFERENCEDIRECT_KEY"], ) r = client.chat.completions.create( model="deepseek-ai/DeepSeek-R1", messages=[{"role": "user", "content": "…"}], )

Anthropic SDK

# pip install anthropic — nothing else client = Anthropic( base_url="https://api.inferencedirect.com", api_key=os.environ["INFERENCEDIRECT_KEY"], ) r = client.messages.create( model="claude-haiku-4-5", max_tokens=1024, messages=[{"role": "user", "content": "…"}], )

Agents and CLIs

Device-code login means agent tooling and CLIs — Claude Code included — authenticate the same way a human does, without a long-lived credential baked into a config file. See Docs for the flow.