LLM7.io
LLM7.io
Toggle theme

LLM7 model guide

Vercel AI SDK with LLM7

Configure Vercel AI SDK with LLM7: eligible models, setup instructions, and a copyable configuration.

Requirements and limitations

Keep the API key on the server. Use tools only with models that report tool support. Responses-only features are outside this template.

Setup

  1. Install dependencies with npm install ai @ai-sdk/openai-compatible.
  2. Set LLM7_API_KEY on your server with your own key in place of the placeholder.
  3. Use the compatible chatModel adapter below in server-side code.
// Server environment: LLM7_API_KEY=YOUR_LLM7_API_KEY
import { createOpenAICompatible } from '@ai-sdk/openai-compatible';
import { generateText } from 'ai';

const llm7 = createOpenAICompatible({
  name: 'llm7',
  baseURL: 'https://api.llm7.io/v1',
  apiKey: process.env.LLM7_API_KEY,
});
const result = await generateText({
  model: llm7.chatModel("DeepSeek-V4-Flash-0731"),
  prompt: 'Hello!',
});
console.log(result.text);
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: Vercel AI SDK documentation 1

Explore related pages