Providers
302.AI
Use 302.AI through @anvia/openai.
Connection
| Field | Value |
|---|---|
| Anvia SDK | @anvia/openai |
| Compatibility | OpenAI-compatible endpoint |
| API URL | https://api.302.ai/v1 |
| Environment | 302AI_API_KEY |
| Provider docs | https://doc.302.ai |
| Models | 97 |
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["302AI_API_KEY"],
baseUrl: "https://api.302.ai/v1",
completionApi: "chat",
});
const model = client.completionModel("chatgpt-4o-latest");
Capabilities
| Capability | Value |
|---|---|
| Input modalities | audio, image, pdf, text, video |
| Output modalities | image, text |
| Attachments | 66 / 97 models |
| Tools | 92 / 97 models |
| Structured output | 18 / 97 models |
| Reasoning | 52 / 97 models |
| Temperature | 84 / 97 models |
| Open weights | 8 / 97 models |
Models
| Model | Family | Input | Output | Capabilities | Limits | Cost | Updated |
|---|---|---|---|---|---|---|---|
chatgpt-4o-latest |
gpt | image, text | text | temperature | context: 128000 / output: 16384 | input: 5 / output: 15 | 2024-08-08 |
claude-3-5-haiku-20241022 |
claude-haiku | image, pdf, text | text | tools, temperature | context: 200000 / output: 8192 | input: 0.8 / output: 4 | 2024-10-22 |
claude-3-5-haiku-latest |
claude-haiku | image, pdf, text | text | tools, temperature | context: 200000 / output: 8192 | input: 0.8 / output: 4 | 2024-10-22 |
claude-haiku-4-5 |
claude-haiku | image, pdf, text | text | tools, reasoning, temperature | context: 200000 / output: 64000 | input: 1 / output: 5 | 2025-10-16 |
claude-haiku-4-5-20251001 |
claude-haiku | image, pdf, text | text | tools, reasoning, temperature | context: 200000 / output: 64000 | input: 1 / output: 5 | 2025-10-16 |
claude-opus-4-1-20250805 |
claude-opus | image, pdf, text | text | tools, reasoning, temperature | context: 200000 / output: 32000 | input: 15 / output: 75 | 2025-08-05 |
claude-opus-4-1-20250805-thinking |
- | image, text | text | tools, reasoning, temperature | context: 200000 / output: 32000 | input: 15 / output: 75 | 2025-05-27 |
claude-opus-4-20250514 |
claude-opus | image, pdf, text | text | tools, reasoning, temperature | context: 200000 / output: 32000 | input: 15 / output: 75 | 2025-05-22 |
claude-opus-4-5 |
claude-opus | image, pdf, text | text | tools, reasoning, temperature | context: 200000 / output: 64000 | input: 5 / output: 25 | 2025-11-25 |
claude-opus-4-5-20251101 |
claude-opus | image, pdf, text | text | tools, reasoning, temperature | context: 200000 / output: 64000 | input: 5 / output: 25 | 2025-11-25 |
claude-opus-4-5-20251101-thinking |
- | image, text | text | tools, reasoning, temperature | context: 200000 / output: 64000 | input: 5 / output: 25 | 2025-11-25 |
claude-opus-4-6 |
claude-opus | image, pdf, text | text | tools, reasoning, temperature | context: 1000000 / output: 128000 | input: 5 / output: 25 | 2026-03-13 |
claude-opus-4-6-thinking |
- | image, pdf, text | text | tools, reasoning, temperature | context: 1000000 / output: 128000 | input: 5 / output: 25 | 2026-03-13 |
claude-opus-4-7 |
claude-opus | image, pdf, text | text | tools, reasoning, temperature | context: 1000000 / output: 128000 | input: 5 / output: 25 / cache_read: 0.5 / cache_write: 6.25 | 2026-04-17 |
claude-sonnet-4-20250514 |
claude-sonnet | image, pdf, text | text | tools, reasoning, temperature | context: 200000 / output: 64000 | input: 3 / output: 15 | 2025-05-22 |
claude-sonnet-4-5 |
claude-sonnet | image, pdf, text | text | tools, reasoning, temperature | context: 200000 / output: 64000 | input: 3 / output: 15 | 2025-09-30 |
claude-sonnet-4-5-20250929 |
claude-sonnet | image, pdf, text | text | tools, reasoning, temperature | context: 200000 / output: 64000 | input: 3 / output: 15 | 2025-09-30 |
claude-sonnet-4-5-20250929-thinking |
- | image, pdf, text | text | tools, reasoning, temperature | context: 200000 / output: 64000 | input: 3 / output: 15 | 2025-09-30 |
claude-sonnet-4-6 |
claude-sonnet | image, pdf, text | text | tools, reasoning, temperature | context: 1000000 / output: 64000 | input: 3 / output: 15 | 2026-03-13 |
claude-sonnet-4-6-thinking |
- | image, pdf, text | text | tools, reasoning, temperature | context: 1000000 / output: 64000 | input: 3 / output: 15 | 2026-03-13 |
deepseek-chatDeepseek-Chat |
deepseek | text | text | tools, temperature | context: 128000 / output: 8192 | input: 0.29 / output: 0.43 | 2024-11-29 |
deepseek-reasonerDeepseek-Reasoner |
deepseek-thinking | text | text | tools, reasoning, temperature | context: 128000 / output: 128000 | input: 0.29 / output: 0.43 | 2025-01-20 |
deepseek-v3.2 |
- | text | text | tools, temperature | context: 128000 / output: 8192 | input: 0.29 / output: 0.43 | 2025-12-01 |
deepseek-v3.2-thinkingDeepSeek-V3.2-Thinking |
- | text | text | tools, reasoning, temperature | context: 128000 / output: 128000 | input: 0.29 / output: 0.43 | 2025-12-01 |
doubao-seed-1-6-thinking-250715 |
- | image, text | text | tools, reasoning, temperature | context: 256000 / output: 16000 | input: 0.121 / output: 1.21 | 2025-07-15 |
doubao-seed-1-6-vision-250815 |
- | image, text | text | tools, temperature | context: 256000 / output: 32000 | input: 0.114 / output: 1.143 | 2025-09-30 |
doubao-seed-1-8-251215 |
- | image, text | text | tools, temperature | context: 224000 / output: 64000 | input: 0.114 / output: 0.286 | 2025-12-18 |
doubao-seed-code-preview-251028 |
- | image, text | text | tools, temperature | context: 256000 / output: 32000 | input: 0.17 / output: 1.14 | 2025-11-11 |
gemini-2.0-flash-lite |
gemini-flash-lite | image, text | text | temperature | context: 2000000 / output: 8192 | input: 0.075 / output: 0.3 | 2025-06-16 |
gemini-2.5-flash |
gemini-flash | image, text | text | tools, temperature | context: 1000000 / output: 65536 | input: 0.3 / output: 2.5 | 2025-06-17 |
gemini-2.5-flash-image |
- | image, text | text | temperature | context: 32768 / output: 32768 | input: 0.3 / output: 30 | 2025-10-08 |
gemini-2.5-flash-lite-preview-09-2025 |
- | image, text | text | tools, temperature | context: 1000000 / output: 65536 | input: 0.1 / output: 0.4 | 2025-09-26 |
gemini-2.5-flash-nothink |
gemini-flash | image, text | text | tools, temperature | context: 1000000 / output: 65536 | input: 0.3 / output: 2.5 | 2025-06-24 |
gemini-2.5-flash-preview-09-2025 |
- | image, text | text | tools, temperature | context: 1000000 / output: 65536 | input: 0.3 / output: 2.5 | 2025-09-26 |
gemini-2.5-pro |
gemini-pro | image, text | text | tools, temperature | context: 1000000 / output: 65536 | input: 1.25 / output: 10 | 2025-06-17 |
gemini-3-flash-preview |
- | image, text | text | tools, temperature | context: 1000000 / output: 65536 | input: 0.5 / output: 3 | 2025-12-18 |
gemini-3-pro-image-preview |
- | image, text | text | temperature | context: 32768 / output: 64000 | input: 2 / output: 120 | 2025-11-20 |
gemini-3-pro-preview |
- | image, text | text | tools, temperature | context: 1000000 / output: 64000 | input: 2 / output: 12 | 2025-11-19 |
gemini-3.1-flash-image-preview |
- | image, pdf, text | image, text | temperature | context: 131072 / output: 32768 | input: 0.5 / output: 60 | 2026-02-27 |
glm-4.5GLM-4.5 |
glm | text | text | tools, reasoning, temperature, open weights | context: 131072 / output: 98304 | input: 0.286 / output: 1.142 | 2025-07-29 |
glm-4.5-air |
glm-air | text | text | tools, reasoning, temperature, open weights | context: 131072 / output: 98304 | input: 0.1143 / output: 0.286 | 2025-07-29 |
glm-4.5-airx |
glm | text | text | tools, temperature | context: 128000 / output: 16384 | input: 0.572 / output: 1.714 | 2025-07-29 |
glm-4.5-x |
glm | text | text | tools, temperature | context: 128000 / output: 16384 | input: 1.143 / output: 2.29 | 2025-07-29 |
glm-4.5vGLM-4.5V |
glm | image, text, video | text | tools, reasoning, temperature, open weights | context: 64000 / output: 16384 | input: 0.29 / output: 0.86 | 2025-08-12 |
glm-4.6 |
glm | text | text | tools, reasoning, temperature, open weights | context: 204800 / output: 131072 | input: 0.286 / output: 1.142 | 2025-09-30 |
glm-4.6vGLM-4.6V |
glm | image, text, video | text | tools, reasoning, temperature, open weights | context: 128000 / output: 32768 | input: 0.145 / output: 0.43 | 2025-12-08 |
glm-4.7 |
glm | text | text | tools, reasoning, temperature, open weights | context: 204800 / output: 131072 | input: 0.286 / output: 1.142 | 2025-12-22 |
glm-4.7-flashx |
glm-flash | text | text | tools, reasoning, temperature, open weights | context: 200000 / output: 131072 | input: 0.0715 / output: 0.429 | 2026-01-20 |
glm-5 |
glm | text | text | tools, reasoning, temperature, open weights | context: 204800 / output: 131072 | input: 0.6 / output: 2.6 | 2026-02-12 |
glm-5-turbo |
glm | text | text | tools, schema, reasoning, temperature | context: 200000 / output: 131072 | input: 0.72 / output: 3.2 | 2026-03-16 |
glm-5.1 |
glm | text | text | tools, schema, reasoning, temperature | context: 200000 / output: 131072 | input: 0.86 / output: 3.5 | 2026-04-10 |
glm-5v-turboGLM-5V-Turbo |
glm | audio, image, pdf, text, video | text | tools, reasoning, temperature | context: 200000 / output: 131072 | input: 0.72 / output: 3.2 | 2026-04-02 |
glm-for-coding |
glm | text | text | tools, reasoning, temperature | context: 200000 / output: 131072 | input: 0.086 / output: 0.343 | 2025-09-30 |
gpt-4.1 |
gpt | image, pdf, text | text | tools, schema, temperature | context: 1047576 / output: 32768 | input: 2 / output: 8 | 2025-04-14 |
gpt-4.1-mini |
gpt-mini | image, pdf, text | text | tools, schema, temperature | context: 1047576 / output: 32768 | input: 0.4 / output: 1.6 | 2025-04-14 |
gpt-4.1-nano |
gpt-nano | image, text | text | tools, schema, temperature | context: 1047576 / output: 32768 | input: 0.1 / output: 0.4 | 2025-04-14 |
gpt-4o |
gpt | image, pdf, text | text | tools, schema, temperature | context: 128000 / output: 16384 | input: 2.5 / output: 10 | 2024-05-13 |
gpt-5 |
gpt | image, text | text | tools, schema, reasoning | context: 400000 / input: 272000 / output: 128000 | input: 1.25 / output: 10 | 2025-08-08 |
gpt-5-mini |
gpt-mini | image, text | text | tools, schema, reasoning | context: 400000 / input: 272000 / output: 128000 | input: 0.25 / output: 2 | 2025-08-08 |
gpt-5-pro |
gpt-pro | image, text | text | tools, schema, reasoning | context: 400000 / input: 272000 / output: 272000 | input: 15 / output: 120 | 2025-10-08 |
gpt-5-thinking |
- | image, text | text | tools, reasoning, temperature | context: 400000 / output: 128000 | input: 1.25 / output: 10 | 2025-08-08 |
gpt-5.1 |
gpt | image, text | text | tools, schema, reasoning | context: 400000 / input: 272000 / output: 128000 | input: 1.25 / output: 10 | 2025-11-14 |
gpt-5.1-chat-latest |
gpt-codex | image, text | text | tools, schema, reasoning | context: 128000 / output: 16384 | input: 1.25 / output: 10 | 2025-11-14 |
gpt-5.2 |
gpt | image, text | text | tools, schema, reasoning | context: 400000 / input: 272000 / output: 128000 | input: 1.75 / output: 14 | 2025-12-12 |
gpt-5.2-chat-latest |
gpt-codex | image, text | text | tools, schema, reasoning | context: 128000 / output: 16384 | input: 1.75 / output: 14 | 2025-12-12 |
gpt-5.4 |
gpt | image, pdf, text | text | tools, schema, reasoning | context: 1050000 / input: 922000 / output: 128000 | input: 2.5 / output: 15 / cache_read: 0.25 / cache_write: 0 | 2026-03-05 |
gpt-5.4-mini |
gpt-mini | image, text | text | tools, schema, reasoning | context: 400000 / input: 272000 / output: 128000 | input: 0.75 / output: 4.5 | 2026-03-19 |
gpt-5.4-mini-2026-03-17 |
gpt-mini | image, text | text | tools, schema, reasoning | context: 400000 / input: 272000 / output: 128000 | input: 0.75 / output: 4.5 | 2026-03-19 |
gpt-5.4-nano |
gpt-nano | image, text | text | tools, schema, reasoning | context: 400000 / input: 272000 / output: 128000 | input: 0.2 / output: 1.25 | 2026-03-19 |
gpt-5.4-nano-2026-03-17 |
gpt-nano | image, text | text | tools, schema, reasoning | context: 400000 / input: 272000 / output: 128000 | input: 0.2 / output: 1.25 | 2026-03-19 |
gpt-5.4-pro |
gpt-pro | image, text | text | tools, reasoning | context: 1050000 / input: 922000 / output: 128000 | input: 30 / output: 180 / cache_read: 0 / cache_write: 0 | 2026-03-05 |
grok-4-1-fast-non-reasoning |
- | image, text | text | tools, temperature | context: 2000000 / output: 30000 | input: 0.2 / output: 0.5 | 2025-11-20 |
grok-4-1-fast-reasoning |
- | image, text | text | tools, reasoning, temperature | context: 2000000 / output: 30000 | input: 0.2 / output: 0.5 | 2025-11-20 |
grok-4-fast-non-reasoning |
- | image, text | text | tools, temperature | context: 2000000 / output: 30000 | input: 0.2 / output: 0.5 | 2025-09-23 |
grok-4-fast-reasoning |
- | image, text | text | tools, reasoning, temperature | context: 2000000 / output: 30000 | input: 0.2 / output: 0.5 | 2025-09-23 |
grok-4.1 |
- | image, text | text | tools, temperature | context: 200000 / output: 64000 | input: 2 / output: 10 | 2025-11-18 |
grok-4.20-beta-0309-non-reasoning |
- | image, text | text | tools, temperature | context: 2000000 / output: 30000 | input: 2 / output: 6 | 2026-03-16 |
grok-4.20-beta-0309-reasoning |
- | image, text | text | tools, reasoning, temperature | context: 2000000 / output: 30000 | input: 2 / output: 6 | 2026-03-16 |
grok-4.20-multi-agent-beta-0309 |
- | image, text | text | tools, reasoning, temperature | context: 2000000 / output: 30000 | input: 2 / output: 6 | 2026-03-16 |
kimi-k2-0905-preview |
- | text | text | tools, temperature | context: 262144 / output: 262144 | input: 0.632 / output: 2.53 | 2025-09-05 |
kimi-k2-thinking |
- | text | text | tools, reasoning, temperature | context: 262144 / output: 262144 | input: 0.575 / output: 2.3 | 2025-09-05 |
kimi-k2-thinking-turbo |
- | text | text | tools, reasoning, temperature | context: 262144 / output: 262144 | input: 1.265 / output: 9.119 | 2025-09-05 |
MiniMax-M1 |
minimax | text | text | tools, temperature | context: 1000000 / output: 128000 | input: 0.132 / output: 1.254 | 2025-06-16 |
MiniMax-M2 |
- | text | text | tools, temperature | context: 1000000 / output: 128000 | input: 0.33 / output: 1.32 | 2025-10-26 |
MiniMax-M2.1 |
- | text | text | tools, temperature | context: 1000000 / output: 131072 | input: 0.3 / output: 1.2 | 2025-12-19 |
MiniMax-M2.7 |
- | text | text | tools, temperature | context: 204800 / output: 131072 | input: 0.3 / output: 1.2 | 2026-03-19 |
MiniMax-M2.7-highspeed |
- | text | text | tools, temperature | context: 204800 / output: 131072 | input: 0.6 / output: 4.8 | 2026-03-19 |
ministral-14b-2512 |
- | image, text | text | tools, temperature | context: 128000 / output: 128000 | input: 0.33 / output: 0.33 | 2025-12-16 |
mistral-large-2512 |
- | image, text | text | tools, temperature | context: 128000 / output: 262144 | input: 1.1 / output: 3.3 | 2025-12-16 |
qwen-flashQwen-Flash |
- | text | text | tools, temperature | context: 1000000 / output: 32768 | input: 0.022 / output: 0.22 | 2025-07-28 |
qwen-max-latestQwen-Max-Latest |
qwen | text | text | tools, temperature | context: 131072 / output: 8192 | input: 0.343 / output: 1.372 | 2025-01-25 |
qwen-plusQwen-Plus |
qwen | text | text | tools, temperature | context: 1000000 / output: 32768 | input: 0.12 / output: 1.2 | 2024-07-23 |
qwen3-235b-a22bQwen3-235B-A22B |
qwen | text | text | tools, temperature | context: 128000 / output: 16384 | input: 0.29 / output: 2.86 | 2025-04-29 |
qwen3-235b-a22b-instruct-2507 |
- | text | text | tools, temperature | context: 128000 / output: 65536 | input: 0.29 / output: 1.143 | 2025-07-30 |
qwen3-30b-a3bQwen3-30B-A3B |
qwen | text | text | tools, temperature | context: 128000 / output: 8192 | input: 0.11 / output: 1.08 | 2025-04-29 |
qwen3-coder-480b-a35b-instruct |
- | text | text | tools, temperature | context: 262144 / output: 65536 | input: 0.86 / output: 3.43 | 2025-07-23 |
qwen3-max-2025-09-23 |
- | text | text | tools, temperature | context: 258048 / output: 65536 | input: 0.86 / output: 3.43 | 2025-09-24 |
Read Gateway caveats before enabling this provider in production.
