Skip to main content
The AI Gateway is an LLM proxy inside the qBraid API. It speaks the OpenAI wire format and the Anthropic wire format. You keep your existing SDK and change two things: the base URL and the key.
Every request authenticates with your qBraid API key in the X-API-Key header. Create a key at account.qbraid.com/account/api-keys. The API Keys guide explains how to manage and rotate keys.

Endpoints

Why the double v1 on the Anthropic routes: Anthropic SDKs append /v1/messages to whatever base URL you give them. The gateway matches that shape, so the same base URL works for both wire formats.

Quickstart

The Anthropic SDK sends the x-api-key header on its own, so its api_key argument takes your qBraid key directly. The OpenAI SDK only sends a bearer header, so give it the key through default_headers instead.

Use with Claude Code

Claude Code talks the Anthropic wire format, so it can run on your qBraid quota. Set the base URL and your key, then start it:
ANTHROPIC_API_KEY reaches the gateway as the x-api-key header.

Available models

The /models endpoint is the source of truth. Model lineups change, so query it rather than trusting a list you read somewhere:
The lineup and pay-as-you-go pricing as of August 2026, in USD per million tokens: Costs draw from your plan’s monthly AI quota first, then from credits at 100 credits = $1. Usage Quotas explains the switch-over. Aliases such as openai/gpt-5.5 and qbraid/claude-opus-5 resolve to the same models. Configs written for other gateways usually work unchanged.

Check your quota

Returns your LLM subscription state and remaining quota. Streaming responses also carry standard rate-limit headers.
The gateway gives your code raw model access. If you want an AI client to act on the qBraid platform itself, with tools for devices, jobs, and credits, connect the MCP Server. The two work well together.