LLM7.io
LLM7.io
Toggle theme

LLM7 model guide

LangChain with LLM7

Configure LangChain with LLM7: eligible models, setup instructions, and a copyable configuration.

Requirements and limitations

Only standard Chat Completions behavior is inferred. Provider-specific extensions and Responses API features are outside this template.

Setup

  1. Install the Python dependency with pip install langchain-openai.
  2. Set LLM7_API_KEY in your environment; the placeholder below must be replaced.
  3. Run the ChatOpenAI example. Bind tools only when the selected model reports tool support.
# Environment: LLM7_API_KEY=YOUR_LLM7_API_KEY
import os
from langchain_openai import ChatOpenAI

model = ChatOpenAI(
    model="DeepSeek-V4-Flash-0731",
    api_key=os.environ["LLM7_API_KEY"],
    base_url="https://api.llm7.io/v1",
    use_responses_api=False,
)
print(model.invoke("Hello!").content)
Eligible models and published pricing
ModelPricingContextTool calling
DeepSeek logo
DeepSeek-V4-Flash-0731
$0.02 USD input and $0.04 USD output per 1M tokens400,000Supported
Inkling logo
Inkling
$1.00 USD input and $4.05 USD output per 1M tokens512,000Not supported
Inkling logo
Inkling-Small
$0.50 USD input and $1.20 USD output per 1M tokens512,000Supported
Hugging Face logo
L3-8B-Lunaris-v1-Turbo
$0.04 USD input and $0.05 USD output per 1M tokens8,000Not supported
Xiaomi logo
XiaomiMiMo/MiMo-V2.5
$0.40 USD input and $2.00 USD output per 1M tokens256,000Supported
Xiaomi logo
XiaomiMiMo/MiMo-V2.5-Pro
$1.00 USD input and $3.00 USD output per 1M tokens1,024,000Supported
Anthropic logo
claude-fable-5
$4.50 USD input and $30.00 USD output per 1M tokens1,000,000Supported
Anthropic logo
claude-fable-5-1
$4.00 USD input and $15.00 USD output per 1M tokens1,000,000Supported
Anthropic logo
claude-haiku-4-5
$0.04 USD input and $0.20 USD output per 1M tokens200,000Supported
Anthropic logo
claude-opus-4-8
$2.25 USD input and $12.19 USD output per 1M tokens1,000,000Supported
Anthropic logo
claude-opus-5
$2.50 USD input and $12.50 USD output per 1M tokens1,000,000Supported
Anthropic logo
claude-sonnet-4-6
$0.12 USD input and $0.45 USD output per 1M tokens1,000,000Supported
Anthropic logo
claude-sonnet-5
$0.45 USD input and $2.25 USD output per 1M tokens

Minimum: $0.000784/request

1,000,000Supported
Mistral AI logo
codestral-latest
$0.01 USD input and $0.02 USD output per 1M tokens32,000Supported
DeepSeek logo
deepseek-v4-flash:0731
$0.06 USD input and $0.18 USD output per 1M tokens1,024,000Supported
DeepSeek logo
deepseek-v4-flash_0731
$0.18 USD input and $0.60 USD output per 1M tokens1,000,000Supported
DeepSeek logo
deepseek-v4-pro
$1.11 USD input and $3.33 USD output per 1M tokens1,000,000Supported
Google logo
gemini-3-flash
$0.03 USD input and $0.08 USD output per 1M tokens1,048,576Supported
Google logo
gemini-3.1-flash-lite
$0.02 USD input and $0.04 USD output per 1M tokens256,000Supported
Google logo
gemini-3.7-flash
$0.06 USD input and $0.30 USD output per 1M tokens1,000,000Supported
Google logo
gemini-3.8-flash-high
$0.05 USD input and $0.15 USD output per 1M tokens1,000,000Supported
gemma4:31b$0.07 USD input and $0.23 USD output per 1M tokens262,000Supported
Z.ai logo
glm-5.3
$0.50 USD input and $2.00 USD output per 1M tokens1,000,000Supported
Z.ai logo
glm-5.3-flash
$0.15 USD input and $0.55 USD output per 1M tokens1,048,576Supported
OpenAI logo
gpt-5.5
$0.20 USD input and $1.00 USD output per 1M tokens

Minimum: $0.0001/request

1,050,000Supported
OpenAI logo
gpt-5.6-luna
$0.45 USD input and $0.58 USD output per 1M tokensUnknown contextSupported
OpenAI logo
gpt-5.6-sol
$1.92 USD input and $5.40 USD output per 1M tokens1,000,000Supported
OpenAI logo
gpt-5.6-terra
$0.24 USD input and $1.00 USD output per 1M tokens1,000,000Supported
OpenAI logo
gpt-6-astra
$5.00 USD input and $10.00 USD output per 1M tokens1,000,000Supported
xAI logo
grok-4.5
$0.30 USD input and $1.00 USD output per 1M tokens500,000Supported
xAI logo
grok-4.6
$0.40 USD input and $0.50 USD output per 1M tokens500,000Supported
Moonshot AI logo
kimi-k3
$2.00 USD input and $10.00 USD output per 1M tokens1,000,000Supported
llama-4-maverick$0.19 USD input and $0.75 USD output per 1M tokens1,048,576Supported
MiniMax logo
minimax-m2.7
$0.03 USD input and $0.05 USD output per 1M tokens180,000Supported
Mistral AI logo
mistral-Nemo-Instruct-2407
$0.03 USD input and $0.03 USD output per 1M tokens128,000Not supported
Mistral AI logo
mistral-Small-24B-Instruct-2501
$0.06 USD input and $0.08 USD output per 1M tokens32,000Not supported
ByteDance logo
seed-2.0-mini
$0.10 USD input and $0.40 USD output per 1M tokens250,000Supported

Instructions reviewed 2026-09-14. Sources: LangChain documentation 1

Explore related pages