inference-providers

NEAR AI Cloud

first_party

DocsConsole

Getting credentials

api-key

api_key via header (header Authorization: Bearer)

Environment: NEAR_AI_API_KEY

Keys from cloud.near.ai Developer Dashboard; prepaid Usage Credits (or NEAR staking yield). The old api.near.ai went offline 2025-10-31.

Credentials docs

Endpoints

IDURLProtocolAuth
chathttps://cloud-api.near.ai/v1/chat/completionsopenai-chatany
responseshttps://cloud-api.near.ai/v1/responsesopenai-responsesany

API surfaces

textstreamingembeddingsimage_gen

Quirks

Models offered

ModelWire IDEndpointStatusReasoning
alibaba/qwen3-7-maxqwen/qwen3.7-maxchatgaadaptive · default on · returns reasoning_content
alibaba/qwen3-8-27bQwen/Qwen3.8-27Bchatgatoggle · default on · returns reasoning_content
anthropic/claude-fable-5anthropic/claude-fable-5chatgaadaptive · default on · mandatory · returns reasoning_content
anthropic/claude-fable-5-1anthropic/claude-fable-5-1chatgaadaptive · default on · mandatory · returns reasoning_content
anthropic/claude-haiku-4-5anthropic/claude-haiku-4-5chatgaadaptive · default on · returns reasoning_content
anthropic/claude-opus-4-6anthropic/claude-opus-4-6chatgaadaptive · default on · returns reasoning_content
anthropic/claude-opus-4-7anthropic/claude-opus-4-7chatgaadaptive · default on · returns reasoning_content
anthropic/claude-opus-4-8anthropic/claude-opus-4-8chatgaadaptive · default on · returns reasoning_content
anthropic/claude-opus-5anthropic/claude-opus-5chatgaadaptive · default on · returns reasoning_content
anthropic/claude-sonnet-5anthropic/claude-sonnet-5chatgaadaptive · default on · returns reasoning_content
deepseek/deepseek-v4-flashdeepseek-ai/DeepSeek-V4-Flashchatgatoggle · default on · returns reasoning_content
google/gemini-3-5-flashgoogle/gemini-3.5-flashchatgaadaptive · default on · returns reasoning_content
google/gemini-3-8-flashgoogle/gemini-3.8-flashchatgaeffort · default on · returns reasoning_content
google/gemma-4google/gemma-4-31B-itchatretiredadaptive · default on · returns hidden
moonshot/kimi-k2-6moonshotai/kimi-k2.6chatgatoggle · default on · returns reasoning_content
moonshot/kimi-k3moonshotai/kimi-k3chatgatoggle · default on · returns reasoning_content
openai/gpt-5openai/gpt-5chatgaeffort · default on · mandatory · returns reasoning_content
openai/gpt-5-1openai/gpt-5.1chatgaeffort · default on · returns reasoning_content
openai/gpt-5-4openai/gpt-5.4chatgaeffort · default off · returns reasoning_content
openai/gpt-5-4-miniopenai/gpt-5.4-minichatgaeffort · default off · returns reasoning_content
openai/gpt-5-4-nanoopenai/gpt-5.4-nanochatgaeffort · default off · returns reasoning_content
openai/gpt-5-5openai/gpt-5.5chatgaeffort · default on · returns reasoning_content
openai/gpt-5-6openai/gpt-5.6-lunachatgaeffort · default on · returns reasoning_content
openai/gpt-5-6openai/gpt-5.6-solchatgaeffort · default on · returns reasoning_content
openai/gpt-6openai/gpt-6-astrachatgaeffort · default on · mandatory · returns reasoning_content
openai/gpt-oss-120bopenai/gpt-oss-120bchatretiredeffort · default on · mandatory · returns reasoning_content
openai/o3openai/o3chatgaeffort · default on · mandatory · returns reasoning_content
zai/glm-5-2z-ai/glm-5.2chatgatoggle · default on · returns reasoning_content
zai/glm-5-3-flashz-ai/glm-5.3-flashchatgaalways_on · default on · mandatory · returns reasoning_content