Neon
Neon aggregates models from multiple providers with enhanced features like rate limiting and failover. Access 42 models through Mastra's model router.
Learn more in the Neon documentation.
UsageDirect link to Usage
src/mastra/agents/my-agent.ts
import { Agent } from "@mastra/core/agent";
const agent = new Agent({
id: "my-agent",
name: "My Agent",
instructions: "You are a helpful assistant",
model: "neon/claude-fable-5"
});
info
Mastra uses the OpenAI-compatible /chat/completions endpoint. Some provider-specific features may not be available. Check the Neon documentation for details.
ConfigurationDirect link to Configuration
# Gateway configuration
NEON_AI_GATEWAY_BASE_URL=https://your-base-url
NEON_AI_GATEWAY_TOKEN=your-gateway-key
Available modelsDirect link to Available models
| Model |
|---|
claude-fable-5 |
claude-haiku-4-5 |
claude-opus-4-1 |
claude-opus-4-5 |
claude-opus-4-6 |
claude-opus-4-7 |
claude-opus-4-8 |
claude-opus-5 |
claude-sonnet-4-5 |
claude-sonnet-4-6 |
claude-sonnet-5 |
gemini-3-1-flash-lite |
gemini-3-1-pro |
gemini-3-5-flash |
gemini-3-5-flash-lite |
gemini-3-6-flash |
gemini-3-flash |
gemma-3-12b |
glm-5-2 |
gpt-5 |
gpt-5-1 |
gpt-5-2 |
gpt-5-3-codex |
gpt-5-4 |
gpt-5-4-mini |
gpt-5-4-nano |
gpt-5-5 |
gpt-5-5-pro |
gpt-5-6-luna |
gpt-5-6-sol |
gpt-5-6-terra |
gpt-5-mini |
gpt-5-nano |
gpt-oss-120b |
gpt-oss-20b |
inkling |
kimi-k3 |
llama-4-maverick |
meta-llama-3-1-8b-instruct |
meta-llama-3-3-70b-instruct |
qwen3-next-80b-a3b-instruct |
qwen35-122b-a10b |