{"id":467,"date":"2026-11-13T10:02:06","date_gmt":"2026-11-13T02:02:06","guid":{"rendered":"https:\/\/qoraapi.com\/blog\/zed-openai-compatible-provider\/"},"modified":"2026-11-23T10:02:29","modified_gmt":"2026-11-23T02:02:29","slug":"zed-openai-compatible-provider","status":"publish","type":"post","link":"https:\/\/qoraapi.com\/blog\/zed-openai-compatible-provider\/","title":{"rendered":"Zed OpenAI Compatible Provider: Setup Guide for Qora API (2026)"},"content":{"rendered":"<p><strong>Short answer:<\/strong> To use Qora API in Zed, add an <code>openai_compatible<\/code> provider to <code>settings.json<\/code> with <code>api_url<\/code> set to <code>https:\/\/qoraapi.com\/v1<\/code>, list your model IDs under <code>available_models<\/code>, and paste your Qora API key in Agent Settings. As of November 2026, DeepSeek V4.1 Flash on Qora API costs $0.15 input \/ $0.45 output per 1M tokens. Qora is for users outside mainland China.<\/p>\n<h2>How do I add an OpenAI-compatible provider in Zed?<\/h2>\n<p>Zed&#8217;s <a href=\"https:\/\/zed.dev\/docs\/ai\/use-api-access#openai-compatible\" rel=\"noopener\" target=\"_blank\">official documentation<\/a> describes two ways to add a custom OpenAI-compatible endpoint: the <code>Add Provider<\/code> button in Agent Settings (open it with the <code>agent: open settings<\/code> action), or the <code>language_models.openai_compatible<\/code> block in your settings file. Both need a provider name, an API URL, a model ID and a context window.<\/p>\n<h3>Option 1: Settings UI<\/h3>\n<ol>\n<li>Open the command palette and run <code>agent: open settings<\/code>.<\/li>\n<li>In the LLM Providers section click <strong>Add Provider<\/strong>.<\/li>\n<li>Provider name: <code>qora<\/code>. API URL: <code>https:\/\/qoraapi.com\/v1<\/code>.<\/li>\n<li>Paste your Qora API key, then add a model ID such as <code>deepseek\/deepseek-v4.1-flash<\/code> with its context window.<\/li>\n<\/ol>\n<h3>Option 2: settings.json<\/h3>\n<p>Open <code>zed: open settings file<\/code> and add this. Keys saved through the UI go to your system keychain, not this file.<\/p>\n<pre><code>{\n  \"language_models\": {\n    \"openai_compatible\": {\n      \"qora\": {\n        \"api_url\": \"https:\/\/qoraapi.com\/v1\",\n        \"available_models\": [\n          {\n            \"name\": \"deepseek\/deepseek-v4.1-flash\",\n            \"display_name\": \"DeepSeek V4.1 Flash (Qora)\",\n            \"max_tokens\": 128000\n          },\n          {\n            \"name\": \"deepseek\/deepseek-v4-pro\",\n            \"display_name\": \"DeepSeek V4 Pro (Qora)\",\n            \"max_tokens\": 128000\n          },\n          {\n            \"name\": \"glm-5.2\",\n            \"display_name\": \"GLM 5.2 (Qora)\",\n            \"max_tokens\": 128000\n          }\n        ]\n      }\n    }\n  }\n}<\/code><\/pre>\n<p>The <code>name<\/code> must be the exact model ID Qora lists on <a href=\"https:\/\/qoraapi.com\/pricing\">\/pricing<\/a>. Set <code>max_tokens<\/code> to the context window you want Zed to assume; check the model&#8217;s page for the real limit rather than copying the number above blindly.<\/p>\n<h2>Where does Zed read the Qora API key from?<\/h2>\n<p>Zed reads an environment variable generated from the provider ID: upper snake case plus <code>_API_KEY<\/code>. For provider ID <code>qora<\/code> that is <code>QORA_API_KEY<\/code>, per Zed&#8217;s docs. Non-empty environment variables take precedence over the keychain, so if you change keys and Zed keeps using the old one, unset the variable and restart Zed.<\/p>\n<pre><code># macOS \/ Linux (add to your shell profile, then launch Zed from that shell)\nexport QORA_API_KEY=\"sk-your-qora-key\"<\/code><\/pre>\n<p>Get a key at <a href=\"https:\/\/qoraapi.com\/register\">qoraapi.com\/register<\/a>. The minimum top-up is $50. New users can ask for a $5 trial by contacting X <strong>@QoraAPI<\/strong> or support@qoraapi.com.<\/p>\n<h2>Which models should I use in Zed through Qora API?<\/h2>\n<p>Zed&#8217;s agent relies on tool calling, and by default OpenAI-compatible models in Zed are assumed to support tools but not images or parallel tool calls. Pick models that handle tool use well. These are Qora&#8217;s default-group prices as of November 2026, computed from the live <a href=\"https:\/\/qoraapi.com\/pricing\">pricing page<\/a>:<\/p>\n<table>\n<thead>\n<tr>\n<th>Model<\/th>\n<th>Model ID<\/th>\n<th>Qora input \/ output per 1M<\/th>\n<th>Official price<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><a href=\"https:\/\/qoraapi.com\/models\/deepseek-v4-1-flash-api\">DeepSeek V4.1 Flash<\/a><\/td>\n<td><code>deepseek\/deepseek-v4.1-flash<\/code><\/td>\n<td>$0.15 \/ $0.45<\/td>\n<td>$0.30 \/ $1.20<\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/qoraapi.com\/models\/glm-5-2-api\">GLM 5.2<\/a><\/td>\n<td><code>glm-5.2<\/code><\/td>\n<td>$0.42 \/ $1.32<\/td>\n<td>$1.40 \/ $4.40<\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/qoraapi.com\/models\/gemini-4-argon-api\">Gemini 4 Argon<\/a><\/td>\n<td><code>gemini-4-argon<\/code><\/td>\n<td>$0.60 \/ $3.00<\/td>\n<td>$2 \/ $10 (rising to $4 \/ $20 on 1 Dec 2026)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Prices change, so treat <a href=\"https:\/\/qoraapi.com\/pricing\">\/pricing<\/a> as the source of truth. Claude, GPT and Grok models are also available; see \/pricing for their current Qora prices. Savings vary by model, up to 70% off official prices, and DeepSeek&#8217;s own off-peak and cache-hit rates can undercut it for some workloads.<\/p>\n<h2>How do I enable reasoning or thinking for a model in Zed?<\/h2>\n<p>Set <code>reasoning_effort<\/code> on the model. Zed&#8217;s docs say valid values are <code>none<\/code>, <code>minimal<\/code>, <code>low<\/code>, <code>medium<\/code>, <code>high<\/code>, <code>xhigh<\/code> and <code>max<\/code>, and that Zed sends OpenAI-style <code>reasoning_effort<\/code> on chat-completions requests. Whether the upstream model honors a given level depends on the model.<\/p>\n<pre><code>{\n  \"name\": \"deepseek\/deepseek-v4-pro\",\n  \"display_name\": \"DeepSeek V4 Pro (Qora)\",\n  \"max_tokens\": 128000,\n  \"reasoning_effort\": \"high\"\n}<\/code><\/pre>\n<p>If a model needs the Responses API, Zed lets you set <code>capabilities.chat_completions<\/code> to <code>false<\/code>, and it will call the <code>\/v1\/responses<\/code> endpoint instead. Qora lists <code>\/v1\/chat\/completions<\/code> and <code>\/v1\/responses<\/code> among its supported endpoints.<\/p>\n<h2>How do I test the Qora endpoint before configuring Zed?<\/h2>\n<p>Run one curl call. If this works, the same URL, key and model ID will work in Zed.<\/p>\n<pre><code>curl https:\/\/qoraapi.com\/v1\/chat\/completions \n  -H \"Authorization: Bearer $QORA_API_KEY\" \n  -H \"Content-Type: application\/json\" \n  -d '{\"model\":\"deepseek\/deepseek-v4.1-flash\",\"messages\":[{\"role\":\"user\",\"content\":\"Say hi\"}]}'<\/code><\/pre>\n<h2>Zed + Qora API FAQ<\/h2>\n<h3>What is the Qora API base URL for Zed?<\/h3>\n<p>The base URL is <code>https:\/\/qoraapi.com\/v1<\/code>. Put it in <code>api_url<\/code> without a trailing path such as <code>\/chat\/completions<\/code>; Zed appends that itself.<\/p>\n<h3>Does this configure Zed&#8217;s external agents or terminal threads?<\/h3>\n<p>No. Zed&#8217;s docs state that model access paths configure the Zed Agent, Inline Assistant, Git commit generation and thread summaries, while External Agents and Terminal Threads manage their own model access.<\/p>\n<h3>Why does my Qora model not show up in Zed&#8217;s model picker?<\/h3>\n<p>Usually the JSON is invalid or the provider has no <code>available_models<\/code> entry. Check <code>settings.json<\/code> for syntax errors, confirm the model <code>name<\/code> matches a Qora model ID exactly, and restart Zed after changing environment variables.<\/p>\n<h3>Can I use Claude models in Zed through Qora?<\/h3>\n<p>Yes, through the OpenAI-compatible provider using the Claude model ID listed on \/pricing. Claude 5.x models sit in a stable price group; check their current price on \/pricing, since several use tiered billing.<\/p>\n<h3>Is Qora API available in mainland China?<\/h3>\n<p>No. Qora API serves users outside mainland China only.<\/p>\n<h3>How do I get Qora credits?<\/h3>\n<p>Register at <a href=\"https:\/\/qoraapi.com\/register\">qoraapi.com\/register<\/a>; the minimum top-up is $50. For a $5 trial, contact X @QoraAPI or support@qoraapi.com.<\/p>\n<p>Using other editors? See <a href=\"https:\/\/qoraapi.com\/blog\/connect-cursor-cline-continue-custom-api-endpoint\/\">connecting Cursor, Cline and Continue to a custom endpoint<\/a> and <a href=\"https:\/\/qoraapi.com\/blog\/cline-cheap-claude-api\/\">Cline with a cheap Claude API<\/a>. <a href=\"https:\/\/qoraapi.com\/register\">Create your Qora API key<\/a> to start.<\/p>\n<p>Also see: <a href=\"https:\/\/qoraapi.com\/blog\/opencode-custom-provider\/\">OpenCode custom provider setup<\/a>.<\/p>\n<p>Using workflow automation? See our <a href=\"\/blog\/n8n-openai-compatible-api\/\">n8n OpenAI-compatible API setup guide<\/a> for the same base URL in n8n.<\/p>\n<p>Using Kilo Code? See <a href=\"https:\/\/qoraapi.com\/blog\/kilo-code-custom-api-provider\/\">how to add Qora API as a custom provider in Kilo Code<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Short answer: To use Qora API in Zed, add an openai_compatible provider to settings.json with api_url set to https:\/\/qoraapi.com\/v1, list your model IDs under available_models, and paste your Qora API key in Agent Settings. As of November 2026, DeepSeek V4.1 Flash on Qora API costs $0.15 input \/ $0.45 output per 1M tokens. Qora is [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-467","post","type-post","status-publish","format-standard","hentry","category-ai-api"],"_links":{"self":[{"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/posts\/467","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/comments?post=467"}],"version-history":[{"count":3,"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/posts\/467\/revisions"}],"predecessor-version":[{"id":494,"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/posts\/467\/revisions\/494"}],"wp:attachment":[{"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/media?parent=467"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/categories?post=467"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/tags?post=467"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}