Docs

Providers

The Grid AI

Use The Grid AI through @anvia/openai.

Connection

Field Value
Anvia SDK @anvia/openai
Compatibility OpenAI-compatible endpoint
API URL https://api.thegrid.ai/v1
Environment THEGRIDAI_API_KEY
Provider docs https://thegrid.ai/docs
Models 9

Anvia Usage

This provider is listed as OpenAI-compatible. Start with @anvia/openai and the chat-completions adapter, then smoke test the exact workflow.

import { OpenAIClient } from "@anvia/openai";

const client = new OpenAIClient({
  apiKey: process.env.THEGRIDAI_API_KEY,
  baseUrl: "https://api.thegrid.ai/v1",
  completionApi: "chat",
});

const model = client.completionModel("agent-max");

Capabilities

Capability Value
Input modalities image, text
Output modalities text
Attachments 0 / 9 models
Tools 9 / 9 models
Structured output 9 / 9 models
Reasoning 9 / 9 models
Temperature 9 / 9 models
Open weights 0 / 9 models

Models

Model Family Input Output Capabilities Limits Cost Updated
agent-max
Agent Max
- image, text text tools, schema, reasoning, temperature context: 1000000 / output: 128000 - 2026-05-19
agent-prime
Agent Prime
- text text tools, schema, reasoning, temperature context: 128000 / output: 64000 - 2026-05-19
agent-standard
Agent Standard
- text text tools, schema, reasoning, temperature context: 128000 / output: 16000 - 2026-05-19
code-max
Code Max
- image, text text tools, schema, reasoning, temperature context: 1000000 / output: 128000 - 2026-05-19
code-prime
Code Prime
- text text tools, schema, reasoning, temperature context: 128000 / output: 64000 - 2026-05-19
code-standard
Code Standard
- text text tools, schema, reasoning, temperature context: 128000 / output: 16000 - 2026-05-19
text-max
Text Max
- image, text text tools, schema, reasoning, temperature context: 1000000 / output: 128000 - 2026-05-19
text-prime
Text Prime
- text text tools, schema, reasoning, temperature context: 128000 / output: 30000 - 2026-05-19
text-standard
Text Standard
- text text tools, schema, reasoning, temperature context: 128000 / output: 16000 - 2026-05-19

Read Gateway caveats before enabling this provider in production.