# Flex247 API Documentation > Machine-readable documentation for Flex247: one gateway for OpenAI-compatible and Anthropic-compatible APIs, models, agent tools, IDEs, images and video. Flex247 public API base URL: `https://api.noflex.work/v1`. ## Start here - [Human documentation](https://ai-apidocs.noflex.work/): Visual documentation with search and language controls. - [Complete Markdown corpus](https://ai-apidocs.noflex.work/llms-full.txt): All guides in English, Simplified Chinese and Bahasa Malaysia in one file. - [Machine-readable JSON manifest](https://ai-apidocs.noflex.work/ai-docs.json): Structured list of every Markdown document and fallback URL. - [Cloudflare Pages fallback](https://flex247-docs-noflex.pages.dev/llms.txt): Alternate public endpoint for non-browser agents. - [Community](https://community.noflex.work): Flex247 support and announcements. ## Agent guidance - Prefer the English documents for unambiguous API field names. - Use the page-level Markdown files when only one task is relevant. - Use `llms-full.txt` when broad offline context is required. - Never send a real API key to an untrusted tool. Examples use placeholder keys only. ## English Markdown - [Anthropic Protocol](https://ai-apidocs.noflex.work/markdown/en/anthropic-compatible.md): Use this protocol with Claude Code, Anthropic SDKs and Messages API clients. - [Text & Code Requests](https://ai-apidocs.noflex.work/markdown/en/api-examples.md): These examples use the Flex247 OpenAI Compatible endpoint. - [Account & API Keys](https://ai-apidocs.noflex.work/markdown/en/api-keys.md): An API key represents access to your account. Give each application its own key to make usage tracking, rotation and incident response easier. - [IDEs & Chat Clients](https://ai-apidocs.noflex.work/markdown/en/apps-and-ides.md): Most clients that support custom providers can connect with the same Flex247 parameters. - [Connect CC Switch to Flex AI](https://ai-apidocs.noflex.work/markdown/en/cc-switch.md): CC Switch is a third-party cross-platform desktop tool for managing providers across Claude Code, Codex, OpenCode and other apps. Its local routing service can also record requests - [Claude Code](https://ai-apidocs.noflex.work/markdown/en/claude-code.md): Connect Claude Code to Flex247 through its Anthropic-compatible environment variables. - [Connect CLIProxyAPI to Flex AI](https://ai-apidocs.noflex.work/markdown/en/cliproxyapi.md): CLIProxyAPI is a popular open-source local proxy that exposes OpenAI, Responses, Claude and Gemini-compatible interfaces for Codex, Claude Code, Gemini and other clients. It is the - [Connect Cockpit Tools to Flex AI](https://ai-apidocs.noflex.work/markdown/en/cockpit-tools.md): Cockpit Tools is a third-party, local-first account manager for AI IDEs and Codex. It can manage custom Codex model providers and expose an authenticated local Codex API service. - [Codex](https://ai-apidocs.noflex.work/markdown/en/codex.md): A Codex custom provider uses the Responses API. Select a Flex247 model that supports /v1/responses. - [Join the Flex247 Community](https://ai-apidocs.noflex.work/markdown/en/community.md): Get integration help, share workflows and learn from other Flex247 users. - [Connect DeepSeek Harness to Flex AI](https://ai-apidocs.noflex.work/markdown/en/deepseek-harness.md): DeepSeek Harness (dsh) is an open-source agent harness developed by DeepSeek AI. Its local Web UI provides session and workspace management, agent presets, plugins and custom model - [FAQ](https://ai-apidocs.noflex.work/markdown/en/faq.md): Check that the key is complete, contains no whitespace and is sent with the correct header: - [Quickstart](https://ai-apidocs.noflex.work/markdown/en/getting-started.md): Create an account, generate an API key and send your first Flex247 request. - [Flex247 API Documentation](https://ai-apidocs.noflex.work/markdown/en/index.md): Flex247 provides OpenAI-compatible and Anthropic-compatible access to multiple AI model ecosystems through one API gateway. - [Images & Video](https://ai-apidocs.noflex.work/markdown/en/media.md): Multimodal parameters differ by model. Check [Model Square](https://noflex.work/pricing) for capabilities, billing units and supported dimensions. - [Models & Endpoints](https://ai-apidocs.noflex.work/markdown/en/models-and-endpoints.md): Flex247 supports two common API patterns. Choose the one required by your SDK or client. - [OpenAI Compatible](https://ai-apidocs.noflex.work/markdown/en/openai-compatible.md): Use this protocol with OpenAI-style SDKs, Chat Completions and supported Responses models. - [OpenCode](https://ai-apidocs.noflex.work/markdown/en/opencode.md): Configure Flex247 in opencode.json. Choose one provider definition based on your model protocol. - [Use the Flex AI API in OpenWrite](https://ai-apidocs.noflex.work/markdown/en/openwrite.md): OpenWrite is an extensible AI writing platform for novels and long-form projects. It provides conversational writing, continuation, outlining, analysis and project-knowledge tools. ## 简体中文 Markdown - [Anthropic Protocol](https://ai-apidocs.noflex.work/markdown/zh/anthropic-compatible.md): 适用于 Claude Code、Anthropic SDK 和使用 Messages API 的应用。 - [文本与代码调用](https://ai-apidocs.noflex.work/markdown/zh/api-examples.md): 以下示例均使用 Flex247 OpenAI Compatible 端点。 - [账户与 API 密钥](https://ai-apidocs.noflex.work/markdown/zh/api-keys.md): API 密钥代表你的账户权限。为每个应用单独创建密钥,可以让停用、轮换和用量排查更简单。 - [IDE 与聊天客户端](https://ai-apidocs.noflex.work/markdown/zh/apps-and-ides.md): 大多数支持自定义 Provider 的 IDE、插件和聊天客户端,都可以用同一组参数连接 Flex247。 - [CC Switch 接入 Flex AI](https://ai-apidocs.noflex.work/markdown/zh/cc-switch.md): CC Switch 是一个跨平台的第三方桌面工具,用于管理 Claude Code、Codex、OpenCode 等应用的供应商配置,并可通过本地路由服务记录请求、统计用量和执行故障转移。 - [Claude Code](https://ai-apidocs.noflex.work/markdown/zh/claude-code.md): Claude Code 可通过环境变量连接 Flex247 的 Anthropic Protocol。 - [CLIProxyAPI 接入 Flex AI](https://ai-apidocs.noflex.work/markdown/zh/cliproxyapi.md): CLIProxyAPI 是一个高 Star 的开源本地代理,为 Codex、Claude Code、Gemini 等客户端提供 OpenAI、Responses、Claude 与 Gemini 兼容接口。它是本分类中额外选择的本地 API 路由工具。 - [Cockpit Tools 接入 Flex AI](https://ai-apidocs.noflex.work/markdown/zh/cockpit-tools.md): Cockpit Tools 是一款第三方、本地优先的 AI IDE 与 Codex 账号管理工具。它可以管理自定义 Codex 模型供应商,也可以在本机启动带认证的 Codex API 服务。 - [Codex](https://ai-apidocs.noflex.work/markdown/zh/codex.md): Codex 自定义 Provider 使用 Responses API。请先确认选择的 Flex247 模型支持 /v1/responses。 - [加入 Flex247 社区](https://ai-apidocs.noflex.work/markdown/zh/community.md): 获取接入帮助、查看使用技巧,并与其他 Flex247 用户交流。 - [DeepSeek Harness 接入 Flex AI](https://ai-apidocs.noflex.work/markdown/zh/deepseek-harness.md): DeepSeek Harness(dsh)是由 DeepSeek AI 开发的开源 Agent Harness。它提供本地 Web UI、会话与工作区管理、Agent 预设、插件系统和自定义模型提供方,可通过 OpenAI Responses 协议接入 Flex AI(Flex247)。 - [常见问题](https://ai-apidocs.noflex.work/markdown/zh/faq.md): 检查密钥是否完整、是否包含空格,以及请求头是否正确: - [五分钟接入](https://ai-apidocs.noflex.work/markdown/zh/getting-started.md): 本页带你完成注册、创建 API 密钥并发出第一条请求。 - [Flex247 API 文档](https://ai-apidocs.noflex.work/markdown/zh/index.md): Flex247 provides OpenAI-compatible and Anthropic-compatible access to multiple AI model ecosystems through one API gateway. - [图像与视频](https://ai-apidocs.noflex.work/markdown/zh/media.md): 多模态模型的参数可能不同。先在[模型广场](https://noflex.work/pricing)确认模型能力、计费方式与支持的尺寸。 - [模型与端点](https://ai-apidocs.noflex.work/markdown/zh/models-and-endpoints.md): Flex247 提供两种常用协议。选择协议时,以你正在使用的 SDK 或客户端要求为准。 - [OpenAI Compatible](https://ai-apidocs.noflex.work/markdown/zh/openai-compatible.md): 适用于使用 OpenAI 风格 SDK、Chat Completions 或 Responses API 的应用。 - [OpenCode](https://ai-apidocs.noflex.work/markdown/zh/opencode.md): OpenCode 可通过 opencode.json 配置 Flex247。以下两种 Provider 按模型协议二选一。 - [在 OpenWrite 中使用 Flex AI API](https://ai-apidocs.noflex.work/markdown/zh/openwrite.md): OpenWrite 是一个开放式 AI 写作平台,面向小说与长篇内容创作,提供对话、续写、拆解、扫描和项目资料管理等写作能力。它支持自定义 AI 提供商,因此可以通过 OpenAI Compatible 接口接入 Flex AI(Flex247)。 ## Bahasa Malaysia Markdown - [Protokol Anthropic](https://ai-apidocs.noflex.work/markdown/ms/anthropic-compatible.md): Gunakan protokol ini dengan Claude Code, SDK Anthropic dan klien Messages API. - [Permintaan Teks & Kod](https://ai-apidocs.noflex.work/markdown/ms/api-examples.md): Contoh ini menggunakan endpoint Serasi OpenAI Flex247. - [Akaun & Kunci API](https://ai-apidocs.noflex.work/markdown/ms/api-keys.md): Kunci API mewakili akses kepada akaun anda. Berikan setiap aplikasi kunci tersendiri supaya pemantauan, penukaran dan penyelesaian insiden lebih mudah. - [IDE & Klien Sembang](https://ai-apidocs.noflex.work/markdown/ms/apps-and-ides.md): Kebanyakan klien yang menyokong penyedia tersuai boleh menggunakan parameter Flex247 yang sama. - [Claude Code](https://ai-apidocs.noflex.work/markdown/ms/claude-code.md): Sambungkan Claude Code kepada Flex247 melalui pemboleh ubah persekitaran yang serasi Anthropic. - [Codex](https://ai-apidocs.noflex.work/markdown/ms/codex.md): Penyedia tersuai Codex menggunakan Responses API. Pilih model Flex247 yang menyokong /v1/responses. - [Sertai Komuniti Flex247](https://ai-apidocs.noflex.work/markdown/ms/community.md): Dapatkan bantuan integrasi, kongsi aliran kerja dan belajar bersama pengguna Flex247 yang lain. - [Soalan Lazim](https://ai-apidocs.noflex.work/markdown/ms/faq.md): Pastikan kunci lengkap, tiada ruang tambahan dan dihantar dengan pengepala yang betul: - [Panduan Mula Pantas](https://ai-apidocs.noflex.work/markdown/ms/getting-started.md): Cipta akaun, jana kunci API dan hantar permintaan Flex247 pertama anda. - [Dokumentasi API Flex247](https://ai-apidocs.noflex.work/markdown/ms/index.md): Flex247 provides OpenAI-compatible and Anthropic-compatible access to multiple AI model ecosystems through one API gateway. - [Imej & Video](https://ai-apidocs.noflex.work/markdown/ms/media.md): Parameter multimodal berbeza mengikut model. Semak [Dataran Model](https://noflex.work/pricing) untuk keupayaan, unit caj dan saiz yang disokong. - [Model & Endpoint](https://ai-apidocs.noflex.work/markdown/ms/models-and-endpoints.md): Flex247 menyokong dua corak API biasa. Pilih corak yang diperlukan oleh SDK atau klien anda. - [Serasi OpenAI](https://ai-apidocs.noflex.work/markdown/ms/openai-compatible.md): Gunakan protokol ini dengan SDK gaya OpenAI, Chat Completions dan model Responses yang disokong. - [OpenCode](https://ai-apidocs.noflex.work/markdown/ms/opencode.md): Konfigurasikan Flex247 dalam opencode.json. Pilih satu definisi penyedia mengikut protokol model.