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.
Checking current pricing…
# 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
Current pricing unavailable400,000Supported
DeepSeek logo
DeepSeek-V4.1-Flash
Current pricing unavailable1,000,000Supported
Z.ai logo
GLM-5.3-Flash
Current pricing unavailable400,000Supported
Inkling logo
Inkling
Current pricing unavailable512,000Not supported
Inkling logo
Inkling-Small
Current pricing unavailable512,000Supported
Hugging Face logo
L3-8B-Lunaris-v1-Turbo
Current pricing unavailable8,000Not supported
anthropic/claude-haiku-4-5Current pricing unavailableUnknown contextSupported
anthropic/claude-opus-4-5Current pricing unavailableUnknown contextSupported
anthropic/claude-opus-4-6Current pricing unavailableUnknown contextSupported
anthropic/claude-opus-4-7Current pricing unavailableUnknown contextSupported
anthropic/claude-opus-4-8Current pricing unavailableUnknown contextSupported
anthropic/claude-sonnet-4-6Current pricing unavailableUnknown contextSupported
anthropic/claude-sonnet-5Current pricing unavailableUnknown contextSupported
Anthropic logo
claude-fable-5
Current pricing unavailable1,000,000Supported
Anthropic logo
claude-fable-5-1
Current pricing unavailable1,000,000Supported
Anthropic logo
claude-opus-4-8
Current pricing unavailable1,000,000Supported
Anthropic logo
claude-opus-5
Current pricing unavailable1,000,000Supported
Anthropic logo
claude-opus-5-5
Current pricing unavailable1,000,000Supported
Anthropic logo
claude-sonnet-4-6
Current pricing unavailable1,000,000Supported
Anthropic logo
claude-sonnet-5
Current pricing unavailable1,000,000Supported
Mistral AI logo
codestral-latest
Current pricing unavailable32,000Supported
DeepSeek logo
deepseek-v4-flash:0731
Current pricing unavailable1,024,000Supported
DeepSeek logo
deepseek-v4-pro
Current pricing unavailable1,000,000Supported
Google logo
gemini-3-flash
Current pricing unavailable1,048,576Supported
Google logo
gemini-3.1-flash-lite
Current pricing unavailable256,000Supported
Google logo
gemini-3.6-flash-high
Current pricing unavailableUnknown contextSupported
Google logo
gemini-3.7-flash
Current pricing unavailable1,000,000Supported
Google logo
gemini-3.8-flash-high
Current pricing unavailable1,000,000Supported
gemma4:31bCurrent pricing unavailable262,000Supported
Z.ai logo
glm-5.2
Current pricing unavailable976,000Supported
Z.ai logo
glm-5.3
Current pricing unavailable1,000,000Supported
OpenAI logo
gpt-5.6-sol
Current pricing unavailable1,000,000Supported
OpenAI logo
gpt-5.6-terra
Current pricing unavailable1,000,000Supported
OpenAI logo
gpt-6-astra
Current pricing unavailable1,000,000Supported
OpenAI logo
gpt-6-sol
Current pricing unavailable1,000,000Supported
OpenAI logo
gpt-6.1-sol
Current pricing unavailable1,000,000Supported
OpenAI logo
gpt-oss:20b
Current pricing unavailable128,000Supported
xAI logo
grok-4.5
Current pricing unavailable500,000Supported
xAI logo
grok-4.6
Current pricing unavailable500,000Supported
Moonshot AI logo
kimi-k2.6
Current pricing unavailable262,000Supported
Moonshot AI logo
kimi-k2.7-code
Current pricing unavailable256,000Supported
Moonshot AI logo
kimi-k3
Current pricing unavailable1,000,000Supported
llama-4-maverickCurrent pricing unavailable1,048,576Supported
MiniMax logo
minimax-m2.7
Current pricing unavailable180,000Supported
MiniMax logo
minimax-m3
Current pricing unavailable512,000Supported
Mistral AI logo
mistral-Nemo-Instruct-2407
Current pricing unavailable128,000Not supported
Mistral AI logo
mistral-Small-24B-Instruct-2501
Current pricing unavailable32,000Not supported
Mistral AI logo
mistral-large-3:675b
Current pricing unavailable256,000Supported
nemotron-3-nano:30bCurrent pricing unavailable1,000,000Supported
ByteDance logo
seed-2.0-mini
Current pricing unavailable250,000Supported

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

Explore related pages