Developer guides
Copy-paste guides for calling every model on 666 AI with one OpenAI-compatible key. Every code sample here was run against our live API.
Python: call any model with the official OpenAI or Anthropic SDKUse the official OpenAI or Anthropic Python SDK with 666 AI: chat, streaming, Responses API and embeddings. Tested code.Node.js / TypeScript: official OpenAI or Anthropic SDKPoint the official openai or @anthropic-ai/sdk Node package at 666 AI. Chat and streaming examples.Fixing API errors: 401, 403, 404, 429, 5xxWhat 401 Invalid token, 403 insufficient quota, 404, 429 and 5xx mean when calling AI models through 666 AI, and how to fix each.Claude Code with a custom endpointRun Claude Code on Claude Sonnet / Opus / Haiku through 666 AI: environment variables, settings.json, and fixes for common 400 errors. Tested end to end.Cursor: one key for 200+ modelsAdd 666 AI to Cursor: turn on your OpenAI API key, override the base URL, add model names. Limits and gotchas from Cursor's docs.Cline: OpenAI Compatible providerConfigure Cline's OpenAI Compatible provider with 666 AI: base URL, API key, model ID and model configuration.Continue: config.yaml for 666 AIA ready config.yaml for Continue (VS Code / JetBrains) using 666 AI for chat, edit and embeddings.LangChain: ChatOpenAI with a custom base URLChatOpenAI and OpenAIEmbeddings pointed at 666 AI, with streaming. Tested code for Python and JavaScript.LlamaIndex: OpenAILikeUse OpenAILike and OpenAILikeEmbedding with 666 AI. Tested; includes the temperature gotcha for Claude 5.x.Vercel AI SDK: createOpenAICompatiblegenerateText, streamText and embed with @ai-sdk/openai-compatible pointed at 666 AI. Tested code.n8n: OpenAI credential with a custom Base URLSet up n8n's OpenAI credential with 666 AI, use it in the AI Agent / OpenAI Chat Model node, and avoid the Responses API switch that breaks Claude.Dify: OpenAI-API-compatible providerInstall the OpenAI-API-compatible provider in Dify and add 666 AI models: Model Name, API Base URL, context size and tool calling.Chat apps: Open WebUI, Cherry Studio, LobeChatAdd 666 AI as an OpenAI-compatible connection in Open WebUI, Cherry Studio and LobeChat — URLs, model lists and the /v1 rules for each.