VNAI Pro
Client tools

Client tools

Connect chat applications and coding agents to the VNAI Pro API

These guides use an API key created on your environment's website, with the endpoint and models available to that key.

Which tools can connect?

ToolConnection methodConstraint
OpenClawCustom providerMatch the model's API protocol
Hermes AgentCustom endpointConfigure with hermes model
OpenCodeCustom providerDistinguish Chat Completions from Responses
CursorOpenAI key + Override Base URLConditional support; excludes Tab completion
Qwen CodeCustom Provider / settings.jsonQwen models are not required
ChatboxCustom providerAPI Host and API Path are separate
ClineOpenAI CompatibleAgent tasks require model tool calling
DeepSeek HarnessCustom model APIThree protocols; currently a developer preview
9RouterOpenAI-compatible providerAdd the VNAI Pro API as an upstream provider

Verification scope: official documentation/source reviewed on September 27, 2026, against the gateway's API protocols. These are configuration guides, not live inference certification for every tool/model/group. Verify model access and tool calling with your own key.

1. Prepare a key and model

  1. Follow the API key guide at https://api.vnaipro.app/keys; check your balance at https://api.vnaipro.app/wallet and the key's remaining quota.
  2. Choose the Auto group to share one key across Codex, Claude, and other supported models, or a dedicated group containing your desired models.
  3. Open Check models, enter the key, and copy the exact model ID.
  4. Replace YOUR_API_KEY and every YOUR_MODEL_ID in the guide.

The /v1/models catalog does not by itself prove support for every protocol, images, reasoning, or tool calling.

2. Choose the URL and protocol

PurposeURL for this environment
Gateway roothttps://api.vnaipro.app
OpenAI Chat Completions / Responses base URLhttps://api.vnaipro.app/v1
Model cataloghttps://api.vnaipro.app/v1/models
Chat Completions requesthttps://api.vnaipro.app/v1/chat/completions
Responses requesthttps://api.vnaipro.app/v1/responses
Anthropic Messages requesthttps://api.vnaipro.app/v1/messages

Most Base URL fields take the URL ending in /v1, not the full request path. Anthropic adapters differ; follow the individual guide. Do not use the docs domain as an API endpoint.

Paste the raw key into API key, without a Bearer prefix; the client adds authentication. Keep keys in personal configuration and do not commit files containing keys.

3. Verify the connection

  1. Start a new conversation and select the configured provider and model.
  2. Send “Reply only OK” to check authentication and responses.
  3. For coding agents, use a test directory and ask for a file listing or a file read. Keep tool approval enabled.
  4. Check usage history on the website to confirm requests reached your gateway.

A text response alone does not validate an agent: the model and upstream channel also need streaming and tool/function calling. Search, image, speech, and embedding services may need separate endpoints or keys.

Troubleshooting

ErrorAction
401/403Check the key, environment, group access, balance, and key restrictions
404 or HTML responseCheck the API domain and protocol; avoid duplicated /v1/v1
Model not foundUse an ID from Check models, not a display name
Chat works but tools failVerify tool calling on the model/channel and choose the correct adapter
400 for unsupported parametersRead the error; remove unsupported reasoning, image, or request options
429Check quota and reduce concurrent requests/agents

On this page