# 5abeer — full docs > 5abeer (خبير) is an independent service, based in Egypt, that runs the official AI apps — such as ChatGPT, Claude, Claude Code and Codex — for less than their official price, and serves Claude, GPT and Gemini models through one OpenAI-compatible API below official prices. خبير (5abeer) خدمة مستقلة مقرّها مصر، تشغّل التطبيقات الرسمية للذكاء الاصطناعي مثل ChatGPT وClaude وClaude Code وCodex بأقل من سعرها الرسمي، وتقدّم نماذج Claude وGPT وGemini عبر API واحد متوافق مع OpenAI بأقل من أسعارها الرسمية. ## Key facts - Plans: One Bundle plan runs every official AI app, and you switch between them as you like. Every Bundle plan runs every official app, from the smallest to the largest. The apps: Claude Desktop, Claude Code, ChatGPT Desktop, Codex, Google Antigravity, OpenCode, OpenClaw, Hermes. - A plan runs on your own official account and is activated within minutes. Subscribe to the official apps for less than their official price. Plans: Pro, Max (formerly Max 5x), Ultra (formerly Max 20x). Prices: https://5abeer.ai/en/pricing - Plans are for the supported apps. To use the models from your own code, create an API key. - API: Claude, GPT and Gemini models on one balance, with a key per provider, compatible with the OpenAI and Anthropic APIs, at 70% below the official list price. Example: Claude Sonnet 5.5 costs 30 EGP input / 150 EGP output per 1M tokens. - In Egypt the minimum API top-up is 10 EGP, paid with any mobile wallet (Vodafone Cash, Orange Cash, Etisalat Cash, WE Pay, bank wallets) or InstaPay, and anywhere with any bank card, Apple Pay or Google Pay. No subscription and no monthly fee. - Automation: n8n and any tool that takes an OpenAI base URL work with https://api.5abeer.ai/v1 and your key. The lowest-cost model is Claude Haiku 5.5 at 1.50 EGP input / 7.50 EGP output per 1M tokens, so a 10 EGP top-up covers about 2,600 short runs (1,000 tokens in and 300 out each). - Sign up on the website with email or Google and create the API key in the dashboard. No app download is needed for the API. - Names: 5abeer (خبير, 5abeer AI, Khabeer, 5abeer.ai, الخبير, خبير AI, 5abeer (خبير)). 5abeer (خبير) is the AI service at 5abeer.ai, not the Arabic word for an expert or the name Abeer. - About us and how to verify us: https://5abeer.ai/en/about ## حقائق أساسية - الباقات: باشتراك Bundle واحد تشغّل كل برامج AI الرسمية وتتنقّل بينها كما تشاء. كل باقات Bundle تشغّل كل التطبيقات الرسمية، من أقل باقة إلى أعلاها. التطبيقات: Claude Desktop، Claude Code، ChatGPT Desktop، Codex، Google Antigravity، OpenCode، OpenClaw، Hermes. - تعمل الباقة على حسابك الرسمي، والاشتراك يُفعَّل خلال دقائق. اشترك في التطبيقات الرسمية بأقل من سعرها الرسمي. الباقات: Pro وMax (سابقًا Max 5x) وUltra (سابقًا Max 20x). الأسعار: https://5abeer.ai/ar/pricing - الباقات مخصّصة للتطبيقات المدعومة؛ لاستخدام النماذج من الكود الخاص بك أنشئ مفتاح API. - الـ API: نماذج Claude وGPT وGemini برصيد واحد ومفتاح لكل مزوّد، متوافق مع واجهتي OpenAI وAnthropic، وأقل من السعر الرسمي بنسبة 70%. مثال: Claude Sonnet 5.5 بسعر 30 ج.م للمدخلات و150 ج.م للمخرجات لكل مليون توكن. - في مصر أقل شحن لرصيد الـ API هو 10 جنيهات، بأي محفظة إلكترونية (فودافون كاش وأورنج كاش واتصالات كاش ووي باي ومحافظ البنوك) أو إنستاباي، ومن أي مكان بأي بطاقة بنكية أو Apple Pay أو Google Pay. بلا اشتراك ولا رسوم شهرية. - الأتمتة: يعمل n8n وكل أداة تقبل عنوان OpenAI الأساسي مع https://api.5abeer.ai/v1 ومفتاحك. أقل النماذج تكلفة هو Claude Haiku 5.5 بسعر 1.50 ج.م للمدخلات و7.50 ج.م للمخرجات لكل مليون توكن، فيكفي شحن 10 جنيهات لنحو 2,600 تشغيلة قصيرة (1,000 توكن مدخلات و300 توكن مخرجات لكل منها). - سجّل في الموقع ببريدك أو بحساب Google، وأنشئ مفتاح الـ API من لوحة التحكم. لا تحتاج إلى تنزيل أي برنامج لاستخدام الـ API. - الأسماء: خبير (خبير, 5abeer AI, Khabeer, 5abeer.ai, الخبير, خبير AI, 5abeer (خبير)). خبير (5abeer) اسم خدمة الذكاء الاصطناعي على الموقع 5abeer.ai، وليس كلمة «خبير» بمعناها العام. - من نحن وكيف تتحقق منا: https://5abeer.ai/ar/about Last updated: 2026-11-16 Every published 5abeer docs page, English first, then Arabic. Each page starts with its canonical URL. Prices are in USD (the account currency) per 1M tokens unless a page says otherwise. ## Models (USD per 1M tokens) | Model | API id | Input (5abeer) | Output (5abeer) | Input (official) | Output (official) | Context | Page | | --- | --- | --- | --- | --- | --- | --- | --- | | Claude Sonnet 5.5 | `claude-sonnet-5.5` | $0.60 | $3 | $2 | $10 | 1M | https://5abeer.ai/en/models/claude-sonnet-5.5 | | Claude Opus 5.5 | `claude-opus-5.5` | $1.20 | $6 | $4 | $20 | 1M | https://5abeer.ai/en/models/claude-opus-5.5 | | Claude Fable 5.1 | `claude-fable-5.1` | $3 | $15 | $10 | $50 | — | https://5abeer.ai/en/models/claude-fable-5.1 | | Claude Fable 5 | `claude-fable-5` | $3 | $15 | $10 | $50 | 1M | https://5abeer.ai/en/models/claude-fable-5 | | Claude Opus 4.6 | `claude-opus-4.6` | $1.50 | $7.50 | $5 | $25 | 1M | https://5abeer.ai/en/models/claude-opus-4.6 | | Claude Opus 4.7 | `claude-opus-4.7` | $1.50 | $7.50 | $5 | $25 | 1M | https://5abeer.ai/en/models/claude-opus-4.7 | | Claude Opus 5 | `claude-opus-5` | $1.50 | $7.50 | $5 | $25 | 1M | https://5abeer.ai/en/models/claude-opus-5 | | Claude Sonnet 5 | `claude-sonnet-5` | $0.60 | $3 | $2 | $10 | 1M | https://5abeer.ai/en/models/claude-sonnet-5 | | Claude Sonnet 4.6 | `claude-sonnet-4.6` | $0.90 | $4.50 | $3 | $15 | 1M | https://5abeer.ai/en/models/claude-sonnet-4.6 | | Claude Haiku 5.5 | `claude-haiku-5.5` | $0.03 | $0.15 | $0.10 | $0.50 | 1M | https://5abeer.ai/en/models/claude-haiku-5.5 | | Claude Haiku 4.5 | `claude-haiku-4.5` | $0.30 | $1.50 | $1 | $5 | 200K | https://5abeer.ai/en/models/claude-haiku-4.5 | | GPT-6.2 Sol | `gpt-6.2-sol` | $0.60 | $3 | $2 | $10 | — | https://5abeer.ai/en/models/gpt-6.2-sol | | GPT-6.2 Astra | `gpt-6.2-astra` | $2.40 | $12 | $8 | $40 | — | https://5abeer.ai/en/models/gpt-6.2-astra | | GPT-6.1 Sol | `gpt-6.1-sol` | $0.60 | $3 | $2 | $10 | 922K | https://5abeer.ai/en/models/gpt-6.1-sol | | GPT-6 Astra | `gpt-6-astra` | $3 | $15 | $10 | $50 | — | https://5abeer.ai/en/models/gpt-6-astra | | GPT-6 Sol | `gpt-6-sol` | $0.60 | $3 | $2 | $10 | 922K | https://5abeer.ai/en/models/gpt-6-sol | | GPT-6 Luna | `gpt-6-luna` | $0.03 | $0.15 | $0.10 | $0.50 | 922K | https://5abeer.ai/en/models/gpt-6-luna | | GPT-5.6 Luna | `gpt-5.6-luna` | $0.06 | $0.36 | $0.20 | $1.20 | 400K | https://5abeer.ai/en/models/gpt-5.6-luna | | GPT-5.6 Terra | `gpt-5.6-terra` | $0.60 | $3.60 | $2 | $12 | 400K | https://5abeer.ai/en/models/gpt-5.6-terra | | GPT-5.6 Sol | `gpt-5.6-sol` | $1.20 | $6 | $4 | $20 | 400K | https://5abeer.ai/en/models/gpt-5.6-sol | | GPT-5.5 | `gpt-5.5` | $1.50 | $9 | $5 | $30 | 1.05M | https://5abeer.ai/en/models/gpt-5.5 | | GPT-5.4 | `gpt-5.4` | $0.75 | $4.50 | $2.50 | $15 | 1.05M | https://5abeer.ai/en/models/gpt-5.4 | | GPT-5.4 Mini | `gpt-5.4-mini` | $0.23 | $1.35 | $0.75 | $4.50 | 400K | https://5abeer.ai/en/models/gpt-5.4-mini | | GPT-5.2 | `gpt-5.2` | $0.53 | $4.20 | $1.75 | $14 | 272K | https://5abeer.ai/en/models/gpt-5.2 | | GPT Image 1 | `gpt-image-1` | — | — | — | — | — | https://5abeer.ai/en/models/gpt-image-1 | | GPT Image 1.5 | `gpt-image-1.5` | — | — | — | — | — | https://5abeer.ai/en/models/gpt-image-1.5 | | GPT Image 2 | `gpt-image-2` | — | — | — | — | — | https://5abeer.ai/en/models/gpt-image-2 | | GPT Image 2.5 Flare | `gpt-image-2.5-flare` | — | — | — | — | — | https://5abeer.ai/en/models/gpt-image-2.5-flare | | GPT Image 2.5 Sunburst | `gpt-image-2.5-sunburst` | — | — | — | — | — | https://5abeer.ai/en/models/gpt-image-2.5-sunburst | | Gemini 4 Argon | `gemini-4-argon` | $0.60 | $3 | $2 | $10 | — | https://5abeer.ai/en/models/gemini-4-argon | | Gemini 2.5 Pro | `gemini-2.5-pro` | $0.38 | $3 | $1.25 | $10 | 1M | https://5abeer.ai/en/models/gemini-2.5-pro | | Gemini 3.8 Flash | `gemini-3.8-flash` | $0.23 | $1.13 | $0.75 | $3.75 | — | https://5abeer.ai/en/models/gemini-3.8-flash | | Gemini 3 Flash | `gemini-3-flash` | $0.15 | $0.90 | $0.50 | $3 | 1M | https://5abeer.ai/en/models/gemini-3-flash | | Gemini 3.1 Pro | `gemini-3.1-pro` | $0.60 | $3.60 | $2 | $12 | 1M | https://5abeer.ai/en/models/gemini-3.1-pro | | Gemini 3.1 Flash Image (Nano Banana 2) | `gemini-3.1-flash-image` | — | — | — | — | 64K | https://5abeer.ai/en/models/gemini-3.1-flash-image | # Docs (English) --- URL: https://5abeer.ai/en/docs/start/overview # 5abeer overview: API, subscriptions and the app > What 5abeer offers — Claude, GPT and Gemini models through a pay-as-you-go API, subscriptions to the official apps, and the 5abeer AI app. Updated: 2026-10-03 5abeer gives you Claude, GPT and Gemini models in two ways: through the API, paying only for what you use, or through a subscription to the official apps themselves. The 5abeer AI desktop app sets up the tools on your computer to work with 5abeer, with no manual setup. ## Three ways to use 5abeer - [Quickstart](https://5abeer.ai/en/docs/start/quickstart.md): An API key and a balance you top up; you pay only for what you use. - [Plans and prices](https://5abeer.ai/en/pricing): A monthly plan for the official apps, for less than their official price. - [The 5abeer AI app](https://5abeer.ai/en/docs/apps/5abeer-ai.md): A desktop app that sets up your tools for 5abeer. ## Pay-as-you-go API Use every model through the API for less than its official price, and pay for what you use from your balance. There is no monthly plan on this path. - **OpenAI-compatible:** change the base URL and keep your code. - **Compatible with the Anthropic Messages API:** Anthropic's libraries and the tools built on them work with the same kind of key. - **One key per provider:** you create a key for Claude models, another for GPT models, and so on. See [Keys and authentication](https://5abeer.ai/en/docs/start/keys.md). - **A clear price per model:** our price next to the official one, per million tokens, as in this example: Claude Sonnet 5.5 (`claude-sonnet-5.5`) per 1M tokens: input $0.60 (official $2), output $3 (official $10). Official price checked November 21, 2026. ## Subscriptions to the official apps Subscribe to the official apps for less than their official price, on your own official account. A subscription has two usage limits only: a 5-hour limit and a weekly limit, and each renews automatically on schedule. The plans are on the [pricing page](https://5abeer.ai/en/pricing), and how a subscription works is in [How a subscription works](https://5abeer.ai/en/docs/subscriptions/how-it-works.md). Plans are for the supported apps. To use the models from your own code, create an API key. ## The 5abeer AI app A desktop app for Mac, Windows and Linux. You sign in with your 5abeer account and it sets up the supported apps on your computer to run on your subscription, without copying a key or editing a config file. Details in the [5abeer AI guide](https://5abeer.ai/en/docs/apps/5abeer-ai.md). ## Available models These are the leading models available now, with our price per million tokens. The full list and the official prices are on the [models page](https://5abeer.ai/en/models). | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | Claude Sonnet 5.5 | `claude-sonnet-5.5` | $0.60 | $3 | 1M | | Claude Opus 5.5 | `claude-opus-5.5` | $1.20 | $6 | 1M | | GPT-6.2 Sol | `gpt-6.2-sol` | $0.60 | $3 | — | | Gemini 4 Argon | `gemini-4-argon` | $0.60 | $3 | — | | Claude Fable 5.1 | `claude-fable-5.1` | $3 | $15 | — | | Claude Fable 5 | `claude-fable-5` | $3 | $15 | 1M | ## Where to start - [Quickstart](https://5abeer.ai/en/docs/start/quickstart.md): From creating your account to the model's first reply. - [Base URLs](https://5abeer.ai/en/docs/start/base-urls.md): Use the OpenAI or Anthropic library with 5abeer. - [Claude Code](https://5abeer.ai/en/docs/apps/claude-code.md): Run the terminal coding agent on our models. > 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. --- URL: https://5abeer.ai/en/docs/start/quickstart # API quickstart: first Claude, GPT or Gemini call > Send your first request to Claude, GPT or Gemini through one OpenAI-compatible endpoint, in five steps. Updated: 2026-10-03 If your code already talks to OpenAI or Anthropic, the change is two lines: the base URL and the key. These steps take you from a new account to the model's first reply, and the last example comes in four languages: cURL, Python, JavaScript and PowerShell. ### 1. Create your account Sign up with your email, or continue with Google or GitHub. We ask for a phone number once so we can reach you about your account or balance. ### 2. Top up your balance API requests are paid from your balance as you go, and every model costs less than its official price. Before you pay, the top-up screen shows the balance that will be added to your account. Details in [Pricing and balance](https://5abeer.ai/en/docs/start/pricing.md). Claude Sonnet 5.5 (`claude-sonnet-5.5`) per 1M tokens: input $0.60 (official $2), output $3 (official $10). Official price checked November 21, 2026. ### 3. Create an API key In your dashboard open **API → Keys** and create a key for the provider whose models you want. Copy it into an environment variable: macOS / Linux: ```bash export KHABEER_API_KEY="YOUR_5ABEER_API_KEY" ``` Windows: ```powershell $env:KHABEER_API_KEY = "YOUR_5ABEER_API_KEY" ``` > Treat this key like a password. Never ship it in browser code, and don't share it. ### 4. Pick your base URL Use the URL that matches the code you already have. Each format reads the key from its usual header. | Format | Base URL | Key header | | --- | --- | --- | | OpenAI | `https://api.5abeer.ai/v1` | `Authorization: Bearer ` | | Anthropic | `https://api.5abeer.ai` | `x-api-key: ` | | Gemini | `https://api.5abeer.ai/v1beta` | `x-goog-api-key: ` | ### 5. Send your first request Copy the example and run it in the terminal where you saved the key. Pick the format and the language; you can switch the model from the menu above the code. ```bash curl --request POST "https://api.5abeer.ai/v1/chat/completions" \ --header "Authorization: Bearer $KHABEER_API_KEY" \ --header "Content-Type: application/json" \ --data '{"model":"claude-sonnet-5.5","messages":[{"role":"user","content":"Write a product idea in one sentence."}]}' ``` ```python import os import requests response = requests.post( "https://api.5abeer.ai/v1/chat/completions", headers={ "Authorization": f"Bearer {os.environ['KHABEER_API_KEY']}", "Content-Type": "application/json", }, json={ "model": "claude-sonnet-5.5", "messages": [ { "role": "user", "content": "Write a product idea in one sentence." } ] }, stream=False, timeout=60, ) response.raise_for_status() print(response.json()) ``` If you get a reply shaped like the one under the code, everything works. ## If the request fails - [`INVALID_API_KEY`](https://5abeer.ai/en/docs/help/errors.md#INVALID_API_KEY): the key is wrong or was copied incompletely. Check that the environment variable is set in the same terminal. - [`INSUFFICIENT_BALANCE`](https://5abeer.ai/en/docs/help/errors.md#INSUFFICIENT_BALANCE): your balance doesn't cover this request. Top up, then try again. - [`MODEL_PLATFORM_NOT_ALLOWED`](https://5abeer.ai/en/docs/help/errors.md#MODEL_PLATFORM_NOT_ALLOWED): the key belongs to another provider. Create a key for this model's provider. Every code and what it means is in [Errors and fixes](https://5abeer.ai/en/docs/help/errors.md). ## What's next - [Base URLs](https://5abeer.ai/en/docs/start/base-urls.md): Use the OpenAI or Anthropic library without changing your code. - [Claude Code](https://5abeer.ai/en/docs/apps/claude-code.md): Run the terminal coding agent on our models. - [Models and prices](https://5abeer.ai/en/models): Our price next to the official one, for every model. --- URL: https://5abeer.ai/en/docs/start/keys # Create an API key and authenticate requests > How to create an API key per provider, where it goes in a request for each format, and how to check and protect it. Updated: 2026-10-03 Every request to 5abeer carries an API key in a header. The key ties the request to your account and balance, and decides which models it can call. ## One key per provider Each key works with one provider's models: a key for Claude models, another for GPT models, and so on. If you use a key to call a model from another provider, you get [`MODEL_PLATFORM_NOT_ALLOWED`](https://5abeer.ai/en/docs/help/errors.md#MODEL_PLATFORM_NOT_ALLOWED). Create a key for each provider you need; they all draw on the same balance. ## Create a key ### 1. Open the keys page In your dashboard open **API → Keys**. ### 2. Pick the provider and a name Press **New key**, pick the provider whose models you want, and give the key a name that says which project will use it. ### 3. Copy the key Copy the key and keep it in an environment variable or a password manager, not in a file inside the project. ## Where the key goes in a request Each format has its usual header, and the official libraries set it for you: - **OpenAI format**, that is Chat Completions and Responses: the `Authorization` header, set to the word `Bearer` followed by the key. - **Anthropic Messages format**: the `x-api-key` header, set to the key, plus the `anthropic-version` header. - **Gemini format**: the `x-goog-api-key` header, set to the key. The base URL for each format is in [Base URLs](https://5abeer.ai/en/docs/start/base-urls.md). ## Keep the key in an environment variable Every example in these docs reads the key from the `KHABEER_API_KEY` environment variable: macOS / Linux: ```bash export KHABEER_API_KEY="YOUR_5ABEER_API_KEY" ``` Windows: ```powershell $env:KHABEER_API_KEY = "YOUR_5ABEER_API_KEY" ``` ## Check the key This request calls no model. With a valid key it returns the list of models; otherwise it returns an error code that names the problem. macOS / Linux: ```bash curl https://api.5abeer.ai/v1/models \ -H "Authorization: Bearer $KHABEER_API_KEY" ``` Windows: ```powershell Invoke-RestMethod -Uri "https://api.5abeer.ai/v1/models" ` -Headers @{ Authorization = "Bearer $env:KHABEER_API_KEY" } ``` ## Control every key Control every key: a spend limit, an expiry date and an IP allow-list. Set them when you create the key, or later in its settings. - When a key reaches its spend limit you get [`API_KEY_QUOTA_EXHAUSTED`](https://5abeer.ai/en/docs/help/errors.md#API_KEY_QUOTA_EXHAUSTED); raise the limit in the key settings. - After the expiry date you get [`API_KEY_EXPIRED`](https://5abeer.ai/en/docs/help/errors.md#API_KEY_EXPIRED); create a new key. - A disabled key returns [`API_KEY_DISABLED`](https://5abeer.ai/en/docs/help/errors.md#API_KEY_DISABLED). ## Protect your key - Never put the key in code that runs in a browser or inside a phone app: any visitor can read it. Send requests from your server. - Never commit the key to a code repository. Keep it in a `.env` file and add that file to `.gitignore`. - Use one key per project, so you can stop one key without affecting your other projects. - If you think a key has leaked, disable it in the dashboard right away and create a new one. --- URL: https://5abeer.ai/en/docs/start/base-urls # Base URLs and the OpenAI and Anthropic libraries > The base URL for each format, and how to use the OpenAI or Anthropic library with 5abeer by setting two environment variables. Updated: 2026-10-02 5abeer accepts requests in three formats: the OpenAI format, the Anthropic Messages format and the Gemini format. Pick the base URL that matches the code or library you use, and send the key in that format's header. ## The URLs | Format | Base URL | Key header | | --- | --- | --- | | OpenAI | `https://api.5abeer.ai/v1` | `Authorization: Bearer ` | | Anthropic | `https://api.5abeer.ai` | `x-api-key: ` | | Gemini | `https://api.5abeer.ai/v1beta` | `x-goog-api-key: ` | ## Which format to use - **OpenAI format**, that is Chat Completions and Responses: for code built on the OpenAI library or its format. OpenAI-compatible: change the base URL and keep your code. - **Anthropic Messages format**: for code built on the Anthropic library, and for tools such as Claude Code. - **Gemini format**: compatible with the Gemini generateContent API for the models that support it. You can call Claude models in the OpenAI format too. Each model's page in the [models list](https://5abeer.ai/en/models) shows the formats it supports. ## The OpenAI library The official OpenAI library reads the base URL and the key from two environment variables, so your code stays as it is: macOS / Linux: ```bash export OPENAI_BASE_URL="https://api.5abeer.ai/v1" export OPENAI_API_KEY="YOUR_5ABEER_API_KEY" ``` Windows: ```powershell $env:OPENAI_BASE_URL = "https://api.5abeer.ai/v1" $env:OPENAI_API_KEY = "YOUR_5ABEER_API_KEY" ``` Then use the library as usual, with a 5abeer model id: ```python from openai import OpenAI client = OpenAI() # reads OPENAI_BASE_URL and OPENAI_API_KEY chat = client.chat.completions.create( model="claude-sonnet-5.5", messages=[{"role": "user", "content": "Hello"}], ) print(chat.choices[0].message.content) response = client.responses.create(model="claude-sonnet-5.5", input="Hello") print(response.output_text) ``` The `openai` library for JavaScript reads the same two variables. If you prefer to pass the values in code, set `base_url` to the URL and `api_key` to the key. ## The Anthropic library The official Anthropic library reads two variables as well. Use the URL as it is, without `/v1`: the library adds the path itself. macOS / Linux: ```bash export ANTHROPIC_BASE_URL="https://api.5abeer.ai" export ANTHROPIC_API_KEY="YOUR_5ABEER_API_KEY" ``` Windows: ```powershell $env:ANTHROPIC_BASE_URL = "https://api.5abeer.ai" $env:ANTHROPIC_API_KEY = "YOUR_5ABEER_API_KEY" ``` ```python import anthropic client = anthropic.Anthropic() # reads ANTHROPIC_BASE_URL and ANTHROPIC_API_KEY message = client.messages.create( model="claude-sonnet-5.5", max_tokens=1024, messages=[{"role": "user", "content": "Hello"}], ) print(message.content[0].text) ``` ## Other tools If your tool accepts a custom base URL in the OpenAI or Anthropic format, give it three values: the base URL from the table above, your key, and the model id exactly as it appears in the [models list](https://5abeer.ai/en/models). The common coding tools have ready guides: - [Claude Code](https://5abeer.ai/en/docs/apps/claude-code.md): Anthropic's coding agent in the terminal. - [Codex CLI](https://5abeer.ai/en/docs/apps/codex.md): OpenAI's coding agent in the terminal. - [OpenCode](https://5abeer.ai/en/docs/apps/opencode.md): An open-source coding agent that works with many models. --- URL: https://5abeer.ai/en/docs/start/pricing # API pricing and balance: how requests are billed > How each API request is priced, our price next to the official one for every model, and how to top up and track your usage. Updated: 2026-10-02 On the API you pay only for what you use: no monthly plan and no minimum number of requests. Each request is paid from your balance according to the model and the number of tokens, and every model costs less than its official price. ## How a request is priced - Prices are per million tokens, with one price for input (what you send) and one for output (what the model writes). - A request costs its input tokens plus its output tokens, at the price of the model you called. - The token counts come back in the reply itself, in the `usage` field. An example with the default model: Claude Sonnet 5.5 (`claude-sonnet-5.5`) per 1M tokens: input $0.60 (official $2), output $3 (official $10). Official price checked November 21, 2026. Our prices follow the published official prices, and the date they were last checked shows with every price. ## Model prices | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | Claude Sonnet 5.5 | `claude-sonnet-5.5` | $0.60 | $3 | 1M | | Claude Opus 5.5 | `claude-opus-5.5` | $1.20 | $6 | 1M | | GPT-6.2 Sol | `gpt-6.2-sol` | $0.60 | $3 | — | | Gemini 4 Argon | `gemini-4-argon` | $0.60 | $3 | — | | Claude Fable 5.1 | `claude-fable-5.1` | $3 | $15 | — | | Claude Fable 5 | `claude-fable-5` | $3 | $15 | 1M | | Claude Opus 4.6 | `claude-opus-4.6` | $1.50 | $7.50 | 1M | | Claude Opus 4.7 | `claude-opus-4.7` | $1.50 | $7.50 | 1M | | Claude Opus 5 | `claude-opus-5` | $1.50 | $7.50 | 1M | | Claude Sonnet 5 | `claude-sonnet-5` | $0.60 | $3 | 1M | The full list, including image and embedding models, is on the [models page](https://5abeer.ai/en/models). ## Your balance - You top up from your dashboard with one of the [payment methods](https://5abeer.ai/en/docs/start/payment.md); in Egypt, in Egyptian pounds. - Before you pay, the top-up screen shows the amount you pay and the balance that will be added to your account. - There is one balance for your whole account, and the requests of all your keys draw on it. - If your balance doesn't cover a request, you get [`INSUFFICIENT_BALANCE`](https://5abeer.ai/en/docs/help/errors.md#INSUFFICIENT_BALANCE). ## Track your usage Your dashboard shows your usage and its cost per key and per model, with a log of requests. To cap a single project, set a spend limit on its key in the key settings. ## What about subscriptions? Subscriptions are a different path from the API: a fixed monthly price for the official apps, for less than their official price, with two usage limits only: a 5-hour limit and a weekly limit. The plans and their prices are on the [pricing page](https://5abeer.ai/en/pricing). --- URL: https://5abeer.ai/en/docs/start/payment # Payment methods: card, or e-wallet and InstaPay in Egypt > Pay by international card, or in Egypt with an e-wallet or InstaPay, to top up your API balance or subscribe to a plan, and what happens after you pay. Updated: 2026-11-16 In Egypt: no bank card needed; pay with an e-wallet such as Vodafone Cash, InstaPay, or an international card. Outside Egypt: pay by international card. The same methods work for topping up your API balance and for subscribing to a plan. ## Available methods | Method | How you pay | | --- | --- | | E-wallet (in Egypt) | Transfer to the wallet number shown to you, then send the receipt | | InstaPay (in Egypt) | Transfer to the InstaPay address shown to you, then send the receipt | | International card | Pay on Stripe's secure page; the card must support international payments | The methods available right now show when you pay. If a method is marked "Currently unavailable", pick another one. ## In Egypt: paying with a wallet or InstaPay ### 1. Pick the amount and the method In your dashboard choose a top-up or a plan, then pick the wallet or InstaPay. ### 2. Transfer the amount Transfer exactly the amount shown to the number or address on screen. When you send from InstaPay to a wallet number, choose "wallet" as the recipient type. ### 3. Send the receipt Upload a picture of the receipt or a PDF. For a wallet or InstaPay transfer, enter the phone number you sent from (not the InstaPay address) and the name on that wallet or account. For a bank transfer, enter the name of the account holder you sent from. Then submit. As soon as you send the receipt, the order is activated automatically and appears in your account with its own number. If the transfer doesn't arrive, the service for that order may be withdrawn, so keep the receipt and the order number. ## Paying by card Choose the international card and you go to Stripe's secure payment page, then back to your dashboard after paying. The full card number never reaches us, and we don't store it. ## A problem with a payment? Contact us with the order number, the time of payment and the method you used, and we'll review the order on our side. --- URL: https://5abeer.ai/en/docs/api/chat-completions # OpenAI-compatible Chat Completions API reference > The OpenAI-compatible Chat Completions reference, with what each parameter does for Claude, GPT and Gemini models, streaming, examples and errors. Updated: 2026-10-03 Send a conversation and get the model's reply. This format works with Claude, GPT and Gemini models, so switching between them only means changing `model`. `POST https://api.5abeer.ai/v1/chat/completions` ## Authentication Send your key in the `Authorization` header as `Bearer` followed by the key. A key works with the models of the provider it was created for; see [Keys and authentication](https://5abeer.ai/en/docs/start/keys.md). The base URL for this format: | Format | Base URL | Key header | | --- | --- | --- | | OpenAI | `https://api.5abeer.ai/v1` | `Authorization: Bearer ` | | Anthropic | `https://api.5abeer.ai` | `x-api-key: ` | | Gemini | `https://api.5abeer.ai/v1beta` | `x-goog-api-key: ` | ## Quick example ```bash curl --request POST "https://api.5abeer.ai/v1/chat/completions" \ --header "Authorization: Bearer $KHABEER_API_KEY" \ --header "Content-Type: application/json" \ --data '{"model":"claude-sonnet-5.5","messages":[{"role":"user","content":"Write a product idea in one sentence."}]}' ``` ```python import os import requests response = requests.post( "https://api.5abeer.ai/v1/chat/completions", headers={ "Authorization": f"Bearer {os.environ['KHABEER_API_KEY']}", "Content-Type": "application/json", }, json={ "model": "claude-sonnet-5.5", "messages": [ { "role": "user", "content": "Write a product idea in one sentence." } ] }, stream=False, timeout=60, ) response.raise_for_status() print(response.json()) ``` ## Parameters Each row shows what happens to the parameter for each model family: **supported** means we pass it to the model; **ignored** means the request is accepted but the parameter has no effect, so don't rely on it; **rejected** means the request fails. We measured these against the gateway itself, not copied from the provider's documentation. | Parameter | Type | Description | Claude | GPT | Gemini | | --- | --- | --- | --- | --- | --- | | `model` (required) | string | The model id, as in the [models list](https://5abeer.ai/en/models). | supported | supported | supported | | `messages` (required) | array | The conversation: messages with the roles `system`, `user`, `assistant` and `tool`. Content is text or a list of parts, images included. | supported | supported | supported | | `max_completion_tokens` | integer | The maximum number of output tokens. | supported | ignored | supported | | `max_tokens` | integer | The older name of `max_completion_tokens`; it works the same way. | supported | ignored | supported | | `temperature` | number | How random the reply is. | rejected | ignored | supported | | `top_p` | number | Sample only from the most likely tokens. | rejected | ignored | supported | | `stop` | string \| array | Text that ends the reply. It does not reach the model in this format; with Claude and Gemini models use `stop_sequences` in [Messages](https://5abeer.ai/en/docs/api/messages.md#params). | ignored | ignored | ignored | | `stream` | boolean | Send the reply in parts as it is written. See [Streaming](https://5abeer.ai/en/docs/api/streaming.md). | supported | supported | supported | | `stream_options` | object | `include_usage` adds the usage numbers to the last part. GPT models always send them. | supported | ignored | supported | | `tools` | array | Functions the model can call. See [Tool calling](https://5abeer.ai/en/docs/api/tools.md). | supported | supported | supported | | `tool_choice` | string \| object | `auto`, `none`, `required` or one named function. | supported | supported | ignored | | `parallel_tool_calls` | boolean | Allow or prevent several calls in one reply. | ignored | supported | ignored | | `response_format` | object | `json_schema` or `json_object` for structured output. For Claude models use a tool with a schema in [Messages](https://5abeer.ai/en/docs/api/messages.md). | ignored | supported | ignored | | `reasoning_effort` | string | How hard the model thinks: `low`, `medium` or `high`. | supported | supported | ignored | | `n` | integer | Number of replies. You always get one. | ignored | ignored | ignored | | `seed` | integer | An attempt to repeat the same result. | ignored | ignored | ignored | | `presence_penalty` | number | Discourage returning to the same topics. | ignored | ignored | ignored | | `frequency_penalty` | number | Discourage repeating the same words. | ignored | ignored | ignored | | `logprobs` | boolean | Token probabilities in the reply. Not returned. | ignored | ignored | ignored | | `logit_bias` | object | Raise or lower the odds of given tokens. | ignored | ignored | ignored | | `user` | string | An id for the end user in your system. | ignored | ignored | ignored | > GPT models run without your sampling and length settings in this format: `temperature`, `top_p` and `max_completion_tokens` are accepted and have no effect. For a JSON reply from Claude or Gemini, use a tool with a schema; see [Tool calling](https://5abeer.ai/en/docs/api/tools.md). ## Images in the request Put an image in the `content` list of a `user` message, as a `data:` URL in Base64 or a public `https` URL, next to the text. Every model in the list below with image input reads it. A large image makes the request heavier; see [Limits](https://5abeer.ai/en/docs/api/limits.md#size). ## Streaming With `"stream": true` the reply arrives as Server-Sent Events: each `data:` line holds a `chat.completion.chunk` with part of the text in `choices[0].delta`, and the stream ends with `data: [DONE]`. To get the usage numbers in the last chunk, add `"stream_options": {"include_usage": true}`; GPT models always send them. Details in [Streaming](https://5abeer.ai/en/docs/api/streaming.md). ## Examples ### Streaming with usage cURL: ```bash curl -N https://api.5abeer.ai/v1/chat/completions \ -H "Authorization: Bearer $KHABEER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "claude-sonnet-5.5", "messages": [ { "role": "user", "content": "Write a product idea in one sentence." } ], "stream": true, "stream_options": { "include_usage": true } }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "Authorization": f"Bearer {key}", } body = { "model": "claude-sonnet-5.5", "messages": [ { "role": "user", "content": "Write a product idea in one sentence.", }, ], "stream": True, "stream_options": { "include_usage": True, }, } response = requests.post("https://api.5abeer.ai/v1/chat/completions", headers=headers, json=body, timeout=300, stream=True) response.raise_for_status() for line in response.iter_lines(decode_unicode=True): if line: print(line) ``` ```text data: {"id":"chatcmpl_p8a01","object":"chat.completion.chunk","created":1790000000,"model":"claude-sonnet-5.5","choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null}]} data: {"id":"chatcmpl_p8a01","object":"chat.completion.chunk","created":1790000000,"model":"claude-sonnet-5.5","choices":[{"index":0,"delta":{"content":"Lumen Notes: "},"finish_reason":null}]} data: {"id":"chatcmpl_p8a01","object":"chat.completion.chunk","created":1790000000,"model":"claude-sonnet-5.5","choices":[{"index":0,"delta":{"content":"a notebook that turns voice memos "},"finish_reason":null}]} data: {"id":"chatcmpl_p8a01","object":"chat.completion.chunk","created":1790000000,"model":"claude-sonnet-5.5","choices":[{"index":0,"delta":{"content":"into tidy to-do lists."},"finish_reason":null}]} data: {"id":"chatcmpl_p8a01","object":"chat.completion.chunk","created":1790000000,"model":"claude-sonnet-5.5","choices":[{"index":0,"delta":{},"finish_reason":"stop"}]} data: {"id":"chatcmpl_p8a01","object":"chat.completion.chunk","created":1790000000,"model":"claude-sonnet-5.5","choices":[],"usage":{"prompt_tokens":21,"completion_tokens":18,"total_tokens":39}} data: [DONE] ``` ### Calling a function cURL: ```bash curl https://api.5abeer.ai/v1/chat/completions \ -H "Authorization: Bearer $KHABEER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-6.1-sol", "messages": [ { "role": "user", "content": "What is the weather in Cairo?" } ], "tools": [ { "type": "function", "function": { "name": "get_weather", "description": "Get the weather for a city", "parameters": { "type": "object", "properties": { "city": { "type": "string" } }, "required": [ "city" ] } } } ], "tool_choice": "auto", "parallel_tool_calls": false }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "Authorization": f"Bearer {key}", } body = { "model": "gpt-6.1-sol", "messages": [ { "role": "user", "content": "What is the weather in Cairo?", }, ], "tools": [ { "type": "function", "function": { "name": "get_weather", "description": "Get the weather for a city", "parameters": { "type": "object", "properties": { "city": { "type": "string", }, }, "required": ["city"], }, }, }, ], "tool_choice": "auto", "parallel_tool_calls": False, } response = requests.post("https://api.5abeer.ai/v1/chat/completions", headers=headers, json=body, timeout=300) response.raise_for_status() print(response.json()) ``` ```json { "id": "chatcmpl_p8a01", "object": "chat.completion", "created": 1790000000, "model": "gpt-6.1-sol", "choices": [ { "index": 0, "message": { "role": "assistant", "content": null, "tool_calls": [ { "id": "call_p8a01", "type": "function", "function": { "name": "get_weather", "arguments": "{\"city\":\"Cairo\"}" } } ] }, "finish_reason": "tool_calls" } ], "usage": { "prompt_tokens": 21, "completion_tokens": 18, "total_tokens": 39 } } ``` ### JSON output with a schema cURL: ```bash curl https://api.5abeer.ai/v1/chat/completions \ -H "Authorization: Bearer $KHABEER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-6.1-sol", "messages": [ { "role": "user", "content": "Give me one product idea." } ], "response_format": { "type": "json_schema", "json_schema": { "name": "idea", "strict": true, "schema": { "type": "object", "properties": { "idea": { "type": "string" } }, "required": [ "idea" ], "additionalProperties": false } } }, "reasoning_effort": "low" }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "Authorization": f"Bearer {key}", } body = { "model": "gpt-6.1-sol", "messages": [ { "role": "user", "content": "Give me one product idea.", }, ], "response_format": { "type": "json_schema", "json_schema": { "name": "idea", "strict": True, "schema": { "type": "object", "properties": { "idea": { "type": "string", }, }, "required": ["idea"], "additionalProperties": False, }, }, }, "reasoning_effort": "low", } response = requests.post("https://api.5abeer.ai/v1/chat/completions", headers=headers, json=body, timeout=300) response.raise_for_status() print(response.json()) ``` ```json { "id": "chatcmpl_p8a01", "object": "chat.completion", "created": 1790000000, "model": "gpt-6.1-sol", "choices": [ { "index": 0, "message": { "role": "assistant", "content": "{\"idea\":\"Lumen Notes: a notebook that turns voice memos into tidy to-do lists.\"}" }, "finish_reason": "stop" } ], "usage": { "prompt_tokens": 21, "completion_tokens": 18, "total_tokens": 39 } } ``` ### An image with the question cURL: ```bash curl https://api.5abeer.ai/v1/chat/completions \ -H "Authorization: Bearer $KHABEER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "claude-sonnet-5.5", "max_completion_tokens": 300, "messages": [ { "role": "user", "content": [ { "type": "text", "text": "What is in this image?" }, { "type": "image_url", "image_url": { "url": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==" } } ] } ] }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "Authorization": f"Bearer {key}", } body = { "model": "claude-sonnet-5.5", "max_completion_tokens": 300, "messages": [ { "role": "user", "content": [ { "type": "text", "text": "What is in this image?", }, { "type": "image_url", "image_url": { "url": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==", }, }, ], }, ], } response = requests.post("https://api.5abeer.ai/v1/chat/completions", headers=headers, json=body, timeout=300) response.raise_for_status() print(response.json()) ``` ```json { "id": "chatcmpl_p8a01", "object": "chat.completion", "created": 1790000000, "model": "claude-sonnet-5.5", "choices": [ { "index": 0, "message": { "role": "assistant", "content": "Lumen Notes: a notebook that turns voice memos into tidy to-do lists." }, "finish_reason": "stop" } ], "usage": { "prompt_tokens": 21, "completion_tokens": 18, "total_tokens": 39 } } ``` ### Sampling settings cURL: ```bash curl https://api.5abeer.ai/v1/chat/completions \ -H "Authorization: Bearer $KHABEER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "gemini-4-argon", "messages": [ { "role": "system", "content": "Answer in one sentence." }, { "role": "user", "content": "Write a product idea." } ], "max_tokens": 300, "temperature": 0.4, "top_p": 0.9, "stop": [ "END" ], "n": 1, "seed": 7, "presence_penalty": 0, "frequency_penalty": 0, "logprobs": false, "logit_bias": {}, "user": "user-123" }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "Authorization": f"Bearer {key}", } body = { "model": "gemini-4-argon", "messages": [ { "role": "system", "content": "Answer in one sentence.", }, { "role": "user", "content": "Write a product idea.", }, ], "max_tokens": 300, "temperature": 0.4, "top_p": 0.9, "stop": ["END"], "n": 1, "seed": 7, "presence_penalty": 0, "frequency_penalty": 0, "logprobs": False, "logit_bias": {}, "user": "user-123", } response = requests.post("https://api.5abeer.ai/v1/chat/completions", headers=headers, json=body, timeout=300) response.raise_for_status() print(response.json()) ``` ```json { "id": "chatcmpl_p8a01", "object": "chat.completion", "created": 1790000000, "model": "gemini-4-argon", "choices": [ { "index": 0, "message": { "role": "assistant", "content": "Lumen Notes: a notebook that turns voice memos into tidy to-do lists." }, "finish_reason": "stop" } ], "usage": { "prompt_tokens": 21, "completion_tokens": 18, "total_tokens": 39 } } ``` The request above was run on the local test stack on 2026-11-16; the reply shows the shape, and its text is an example. ## Errors Errors from the key, balance and limit checks arrive before any model is called; the rest come from serving the request. The common ones: - [`invalid_request_error`](https://5abeer.ai/en/docs/help/errors.md#invalid_request_error): the request is missing something or has an invalid value, such as a missing `model`. - [`INVALID_API_KEY`](https://5abeer.ai/en/docs/help/errors.md#INVALID_API_KEY): the key is wrong. - [`MODEL_PLATFORM_NOT_ALLOWED`](https://5abeer.ai/en/docs/help/errors.md#MODEL_PLATFORM_NOT_ALLOWED): the key belongs to another provider than the model. - [`INSUFFICIENT_BALANCE`](https://5abeer.ai/en/docs/help/errors.md#INSUFFICIENT_BALANCE): your balance doesn't cover the request. - [`USAGE_LIMIT_EXCEEDED`](https://5abeer.ai/en/docs/help/errors.md#USAGE_LIMIT_EXCEEDED): the subscription reached its 5-hour or weekly limit. - [`RATE_LIMITED`](https://5abeer.ai/en/docs/help/errors.md#RATE_LIMITED): too many requests in a short time. The error shapes and the codes raised while serving the request, such as `CONTEXT_LIMIT_EXCEEDED` and `MODEL_UNAVAILABLE`, are in [Limits and error codes](https://5abeer.ai/en/docs/api/limits.md#model-errors). The full list is in [Errors and fixes](https://5abeer.ai/en/docs/help/errors.md). ## Limits - A pay-as-you-go key is limited by your balance, and by the spend limit you set on it, if any. - Request size and context length are in [Limits](https://5abeer.ai/en/docs/api/limits.md). ## Models for this format | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | Claude Sonnet 5.5 | `claude-sonnet-5.5` | $0.60 | $3 | 1M | | Claude Opus 5.5 | `claude-opus-5.5` | $1.20 | $6 | 1M | | GPT-6.2 Sol | `gpt-6.2-sol` | $0.60 | $3 | — | | Gemini 4 Argon | `gemini-4-argon` | $0.60 | $3 | — | | Claude Fable 5.1 | `claude-fable-5.1` | $3 | $15 | — | | Claude Fable 5 | `claude-fable-5` | $3 | $15 | 1M | --- URL: https://5abeer.ai/en/docs/api/responses # OpenAI Responses API reference for GPT and Claude > The OpenAI Responses reference for GPT and Claude models, with what each parameter does here, tools, structured output, reasoning, streaming and errors. Updated: 2026-10-02 The newer OpenAI format: one request with `input`, and a reply made of items such as text and function calls. It works with GPT and Claude models. Gemini models are not served on this endpoint; use [Chat Completions](https://5abeer.ai/en/docs/api/chat-completions.md), [Messages](https://5abeer.ai/en/docs/api/messages.md) or [generateContent](https://5abeer.ai/en/docs/api/gemini.md) for them. `POST https://api.5abeer.ai/v1/responses` ## Authentication Send your key in the `Authorization` header as `Bearer` followed by the key, with the OpenAI-compatible base URL. The official OpenAI libraries call this endpoint with `client.responses.create`; see [Base URLs](https://5abeer.ai/en/docs/start/base-urls.md#openai). ## Quick example ```bash curl --request POST "https://api.5abeer.ai/v1/responses" \ --header "Authorization: Bearer $KHABEER_API_KEY" \ --header "Content-Type: application/json" \ --data '{"model":"claude-sonnet-5.5","input":"Write a product idea in one sentence."}' ``` ```python import os import requests response = requests.post( "https://api.5abeer.ai/v1/responses", headers={ "Authorization": f"Bearer {os.environ['KHABEER_API_KEY']}", "Content-Type": "application/json", }, json={ "model": "claude-sonnet-5.5", "input": "Write a product idea in one sentence." }, stream=False, timeout=60, ) response.raise_for_status() print(response.json()) ``` ## Parameters Each row shows what happens to the parameter for each model family: **supported** means we pass it to the model; **ignored** means the request is accepted but the parameter has no effect, so don't rely on it; **rejected** means the request fails. We measured these against the gateway itself. | Parameter | Type | Description | Claude | GPT | Gemini | | --- | --- | --- | --- | --- | --- | | `model` (required) | string | The model id, as in the [models list](https://5abeer.ai/en/models). | supported | supported | rejected | | `input` (required) | string \| array | One string, or a list of messages and parts, images and function results included. | supported | supported | rejected | | `instructions` | string | System instructions for the model. | supported | supported | rejected | | `max_output_tokens` | integer | The maximum number of output tokens. | supported | ignored | rejected | | `temperature` | number | How random the reply is. | rejected | ignored | rejected | | `top_p` | number | Sample only from the most likely tokens. | rejected | ignored | rejected | | `stream` | boolean | Send the reply as a series of events. See [Streaming](https://5abeer.ai/en/docs/api/streaming.md). | supported | supported | rejected | | `tools` | array | Functions the model can call. | supported | supported | rejected | | `tool_choice` | string \| object | `auto`, `none`, `required` or one named function. | supported | supported | rejected | | `parallel_tool_calls` | boolean | Allow or prevent several calls in one reply. | ignored | supported | rejected | | `text` | object | `format` for structured output with a `json_schema`. For Claude models use a tool with a schema. | ignored | supported | rejected | | `reasoning` | object | `effort` sets how hard the model thinks: `low`, `medium` or `high`. | supported | supported | rejected | | `include` | array | Extra fields in the reply, such as `reasoning.encrypted_content`. | ignored | supported | rejected | | `prompt_cache_key` | string | A stable key that groups similar requests for caching. | ignored | supported | rejected | | `previous_response_id` | string | Has no effect here. Send the whole conversation in `input` each time. | ignored | ignored | rejected | | `store` | boolean | Has no effect here. | ignored | ignored | rejected | | `truncation` | string | Trim a long conversation automatically. | ignored | ignored | rejected | | `metadata` | object | Your own values attached to the request. | ignored | ignored | rejected | | `user` | string | An id for the end user in your system. | ignored | ignored | rejected | ## Conversations Each request stands alone: `previous_response_id` and `store` have no effect here. To continue a conversation, send all of it in `input` every time, your messages with the role `user` and the model's replies with the role `assistant`, as in the [full conversation example](https://5abeer.ai/en/docs/api/responses.md#ex-conversation). ## Images in the request Add an `input_image` part to a `user` message, with `image_url` set to a `data:` URL in Base64 or a public `https` URL, next to an `input_text` part. ## Streaming With `"stream": true` the reply arrives as named events: `response.created`, then `response.output_text.delta` with the text in parts, and `response.completed` with the full reply and `usage`. If the request fails mid-way you get `response.failed` with the error code. Details in [Streaming](https://5abeer.ai/en/docs/api/streaming.md). ## Examples ### Streaming cURL: ```bash curl -N https://api.5abeer.ai/v1/responses \ -H "Authorization: Bearer $KHABEER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-6.1-sol", "input": "Write a product idea in one sentence.", "stream": true }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "Authorization": f"Bearer {key}", } body = { "model": "gpt-6.1-sol", "input": "Write a product idea in one sentence.", "stream": True, } response = requests.post("https://api.5abeer.ai/v1/responses", headers=headers, json=body, timeout=300, stream=True) response.raise_for_status() for line in response.iter_lines(decode_unicode=True): if line: print(line) ``` ```text event: response.created data: {"type":"response.created","response":{"id":"resp_p8a01","object":"response","status":"in_progress","model":"gpt-6.1-sol"}} event: response.output_text.delta data: {"type":"response.output_text.delta","item_id":"msg_p8a01","output_index":0,"content_index":0,"delta":"Lumen Notes: "} event: response.output_text.delta data: {"type":"response.output_text.delta","item_id":"msg_p8a01","output_index":0,"content_index":0,"delta":"a notebook that turns voice memos "} event: response.output_text.delta data: {"type":"response.output_text.delta","item_id":"msg_p8a01","output_index":0,"content_index":0,"delta":"into tidy to-do lists."} event: response.completed data: {"type":"response.completed","response":{"id":"resp_p8a01","object":"response","created_at":1790000000,"status":"completed","model":"gpt-6.1-sol","output":[{"type":"message","id":"msg_p8a01","role":"assistant","status":"completed","content":[{"type":"output_text","text":"Lumen Notes: a notebook that turns voice memos into tidy to-do lists.","annotations":[]}]}],"usage":{"input_tokens":21,"output_tokens":18,"total_tokens":39}}} ``` ### A full conversation with instructions cURL: ```bash curl https://api.5abeer.ai/v1/responses \ -H "Authorization: Bearer $KHABEER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "claude-sonnet-5.5", "instructions": "Answer in one sentence.", "input": [ { "role": "user", "content": [ { "type": "input_text", "text": "Suggest a product name." } ] }, { "role": "assistant", "content": [ { "type": "output_text", "text": "Lumen Notes." } ] }, { "role": "user", "content": [ { "type": "input_text", "text": "Now a slogan for it." } ] } ], "max_output_tokens": 300, "reasoning": { "effort": "low" } }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "Authorization": f"Bearer {key}", } body = { "model": "claude-sonnet-5.5", "instructions": "Answer in one sentence.", "input": [ { "role": "user", "content": [ { "type": "input_text", "text": "Suggest a product name.", }, ], }, { "role": "assistant", "content": [ { "type": "output_text", "text": "Lumen Notes.", }, ], }, { "role": "user", "content": [ { "type": "input_text", "text": "Now a slogan for it.", }, ], }, ], "max_output_tokens": 300, "reasoning": { "effort": "low", }, } response = requests.post("https://api.5abeer.ai/v1/responses", headers=headers, json=body, timeout=300) response.raise_for_status() print(response.json()) ``` ```json { "id": "resp_p8a01", "object": "response", "created_at": 1790000000, "status": "completed", "model": "claude-sonnet-5.5", "output": [ { "type": "message", "id": "msg_p8a01", "role": "assistant", "status": "completed", "content": [ { "type": "output_text", "text": "Lumen Notes: a notebook that turns voice memos into tidy to-do lists.", "annotations": [] } ] } ], "usage": { "input_tokens": 21, "output_tokens": 18, "total_tokens": 39 } } ``` ### Calling a function cURL: ```bash curl https://api.5abeer.ai/v1/responses \ -H "Authorization: Bearer $KHABEER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-6.1-sol", "input": "What is the weather in Cairo?", "tools": [ { "type": "function", "name": "get_weather", "description": "Get the weather for a city", "parameters": { "type": "object", "properties": { "city": { "type": "string" } }, "required": [ "city" ] } } ], "tool_choice": "auto", "parallel_tool_calls": false }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "Authorization": f"Bearer {key}", } body = { "model": "gpt-6.1-sol", "input": "What is the weather in Cairo?", "tools": [ { "type": "function", "name": "get_weather", "description": "Get the weather for a city", "parameters": { "type": "object", "properties": { "city": { "type": "string", }, }, "required": ["city"], }, }, ], "tool_choice": "auto", "parallel_tool_calls": False, } response = requests.post("https://api.5abeer.ai/v1/responses", headers=headers, json=body, timeout=300) response.raise_for_status() print(response.json()) ``` ```json { "id": "resp_p8a01", "object": "response", "created_at": 1790000000, "status": "completed", "model": "gpt-6.1-sol", "output": [ { "type": "function_call", "id": "fc_p8a01", "call_id": "call_p8a01", "name": "get_weather", "arguments": "{\"city\":\"Cairo\"}", "status": "completed" } ], "usage": { "input_tokens": 21, "output_tokens": 18, "total_tokens": 39 } } ``` ### JSON output with a schema cURL: ```bash curl https://api.5abeer.ai/v1/responses \ -H "Authorization: Bearer $KHABEER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-6.1-sol", "input": "Give me one product idea.", "text": { "format": { "type": "json_schema", "name": "idea", "strict": true, "schema": { "type": "object", "properties": { "idea": { "type": "string" } }, "required": [ "idea" ], "additionalProperties": false } } }, "reasoning": { "effort": "low" }, "include": [ "reasoning.encrypted_content" ], "prompt_cache_key": "product-ideas-v1" }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "Authorization": f"Bearer {key}", } body = { "model": "gpt-6.1-sol", "input": "Give me one product idea.", "text": { "format": { "type": "json_schema", "name": "idea", "strict": True, "schema": { "type": "object", "properties": { "idea": { "type": "string", }, }, "required": ["idea"], "additionalProperties": False, }, }, }, "reasoning": { "effort": "low", }, "include": ["reasoning.encrypted_content"], "prompt_cache_key": "product-ideas-v1", } response = requests.post("https://api.5abeer.ai/v1/responses", headers=headers, json=body, timeout=300) response.raise_for_status() print(response.json()) ``` ```json { "id": "resp_p8a01", "object": "response", "created_at": 1790000000, "status": "completed", "model": "gpt-6.1-sol", "output": [ { "type": "message", "id": "msg_p8a01", "role": "assistant", "status": "completed", "content": [ { "type": "output_text", "text": "{\"idea\":\"Lumen Notes: a notebook that turns voice memos into tidy to-do lists.\"}", "annotations": [] } ] } ], "usage": { "input_tokens": 21, "output_tokens": 18, "total_tokens": 39 } } ``` ### Fields accepted without effect cURL: ```bash curl https://api.5abeer.ai/v1/responses \ -H "Authorization: Bearer $KHABEER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-6.1-sol", "input": "Write a product idea in one sentence.", "temperature": 0.4, "top_p": 0.9, "store": false, "previous_response_id": "resp_123", "truncation": "auto", "metadata": { "order": "42" }, "user": "user-123" }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "Authorization": f"Bearer {key}", } body = { "model": "gpt-6.1-sol", "input": "Write a product idea in one sentence.", "temperature": 0.4, "top_p": 0.9, "store": False, "previous_response_id": "resp_123", "truncation": "auto", "metadata": { "order": "42", }, "user": "user-123", } response = requests.post("https://api.5abeer.ai/v1/responses", headers=headers, json=body, timeout=300) response.raise_for_status() print(response.json()) ``` ```json { "id": "resp_p8a01", "object": "response", "created_at": 1790000000, "status": "completed", "model": "gpt-6.1-sol", "output": [ { "type": "message", "id": "msg_p8a01", "role": "assistant", "status": "completed", "content": [ { "type": "output_text", "text": "Lumen Notes: a notebook that turns voice memos into tidy to-do lists.", "annotations": [] } ] } ], "usage": { "input_tokens": 21, "output_tokens": 18, "total_tokens": 39 } } ``` The request above was run on the local test stack on 2026-11-16; the reply shows the shape, and its text is an example. ## Errors The common codes are the same as for [Chat Completions](https://5abeer.ai/en/docs/api/chat-completions.md#errors), with one difference: when a pay-as-you-go key reaches the spend limit you set, this endpoint answers `429` with the code `insufficient_quota`, the way OpenAI does, instead of [`API_KEY_QUOTA_EXHAUSTED`](https://5abeer.ai/en/docs/help/errors.md#API_KEY_QUOTA_EXHAUSTED). Raise the key's limit in its settings. The other shapes and codes are in [Limits and error codes](https://5abeer.ai/en/docs/api/limits.md#model-errors). ## Models for this format | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | GPT-6.2 Sol | `gpt-6.2-sol` | $0.60 | $3 | — | | GPT-6.2 Astra | `gpt-6.2-astra` | $2.40 | $12 | — | | GPT-6.1 Sol | `gpt-6.1-sol` | $0.60 | $3 | 922K | | GPT-6 Astra | `gpt-6-astra` | $3 | $15 | — | | GPT-6 Sol | `gpt-6-sol` | $0.60 | $3 | 922K | | GPT-6 Luna | `gpt-6-luna` | $0.03 | $0.15 | 922K | Claude models work here too; see the [models list](https://5abeer.ai/en/models). --- URL: https://5abeer.ai/en/docs/api/messages # Anthropic Messages API reference for every model > The Anthropic Messages reference: native for Claude models, usable with GPT and Gemini, with every parameter, thinking, caching and errors. Updated: 2026-10-02 The Anthropic format. With Claude models your request is passed on in its own format, without conversion. GPT and Gemini models work here too, with the differences shown in the parameters table. `POST https://api.5abeer.ai/v1/messages` ## Authentication Send your key in the `x-api-key` header, with `anthropic-version: 2023-06-01`. The base URL has no `/v1`: the libraries add the path themselves. With the official Anthropic library, set `ANTHROPIC_BASE_URL` and `ANTHROPIC_API_KEY`; see [Base URLs](https://5abeer.ai/en/docs/start/base-urls.md#anthropic). Tools such as Claude Code send the key as `Authorization: Bearer`, and that works too. ## Quick example ```bash curl --request POST "https://api.5abeer.ai/v1/messages" \ --header "x-api-key: $KHABEER_API_KEY" \ --header "Content-Type: application/json" \ --header "anthropic-version: 2023-06-01" \ --data '{"model":"claude-sonnet-5.5","max_tokens":512,"messages":[{"role":"user","content":"Write a product idea in one sentence."}]}' ``` ```python import os import requests response = requests.post( "https://api.5abeer.ai/v1/messages", headers={ "x-api-key": os.environ['KHABEER_API_KEY'], "Content-Type": "application/json", "anthropic-version": "2023-06-01", }, json={ "model": "claude-sonnet-5.5", "max_tokens": 512, "messages": [ { "role": "user", "content": "Write a product idea in one sentence." } ] }, stream=False, timeout=60, ) response.raise_for_status() print(response.json()) ``` ## Parameters Each row shows what happens to the parameter for each model family: **supported** means we pass it to the model; **ignored** means the request is accepted but the parameter has no effect, so don't rely on it; **rejected** means the request fails. We measured these against the gateway itself. | Parameter | Type | Description | Claude | GPT | Gemini | | --- | --- | --- | --- | --- | --- | | `model` (required) | string | The model id, as in the [models list](https://5abeer.ai/en/models). | supported | supported | supported | | `messages` (required) | array | The conversation with the roles `user` and `assistant`; content is text or blocks, images and tool results included. | supported | supported | supported | | `max_tokens` (required) | integer | The maximum number of output tokens. | supported | ignored | supported | | `system` | string \| array | System instructions, as text or blocks. | supported | supported | supported | | `temperature` | number | How random the reply is. | rejected | ignored | supported | | `top_p` | number | Sample only from the most likely tokens. | rejected | ignored | supported | | `top_k` | integer | Sample only from a fixed number of top options. | rejected | ignored | ignored | | `stop_sequences` | array | Text that ends the reply. | supported | ignored | supported | | `stream` | boolean | Send the reply as a series of events. See [Streaming](https://5abeer.ai/en/docs/api/streaming.md). | supported | supported | supported | | `tools` | array | Tools with an `input_schema`. See [Tool calling](https://5abeer.ai/en/docs/api/tools.md). | supported | supported | supported | | `tool_choice` | object | `auto`, `any`, `none` or one named tool. | supported | supported | ignored | | `thinking` | object | Turns on extended thinking. Current Claude models use the `adaptive` type. | supported | ignored | ignored | | `output_config` | object | `effort` sets how hard the model thinks: `low`, `medium` or `high`. | supported | supported | ignored | | `cache_control` | object | On a content block: the cache marker. See [Prompt caching](https://5abeer.ai/en/docs/api/caching.md). | supported | ignored | ignored | | `metadata` | object | `user_id` for the end user's id in your system. | supported | ignored | ignored | ## Count tokens `POST /v1/messages/count_tokens` takes the same body without `max_tokens` and returns `input_tokens` without calling the model. When counting isn't available for the model you get `404` with `not_found_error`, so treat the count as optional in your code. ## Images in the request Add an `image` block to the `content` of a `user` message, with `source` of type `base64` and its `media_type`, next to a `text` block, as in the [image example](https://5abeer.ai/en/docs/api/messages.md#ex-vision). ## Streaming With `"stream": true` the reply arrives as named events: `message_start`, then for each block `content_block_start`, `content_block_delta` and `content_block_stop`, then `message_delta` with the stop reason and the output usage, and `message_stop`. A failure mid-way arrives as an `error` event with the code. Details in [Streaming](https://5abeer.ai/en/docs/api/streaming.md). ## Examples ### Streaming cURL: ```bash curl -N https://api.5abeer.ai/v1/messages \ -H "x-api-key: $KHABEER_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "Content-Type: application/json" \ -d '{ "model": "claude-sonnet-5.5", "max_tokens": 512, "messages": [ { "role": "user", "content": "Write a product idea in one sentence." } ], "stream": true }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "x-api-key": key, "anthropic-version": "2023-06-01", } body = { "model": "claude-sonnet-5.5", "max_tokens": 512, "messages": [ { "role": "user", "content": "Write a product idea in one sentence.", }, ], "stream": True, } response = requests.post("https://api.5abeer.ai/v1/messages", headers=headers, json=body, timeout=300, stream=True) response.raise_for_status() for line in response.iter_lines(decode_unicode=True): if line: print(line) ``` ```text event: message_start data: {"type":"message_start","message":{"id":"msg_p8a01","type":"message","role":"assistant","model":"claude-sonnet-5.5","content":[],"stop_reason":null,"usage":{"input_tokens":21,"output_tokens":1}}} event: content_block_start data: {"type":"content_block_start","index":0,"content_block":{"type":"text","text":""}} event: content_block_delta data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"Lumen Notes: "}} event: content_block_delta data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"a notebook that turns voice memos "}} event: content_block_delta data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"into tidy to-do lists."}} event: content_block_stop data: {"type":"content_block_stop","index":0} event: message_delta data: {"type":"message_delta","delta":{"stop_reason":"end_turn","stop_sequence":null},"usage":{"output_tokens":18}} event: message_stop data: {"type":"message_stop"} ``` ### Calling a tool cURL: ```bash curl https://api.5abeer.ai/v1/messages \ -H "x-api-key: $KHABEER_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "Content-Type: application/json" \ -d '{ "model": "claude-sonnet-5.5", "max_tokens": 1024, "tools": [ { "name": "get_weather", "description": "Get the weather for a city", "input_schema": { "type": "object", "properties": { "city": { "type": "string" } }, "required": [ "city" ] } } ], "tool_choice": { "type": "auto" }, "messages": [ { "role": "user", "content": "What is the weather in Cairo?" } ] }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "x-api-key": key, "anthropic-version": "2023-06-01", } body = { "model": "claude-sonnet-5.5", "max_tokens": 1024, "tools": [ { "name": "get_weather", "description": "Get the weather for a city", "input_schema": { "type": "object", "properties": { "city": { "type": "string", }, }, "required": ["city"], }, }, ], "tool_choice": { "type": "auto", }, "messages": [ { "role": "user", "content": "What is the weather in Cairo?", }, ], } response = requests.post("https://api.5abeer.ai/v1/messages", headers=headers, json=body, timeout=300) response.raise_for_status() print(response.json()) ``` ```json { "id": "msg_p8a01", "type": "message", "role": "assistant", "model": "claude-sonnet-5.5", "content": [ { "type": "tool_use", "id": "toolu_p8a01", "name": "get_weather", "input": { "city": "Cairo" } } ], "stop_reason": "tool_use", "stop_sequence": null, "usage": { "input_tokens": 21, "output_tokens": 18 } } ``` ### Extended thinking cURL: ```bash curl https://api.5abeer.ai/v1/messages \ -H "x-api-key: $KHABEER_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "Content-Type: application/json" \ -d '{ "model": "claude-sonnet-5.5", "max_tokens": 4096, "thinking": { "type": "adaptive", "display": "summarized" }, "messages": [ { "role": "user", "content": "Plan a three-step launch for a note-taking app." } ] }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "x-api-key": key, "anthropic-version": "2023-06-01", } body = { "model": "claude-sonnet-5.5", "max_tokens": 4096, "thinking": { "type": "adaptive", "display": "summarized", }, "messages": [ { "role": "user", "content": "Plan a three-step launch for a note-taking app.", }, ], } response = requests.post("https://api.5abeer.ai/v1/messages", headers=headers, json=body, timeout=300) response.raise_for_status() print(response.json()) ``` ```json { "id": "msg_p8a01", "type": "message", "role": "assistant", "model": "claude-sonnet-5.5", "content": [ { "type": "thinking", "thinking": "Three steps: audience, channel, timing.", "signature": "sig_p8a" }, { "type": "text", "text": "Lumen Notes: a notebook that turns voice memos into tidy to-do lists." } ], "stop_reason": "end_turn", "stop_sequence": null, "usage": { "input_tokens": 21, "output_tokens": 18 } } ``` ### Reasoning effort with a GPT model cURL: ```bash curl https://api.5abeer.ai/v1/messages \ -H "x-api-key: $KHABEER_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-6.1-sol", "max_tokens": 1024, "output_config": { "effort": "low" }, "messages": [ { "role": "user", "content": "Write a product idea in one sentence." } ] }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "x-api-key": key, "anthropic-version": "2023-06-01", } body = { "model": "gpt-6.1-sol", "max_tokens": 1024, "output_config": { "effort": "low", }, "messages": [ { "role": "user", "content": "Write a product idea in one sentence.", }, ], } response = requests.post("https://api.5abeer.ai/v1/messages", headers=headers, json=body, timeout=300) response.raise_for_status() print(response.json()) ``` ```json { "id": "msg_p8a01", "type": "message", "role": "assistant", "model": "gpt-6.1-sol", "content": [ { "type": "text", "text": "Lumen Notes: a notebook that turns voice memos into tidy to-do lists." } ], "stop_reason": "end_turn", "stop_sequence": null, "usage": { "input_tokens": 21, "output_tokens": 18 } } ``` ### Caching long instructions cURL: ```bash curl https://api.5abeer.ai/v1/messages \ -H "x-api-key: $KHABEER_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "Content-Type: application/json" \ -d '{ "model": "claude-sonnet-5.5", "max_tokens": 512, "system": [ { "type": "text", "text": "You are the support assistant for Lumen Notes. Product manual: ...", "cache_control": { "type": "ephemeral" } } ], "messages": [ { "role": "user", "content": "How do I export a note?" } ] }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "x-api-key": key, "anthropic-version": "2023-06-01", } body = { "model": "claude-sonnet-5.5", "max_tokens": 512, "system": [ { "type": "text", "text": "You are the support assistant for Lumen Notes. Product manual: ...", "cache_control": { "type": "ephemeral", }, }, ], "messages": [ { "role": "user", "content": "How do I export a note?", }, ], } response = requests.post("https://api.5abeer.ai/v1/messages", headers=headers, json=body, timeout=300) response.raise_for_status() print(response.json()) ``` ```json { "id": "msg_p8a01", "type": "message", "role": "assistant", "model": "claude-sonnet-5.5", "content": [ { "type": "text", "text": "Lumen Notes: a notebook that turns voice memos into tidy to-do lists." } ], "stop_reason": "end_turn", "stop_sequence": null, "usage": { "input_tokens": 21, "output_tokens": 18 } } ``` ### An image with the question cURL: ```bash curl https://api.5abeer.ai/v1/messages \ -H "x-api-key: $KHABEER_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "Content-Type: application/json" \ -d '{ "model": "claude-sonnet-5.5", "max_tokens": 512, "messages": [ { "role": "user", "content": [ { "type": "image", "source": { "type": "base64", "media_type": "image/png", "data": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==" } }, { "type": "text", "text": "What is in this image?" } ] } ] }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "x-api-key": key, "anthropic-version": "2023-06-01", } body = { "model": "claude-sonnet-5.5", "max_tokens": 512, "messages": [ { "role": "user", "content": [ { "type": "image", "source": { "type": "base64", "media_type": "image/png", "data": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==", }, }, { "type": "text", "text": "What is in this image?", }, ], }, ], } response = requests.post("https://api.5abeer.ai/v1/messages", headers=headers, json=body, timeout=300) response.raise_for_status() print(response.json()) ``` ```json { "id": "msg_p8a01", "type": "message", "role": "assistant", "model": "claude-sonnet-5.5", "content": [ { "type": "text", "text": "Lumen Notes: a notebook that turns voice memos into tidy to-do lists." } ], "stop_reason": "end_turn", "stop_sequence": null, "usage": { "input_tokens": 21, "output_tokens": 18 } } ``` ### Sampling settings cURL: ```bash curl https://api.5abeer.ai/v1/messages \ -H "x-api-key: $KHABEER_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "Content-Type: application/json" \ -d '{ "model": "gemini-4-argon", "max_tokens": 300, "system": "Answer in one sentence.", "temperature": 0.4, "top_p": 0.9, "top_k": 40, "stop_sequences": [ "END" ], "metadata": { "user_id": "user-123" }, "messages": [ { "role": "user", "content": "Write a product idea." } ] }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "x-api-key": key, "anthropic-version": "2023-06-01", } body = { "model": "gemini-4-argon", "max_tokens": 300, "system": "Answer in one sentence.", "temperature": 0.4, "top_p": 0.9, "top_k": 40, "stop_sequences": ["END"], "metadata": { "user_id": "user-123", }, "messages": [ { "role": "user", "content": "Write a product idea.", }, ], } response = requests.post("https://api.5abeer.ai/v1/messages", headers=headers, json=body, timeout=300) response.raise_for_status() print(response.json()) ``` ```json { "id": "msg_p8a01", "type": "message", "role": "assistant", "model": "gemini-4-argon", "content": [ { "type": "text", "text": "Lumen Notes: a notebook that turns voice memos into tidy to-do lists." } ], "stop_reason": "end_turn", "stop_sequence": null, "usage": { "input_tokens": 21, "output_tokens": 18 } } ``` The request above was run on the local test stack on 2026-11-16; the reply shows the shape, and its text is an example. ## Errors Errors come in Anthropic's shape, `"type": "error"` with the details in `error`, except the key, balance and limit checks, which answer `{"code", "message"}`. The common codes are the same as for [Chat Completions](https://5abeer.ai/en/docs/api/chat-completions.md#errors); the shapes and the codes raised while serving the request are in [Limits and error codes](https://5abeer.ai/en/docs/api/limits.md#model-errors). ## Models for this format | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | Claude Sonnet 5.5 | `claude-sonnet-5.5` | $0.60 | $3 | 1M | | Claude Opus 5.5 | `claude-opus-5.5` | $1.20 | $6 | 1M | | Claude Fable 5.1 | `claude-fable-5.1` | $3 | $15 | — | | Claude Fable 5 | `claude-fable-5` | $3 | $15 | 1M | | Claude Opus 4.6 | `claude-opus-4.6` | $1.50 | $7.50 | 1M | | Claude Opus 4.7 | `claude-opus-4.7` | $1.50 | $7.50 | 1M | GPT and Gemini models work here too; see the [models list](https://5abeer.ai/en/models). --- URL: https://5abeer.ai/en/docs/api/gemini # Native Gemini API reference: generateContent > The native Gemini format reference: request fields, JSON output, function calling, streaming, image generation and errors. Updated: 2026-10-02 Google's native format for Gemini models, the one the Gemini libraries and Gemini CLI use. The model id goes in the URL, not in the body. Gemini chat models also work in [Chat Completions](https://5abeer.ai/en/docs/api/chat-completions.md) and [Messages](https://5abeer.ai/en/docs/api/messages.md). `POST https://api.5abeer.ai/v1beta/models/{model}:generateContent` ## Authentication Send your key in the `x-goog-api-key` header, with the Gemini base URL. A key for Gemini models is needed: Claude and GPT keys don't work under `/v1beta`. The URL forms: - `/v1beta/models/{model}:generateContent` for a full reply. - `/v1beta/models/{model}:streamGenerateContent?alt=sse` for a streamed reply. - `/v1beta/models/{model}:countTokens` to count the input tokens without calling the model. ## Quick example ```bash curl --request POST "https://api.5abeer.ai/v1beta/models/gemini-4-argon:generateContent" \ --header "x-goog-api-key: $KHABEER_API_KEY" \ --header "Content-Type: application/json" \ --data '{"contents":[{"role":"user","parts":[{"text":"Write a product idea in one sentence."}]}]}' ``` ```python import os import requests response = requests.post( "https://api.5abeer.ai/v1beta/models/gemini-4-argon:generateContent", headers={ "x-goog-api-key": os.environ['KHABEER_API_KEY'], "Content-Type": "application/json", }, json={ "contents": [ { "role": "user", "parts": [ { "text": "Write a product idea in one sentence." } ] } ] }, stream=False, timeout=60, ) response.raise_for_status() print(response.json()) ``` ## Parameters Your request is passed on in Gemini's own format, so the fields below behave as in Google's documentation. **Supported** means we pass it to the model; **rejected** means the request fails, here because the key is for another provider. | Parameter | Type | Description | Claude | GPT | Gemini | | --- | --- | --- | --- | --- | --- | | `contents` (required) | array | The conversation: `user` and `model` turns, each with `parts` of text or images. | rejected | rejected | supported | | `systemInstruction` | object | System instructions in `parts`. | rejected | rejected | supported | | `generationConfig` | object | Output settings: `temperature`, `topP`, `topK`, `maxOutputTokens`, `stopSequences`, `responseMimeType`, `responseSchema`, `thinkingConfig` and `responseModalities`. | rejected | rejected | supported | | `tools` | array | `functionDeclarations` for functions the model can call. | rejected | rejected | supported | | `toolConfig` | object | When the model calls functions: `AUTO`, `ANY` or `NONE`. | rejected | rejected | supported | | `safetySettings` | array | Content filter thresholds per category. | rejected | rejected | supported | ## Image generation The Gemini image models generate images through this same endpoint: add `"responseModalities": ["TEXT", "IMAGE"]` to `generationConfig`, and the image comes back as `inlineData` with Base64 data, as in the [image example](https://5abeer.ai/en/docs/api/gemini.md#ex-image). The image models are in the [Images](https://5abeer.ai/en/docs/api/images.md) page's models list. ## Streaming Call `:streamGenerateContent?alt=sse` instead of `:generateContent`. Each event is a partial reply in the same shape as the full one, and the last event carries `usageMetadata`. Details in [Streaming](https://5abeer.ai/en/docs/api/streaming.md). ## Examples ### Instructions, settings and JSON output cURL: ```bash curl https://api.5abeer.ai/v1beta/models/gemini-3.1-pro:generateContent \ -H "x-goog-api-key: $KHABEER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "systemInstruction": { "parts": [ { "text": "Answer in one sentence." } ] }, "contents": [ { "role": "user", "parts": [ { "text": "Give me one product idea." } ] } ], "generationConfig": { "temperature": 0.4, "topP": 0.9, "topK": 40, "maxOutputTokens": 300, "stopSequences": [ "END" ], "responseMimeType": "application/json", "responseSchema": { "type": "OBJECT", "properties": { "idea": { "type": "STRING" } }, "required": [ "idea" ] } }, "safetySettings": [ { "category": "HARM_CATEGORY_HARASSMENT", "threshold": "BLOCK_MEDIUM_AND_ABOVE" } ] }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "x-goog-api-key": key, } body = { "systemInstruction": { "parts": [ { "text": "Answer in one sentence.", }, ], }, "contents": [ { "role": "user", "parts": [ { "text": "Give me one product idea.", }, ], }, ], "generationConfig": { "temperature": 0.4, "topP": 0.9, "topK": 40, "maxOutputTokens": 300, "stopSequences": ["END"], "responseMimeType": "application/json", "responseSchema": { "type": "OBJECT", "properties": { "idea": { "type": "STRING", }, }, "required": ["idea"], }, }, "safetySettings": [ { "category": "HARM_CATEGORY_HARASSMENT", "threshold": "BLOCK_MEDIUM_AND_ABOVE", }, ], } response = requests.post("https://api.5abeer.ai/v1beta/models/gemini-3.1-pro:generateContent", headers=headers, json=body, timeout=300) response.raise_for_status() print(response.json()) ``` ```json { "candidates": [ { "content": { "role": "model", "parts": [ { "text": "{\"idea\":\"Lumen Notes: a notebook that turns voice memos into tidy to-do lists.\"}" } ] }, "finishReason": "STOP", "index": 0 } ], "usageMetadata": { "promptTokenCount": 21, "candidatesTokenCount": 18, "totalTokenCount": 39 }, "modelVersion": "gemini-3.1-pro" } ``` ### Calling a function cURL: ```bash curl https://api.5abeer.ai/v1beta/models/gemini-3.1-pro:generateContent \ -H "x-goog-api-key: $KHABEER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "contents": [ { "role": "user", "parts": [ { "text": "What is the weather in Cairo?" } ] } ], "tools": [ { "functionDeclarations": [ { "name": "get_weather", "description": "Get the weather for a city", "parameters": { "type": "OBJECT", "properties": { "city": { "type": "STRING" } }, "required": [ "city" ] } } ] } ], "toolConfig": { "functionCallingConfig": { "mode": "AUTO" } } }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "x-goog-api-key": key, } body = { "contents": [ { "role": "user", "parts": [ { "text": "What is the weather in Cairo?", }, ], }, ], "tools": [ { "functionDeclarations": [ { "name": "get_weather", "description": "Get the weather for a city", "parameters": { "type": "OBJECT", "properties": { "city": { "type": "STRING", }, }, "required": ["city"], }, }, ], }, ], "toolConfig": { "functionCallingConfig": { "mode": "AUTO", }, }, } response = requests.post("https://api.5abeer.ai/v1beta/models/gemini-3.1-pro:generateContent", headers=headers, json=body, timeout=300) response.raise_for_status() print(response.json()) ``` ```json { "candidates": [ { "content": { "role": "model", "parts": [ { "functionCall": { "name": "get_weather", "args": { "city": "Cairo" } } } ] }, "finishReason": "STOP", "index": 0 } ], "usageMetadata": { "promptTokenCount": 21, "candidatesTokenCount": 18, "totalTokenCount": 39 }, "modelVersion": "gemini-3.1-pro" } ``` ### Streaming cURL: ```bash curl -N https://api.5abeer.ai/v1beta/models/gemini-3.1-pro:streamGenerateContent?alt=sse \ -H "x-goog-api-key: $KHABEER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "contents": [ { "role": "user", "parts": [ { "text": "Write a product idea in one sentence." } ] } ] }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "x-goog-api-key": key, } body = { "contents": [ { "role": "user", "parts": [ { "text": "Write a product idea in one sentence.", }, ], }, ], } response = requests.post("https://api.5abeer.ai/v1beta/models/gemini-3.1-pro:streamGenerateContent?alt=sse", headers=headers, json=body, timeout=300, stream=True) response.raise_for_status() for line in response.iter_lines(decode_unicode=True): if line: print(line) ``` ```text data: {"candidates":[{"content":{"role":"model","parts":[{"text":"Lumen Notes: a notebook that turns "}]},"index":0}],"modelVersion":"gemini-3.1-pro"} data: {"candidates":[{"content":{"role":"model","parts":[{"text":"voice memos into tidy to-do lists."}]},"finishReason":"STOP","index":0}],"usageMetadata":{"promptTokenCount":21,"candidatesTokenCount":18,"totalTokenCount":39},"modelVersion":"gemini-3.1-pro"} ``` ### Generating an image cURL: ```bash curl https://api.5abeer.ai/v1beta/models/gemini-2.5-flash-image:generateContent \ -H "x-goog-api-key: $KHABEER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "contents": [ { "role": "user", "parts": [ { "text": "A minimal orange logo for a note-taking app." } ] } ], "generationConfig": { "responseModalities": [ "TEXT", "IMAGE" ] } }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "x-goog-api-key": key, } body = { "contents": [ { "role": "user", "parts": [ { "text": "A minimal orange logo for a note-taking app.", }, ], }, ], "generationConfig": { "responseModalities": ["TEXT", "IMAGE"], }, } response = requests.post("https://api.5abeer.ai/v1beta/models/gemini-2.5-flash-image:generateContent", headers=headers, json=body, timeout=300) response.raise_for_status() print(response.json()) ``` ```json { "candidates": [ { "content": { "role": "model", "parts": [ { "text": "Here is the logo." }, { "inlineData": { "mimeType": "image/png", "data": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==" } } ] }, "finishReason": "STOP", "index": 0 } ], "usageMetadata": { "promptTokenCount": 21, "candidatesTokenCount": 18, "totalTokenCount": 39 }, "modelVersion": "gemini-2.5-flash-image" } ``` The request above was run on the local test stack on 2026-10-02; the reply shows the shape, and its text is an example. ## Errors Errors raised while serving the request come in Google's shape: `error` with a numeric `code`, a `message` and a `status` such as `INVALID_ARGUMENT` or `RESOURCE_EXHAUSTED`. The key, balance and limit checks answer `{"code", "message"}` with codes such as [`INVALID_API_KEY`](https://5abeer.ai/en/docs/help/errors.md#INVALID_API_KEY) and [`USAGE_LIMIT_EXCEEDED`](https://5abeer.ai/en/docs/help/errors.md#USAGE_LIMIT_EXCEEDED). The full mapping is in [Limits and error codes](https://5abeer.ai/en/docs/api/limits.md#model-errors). ## Models | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | Gemini 4 Argon | `gemini-4-argon` | $0.60 | $3 | — | | Gemini 2.5 Pro | `gemini-2.5-pro` | $0.38 | $3 | 1M | | Gemini 3.8 Flash | `gemini-3.8-flash` | $0.23 | $1.13 | — | | Gemini 3 Flash | `gemini-3-flash` | $0.15 | $0.90 | 1M | | Gemini 3.1 Pro | `gemini-3.1-pro` | $0.60 | $3.60 | 1M | | Gemini 3.1 Flash Image (Nano Banana 2) | `gemini-3.1-flash-image` | — | — | 64K | --- URL: https://5abeer.ai/en/docs/api/images # Images endpoint reference: /v1/images parameters > Reference for /v1/images/generations and /v1/images/edits with the GPT image models: every parameter, cURL and Python examples, errors and the model list. Updated: 2026-10-02 Generate an image from a description, or edit an image you send. This endpoint serves the GPT image models with a key for GPT models; a Claude or Gemini key gets [`not_found_error`](https://5abeer.ai/en/docs/help/errors.md#not_found_error). The Gemini image models generate images through [generateContent](https://5abeer.ai/en/docs/api/gemini.md#image). To compare the two families, their prices and a first request, read [AI image generation API](https://5abeer.ai/en/guides/image-generation-api). `POST https://api.5abeer.ai/v1/images/generations` ## Two endpoints - `POST /v1/images/generations` generates an image from `prompt`, with a JSON body. - `POST /v1/images/edits` edits the image you send, with a `multipart/form-data` body that carries the file in `image`, and optionally a `mask`. Both answer with `data`, a list of images as Base64 in `b64_json`. Decode it and save it as a file in the format you chose in `output_format`. ## Authentication Send your key in the `Authorization` header as `Bearer` followed by the key, with the OpenAI-compatible base URL. The OpenAI libraries call these endpoints with `client.images.generate` and `client.images.edit`. ## Quick example ```bash curl --request POST "https://api.5abeer.ai/v1/images/generations" \ --header "Authorization: Bearer $KHABEER_API_KEY" \ --header "Content-Type: application/json" \ --data '{"model":"gpt-image-1","prompt":"Write a product idea in one sentence.","size":"1024x1024","quality":"medium"}' ``` ```python import os import requests response = requests.post( "https://api.5abeer.ai/v1/images/generations", headers={ "Authorization": f"Bearer {os.environ['KHABEER_API_KEY']}", "Content-Type": "application/json", }, json={ "model": "gpt-image-1", "prompt": "Write a product idea in one sentence.", "size": "1024x1024", "quality": "medium" }, stream=False, timeout=60, ) response.raise_for_status() print(response.json()) ``` ## Parameters **Supported** means we pass it to the image model; **rejected** means the request fails, here because the key is for another provider. | Parameter | Type | Description | Claude | GPT | Gemini | | --- | --- | --- | --- | --- | --- | | `model` (required) | string | The image model id, as in the [models list](https://5abeer.ai/en/models). | rejected | supported | rejected | | `prompt` (required) | string | A description of the image, or of the edit. | rejected | supported | rejected | | `image` | file | Edits only: the source image, as a file in a multipart form. | rejected | supported | rejected | | `mask` | file | Edits only: a transparent mask that marks the area to change. | rejected | supported | rejected | | `size` | string | The size, such as `1024x1024`, `1536x1024` or `auto`. | rejected | supported | rejected | | `quality` | string | The quality: `low`, `medium`, `high` or `auto`. | rejected | supported | rejected | | `n` | integer | The number of images, at least 1. | rejected | supported | rejected | | `background` | string | The background: `transparent`, `opaque` or `auto`. | rejected | supported | rejected | | `output_format` | string | The file format: `png`, `jpeg` or `webp`. | rejected | supported | rejected | | `output_compression` | integer | Compression from 0 to 100 with `jpeg` and `webp`. | rejected | supported | rejected | | `moderation` | string | The content filter level: `auto` or `low`. | rejected | supported | rejected | ## Examples ### Generating an image cURL: ```bash curl https://api.5abeer.ai/v1/images/generations \ -H "Authorization: Bearer $KHABEER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-image-2", "prompt": "A minimal orange logo for a note-taking app.", "size": "1024x1024", "quality": "medium" }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "Authorization": f"Bearer {key}", } body = { "model": "gpt-image-2", "prompt": "A minimal orange logo for a note-taking app.", "size": "1024x1024", "quality": "medium", } response = requests.post("https://api.5abeer.ai/v1/images/generations", headers=headers, json=body, timeout=300) response.raise_for_status() print(response.json()) ``` ```json { "created": 1790000000, "data": [ { "b64_json": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==" } ], "usage": { "input_tokens": 14, "output_tokens": 272, "total_tokens": 286 } } ``` ### Transparent background and file format cURL: ```bash curl https://api.5abeer.ai/v1/images/generations \ -H "Authorization: Bearer $KHABEER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-image-2", "prompt": "A minimal orange logo for a note-taking app.", "size": "1024x1024", "quality": "high", "n": 1, "background": "transparent", "output_format": "webp", "output_compression": 80, "moderation": "auto" }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "Authorization": f"Bearer {key}", } body = { "model": "gpt-image-2", "prompt": "A minimal orange logo for a note-taking app.", "size": "1024x1024", "quality": "high", "n": 1, "background": "transparent", "output_format": "webp", "output_compression": 80, "moderation": "auto", } response = requests.post("https://api.5abeer.ai/v1/images/generations", headers=headers, json=body, timeout=300) response.raise_for_status() print(response.json()) ``` ```json { "created": 1790000000, "data": [ { "b64_json": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==" } ], "usage": { "input_tokens": 14, "output_tokens": 272, "total_tokens": 286 } } ``` ### Editing an image cURL: ```bash curl https://api.5abeer.ai/v1/images/edits \ -H "Authorization: Bearer $KHABEER_API_KEY" \ -F "model=gpt-image-2" \ -F "prompt=Make the background light blue." \ -F "image=@logo.png" \ -F "mask=@mask.png" \ -F "size=1024x1024" ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "Authorization": f"Bearer {key}", } data = { "model": "gpt-image-2", "prompt": "Make the background light blue.", "size": "1024x1024", } files = {"image": open("logo.png", "rb"), "mask": open("mask.png", "rb")} response = requests.post("https://api.5abeer.ai/v1/images/edits", headers=headers, data=data, files=files, timeout=300) response.raise_for_status() print(response.json()) ``` ```json { "created": 1790000000, "data": [ { "b64_json": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==" } ], "usage": { "input_tokens": 14, "output_tokens": 272, "total_tokens": 286 } } ``` The request above was run on the local test stack on 2026-10-02; the reply shows the shape, and its text is an example. ## Errors - [`invalid_request_error`](https://5abeer.ai/en/docs/help/errors.md#invalid_request_error): a wrong type, such as `n` as text, or `n` below 1. - [`not_found_error`](https://5abeer.ai/en/docs/help/errors.md#not_found_error): the key is not for GPT models. - [`INSUFFICIENT_BALANCE`](https://5abeer.ai/en/docs/help/errors.md#INSUFFICIENT_BALANCE): your balance doesn't cover the image. - A large file in an edit can return `413` with `REQUEST_TOO_LARGE`; see [Limits](https://5abeer.ai/en/docs/api/limits.md#size). ## Image models | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | GPT Image 1 | `gpt-image-1` | — | — | — | | GPT Image 1.5 | `gpt-image-1.5` | — | — | — | | GPT Image 2 | `gpt-image-2` | — | — | — | | GPT Image 2.5 Flare | `gpt-image-2.5-flare` | — | — | — | | GPT Image 2.5 Sunburst | `gpt-image-2.5-sunburst` | — | — | — | | Gemini 3.1 Flash Image (Nano Banana 2) | `gemini-3.1-flash-image` | — | — | 64K | --- URL: https://5abeer.ai/en/docs/api/embeddings # OpenAI-compatible Embeddings API reference > The OpenAI-compatible Embeddings reference, with the request fields, one and several texts, shorter vectors, examples and errors. Updated: 2026-10-02 Turn text into a vector of numbers, so that texts with close meanings get close vectors. Use it for search by meaning, grouping and classification. This endpoint serves the embedding models with a key for GPT models. `POST https://api.5abeer.ai/v1/embeddings` ## Authentication Send your key in the `Authorization` header as `Bearer` followed by the key, with the OpenAI-compatible base URL. The OpenAI libraries call this endpoint with `client.embeddings.create`. A Claude or Gemini key gets [`not_found_error`](https://5abeer.ai/en/docs/help/errors.md#not_found_error). ## Parameters **Supported** means we pass it to the model; **rejected** means the request fails, here because the key is for another provider. | Parameter | Type | Description | Claude | GPT | Gemini | | --- | --- | --- | --- | --- | --- | | `model` (required) | string | The embedding model id, as in the [models list](https://5abeer.ai/en/models). | rejected | supported | rejected | | `input` (required) | string \| array | One text, or a list of texts; you get one vector per text, in the same order. | rejected | supported | rejected | | `dimensions` | integer | The vector length, if you want it shorter than the default. | rejected | supported | rejected | | `encoding_format` | string | `float` for a list of numbers, or `base64` for a shorter string. | rejected | supported | rejected | | `user` | string | An id for the end user in your system. | rejected | supported | rejected | ## Examples ### One text cURL: ```bash curl https://api.5abeer.ai/v1/embeddings \ -H "Authorization: Bearer $KHABEER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "text-embedding-3-small", "input": "Write a product idea in one sentence." }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "Authorization": f"Bearer {key}", } body = { "model": "text-embedding-3-small", "input": "Write a product idea in one sentence.", } response = requests.post("https://api.5abeer.ai/v1/embeddings", headers=headers, json=body, timeout=300) response.raise_for_status() print(response.json()) ``` ```json { "object": "list", "model": "text-embedding-3-small", "data": [ { "object": "embedding", "index": 0, "embedding": [ 0.01, 0.02, 0.03, 0.04, 0.05, 0.06, 0.07, 0.08 ] } ], "usage": { "prompt_tokens": 9, "total_tokens": 9 } } ``` The vector is shortened here. ### Several texts, shorter vectors cURL: ```bash curl https://api.5abeer.ai/v1/embeddings \ -H "Authorization: Bearer $KHABEER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "text-embedding-3-small", "input": [ "How do I export a note?", "Can I share a notebook?" ], "dimensions": 256, "encoding_format": "float", "user": "user-123" }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "Authorization": f"Bearer {key}", } body = { "model": "text-embedding-3-small", "input": ["How do I export a note?", "Can I share a notebook?"], "dimensions": 256, "encoding_format": "float", "user": "user-123", } response = requests.post("https://api.5abeer.ai/v1/embeddings", headers=headers, json=body, timeout=300) response.raise_for_status() print(response.json()) ``` ```json { "object": "list", "model": "text-embedding-3-small", "data": [ { "object": "embedding", "index": 0, "embedding": [ 0.01, 0.02, 0.03, 0.04, 0.05, 0.06, 0.07, 0.08 ] }, { "object": "embedding", "index": 1, "embedding": [ 0.02, 0.04, 0.06, 0.08, 0.1, 0.12, 0.14, 0.16 ] } ], "usage": { "prompt_tokens": 9, "total_tokens": 9 } } ``` The vector is shortened here. The request above was run on the local test stack on 2026-10-02; the reply shows the shape, and its text is an example. ## Tips - Send texts in batches as a list in `input`: one request for many texts is faster than many requests. - Use the same model for the texts you store and for the questions you compare with them; vectors from different models don't mix. - `dimensions` gives shorter vectors that take less storage, at a small cost in accuracy. ## Errors - [`invalid_request_error`](https://5abeer.ai/en/docs/help/errors.md#invalid_request_error): `model` or `input` is missing. - [`not_found_error`](https://5abeer.ai/en/docs/help/errors.md#not_found_error): the key is not for GPT models. - A very long batch can return `413` with `REQUEST_TOO_LARGE`; split it. See [Limits](https://5abeer.ai/en/docs/api/limits.md#size). ## Embedding models | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | --- URL: https://5abeer.ai/en/docs/api/models # List models API: what your key can call > List the models your key can call, read one model, and use the Gemini-format list, at no cost and without calling any model. Updated: 2026-10-02 Find out which models your key can call. These requests call no model and cost nothing, so they are also a quick way to check that a key works. `GET https://api.5abeer.ai/v1/models` ## Three requests - `GET /v1/models` lists the models of your key's provider, in the OpenAI format: `object: "list"` and `data`, where each item has its `id`. - `GET /v1/models/{model}` returns one model. - `GET /v1beta/models` lists the models in the Gemini format, with a key for Gemini models in `x-goog-api-key`. Each key works with one provider's models, so the list shows only that provider's models. The `id` field is the value you send in `model`. ## Authentication Send your key in the `Authorization` header as `Bearer` followed by the key. The Gemini-format list uses `x-goog-api-key`. ## Examples ### Every model of your key cURL: ```bash curl https://api.5abeer.ai/v1/models \ -H "Authorization: Bearer $KHABEER_API_KEY" ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "Authorization": f"Bearer {key}", } response = requests.get("https://api.5abeer.ai/v1/models", headers=headers, timeout=60) response.raise_for_status() print(response.json()) ``` ```json { "object": "list", "data": [ { "id": "claude-opus-5", "object": "model", "created": 1790000000, "owned_by": "anthropic", "display_name": "Claude Opus 5" }, { "id": "claude-fable-5", "object": "model", "created": 1790000000, "owned_by": "anthropic", "display_name": "Claude Fable 5" }, { "id": "claude-sonnet-5", "object": "model", "created": 1790000000, "owned_by": "anthropic", "display_name": "Claude Sonnet 5" }, { "id": "claude-sonnet-4.6", "object": "model", "created": 1790000000, "owned_by": "anthropic", "display_name": "Claude Sonnet 4.6" }, { "id": "claude-haiku-4.5", "object": "model", "created": 1790000000, "owned_by": "anthropic", "display_name": "Claude Haiku 4.5" }, { "id": "claude-opus-4.5", "object": "model", "created": 1790000000, "owned_by": "anthropic", "display_name": "Claude Opus 4.5" }, { "id": "claude-opus-4.6", "object": "model", "created": 1790000000, "owned_by": "anthropic", "display_name": "Claude Opus 4.6" }, { "id": "claude-opus-4.7", "object": "model", "created": 1790000000, "owned_by": "anthropic", "display_name": "Claude Opus 4.7" }, { "id": "claude-sonnet-4.5", "object": "model", "created": 1790000000, "owned_by": "anthropic", "display_name": "Claude Sonnet 4.5" } ] } ``` The list is shortened here. ### One model cURL: ```bash curl https://api.5abeer.ai/v1/models/claude-opus-5 \ -H "Authorization: Bearer $KHABEER_API_KEY" ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "Authorization": f"Bearer {key}", } response = requests.get("https://api.5abeer.ai/v1/models/claude-opus-5", headers=headers, timeout=60) response.raise_for_status() print(response.json()) ``` ```json { "id": "claude-opus-5", "object": "model", "created": 1790000000, "owned_by": "anthropic", "display_name": "Claude Opus 5" } ``` ### In the Gemini format cURL: ```bash curl https://api.5abeer.ai/v1beta/models \ -H "x-goog-api-key: $KHABEER_API_KEY" ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "x-goog-api-key": key, } response = requests.get("https://api.5abeer.ai/v1beta/models", headers=headers, timeout=60) response.raise_for_status() print(response.json()) ``` ```json { "models": [ { "name": "models/gemini-3.1-pro", "displayName": "Gemini 3.1 Pro", "supportedGenerationMethods": [ "generateContent", "streamGenerateContent", "countTokens" ] }, { "name": "models/gemini-3-flash", "displayName": "Gemini 3 Flash", "supportedGenerationMethods": [ "generateContent", "streamGenerateContent", "countTokens" ] }, { "name": "models/gemini-3.1-flash-image", "displayName": "Gemini 3.1 Flash Image", "supportedGenerationMethods": [ "generateContent", "streamGenerateContent", "countTokens" ] }, { "name": "models/gemini-2.5-flash", "displayName": "Gemini 2.5 Flash", "supportedGenerationMethods": [ "generateContent", "streamGenerateContent", "countTokens" ] }, { "name": "models/gemini-2.5-pro", "displayName": "Gemini 2.5 Pro", "supportedGenerationMethods": [ "generateContent", "streamGenerateContent", "countTokens" ] }, { "name": "models/gemini-3.6-flash", "displayName": "Gemini 3.6 Flash", "supportedGenerationMethods": [ "generateContent", "streamGenerateContent", "countTokens" ] }, { "name": "models/gemini-2.5-flash-image", "displayName": "Gemini 2.5 Flash Image", "supportedGenerationMethods": [ "generateContent", "streamGenerateContent", "countTokens" ] } ] } ``` The list is shortened here. The request above was run on the local test stack on 2026-10-02; the reply shows the shape, and its text is an example. ## Errors - [`INVALID_API_KEY`](https://5abeer.ai/en/docs/help/errors.md#INVALID_API_KEY): the key is wrong. - [`API_KEY_DISABLED`](https://5abeer.ai/en/docs/help/errors.md#API_KEY_DISABLED): the key is disabled. - [`API_KEY_EXPIRED`](https://5abeer.ai/en/docs/help/errors.md#API_KEY_EXPIRED): the key is past its expiry date. ## All models The full list with prices, for every provider, is on the [models page](https://5abeer.ai/en/models). Featured models: | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | Claude Sonnet 5.5 | `claude-sonnet-5.5` | $0.60 | $3 | 1M | | Claude Opus 5.5 | `claude-opus-5.5` | $1.20 | $6 | 1M | | GPT-6.2 Sol | `gpt-6.2-sol` | $0.60 | $3 | — | | Gemini 4 Argon | `gemini-4-argon` | $0.60 | $3 | — | | Claude Fable 5.1 | `claude-fable-5.1` | $3 | $15 | — | | Claude Fable 5 | `claude-fable-5` | $3 | $15 | 1M | | Claude Opus 4.6 | `claude-opus-4.6` | $1.50 | $7.50 | 1M | | Claude Opus 4.7 | `claude-opus-4.7` | $1.50 | $7.50 | 1M | --- URL: https://5abeer.ai/en/docs/api/streaming # Streaming API replies in every format > How to receive a reply as it is written in each format, Chat Completions, Responses, Messages and Gemini, with usage, errors mid-stream and tips. Updated: 2026-10-02 With streaming, the reply arrives in parts as the model writes it, so your user sees text at once instead of waiting for the whole reply. Every format supports it, through Server-Sent Events: lines that start with `data:`, sometimes after an `event:` line. ## Turn it on - **Chat Completions, Responses and Messages:** add `"stream": true` to the body. - **Gemini:** call `:streamGenerateContent?alt=sse` instead of `:generateContent`. With cURL, add `-N` so the parts print as they arrive. In Python with `requests`, pass `stream=True` and read the lines with `iter_lines`. The official libraries handle all of this for you. ```bash curl --no-buffer --request POST "https://api.5abeer.ai/v1/chat/completions" \ --header "Authorization: Bearer $KHABEER_API_KEY" \ --header "Content-Type: application/json" \ --data '{"model":"claude-sonnet-5.5","messages":[{"role":"user","content":"Write a product idea in one sentence."}],"stream":true}' ``` ```python import os import requests response = requests.post( "https://api.5abeer.ai/v1/chat/completions", headers={ "Authorization": f"Bearer {os.environ['KHABEER_API_KEY']}", "Content-Type": "application/json", }, json={ "model": "claude-sonnet-5.5", "messages": [ { "role": "user", "content": "Write a product idea in one sentence." } ], "stream": True }, stream=True, timeout=60, ) response.raise_for_status() for line in response.iter_lines(decode_unicode=True): if line: print(line) ``` ## What arrives in each format - **Chat Completions:** `data:` lines, each a `chat.completion.chunk` with text in `choices[0].delta.content`. It ends with `data: [DONE]`. - **Responses:** named events, `response.created`, then `response.output_text.delta` and the function call events. It ends with `response.completed`, which holds the full reply. - **Messages:** `message_start`, then for each block `content_block_start`, `content_block_delta` and `content_block_stop`, then `message_delta`. It ends with `message_stop`. - **Gemini:** each event is a partial reply in the same shape as the full one. The last event carries `finishReason` and `usageMetadata`. Full examples of each stream are in the references: [Chat Completions](https://5abeer.ai/en/docs/api/chat-completions.md#ex-stream), [Responses](https://5abeer.ai/en/docs/api/responses.md#ex-stream), [Messages](https://5abeer.ai/en/docs/api/messages.md#ex-stream) and [Gemini](https://5abeer.ai/en/docs/api/gemini.md#ex-stream). ## Usage numbers - **Chat Completions:** add `"stream_options": {"include_usage": true}` and the last part before `[DONE]` carries `usage`, with an empty `choices`. GPT models always send it, even without the option. - **Responses:** `usage` is in `response.completed`. - **Messages:** the input usage is in `message_start`, the output usage in `message_delta`. - **Gemini:** `usageMetadata` is in the last event. ## Errors mid-stream An error before the stream starts arrives as a normal JSON response with its HTTP status. Once the stream has started, the status is already `200`, so the error arrives inside the stream: - **Chat Completions and Gemini:** a `data:` line with an `error` object. - **Responses:** a `response.failed` event. - **Messages:** an `error` event. Each one carries the same code as a normal error; see [Limits and error codes](https://5abeer.ai/en/docs/api/limits.md#model-errors). Show the user what was written so far, and offer to try again. ## Tips - Read the stream line by line and ignore empty lines and `event:` lines you don't use. - Keep your timeouts generous: a long answer can stream for several minutes. - Don't parse partial JSON from a tool call until its block ends; join the `arguments` or `input_json_delta` parts first. --- URL: https://5abeer.ai/en/docs/api/tools # Tool and function calling API in every format > Let the model call your functions in every format, define a tool, read the call, send the result back, and see what each model family supports. Updated: 2026-10-02 Tool calling lets the model ask your program to run a function, such as fetching the weather or searching your database, and then answer with the result. The model never runs anything itself: it returns the function name and the arguments, your code runs it, and you send the result back in the next request. ## The loop ### 1. Describe your tools Send a list of tools in the request, each with a name, a description and a JSON Schema for its arguments. A clear description is what makes the model call the right tool. ### 2. Read the call When the model wants a tool, the reply holds a call with the tool name and its arguments instead of a final answer, and the stop reason says so. ### 3. Run it and send the result Run the function in your code, then send a new request with the whole conversation: the model's call, followed by your result linked to the call's id. The model then answers, or calls another tool. ## The same tool in each format - **Chat Completions:** tools in `tools` with `type: "function"` and `function.parameters`. The call comes in `message.tool_calls` with `finish_reason: "tool_calls"`. Send the result as a message with `role: "tool"` and the `tool_call_id`. - **Responses:** tools in `tools` with `type: "function"` and `parameters`. The call is an `output` item of type `function_call` with a `call_id`. Send the result as an `input` item of type `function_call_output` with the same `call_id`. - **Messages:** tools in `tools` with `input_schema`. The call is a `tool_use` block with `stop_reason: "tool_use"`. Send the result as a `tool_result` block in a `user` message, with the `tool_use_id`. - **Gemini:** tools in `tools` with `functionDeclarations`. The call is a `functionCall` part. Send the result as a `functionResponse` part in a `user` turn. Full requests with captured replies: [Chat Completions](https://5abeer.ai/en/docs/api/chat-completions.md#ex-tools), [Responses](https://5abeer.ai/en/docs/api/responses.md#ex-tools), [Messages](https://5abeer.ai/en/docs/api/messages.md#ex-tools) and [Gemini](https://5abeer.ai/en/docs/api/gemini.md#ex-tools). ## Sending the result back In Chat Completions, the second request repeats the conversation, adds the model's call as it came, and then your result: ```json [ { "role": "user", "content": "What is the weather in Cairo?" }, { "role": "assistant", "content": null, "tool_calls": [ { "id": "call_1", "type": "function", "function": { "name": "get_weather", "arguments": "{\"city\":\"Cairo\"}" } } ] }, { "role": "tool", "tool_call_id": "call_1", "content": "{\"temp_c\": 31, \"sky\": \"clear\"}" } ] ``` In Messages, the call and the result are blocks: ```json [ { "role": "user", "content": "What is the weather in Cairo?" }, { "role": "assistant", "content": [ { "type": "tool_use", "id": "toolu_1", "name": "get_weather", "input": { "city": "Cairo" } } ] }, { "role": "user", "content": [ { "type": "tool_result", "tool_use_id": "toolu_1", "content": "{\"temp_c\": 31, \"sky\": \"clear\"}" } ] } ] ``` ## What each family supports - Every family accepts `tools` in Chat Completions and Messages, and Claude and GPT in Responses. - Forcing a tool with `tool_choice` works for Claude and GPT. Gemini models choose for themselves in Chat Completions and Messages; in [generateContent](https://5abeer.ai/en/docs/api/gemini.md) use `toolConfig`. - `parallel_tool_calls` has an effect for GPT models only. Claude models may call several tools in one reply; handle every call before you answer. - For a JSON answer from Claude, define one tool whose schema is the shape you want and force it with `tool_choice`: the arguments are your JSON. ## Tips - Check the arguments before you run anything: the model can send a wrong value. - Keep tool results short and factual; long results cost input tokens on every later request. - Return errors as results, such as `{"error": "city not found"}`, so the model can recover. --- URL: https://5abeer.ai/en/docs/api/caching # Prompt caching for Claude, GPT and Gemini > Reuse the start of long requests so repeated instructions cost less and answer faster: how to mark the cache for Claude, and what GPT and Gemini do. Updated: 2026-10-02 When many requests start with the same long text, such as a system prompt, a manual or a code base, the model can reuse what it already read instead of reading it again. Reading from the cache costs less than fresh input and is faster. ## Claude models: mark what to cache With Claude models, you choose what to cache by adding `cache_control` to a content block in [Messages](https://5abeer.ai/en/docs/api/messages.md). Everything up to and including that block becomes the cached prefix: ```json [ { "type": "text", "text": "You are the support assistant for Lumen Notes. Product manual: ...", "cache_control": { "type": "ephemeral" } } ] ``` - Put the stable parts first: tools, then instructions, then documents, and the changing question last. - The cache holds the exact prefix: change one character before the marker and that request reads afresh. - A short prefix is not cached; caching pays off on long, repeated text. - `cache_control` is a Messages feature: in Chat Completions and Responses there is no field to mark the cache for Claude. A full request with a captured reply is in the [caching example](https://5abeer.ai/en/docs/api/messages.md#ex-caching). ## GPT models: automatic GPT models cache long, repeated prefixes on their own; there is nothing to mark. In [Responses](https://5abeer.ai/en/docs/api/responses.md#params) you can add `prompt_cache_key` with a stable value per kind of request, so similar requests share the cache. ## Gemini models There is no cache field to set for Gemini models here. Keep the stable part of your requests at the start, as above. ## See it in the usage The usage numbers of each reply show what came from the cache: - **Messages:** read from the cache in `usage.cache_read_input_tokens`, written to it in `usage.cache_creation_input_tokens`. - **Chat Completions:** read from the cache in `usage.prompt_tokens_details.cached_tokens`. - **Responses:** read from the cache in `usage.input_tokens_details.cached_tokens`. ## Price Cache reads and writes have their own prices per million tokens, shown on each model's page, for example [this model's page](https://5abeer.ai/en/models/claude-sonnet-5.5). --- URL: https://5abeer.ai/en/docs/api/limits # API limits: balance, key caps, size and context > What limits a request, the subscription's 5-hour and weekly limits, balance and key limits, request size and context, and every error code with its shape. Updated: 2026-10-03 What can stop a request, the code you get in each case, and what to do. Every limit has its own code, so your program can tell them apart. ## Subscriptions Subscriptions run in the supported apps and have two usage limits only: a 5-hour limit and a weekly limit. When you reach one, requests answer `429` with [`USAGE_LIMIT_EXCEEDED`](https://5abeer.ai/en/docs/help/errors.md#USAGE_LIMIT_EXCEEDED) until the limit renews on its schedule; quick retries don't help. Your dashboard shows how much of each limit you have used and when it renews; details in [Usage limits](https://5abeer.ai/en/docs/subscriptions/limits.md). ## Pay-as-you-go keys The subscription limits don't apply here. What limits your requests: - **Balance:** when it runs out, requests answer `403` with [`INSUFFICIENT_BALANCE`](https://5abeer.ai/en/docs/help/errors.md#INSUFFICIENT_BALANCE). Top up, then try again. - **The key's spend limit**, if you set one: `429` with [`API_KEY_QUOTA_EXHAUSTED`](https://5abeer.ai/en/docs/help/errors.md#API_KEY_QUOTA_EXHAUSTED), or `insufficient_quota` on `/v1/responses`. Raise the limit in the key settings. - **The key's expiry date and IP allow-list**, if you set them: [`API_KEY_EXPIRED`](https://5abeer.ai/en/docs/help/errors.md#API_KEY_EXPIRED) and [`ACCESS_DENIED`](https://5abeer.ai/en/docs/help/errors.md#ACCESS_DENIED). ## Request rate Too many requests in a short time answer `429` with [`RATE_LIMITED`](https://5abeer.ai/en/docs/help/errors.md#RATE_LIMITED). Repeated requests with a wrong key are slowed down too, with `INVALID_AUTH_RATE_LIMITED`. Wait, then retry with a delay that doubles each time. ## Request size A request that is too large answers `413` with `REQUEST_TOO_LARGE`. It usually comes from many or large images or files. Make images smaller, send fewer at once, or put long documents in a file and send only the parts you need. Endpoints that carry only text, such as Embeddings, accept smaller bodies than the chat endpoints. ## Context length When the conversation is longer than the model's context window, the request answers `400` with `CONTEXT_LIMIT_EXCEEDED`. Start a new conversation, remove older messages, or summarize them. The context window of each model: | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | Claude Sonnet 5.5 | `claude-sonnet-5.5` | $0.60 | $3 | 1M | | Claude Opus 5.5 | `claude-opus-5.5` | $1.20 | $6 | 1M | | GPT-6.2 Sol | `gpt-6.2-sol` | $0.60 | $3 | — | | Gemini 4 Argon | `gemini-4-argon` | $0.60 | $3 | — | | Claude Fable 5.1 | `claude-fable-5.1` | $3 | $15 | — | | Claude Fable 5 | `claude-fable-5` | $3 | $15 | 1M | | Claude Opus 4.6 | `claude-opus-4.6` | $1.50 | $7.50 | 1M | | Claude Opus 4.7 | `claude-opus-4.7` | $1.50 | $7.50 | 1M | | Claude Opus 5 | `claude-opus-5` | $1.50 | $7.50 | 1M | | Claude Sonnet 5 | `claude-sonnet-5` | $0.60 | $3 | 1M | | Claude Sonnet 4.6 | `claude-sonnet-4.6` | $0.90 | $4.50 | 1M | | Claude Haiku 5.5 | `claude-haiku-5.5` | $0.03 | $0.15 | 1M | ## Error shapes Errors come in two shapes, depending on where they happen. From the key, balance and limit checks, before any model is called: ```json { "code": "INVALID_API_KEY", "message": "Invalid API key" } ``` While serving the request, in the format of the endpoint you called, with a `request_id`; the same id is in the `X-Request-ID` header. On the OpenAI-compatible endpoints: ```json { "error": { "type": "invalid_request_error", "code": "CONTEXT_LIMIT_EXCEEDED", "message": "This conversation exceeds the model context limit. Start a new conversation or remove older content." } } ``` On `/v1/messages` the same fields sit in `error`, with `"type": "error"` at the top level; on Gemini the error has a numeric `code`, a `message` and a `status`. Send the `request_id` when you contact us about a failed request. ## Codes while serving the request - `INVALID_REQUEST` · **400**: the model could not process the request as sent. Check the fields and values. - `CONTEXT_LIMIT_EXCEEDED` · **400**: the conversation is longer than the model's context window. Shorten it. - `REQUEST_TOO_LARGE` · **413**: the request body is too large. Send smaller or fewer images and files. - `RATE_LIMITED` · **429**: the model is busy for the moment. Wait a little, then retry. - `MODEL_UNAVAILABLE` · **503**: the model is temporarily unavailable. Retry, or pick another model. - `SERVICE_UNAVAILABLE` · **503**: a temporary problem on our side. Retry after a moment. - `AUTHENTICATION_FAILED` · **503**: a temporary problem on our side, not your key. Retry after a moment. - `UPSTREAM_TIMEOUT` · **504**: the model took too long to answer. Retry; for long tasks use streaming. - `INTERNAL_ERROR` · **500**: an unexpected error. Retry; if it repeats, contact us with the `request_id`. The codes from the key, balance and limit checks are in [Errors and fixes](https://5abeer.ai/en/docs/help/errors.md). ## When to retry - `429`, `500`, `503` and `504` are temporary: retry with a delay that doubles each time, and cap the number of attempts. - `400`, `401`, `403` and `413` won't go away on retry: fix the request, the key or the balance first. - `USAGE_LIMIT_EXCEEDED` clears when the limit renews, not with retries. --- URL: https://5abeer.ai/en/docs/apps/claude-code # How to use Claude Code with a 5abeer API key > Install Claude Code and point it at 5abeer with three settings to run Claude models at about 70% below the official price, or use your plan in 5abeer AI. Updated: 2026-11-15 To use Claude Code with 5abeer, install Claude Code, then put three settings in `~/.claude/settings.json`: the 5abeer base URL, your 5abeer API key and a model. Run `claude` in your project and every request is paid from your 5abeer balance. With a subscription, the 5abeer AI app does this setup for you. ## What is Claude Code? Claude Code is Anthropic's coding agent for the terminal: it reads your project, edits files and runs commands. It is one of the official apps 5abeer supports, and it runs exactly as it ships, either with a 5abeer API key paid from your balance or on a 5abeer subscription through the 5abeer AI app. ## What you get - Claude Code exactly as it ships, with its commands and settings. - The Claude models 5abeer serves, at about 70% below their official price. - Usage and cost per key in your dashboard. ## Before you start - A terminal on macOS, Linux or Windows. - An API key for Claude models ([create one](https://5abeer.ai/en/docs/start/keys.md#create)). - `Node.js` 22 or newer, only if you install Claude Code with `npm`. ## With a subscription: the 5abeer AI app If you have a 5abeer subscription that includes Claude Code, the 5abeer AI app sets it up on your subscription, with no API key and no files to edit. The app runs on Mac, Windows and Linux; details in [What each plan runs](https://5abeer.ai/en/docs/subscriptions/plan-apps.md#claude-code). With an API key, follow the manual setup below. ## Manual Claude Code setup ### 1. Install Claude Code Anthropic recommends its native installer. Pick the tab for your system: macOS / Linux: ```bash curl -fsSL https://claude.ai/install.sh | bash ``` Windows (PowerShell): ```powershell irm https://claude.ai/install.ps1 | iex ``` If you use CMD on Windows instead of PowerShell, run this command. A PowerShell prompt starts with `PS`; a CMD prompt doesn't. ```text curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd ``` You can also install it with a package manager. Homebrew and WinGet installs don't update on their own, and the Homebrew cask below follows the stable channel, usually about a week behind the latest release. Homebrew: ```bash brew install --cask claude-code ``` WinGet: ```powershell winget install Anthropic.ClaudeCode ``` npm: ```bash npm install -g @anthropic-ai/claude-code ``` Check the install: ```bash claude --version ``` ### 2. Add the settings Put these settings in `~/.claude/settings.json`, or export the same variables in your shell. Replace `YOUR_5ABEER_API_KEY` with your key. `~/.claude/settings.json` ```json { "env": { "ANTHROPIC_BASE_URL": "https://api.5abeer.ai", "ANTHROPIC_AUTH_TOKEN": "YOUR_5ABEER_API_KEY", "ANTHROPIC_MODEL": "claude-sonnet-5.5" } } ``` ### 3. Run it ```bash cd your-project claude ``` Ask anything. If a reply comes back, you're set: `/status` shows the Anthropic base URL and which variable holds your key. ## Pick a model These models run in Claude Code today. Switch with the `ANTHROPIC_MODEL` variable, or inside Claude Code with `/model`. | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | Claude Sonnet 5.5 | `claude-sonnet-5.5` | $0.60 | $3 | 1M | | Claude Opus 5.5 | `claude-opus-5.5` | $1.20 | $6 | 1M | | Claude Fable 5.1 | `claude-fable-5.1` | $3 | $15 | — | | Claude Fable 5 | `claude-fable-5` | $3 | $15 | 1M | | Claude Opus 4.6 | `claude-opus-4.6` | $1.50 | $7.50 | 1M | | Claude Opus 5 | `claude-opus-5` | $1.50 | $7.50 | 1M | | Claude Sonnet 5 | `claude-sonnet-5` | $0.60 | $3 | 1M | | Claude Sonnet 4.6 | `claude-sonnet-4.6` | $0.90 | $4.50 | 1M | | Claude Haiku 5.5 | `claude-haiku-5.5` | $0.03 | $0.15 | 1M | | Claude Haiku 4.5 | `claude-haiku-4.5` | $0.30 | $1.50 | 200K | ## If you get an error - [`INVALID_API_KEY`](https://5abeer.ai/en/docs/help/errors.md#INVALID_API_KEY): the key is wrong or was copied only in part. - [`INSUFFICIENT_BALANCE`](https://5abeer.ai/en/docs/help/errors.md#INSUFFICIENT_BALANCE): your balance doesn't cover this request. - [`MODEL_PLATFORM_NOT_ALLOWED`](https://5abeer.ai/en/docs/help/errors.md#MODEL_PLATFORM_NOT_ALLOWED): the key belongs to a provider other than Claude. - [`RATE_LIMITED`](https://5abeer.ai/en/docs/help/errors.md#RATE_LIMITED): too many requests in a short time. Every code and what it means is in [Errors and fixes](https://5abeer.ai/en/docs/help/errors.md). ## Questions ### Do I need an Anthropic account? No. With `ANTHROPIC_AUTH_TOKEN` set to your 5abeer key, Claude Code sends that key with every request, so you don't sign in to Anthropic. ### I'm already signed in to Claude. What do I do? Nothing, in most cases. While your 5abeer key is set, Claude Code uses it instead of your claude.ai login, which stays saved. If Claude Code warns at startup about two credential sources, run this inside Claude Code to clear the saved login: ```text /logout ``` Remote Control and voice dictation need a claude.ai login, so they don't work while your 5abeer key is set. The full order in which Claude Code picks a credential is in [Claude Code API key](https://5abeer.ai/en/guides/claude-code-api-key). ### Do I need Node.js? Not with the native installer. The `npm` install needs `Node.js` 22 or newer. ### How do I check that Claude Code goes through 5abeer? Run `/status` inside Claude Code. The Status tab shows the Anthropic base URL, which should be the 5abeer address, and a line naming the variable that holds your key. Each request also appears in your dashboard under the key you used. ### How is a request billed? Each request is paid from your balance by the tokens it uses, at the model's 5abeer price. Details in [Pricing and balance](https://5abeer.ai/en/docs/start/pricing.md). ### “Claude Max, Ultra, or Pro is required to connect to Claude Code”: what does it mean? Anthropic's Claude Code FAQ says this message means the wrong login method was selected on the Claude Code setup screen, and suggests running `/login` again and choosing the right account. If your 5abeer subscription includes Claude Code, the 5abeer AI app sets it up on your subscription, with no API key and no files to edit, as in [With a subscription: the 5abeer AI app](https://5abeer.ai/en/docs/apps/claude-code.md#easy). ## Sources Checked on 2026-11-01: - Claude Code docs: [Advanced setup](https://code.claude.com/docs/en/setup) - Claude Code docs: [Connect Claude Code to an LLM gateway](https://code.claude.com/docs/en/llm-gateway-connect) - Anthropic Help Center: [Claude Code FAQ](https://support.claude.com/en/articles/12386420-claude-code-faq), checked on 2026-11-15 --- URL: https://5abeer.ai/en/docs/apps/codex # How to set up Codex CLI with a 5abeer API key > Add 5abeer as a provider in Codex CLI's config.toml, save your key in one environment variable and run GPT models at about 70% below the official price. Updated: 2026-10-31 To run Codex CLI with 5abeer, install Codex, add a `khabeer` provider with the 5abeer base URL to `~/.codex/config.toml`, and save your 5abeer API key in the `KHABEER_API_KEY` environment variable. Then run `codex` in your project; every request is paid from your 5abeer balance. With a subscription, the 5abeer AI app does this setup for you. ## What you get - Codex CLI exactly as it ships, with its commands and settings. - The GPT models 5abeer serves, at about 70% below their official price. - Usage and cost per key in your dashboard. ## Before you start - A terminal on macOS, Linux or Windows. - An API key for GPT models ([create one](https://5abeer.ai/en/docs/start/keys.md#create)). ## With a subscription: the 5abeer AI app If you have a 5abeer subscription that includes Codex, the 5abeer AI app sets it up on your subscription for you, with no API key and no files to edit. The app runs on Mac, Windows and Linux; details in [What each plan runs](https://5abeer.ai/en/docs/subscriptions/plan-apps.md#codex). With an API key, follow the manual setup below. ## Manual setup ### 1. Install Codex CLI Run the official installer for your system: macOS / Linux: ```bash curl -fsSL https://chatgpt.com/codex/install.sh | sh ``` Windows: ```powershell powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex" ``` If you have Node.js, you can install it with npm instead, or with Homebrew on macOS: npm: ```bash npm install -g @openai/codex ``` Homebrew: ```bash brew install --cask codex ``` ### 2. Add the settings Put these settings in `~/.codex/config.toml`. Codex reads the key from the `KHABEER_API_KEY` environment variable, so save your key there with the tab for your system. `~/.codex/config.toml` ```toml model = "gpt-6.2-sol" model_provider = "khabeer" [model_providers.khabeer] name = "5abeer" base_url = "https://api.5abeer.ai/v1" env_key = "KHABEER_API_KEY" wire_api = "responses" ``` The terminal commands above set the key only in the current terminal. To keep it in every new terminal, save it once: macOS (zsh): ```bash echo 'export KHABEER_API_KEY="YOUR_5ABEER_API_KEY"' >> ~/.zshrc ``` Linux (bash): ```bash echo 'export KHABEER_API_KEY="YOUR_5ABEER_API_KEY"' >> ~/.bashrc ``` Windows: ```powershell setx KHABEER_API_KEY "YOUR_5ABEER_API_KEY" ``` Then open a new terminal. The saved key only reaches terminals you open after saving it. ### 3. Run it ```bash cd your-project codex ``` Ask for anything. If a reply comes back, you're set. ## Pick a model These models run in Codex today. Change the `model` line in the config file, or pick a model inside Codex with `/model`. | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | GPT-6.2 Sol | `gpt-6.2-sol` | $0.60 | $3 | — | | GPT-6.2 Astra | `gpt-6.2-astra` | $2.40 | $12 | — | | GPT-6.1 Sol | `gpt-6.1-sol` | $0.60 | $3 | 922K | | GPT-6 Astra | `gpt-6-astra` | $3 | $15 | — | | GPT-6 Sol | `gpt-6-sol` | $0.60 | $3 | 922K | | GPT-6 Luna | `gpt-6-luna` | $0.03 | $0.15 | 922K | | GPT-5.6 Luna | `gpt-5.6-luna` | $0.06 | $0.36 | 400K | | GPT-5.6 Terra | `gpt-5.6-terra` | $0.60 | $3.60 | 400K | | GPT-5.6 Sol | `gpt-5.6-sol` | $1.20 | $6 | 400K | | GPT-5.5 | `gpt-5.5` | $1.50 | $9 | 1.05M | | GPT-5.4 Mini | `gpt-5.4-mini` | $0.23 | $1.35 | 400K | ## If you get an error - [`INVALID_API_KEY`](https://5abeer.ai/en/docs/help/errors.md#INVALID_API_KEY): the key is wrong, or the environment variable isn't set in the terminal you started Codex from. - [`MODEL_PLATFORM_NOT_ALLOWED`](https://5abeer.ai/en/docs/help/errors.md#MODEL_PLATFORM_NOT_ALLOWED): the key belongs to a provider other than GPT. - [`INSUFFICIENT_BALANCE`](https://5abeer.ai/en/docs/help/errors.md#INSUFFICIENT_BALANCE): your balance doesn't cover this request. - [`RATE_LIMITED`](https://5abeer.ai/en/docs/help/errors.md#RATE_LIMITED): too many requests in a short time. Every code and what it means is in [Errors and fixes](https://5abeer.ai/en/docs/help/errors.md). ## Questions ### Do I need a ChatGPT or OpenAI account? No. The `khabeer` provider in the config reads your 5abeer key from `KHABEER_API_KEY`, so Codex sends that key and you don't sign in to OpenAI. ### Why does Codex say the key is missing? The variable isn't set in the terminal that started Codex. Set it again, or [save it permanently](https://5abeer.ai/en/docs/apps/codex.md#configure) and open a new terminal, then run `codex` again. ### What does `wire_api = "responses"` do? It makes Codex send requests in the OpenAI Responses format, which 5abeer serves for GPT models. It's the only value Codex supports, and the default if you leave the line out. Details in the [Responses reference](https://5abeer.ai/en/docs/api/responses.md). ### How is a request billed? Each request is paid from your balance by the tokens it uses, at the model's 5abeer price. Details in [Pricing and balance](https://5abeer.ai/en/docs/start/pricing.md). ## Sources Checked on 2026-11-01: - Codex CLI repository: [openai/codex](https://github.com/openai/codex) - Codex docs: [Configuration Reference](https://learn.chatgpt.com/docs/config-file/config-reference) - Microsoft Learn: [setx](https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/setx) --- URL: https://5abeer.ai/en/docs/apps/opencode # Set up OpenCode with 5abeer > Run OpenCode on your 5abeer plan: the 5abeer AI app sets it up for Claude and GPT. Or add 5abeer by hand with an API key from your balance. Updated: 2026-11-16 To use OpenCode with 5abeer, install OpenCode 1. The 5abeer AI app adds 5abeer as a provider in OpenCode for you. Run `opencode` in your project and pick a 5abeer model. With the 5abeer AI app, OpenCode runs on your plan with no key and no balance use; set up by hand with an API key, every request is paid from your 5abeer balance. ## What you get - OpenCode as it ships, with 5abeer ready as a provider in its model list. - The Claude, GPT and Gemini models available in OpenCode, below their official price. - Usage and cost per key in your dashboard. ## Before you start - A terminal on macOS, Linux or Windows. - For the manual setup only: an API key for the provider of the model you will use ([create one](https://5abeer.ai/en/docs/start/keys.md#create)). ## With a subscription: the 5abeer AI app If you have a 5abeer subscription that includes OpenCode, the 5abeer AI app sets it up on your subscription, with no API key and no files to edit. The app runs on Mac, Windows and Linux; details in [What each plan runs](https://5abeer.ai/en/docs/subscriptions/plan-apps.md#open-source). With an API key, follow the manual setup below. ## Manual setup > This setup is for OpenCode 1. The plain `brew install opencode` formula now installs OpenCode 2, which reads a different config format. Both versions use the same `opencode` command, so installing one can replace the other. Install with one of the commands below. ### 1. Install OpenCode npm: ```bash npm install -g opencode-ai ``` macOS / Linux: ```bash curl -fsSL https://opencode.ai/install | bash ``` Homebrew: ```bash brew install anomalyco/tap/opencode ``` Check it with `opencode --version`. ### 2. Add the settings On your plan, the 5abeer AI app writes this configuration for you; see [5abeer AI](https://5abeer.ai/en/docs/apps/5abeer-ai.md). By hand, put the same settings in `~/.config/opencode/opencode.json`, keeping your other settings if the file already exists, and replace `YOUR_5ABEER_API_KEY` with your API key. Each value is explained in [Base URLs](https://5abeer.ai/en/docs/start/base-urls.md#urls) and [Other tools](https://5abeer.ai/en/docs/start/base-urls.md#other-tools). `~/.config/opencode/opencode.json` ```json { "$schema": "https://opencode.ai/config.json", "provider": { "khabeer": { "npm": "@ai-sdk/openai-compatible", "name": "5abeer AI", "options": { "baseURL": "https://api.5abeer.ai/v1", "apiKey": "YOUR_5ABEER_API_KEY" }, "models": { "gpt-6.1-sol": { "name": "GPT 6.1 Sol" }, "claude-opus-5-5": { "name": "Claude Opus 5.5" }, "claude-fable-5-1": { "name": "Claude Fable 5.1" } } } }, "model": "khabeer/gpt-6.1-sol" } ``` The default model is a GPT model, and a key works only with its own provider's models. With a key for Claude models, pick a Claude model from this config with `/models`. ### 3. Run it ```bash cd your-project opencode ``` Ask for anything. If a reply comes back, you're set. ## Pick a model These models run in OpenCode today. Pick one inside OpenCode with `/models`; to use a model that isn't in the config above, add its id to the provider's model list. With an API key, each key works only with its own provider's models. | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | Claude Sonnet 5.5 | `claude-sonnet-5.5` | $0.60 | $3 | 1M | | Claude Opus 5.5 | `claude-opus-5.5` | $1.20 | $6 | 1M | | GPT-6.2 Sol | `gpt-6.2-sol` | $0.60 | $3 | — | | Gemini 4 Argon | `gemini-4-argon` | $0.60 | $3 | — | | Claude Fable 5.1 | `claude-fable-5.1` | $3 | $15 | — | | Claude Fable 5 | `claude-fable-5` | $3 | $15 | 1M | | Claude Opus 4.6 | `claude-opus-4.6` | $1.50 | $7.50 | 1M | | Claude Opus 4.7 | `claude-opus-4.7` | $1.50 | $7.50 | 1M | | Claude Opus 5 | `claude-opus-5` | $1.50 | $7.50 | 1M | | Claude Sonnet 5 | `claude-sonnet-5` | $0.60 | $3 | 1M | | Claude Sonnet 4.6 | `claude-sonnet-4.6` | $0.90 | $4.50 | 1M | | Claude Haiku 5.5 | `claude-haiku-5.5` | $0.03 | $0.15 | 1M | | Claude Haiku 4.5 | `claude-haiku-4.5` | $0.30 | $1.50 | 200K | | GPT-6.2 Astra | `gpt-6.2-astra` | $2.40 | $12 | — | | GPT-6.1 Sol | `gpt-6.1-sol` | $0.60 | $3 | 922K | | GPT-6 Astra | `gpt-6-astra` | $3 | $15 | — | | GPT-6 Sol | `gpt-6-sol` | $0.60 | $3 | 922K | | GPT-6 Luna | `gpt-6-luna` | $0.03 | $0.15 | 922K | | GPT-5.6 Luna | `gpt-5.6-luna` | $0.06 | $0.36 | 400K | | GPT-5.6 Terra | `gpt-5.6-terra` | $0.60 | $3.60 | 400K | | GPT-5.6 Sol | `gpt-5.6-sol` | $1.20 | $6 | 400K | | GPT-5.5 | `gpt-5.5` | $1.50 | $9 | 1.05M | | GPT-5.4 | `gpt-5.4` | $0.75 | $4.50 | 1.05M | | GPT-5.4 Mini | `gpt-5.4-mini` | $0.23 | $1.35 | 400K | | GPT-5.2 | `gpt-5.2` | $0.53 | $4.20 | 272K | | Gemini 2.5 Pro | `gemini-2.5-pro` | $0.38 | $3 | 1M | | Gemini 3.8 Flash | `gemini-3.8-flash` | $0.23 | $1.13 | — | | Gemini 3 Flash | `gemini-3-flash` | $0.15 | $0.90 | 1M | | Gemini 3.1 Pro | `gemini-3.1-pro` | $0.60 | $3.60 | 1M | ## If you get an error - [`INVALID_API_KEY`](https://5abeer.ai/en/docs/help/errors.md#INVALID_API_KEY): the key is wrong or was copied only in part. - [`MODEL_PLATFORM_NOT_ALLOWED`](https://5abeer.ai/en/docs/help/errors.md#MODEL_PLATFORM_NOT_ALLOWED): you picked a model from a provider other than the key's. - [`INSUFFICIENT_BALANCE`](https://5abeer.ai/en/docs/help/errors.md#INSUFFICIENT_BALANCE): your balance doesn't cover this request. Every code and what it means is in [Errors and fixes](https://5abeer.ai/en/docs/help/errors.md). ## Questions ### Which OpenCode version does this guide cover? OpenCode 1, installed from npm as `opencode-ai`, from the opencode.ai install script or from the `anomalyco/tap` Homebrew tap. OpenCode 2 reads its config in a different format, so this guide doesn't apply to it. ### Why don't I see the 5abeer models? OpenCode lists only the models you added to the 5abeer provider. Check that each model id matches the list above exactly, then open `/models` again. ### Can I use Claude and GPT models together? Yes. On your plan, the 5abeer AI app runs both with no key. With API keys you need one key for each provider, because a key works only with its own provider's models. ### How is a request billed? Each request is paid from your balance by the tokens it uses, at the model's 5abeer price. Details in [Pricing and balance](https://5abeer.ai/en/docs/start/pricing.md). --- URL: https://5abeer.ai/en/docs/apps/openclaw # Set up OpenClaw with 5abeer > Run OpenClaw on your 5abeer plan: the 5abeer AI app sets it up for Claude and GPT. Or add 5abeer by hand with an API key from your balance. Updated: 2026-11-16 To run OpenClaw on 5abeer, install OpenClaw. The 5abeer AI app adds 5abeer as a provider in OpenClaw for you. Check the config file with `openclaw config validate`, then run `openclaw chat` to talk to its agent in the terminal. With the 5abeer AI app, OpenClaw runs on your plan with no key and no balance use; set up by hand with an API key, every request is paid from your 5abeer balance. ## What you get - OpenClaw as it ships, with 5abeer ready as a model provider. - The Claude, GPT and Gemini models available in OpenClaw, below their official price. - Usage and cost per key in your dashboard. ## Before you start - A terminal on macOS, Linux or Windows. - `Node.js` 24.16 or newer on the 24 line, or 26.1 or newer (OpenClaw strongly recommends 24.22.1+ or 26.12.1+ for security), only if you install OpenClaw with `npm`. The install script sets up Node for you. - For the manual setup only: an API key for the provider of the model you will use ([create one](https://5abeer.ai/en/docs/start/keys.md#create)). ## With a subscription: the 5abeer AI app If you have a 5abeer subscription that includes OpenClaw, the 5abeer AI app sets it up on your subscription, with no API key and no files to edit. The app runs on Mac, Windows and Linux; details in [What each plan runs](https://5abeer.ai/en/docs/subscriptions/plan-apps.md#open-source). With an API key, follow the manual setup below. ## Manual setup ### 1. Install OpenClaw These commands skip OpenClaw's setup wizard, because the next step adds 5abeer as the provider. macOS / Linux: ```bash curl -fsSL https://openclaw.ai/install.sh | bash -s -- --no-onboard ``` Windows: ```powershell & ([scriptblock]::Create((iwr -useb https://openclaw.ai/install.ps1))) -NoOnboard ``` npm: ```bash npm install -g openclaw@latest --allow-scripts=openclaw ``` On npm 11.15 or older, run the npm command without `--allow-scripts=openclaw`. ### 2. Add the settings On your plan, the 5abeer AI app writes this configuration for you; see [5abeer AI](https://5abeer.ai/en/docs/apps/5abeer-ai.md). By hand, add the same settings to `~/.openclaw/openclaw.json`, keeping your other settings if the file already exists, and replace `YOUR_5ABEER_API_KEY` with your API key. Each value is explained in [Base URLs](https://5abeer.ai/en/docs/start/base-urls.md#urls) and [Other tools](https://5abeer.ai/en/docs/start/base-urls.md#other-tools). `~/.openclaw/openclaw.json` ```json { "models": { "mode": "merge", "providers": { "khabeer": { "baseUrl": "https://api.5abeer.ai/v1", "apiKey": "YOUR_5ABEER_API_KEY", "api": "openai-responses", "models": [ { "id": "gpt-6.1-sol", "name": "GPT 6.1 Sol" }, { "id": "claude-opus-5-5", "name": "Claude Opus 5.5" }, { "id": "claude-fable-5-1", "name": "Claude Fable 5.1" } ] } } }, "agents": { "defaults": { "model": { "primary": "khabeer/gpt-6.1-sol" } } } } ``` The default model in `primary` is a GPT model, and a key works only with its own provider's models. With a key for Claude models, put a Claude model id from this config after `khabeer/` in `primary`. ### 3. Check the file ```bash openclaw config validate ``` ### 4. Run it ```bash openclaw chat ``` Ask for anything. If a reply comes back, you're set. ## Pick a model These models run in OpenClaw today. With an API key, each key works only with its own provider's models. | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | Claude Sonnet 5.5 | `claude-sonnet-5.5` | $0.60 | $3 | 1M | | Claude Opus 5.5 | `claude-opus-5.5` | $1.20 | $6 | 1M | | GPT-6.2 Sol | `gpt-6.2-sol` | $0.60 | $3 | — | | Gemini 4 Argon | `gemini-4-argon` | $0.60 | $3 | — | | Claude Fable 5.1 | `claude-fable-5.1` | $3 | $15 | — | | Claude Fable 5 | `claude-fable-5` | $3 | $15 | 1M | | Claude Opus 4.6 | `claude-opus-4.6` | $1.50 | $7.50 | 1M | | Claude Opus 4.7 | `claude-opus-4.7` | $1.50 | $7.50 | 1M | | Claude Opus 5 | `claude-opus-5` | $1.50 | $7.50 | 1M | | Claude Sonnet 5 | `claude-sonnet-5` | $0.60 | $3 | 1M | | Claude Sonnet 4.6 | `claude-sonnet-4.6` | $0.90 | $4.50 | 1M | | Claude Haiku 5.5 | `claude-haiku-5.5` | $0.03 | $0.15 | 1M | | Claude Haiku 4.5 | `claude-haiku-4.5` | $0.30 | $1.50 | 200K | | GPT-6.2 Astra | `gpt-6.2-astra` | $2.40 | $12 | — | | GPT-6.1 Sol | `gpt-6.1-sol` | $0.60 | $3 | 922K | | GPT-6 Astra | `gpt-6-astra` | $3 | $15 | — | | GPT-6 Sol | `gpt-6-sol` | $0.60 | $3 | 922K | | GPT-6 Luna | `gpt-6-luna` | $0.03 | $0.15 | 922K | | GPT-5.6 Luna | `gpt-5.6-luna` | $0.06 | $0.36 | 400K | | GPT-5.6 Terra | `gpt-5.6-terra` | $0.60 | $3.60 | 400K | | GPT-5.6 Sol | `gpt-5.6-sol` | $1.20 | $6 | 400K | | GPT-5.5 | `gpt-5.5` | $1.50 | $9 | 1.05M | | GPT-5.4 | `gpt-5.4` | $0.75 | $4.50 | 1.05M | | GPT-5.4 Mini | `gpt-5.4-mini` | $0.23 | $1.35 | 400K | | GPT-5.2 | `gpt-5.2` | $0.53 | $4.20 | 272K | | Gemini 2.5 Pro | `gemini-2.5-pro` | $0.38 | $3 | 1M | | Gemini 3.8 Flash | `gemini-3.8-flash` | $0.23 | $1.13 | — | | Gemini 3 Flash | `gemini-3-flash` | $0.15 | $0.90 | 1M | | Gemini 3.1 Pro | `gemini-3.1-pro` | $0.60 | $3.60 | 1M | ## If you get an error - [`INVALID_API_KEY`](https://5abeer.ai/en/docs/help/errors.md#INVALID_API_KEY): the key in the file is wrong or was copied only in part. - [`MODEL_PLATFORM_NOT_ALLOWED`](https://5abeer.ai/en/docs/help/errors.md#MODEL_PLATFORM_NOT_ALLOWED): the model belongs to a provider other than the key's. - [`INSUFFICIENT_BALANCE`](https://5abeer.ai/en/docs/help/errors.md#INSUFFICIENT_BALANCE): your balance doesn't cover this request. Every code and what it means is in [Errors and fixes](https://5abeer.ai/en/docs/help/errors.md). ## Questions ### Why skip the setup wizard? The wizard asks you to pick a model provider and sign in to it. Adding 5abeer as the provider replaces that step, so you don't need a separate provider account. ### What if `openclaw config validate` reports an error? The file usually has a typo, or one section sits inside another. Fix it and save it, then run the command again. ### Where is my key stored? With an API key, it is stored in `~/.openclaw/openclaw.json` on your machine, as plain text. Don't share the file, and replace the key there if you create a new one. ### How is a request billed? Each request is paid from your balance by the tokens it uses, at the model's 5abeer price. Details in [Pricing and balance](https://5abeer.ai/en/docs/start/pricing.md). --- URL: https://5abeer.ai/en/docs/apps/hermes # Set up Hermes Agent with 5abeer > Run Hermes Agent on your 5abeer plan: the 5abeer AI app sets it up for Claude and GPT. Or add 5abeer by hand with an API key from your balance. Updated: 2026-11-16 To run Hermes Agent on 5abeer, install Hermes. The 5abeer AI app adds 5abeer as a provider in Hermes for you. Run `hermes` in the terminal and ask for anything. With the 5abeer AI app, Hermes runs on your plan with no key and no balance use; set up by hand with an API key, every request is paid from your 5abeer balance. ## What you get - Hermes as it ships, with 5abeer ready as a custom provider. - The Claude, GPT and Gemini models available in Hermes, below their official price. - Usage and cost per key in your dashboard. ## Before you start - A terminal on macOS, Linux or Windows. - For the manual setup only: an API key for the provider of the model you will use ([create one](https://5abeer.ai/en/docs/start/keys.md#create)). ## With a subscription: the 5abeer AI app If you have a 5abeer subscription that includes Hermes, the 5abeer AI app sets it up on your subscription, with no API key and no files to edit. The app runs on Mac, Windows and Linux; details in [What each plan runs](https://5abeer.ai/en/docs/subscriptions/plan-apps.md#open-source). With an API key, follow the manual setup below. ## Manual setup ### 1. Install Hermes macOS / Linux: ```bash curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash ``` Windows: ```powershell iex (irm https://hermes-agent.nousresearch.com/install.ps1) ``` The first command also works inside WSL2 on Windows. ### 2. Add the settings On your plan, the 5abeer AI app writes this configuration for you; see [5abeer AI](https://5abeer.ai/en/docs/apps/5abeer-ai.md). By hand, add the same settings to `config.yaml` in your Hermes folder (`~/.hermes`, or `%LOCALAPPDATA%\hermes` if you installed Hermes on Windows without WSL2), keeping your other settings, and replace `YOUR_5ABEER_API_KEY` with your API key. Each value is explained in [Base URLs](https://5abeer.ai/en/docs/start/base-urls.md#urls) and [Other tools](https://5abeer.ai/en/docs/start/base-urls.md#other-tools). `~/.hermes/config.yaml` ```yaml custom_providers: - base_url: https://api.5abeer.ai/v1 api_key: YOUR_5ABEER_API_KEY model: gpt-6.1-sol models: gpt-6.1-sol: name: GPT 6.1 Sol claude-opus-5-5: name: Claude Opus 5.5 claude-fable-5-1: name: Claude Fable 5.1 name: khabeer model: default: gpt-6.1-sol provider: khabeer ``` The default model is a GPT model, and a key works only with its own provider's models. With a key for Claude models, replace the GPT model id in `model` and `default` with a Claude model id from this config. ### 3. Run it ```bash hermes ``` Ask for anything. If a reply comes back, you're set. For the newer full-screen interface, run `hermes --tui`. ## Pick a model These models run in Hermes today. Switch between them inside Hermes with `/model`. With an API key, each key works only with its own provider's models. | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | Claude Sonnet 5.5 | `claude-sonnet-5.5` | $0.60 | $3 | 1M | | Claude Opus 5.5 | `claude-opus-5.5` | $1.20 | $6 | 1M | | GPT-6.2 Sol | `gpt-6.2-sol` | $0.60 | $3 | — | | Gemini 4 Argon | `gemini-4-argon` | $0.60 | $3 | — | | Claude Fable 5.1 | `claude-fable-5.1` | $3 | $15 | — | | Claude Fable 5 | `claude-fable-5` | $3 | $15 | 1M | | Claude Opus 4.6 | `claude-opus-4.6` | $1.50 | $7.50 | 1M | | Claude Opus 4.7 | `claude-opus-4.7` | $1.50 | $7.50 | 1M | | Claude Opus 5 | `claude-opus-5` | $1.50 | $7.50 | 1M | | Claude Sonnet 5 | `claude-sonnet-5` | $0.60 | $3 | 1M | | Claude Sonnet 4.6 | `claude-sonnet-4.6` | $0.90 | $4.50 | 1M | | Claude Haiku 5.5 | `claude-haiku-5.5` | $0.03 | $0.15 | 1M | | Claude Haiku 4.5 | `claude-haiku-4.5` | $0.30 | $1.50 | 200K | | GPT-6.2 Astra | `gpt-6.2-astra` | $2.40 | $12 | — | | GPT-6.1 Sol | `gpt-6.1-sol` | $0.60 | $3 | 922K | | GPT-6 Astra | `gpt-6-astra` | $3 | $15 | — | | GPT-6 Sol | `gpt-6-sol` | $0.60 | $3 | 922K | | GPT-6 Luna | `gpt-6-luna` | $0.03 | $0.15 | 922K | | GPT-5.6 Luna | `gpt-5.6-luna` | $0.06 | $0.36 | 400K | | GPT-5.6 Terra | `gpt-5.6-terra` | $0.60 | $3.60 | 400K | | GPT-5.6 Sol | `gpt-5.6-sol` | $1.20 | $6 | 400K | | GPT-5.5 | `gpt-5.5` | $1.50 | $9 | 1.05M | | GPT-5.4 | `gpt-5.4` | $0.75 | $4.50 | 1.05M | | GPT-5.4 Mini | `gpt-5.4-mini` | $0.23 | $1.35 | 400K | | GPT-5.2 | `gpt-5.2` | $0.53 | $4.20 | 272K | | Gemini 2.5 Pro | `gemini-2.5-pro` | $0.38 | $3 | 1M | | Gemini 3.8 Flash | `gemini-3.8-flash` | $0.23 | $1.13 | — | | Gemini 3 Flash | `gemini-3-flash` | $0.15 | $0.90 | 1M | | Gemini 3.1 Pro | `gemini-3.1-pro` | $0.60 | $3.60 | 1M | ## If you get an error - [`INVALID_API_KEY`](https://5abeer.ai/en/docs/help/errors.md#INVALID_API_KEY): the key in the file is wrong or was copied only in part. - [`MODEL_PLATFORM_NOT_ALLOWED`](https://5abeer.ai/en/docs/help/errors.md#MODEL_PLATFORM_NOT_ALLOWED): the model belongs to a provider other than the key's. - [`INSUFFICIENT_BALANCE`](https://5abeer.ai/en/docs/help/errors.md#INSUFFICIENT_BALANCE): your balance doesn't cover this request. Every code and what it means is in [Errors and fixes](https://5abeer.ai/en/docs/help/errors.md). ## Questions ### Hermes changed my `custom_providers` section. Is that a problem? No. Hermes reads the `custom_providers` list, and `hermes update` may move it into its newer `providers` section. Your 5abeer settings keep working after the move. ### Do I need a Nous Portal or OpenRouter account? No. With 5abeer set as the default provider, Hermes sends your requests to 5abeer, on your plan or with your 5abeer key. ### Where is my key stored? With an API key, it is stored in `config.yaml` in your Hermes folder, as plain text: `~/.hermes`, or `%LOCALAPPDATA%\hermes` if you installed Hermes on Windows without WSL2. Don't share the file, and replace the key there if you create a new one. ### How is a request billed? Each request is paid from your balance by the tokens it uses, at the model's 5abeer price. Details in [Pricing and balance](https://5abeer.ai/en/docs/start/pricing.md). --- URL: https://5abeer.ai/en/docs/apps/gemini-cli # How to use Gemini CLI with a 5abeer API key > Install Gemini CLI, put the 5abeer base URL, your key and a model in ~/.gemini/.env, pick API key sign-in and run it on Gemini models from your balance. Updated: 2026-11-16 To use Gemini CLI with 5abeer, install Gemini CLI, then put three variables in `~/.gemini/.env`: the 5abeer base URL, your 5abeer API key and a model. Choose API key sign-in, run `gemini` in your project and ask for anything. Every request is paid from your 5abeer balance. On a subscription, use Gemini in Google Antigravity through the 5abeer AI app. ## What you get - Gemini CLI exactly as it ships, with its commands and settings. - The Gemini models that support the Gemini format at 5abeer, below their official price. - Usage and cost per key in your dashboard. ## Before you start - A terminal on macOS, Linux or Windows. - `Node.js` 20 or newer, if you install Gemini CLI with `npm`. - An API key for Gemini models ([create one](https://5abeer.ai/en/docs/start/keys.md#create)). ## With a subscription or an API key Gemini CLI runs with a 5abeer API key, paid from your balance. On a subscription, use Gemini models in [Google Antigravity](https://5abeer.ai/en/apps/antigravity) through the 5abeer AI app on Mac or Windows; the steps are in [How a subscription works](https://5abeer.ai/en/docs/subscriptions/how-it-works.md#start). With an API key, follow the manual setup below. ## Manual setup ### 1. Install Gemini CLI npm: ```bash npm install -g @google/gemini-cli ``` Homebrew: ```bash brew install gemini-cli ``` ### 2. Add the settings Gemini CLI reads three variables from `~/.gemini/.env`: `GOOGLE_GEMINI_BASE_URL` for the base URL, `GEMINI_API_KEY` for your key, and `GEMINI_MODEL` for the model. Put these lines in it, with your API key in place of `YOUR_5ABEER_API_KEY`. The 5abeer AI app does not set up Gemini CLI, so you add these lines yourself. `~/.gemini/.env` ```bash GEMINI_API_KEY=YOUR_5ABEER_API_KEY GEMINI_MODEL=gemini-4-argon GOOGLE_GEMINI_BASE_URL=https://api.5abeer.ai ``` The base URL is the Gemini address from [Base URLs](https://5abeer.ai/en/docs/start/base-urls.md#urls) without the trailing `/v1beta`, because Gemini CLI adds it. To use another model, put the id of a model that supports the Gemini format in `GEMINI_MODEL`. If your project folder has its own `.env` file, Gemini CLI reads that file instead of `~/.gemini/.env`; in that case, put the three lines in `.gemini/.env` inside the project. ### 3. Sign in with the API key Set the sign-in method to the API key in `~/.gemini/settings.json`, or choose "Use Gemini API Key" when Gemini CLI asks on its first run: ```json { "security": { "auth": { "selectedType": "gemini-api-key" } } } ``` ### 4. Run it ```bash cd your-project gemini ``` On the first run in a new folder, Gemini CLI may ask whether you trust it; agree so it reads the settings. Then ask for anything: if a reply comes back, you're set. ## Pick a model Every model that supports the Gemini format at 5abeer runs in Gemini CLI. Each model's page in the [models list](https://5abeer.ai/en/models) shows the formats it supports; put the model id in `GEMINI_MODEL`. Google notes that Gemini CLI is not optimized for [`gemini-4-argon`](https://5abeer.ai/en/models/gemini-4-argon) and recommends Google Antigravity for that model. ## If you get an error - [`INVALID_API_KEY`](https://5abeer.ai/en/docs/help/errors.md#INVALID_API_KEY): the key is wrong or was copied only in part. - [`MODEL_PLATFORM_NOT_ALLOWED`](https://5abeer.ai/en/docs/help/errors.md#MODEL_PLATFORM_NOT_ALLOWED): the key belongs to a provider other than Gemini. - [`INSUFFICIENT_BALANCE`](https://5abeer.ai/en/docs/help/errors.md#INSUFFICIENT_BALANCE): your balance doesn't cover this request. Every code and what it means is in [Errors and fixes](https://5abeer.ai/en/docs/help/errors.md). ## Questions ### Do I need a Google account? No. With API key sign-in, Gemini CLI sends your 5abeer key from `GEMINI_API_KEY` to the 5abeer base URL, so you don't sign in with Google. ### Why does Gemini CLI still ask me to sign in? The sign-in method isn't set to the API key yet. Add the `settings.json` block above, or choose "Use Gemini API Key" in the prompt, then run `gemini` again. ### Can I use Claude or GPT models in Gemini CLI? No. Gemini CLI speaks only the Gemini format, so it runs the models that support that format at 5abeer, with a key for Gemini models. ### How is a request billed? Each request is paid from your balance by the tokens it uses, at the model's 5abeer price. Details in [Pricing and balance](https://5abeer.ai/en/docs/start/pricing.md). --- URL: https://5abeer.ai/en/docs/apps/5abeer-ai # Download 5abeer AI: the desktop app for your plan > 5abeer's desktop app for Mac, Windows and Linux: sign in with your account and turn your subscription on for each official app, with no API key. Updated: 2026-11-15 5abeer AI is 5abeer's desktop app for Mac, Windows and Linux. Download it from the 5abeer AI page in your dashboard, sign in with your 5abeer email and password, then turn on the official apps you use. It sets each one up on your subscription, with no API key to copy and no config file to edit. ## What it does - Finds the supported tools installed on your machine. - Sets up each tool you choose to work through 5abeer. - Handles keys and URLs itself, so you never see or enter them. ## Get started ### 1. Download the app After you sign in to 5abeer, open the **5abeer AI** page in your dashboard and download the version for your computer. Install it like any other program. ### 2. Sign in Open the app and sign in with the email and password of the same 5abeer account. ### 3. Choose your tools Turn on the tools you want to run through 5abeer, inside the app. The app works once your subscription is active; details in [How a subscription works](https://5abeer.ai/en/docs/subscriptions/how-it-works.md). ## If macOS blocks the app macOS may block the app the first time you open it. Try one of these: - **From Settings:** move the app to the Applications folder and open it once. Then open System Settings, then Privacy & Security, and choose Open Anyway next to the app. - **On macOS 14 or older:** right-click the app, choose Open, then choose Open again. ## Manual setup for each tool If you prefer to set up a tool yourself with an API key, each tool has a guide: - [Claude Code](https://5abeer.ai/en/docs/apps/claude-code.md): Anthropic's coding agent in the terminal. - [Codex CLI](https://5abeer.ai/en/docs/apps/codex.md): OpenAI's coding agent in the terminal. - [OpenCode](https://5abeer.ai/en/docs/apps/opencode.md): An open-source coding agent for many models. - [OpenClaw](https://5abeer.ai/en/docs/apps/openclaw.md): An open-source personal assistant on your machine. - [Hermes](https://5abeer.ai/en/docs/apps/hermes.md): An open-source agent from Nous Research. - [Gemini CLI](https://5abeer.ai/en/docs/apps/gemini-cli.md): Google's agent in the terminal. ## Questions ### Do I need a subscription? Yes. The app runs your official apps on an active 5abeer subscription. With an API key and no subscription, use the manual guides above instead. ### I signed up with Google or GitHub. How do I sign in? If the app shows **Sign in with your browser**, use it: it works with Google, GitHub and every way you sign in on the website. If it shows only the email form, set a password for your 5abeer account first, then sign in with it. ### Is a manual setup paid the same way? No. Tools the app sets up run on your subscription. A manual setup with an API key is paid from your balance, not your plan. ### How do I update the app? The app checks for updates each time it starts. When a new version is ready, it shows a prompt: choose **Update now**, and the app reopens on the new version with your settings kept. --- URL: https://5abeer.ai/en/docs/subscriptions/how-it-works # How a 5abeer subscription runs the official apps > A monthly plan that runs the official apps through the 5abeer AI app, on your own official account. Pick a plan, then turn it on for each app. Updated: 2026-10-03 You subscribe once, and the 5abeer AI app sets your subscription up in each official app you use, such as Claude Code and Codex; then you work in it as usual. Subscribe to the official apps for less than their official price. ## What a subscription includes - The official apps themselves, as their makers ship them, with no look-alike interfaces. - Every Bundle plan runs every official app, from the smallest to the largest. Details in [What each plan runs](https://5abeer.ai/en/docs/subscriptions/plan-apps.md). - Two usage limits only: a 5-hour limit and a weekly limit. Details in [Usage limits](https://5abeer.ai/en/docs/subscriptions/limits.md). - A fixed price for each 30-day period. Details in [Renewal](https://5abeer.ai/en/docs/subscriptions/renewal.md). > Plans are for the supported apps. To use the models from your own code, create an API key. ## Turn your subscription on ### 1. Pick a plan and pay Pick your plan on the [pricing page](https://5abeer.ai/en/pricing) and pay the way that suits you. The methods and their steps are in [Payment methods](https://5abeer.ai/en/docs/start/payment.md). ### 2. Download 5abeer AI and sign in Download the 5abeer AI app for your computer from the [5abeer AI page](https://5abeer.ai/en/app), on Mac, Windows or Linux. Then sign in with your 5abeer email and password. ### 3. Turn it on for each app 5abeer AI lists the supported apps on your computer and helps you install the ones you are missing. Press **Use 5abeer with** next to the app you want. If you have more than one subscription, pick the plan to use with it. ### 4. Restart the app The app needs a restart to read the new setup. 5abeer AI asks for your permission, then quits and reopens desktop apps for you, so save your work first. It never closes open terminal sessions for you: close them yourself when you are done, then open a new session. ### 5. Start working Open the official app and work as usual. Activated within minutes, and 5abeer AI shows the state of each app: connected, needs a restart, or needs a review. ## On your own official account On your own official account: the subscription runs in each app under your official sign-in. That is why some apps ask you to sign in with their official account: Codex asks for your ChatGPT account, and Google Antigravity asks for your Google account. What each app needs is in [App by app](https://5abeer.ai/en/docs/subscriptions/plan-apps.md#apps). ## Subscription or API | Compare | Subscription | API | | --- | --- | --- | | Where you use it | The official apps, through 5abeer AI | Your own code and coding tools | | How you pay | A fixed price for the plan | As you use it, from your balance | | What limits your use | A 5-hour limit and a weekly limit | Your balance, and a spend limit if you set one on the key | | What you need | The 5abeer AI app | An API key per provider | Your subscription and your balance are separate: API key usage never counts against your plan's limits, and the subscription never draws on your balance unless you turn on [Continue from the wallet](https://5abeer.ai/en/docs/subscriptions/limits.md#wallet). To use the models from code, start with the [Quickstart](https://5abeer.ai/en/docs/start/quickstart.md). For how this compares with official plans and APIs, read [AI subscription vs API](https://5abeer.ai/en/guides/ai-subscription-vs-api). ## When 5abeer AI can't set an app up The usual way is 5abeer AI, which sets up your subscription for you. If you need to run a supported app somewhere 5abeer AI does not run, such as a remote server, you can request the subscription key for manual use: - The request is at the bottom of the "Your subscription" page in the dashboard, inside "Advanced settings". - Choose what you will use the key for and write the reason. We review the request and email you the result. - The key is personal and works in the supported apps within your subscription. Every reveal and copy is logged, and any use of it counts against your subscription's limits. - The subscription key is not an API key. For code and automation, create an [API key](https://5abeer.ai/en/docs/start/keys.md) from your balance. ## If something goes wrong - 5abeer AI shows the state of each app and why a step is stuck, such as a restart or a config file to repair. - If your plan doesn't include an app, 5abeer AI tells you before you turn it on. - If the app is installed only inside WSL, 5abeer AI can't set it up yet. - [Contact us](https://5abeer.ai/en/contact) with the app's name and what 5abeer AI shows you. > 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. --- URL: https://5abeer.ai/en/docs/subscriptions/plan-apps # Which official apps each plan runs > Every Bundle plan runs every official app, and single-provider plans run their provider's apps. What each app needs when you turn it on in 5abeer AI. Updated: 2026-10-03 The Bundle plans differ in their usage limits only; the apps are the same. This page also shows what each app needs when you turn it on in 5abeer AI. > Plans are for the supported apps. To use the models from your own code, create an API key. ## Bundle plans The Bundle plans are Pro, Max (formerly Max 5x) and Ultra (formerly Max 20x). Every Bundle plan runs every official app, from the smallest to the largest. Max has 5 times the Pro plan's limits, and Ultra has 20 times. Subscribe to the official apps for less than their official price; prices and the comparison are on the [pricing page](https://5abeer.ai/en/pricing). ## Single-provider plans If you only use one provider's apps, there are plans for that provider alone: Claude, GPT and Gemini. Each one runs its own provider's apps only, and their prices show when you choose your plan after you sign up. | App | Bundle plans | Single-provider plan | | --- | --- | --- | | Claude Desktop and Cowork | Included | Claude plan | | Claude Code | Included | Claude plan | | ChatGPT Desktop and Codex | Included | GPT plan | | Google Antigravity | Included | Gemini plan | | OpenCode, OpenClaw and Hermes | Included | 5abeer AI tells you before you turn it on | ## App by app You turn your subscription on for each app in 5abeer AI, as in [How a subscription works](https://5abeer.ai/en/docs/subscriptions/how-it-works.md#start). Here is what each app needs. ### Claude Desktop and Cowork - Anthropic's desktop app; Cowork runs inside it. - Included in Bundle plans and the Claude plan. - When you turn it on, 5abeer AI quits and reopens it after asking you, so save your work first. - On Mac, choose Quit from the app menu, because closing the window can leave it running in the background. On Windows, quit it from its icon next to the clock. - Cowork may need extra disk space to finish its setup; 5abeer AI shows how much it needs. - [Models that run in Claude Desktop](https://5abeer.ai/en/models?app=claude-desktop) · [Models that run in Cowork](https://5abeer.ai/en/models?app=cowork) ### Claude Code - Anthropic's coding agent for the terminal. - Included in Bundle plans and the Claude plan. - 5abeer AI installs it for you if it isn't on your computer. - After you turn it on, close the Claude Code sessions open in your terminal, then open a new one. - To use it with an API key instead of the subscription, follow the [Claude Code guide](https://5abeer.ai/en/docs/apps/claude-code.md). - [Models that run in Claude Code](https://5abeer.ai/en/models?app=claude-code) ### ChatGPT Desktop and Codex - Codex is OpenAI's coding agent; it runs inside ChatGPT Desktop and in the terminal. - Included in Bundle plans and the GPT plan. - Sign in to ChatGPT Desktop with your ChatGPT account, then choose Codex. Codex handles and saves the sign-in, and 5abeer's setup stays as it is. - If you installed Codex for the terminal only, download the official ChatGPT Desktop to work in the app window. - To use it with an API key instead of the subscription, follow the [Codex CLI guide](https://5abeer.ai/en/docs/apps/codex.md). - [Models that run in ChatGPT Desktop](https://5abeer.ai/en/models?app=chatgpt-desktop) · [Models that run in Codex](https://5abeer.ai/en/models?app=codex) ### Google Antigravity - Google's coding environment. - Included in Bundle plans and the Gemini plan. - Open Google Antigravity, sign in with your Google account if asked, then send a message to a Gemini model. 5abeer AI checks that the reply arrived. - Keep 5abeer AI open while you use it. If you fully quit either app, turn the connection on again. - [Models that run in Google Antigravity](https://5abeer.ai/en/models?app=antigravity) ### OpenCode, OpenClaw and Hermes - Open-source tools that run in the terminal. - Included in Bundle plans. On a single-provider plan, 5abeer AI tells you before you turn a tool on if your plan doesn't include it. - 5abeer AI installs them for you if they aren't on your computer. After you turn one on, open a new terminal session. - To use them with an API key instead of the subscription: the [OpenCode guide](https://5abeer.ai/en/docs/apps/opencode.md), the [OpenClaw guide](https://5abeer.ai/en/docs/apps/openclaw.md) and the [Hermes guide](https://5abeer.ai/en/docs/apps/hermes.md). - [Models that run in OpenCode](https://5abeer.ai/en/models?app=opencode) · [in OpenClaw](https://5abeer.ai/en/models?app=openclaw) · [in Hermes](https://5abeer.ai/en/models?app=hermes) ## If you want an app your plan doesn't include - Move to a Bundle plan, which runs every official app. An upgrade starts right away, as in [Renewal](https://5abeer.ai/en/docs/subscriptions/renewal.md#change). - Or use that provider's models from your code with an API key and a balance you top up, as in the [Quickstart](https://5abeer.ai/en/docs/start/quickstart.md). --- URL: https://5abeer.ai/en/docs/subscriptions/limits # Usage limits > A subscription has two limits only, a 5-hour limit and a weekly limit. Where to follow them, what happens when you reach one, and how to keep working. Updated: 2026-10-03 Each limit resets on its own schedule, and the dashboard and 5abeer AI show what is left. When you reach one of the two, you have four ways to keep working. ## The two limits - **5-hour limit:** what you can use within five hours, then it resets. - **Weekly limit:** what you can use within a week, then it resets. Your use in every app turned on with the same subscription counts against the same two limits. ## Limits by plan The Bundle plans run the same apps and differ in their limits: Max (formerly Max 5x) has 5 times the Pro plan's limits and Ultra (formerly Max 20x) has 20 times. The comparison is on the [pricing page](https://5abeer.ai/en/pricing). ## Where to follow your limits - **The "Your subscription" page in the dashboard:** what is left of each limit, and when it resets. - **The 5abeer AI app:** both limits for each subscription, and a notice when you get close to one. - **The "Subscription usage" page:** the value of each request at the model's official price. The value is for your information only and is never charged to any balance. Open [Your subscription](https://5abeer.ai/en/dashboard/plan) in the dashboard. ## When you reach a limit Your subscription's requests stop until the limit resets, and the app gets the [`USAGE_LIMIT_EXCEEDED`](https://5abeer.ai/en/docs/help/errors.md#USAGE_LIMIT_EXCEEDED) error. A quick retry doesn't help here, because the limit resets on its schedule. You have four options: ### Wait for the reset The reset time shows on the "Your subscription" page and in 5abeer AI. ### Buy a weekly limit reset "Reset weekly limit" starts your weekly and 5-hour limits over the moment it activates, and the new week counts from then. You find it on the "Your subscription" page at any time while your subscription is active and your plan offers it, and you pay for it the way you pay for your plan. Before you pay, the payment window shows: - what is left of your weekly limit now, because it isn't added to the new week; - when your limit would renew by itself, free, if you don't buy a reset; - when your subscription ends, because a reset doesn't extend it. ### Continue from your wallet balance When you turn on "Continue from the wallet", requests keep going after the limit and are charged to your balance for what you use, until the limit resets. Requests stop if your balance runs short. This setting stays off until you turn it on; you find it under "Advanced settings" on the "Your subscription" page and in 5abeer AI. ### Move to a higher plan A higher plan runs the same apps with higher limits. An upgrade starts right away: what you haven't used of your current plan counts toward the new one, so you pay only the difference, and the new plan starts a full 30-day period, as in [Renewal](https://5abeer.ai/en/docs/subscriptions/renewal.md#change). ## Limits and API keys The subscription's two limits don't apply to API keys. What limits API key requests is your balance, and a spend limit if you set one on the key, as in [Errors and fixes](https://5abeer.ai/en/docs/help/errors.md#api-limits). > Plans are for the supported apps. To use the models from your own code, create an API key. --- URL: https://5abeer.ai/en/docs/subscriptions/renewal # Subscription renewal: card, or wallet and InstaPay in Egypt > A subscription lasts 30 days: how it renews by card, how you renew it yourself in Egypt with a wallet or InstaPay, and when a plan change starts. Updated: 2026-11-16 If you pay by card, your subscription renews on its own; if you pay in Egypt with an e-wallet or InstaPay, you renew it yourself. The end date shows on the "Your subscription" page and in 5abeer AI. ## Paying by card: automatic renewal - The plan's price is charged to your card every 30 days, and the next payment date shows on the "Your subscription" page. - To stop the automatic renewal or change the card, press **Manage renewal** on the "Your subscription" page; it opens Stripe's billing page. - After you stop the renewal, your paid days stay available until the end of the period. - If a charge fails, you see "Update your payment method to renew". Update your card from **Manage renewal**. ## Paying in Egypt with a wallet or InstaPay: renew yourself - Each payment adds 30 days to your subscription. - Renew before the end date to keep your subscription running without a break. 5abeer AI reminds you as the date gets close. - Press **Renew subscription** on the "Your subscription" page, then follow the steps in [Paying in Egypt with a wallet or InstaPay](https://5abeer.ai/en/docs/start/payment.md#transfer). The subscription activates automatically as soon as you send the receipt. ## Changing your plan An upgrade to a higher plan starts right away: press **Upgrade your plan** on the "Your subscription" page to see the amount before you pay; what you haven't used of your current plan counts toward the new one, so you pay only the difference. Your current plan ends when the upgrade is activated and the new one starts a full 30-day period. A move to a lower plan starts after your current plan ends; your plan keeps working until the end of its period. ## When a subscription ends - The apps' requests through the subscription stop, and 5abeer AI shows that the plan has expired. - Renew the plan to get the apps working with it again. - Your API keys and your balance are separate from the subscription and are not affected when it ends. ## Questions about a payment [Contact us](https://5abeer.ai/en/contact) with the order reference from your payment details. Never send your password or an API key in your message. --- URL: https://5abeer.ai/en/docs/account/sign-in # Sign in to 5abeer with Google or GitHub > Create your 5abeer account or sign in with Google or GitHub, why we ask for a phone number, and how to sign in to 5abeer AI with your email and password. Updated: 2026-10-03 You can create your 5abeer account and sign in with your email and password, or continue with Google or GitHub. It is one account whichever way you use, because it belongs to your email address. ## Continue with Google or GitHub ### 1. Choose how On the [sign-in](https://5abeer.ai/en/login) or [sign-up](https://5abeer.ai/en/register) page, press "Continue with Google" or "Continue with GitHub". If these buttons don't show, sign in with your email and password. ### 2. Sign in with the provider Sign in on the Google or GitHub page, and you come back to 5abeer on your own. Finish the steps in the same browser you started in. ### 3. Finish your new account If your email has no 5abeer account yet, we create one with it. Just your phone number and a password are left, then your account is ready. That password lets you sign in from any app too, including 5abeer AI. ## One account - If your email already has a 5abeer account, continuing with Google or GitHub on the same email opens that same account. - We accept Google and GitHub accounts with a verified email only. - If the email on your Google or GitHub account changed after you linked it to 5abeer, that sign-in won't go through. Sign in with your email and password instead. ## Why we ask for a phone number We ask for your phone number once, so we can reach you quickly about your account or balance. Choose the country and enter the full number. If your account has no phone number yet, the dashboard asks for it once. How we handle your data is in the [privacy policy](https://5abeer.ai/en/privacy). ## Signing in to 5abeer AI The 5abeer AI app signs in with an email and password only. If you created your account with Google or GitHub, use that email and the password you chose in the last step. If you forgot it, choose a new one as in the next section. ## Forgot your password - Request a link on the [password reset](https://5abeer.ai/en/forgot-password) page. The link arrives if your email has an account. - The link is valid for 30 minutes and works once. - Saving a new password signs your account out on every device, so sign in again. ## If the sign-in doesn't finish - **Sign-in was cancelled:** try again, or use your email. - **Your sign-in session expired:** start again in the same browser. - **We couldn't confirm a verified email:** use an account with a verified email. - **The account isn't active:** [contact us](https://5abeer.ai/en/contact). --- URL: https://5abeer.ai/en/docs/account/referrals # Referral program: invite friends, earn API credit > Invite your friends to 5abeer with your invite link, and earn a reward when they top up or subscribe, as API credit at full value or part of it in cash. Updated: 2026-10-03 Share your invite link. When a friend tops up or subscribes, your reward is added to your earnings: take it as API credit at full value, or the equivalent of part of it in cash. ## How to start ### 1. Copy your invite link Open the [Invite friends](https://5abeer.ai/en/dashboard/referrals) page in the dashboard and copy your invite link or invite code, or share it straight to WhatsApp. ### 2. Your friend signs up from your link A friend counts for you from their first sign-up through your link, with email or with Google or GitHub. The referrals page shows how long they count for you. ### 3. You get your reward When your friend tops up or subscribes, your reward shows in "Earnings" within minutes. ## How the reward is worked out - You get a share of every balance added for your friend, and of the price of every plan they pay for. - You take your reward as API credit at full value, or the equivalent of part of it in cash. Both rates on your account show on the referrals page, and your account may have its own rate. - Each reward waits a short period after your friend's payment, then becomes available; the date shows next to it. - If an order is cancelled during the waiting period, the reward tied to it is cancelled too. ## Use your earnings - **API credit:** press "Move to my balance" on the referrals page, and your available earnings are added to your account balance at full value right away. That balance is for API requests only, from your keys and apps, and it can't pay for a plan or a top-up. - **Cash, when cash payouts are available on your account:** press "Request a payout": the amount you choose comes off your earnings, and you receive the cash equivalent of it at your cash rate, by international bank transfer or, in Egypt, to an e-wallet (Vodafone Cash, Etisalat Cash, Orange Cash or a bank wallet), in the account holder's own name. - The smallest cash amount per request shows on the referrals page before you send it; cash payouts are made by hand. - If a friend's order is cancelled after you moved its reward to your balance, the amount comes off your future earnings, not your balance. ## If the referrals page doesn't show The referral program may pause for a while. When it comes back, your link and earnings are on the referrals page as they were. For any question about a reward, [contact us](https://5abeer.ai/en/contact). --- URL: https://5abeer.ai/en/docs/account/security # API key security: storage, limits and leaks > Protect your 5abeer API keys and account: where to keep a key, the limits to set on each one, what to do if it leaks, and what we never ask for. Updated: 2026-10-03 An API key works like a password: whoever holds it can send requests that are charged to your balance. Keep it somewhere safe, and give each key limits that fit what it is for. ## Keep the key somewhere safe - Keep it in the `KHABEER_API_KEY` environment variable or in your server's secret store, not in the code itself. Details in [Keep the key in an environment variable](https://5abeer.ai/en/docs/start/keys.md#env). - Never put it in code that runs in the browser or in a phone app, where any visitor can read it. Send requests from your server. - Never commit it to a code repository. Keep it in a `.env` file and add that file to `.gitignore`. - Never paste it into a screenshot, a chat or a message to support. ## Set limits on each key Control every key: a spend limit, an expiry date and an IP allow-list. - Use one key per project or per person, so you can stop one key without touching the others. - Set a spend limit that fits the project, so the key can't go past it even if it leaks. - If your servers have fixed IP addresses, restrict the key to them. - Give temporary keys an expiry date. You set these limits when you create a key, or later in its settings, as in [Control every key](https://5abeer.ai/en/docs/start/keys.md#controls). ## If a key leaks ### 1. Stop the key now Open the keys page in the dashboard and choose **Rotate key**: a new key replaces it and the current one stops as soon as that succeeds. Or choose **Turn key off** to stop it now. ### 2. Update your tools Put the new key in your environment variable and in every tool or server that used the old one. ### 3. Review the usage Review the key's usage and cost in the dashboard. If you see usage you don't recognise, [contact us](https://5abeer.ai/en/contact) with the key's name, never the key itself. ## Protect your account - You can reveal your keys again at any time from the keys page, so protecting your account is part of protecting your keys. - Use a strong password that you don't use on any other site. - If you sign in with Google or GitHub, turn on two-step verification in that account. - Sign out on shared devices. If you think someone got into your account, choose a new password: saving it signs your account out on every device, as in [Forgot your password](https://5abeer.ai/en/docs/account/sign-in.md#reset). ## What we will never ask for Never send your API key or password to anyone; our team will never ask for them. If you contact us about a problem, send the error code, the time of the request and the key's name only. --- URL: https://5abeer.ai/en/docs/help/errors # 5abeer API error codes: meaning and fixes > Every error code the API can return, what it means and what to do next, plus the usage limits: a subscription's 5-hour and weekly limits. Updated: 2026-10-03 When a request fails you get an HTTP status and an error code that names the cause. Look the code up here to see what to do next. ## Error shape Errors come in two shapes. The key, balance and limit checks run before any model is called and answer with a flat body: ```json { "code": "INVALID_API_KEY", "message": "Invalid API key" } ``` Errors while serving the request follow the format of the endpoint you called and carry a `request_id` (also in the `X-Request-ID` header). Both shapes, with an example per format, are in [Error shapes](https://5abeer.ai/en/docs/api/limits.md#shapes). ## Error codes | Code | Status | Meaning | What to do | | --- | --- | --- | --- | | `invalid_request_error` | 400 | The request is incomplete or has an invalid value. Check the parameters and send it again. | Check the request | | `INVALID_REQUEST` | 400 | The request couldn't be processed as sent. Check the fields and values, then send it again. | Check the request | | `CONTEXT_LIMIT_EXCEEDED` | 400 | The conversation is longer than the model's context window. Shorten it or start a new one. | Check the request | | `API_KEY_REQUIRED` | 401 | Send your API key with the request in the Authorization: Bearer or x-api-key header. | Check the key | | `INVALID_API_KEY` | 401 | That API key isn't valid. Copy it again from your dashboard. | Check the key | | `INVALID_AUTH_HEADER` | 401 | The header format is wrong. Use Authorization: Bearer . | Check the key | | `API_KEY_DISABLED` | 401 | This key is disabled. Enable it in your dashboard or create a new one. | Check the key | | `INSUFFICIENT_BALANCE` | 403 | Your balance isn't enough for this request. Top up, then try again. | Top up | | `API_KEY_EXPIRED` | 403 | This key has expired. Extend its expiry date or create a new key. | Check the key | | `MODEL_PLATFORM_NOT_ALLOWED` | 403 | This model isn't available for this key. | Check the key | | `ACCESS_DENIED` | 403 | Your IP address isn't allowed for this key. Add it to the key's IP allow-list. | Check the key | | `SUBSCRIPTION_NOT_FOUND` | 403 | There's no active subscription for this key. Choose a plan or use a pay-as-you-go key. | Choose a plan | | `not_found_error` | 404 | We couldn't find that model or path. Check the model id and the URL. | Check the request | | `REQUEST_TOO_LARGE` | 413 | The request is too large. Send fewer or smaller images and files. | Check the request | | `RATE_LIMITED` | 429 | Too many requests in a short time. Slow down and try again. | Wait, then retry | | `INVALID_AUTH_RATE_LIMITED` | 429 | Too many attempts with an invalid key. Wait a little, then check the key. | Wait, then retry | | `API_KEY_QUOTA_EXHAUSTED` | 429 | This key reached the spend limit you set. Raise the limit in the key settings. | Check the key | | `insufficient_quota` | 429 | This key reached the spend limit you set. Raise the limit in the key settings. | Check the key | | `USAGE_LIMIT_EXCEEDED` | 429 | You've reached your plan's usage limit. It renews automatically on schedule. | Wait, then retry | | `INTERNAL_ERROR` | 500 | Something went wrong on our side. Try again in a moment. | Retry | | `api_error` | 500 | Something went wrong on our side. Try again in a moment. | Retry | | `upstream_error` | 502 | We couldn't reach the model provider just now. Try again in a moment. | Retry | | `MODEL_UNAVAILABLE` | 503 | The model is temporarily unavailable. Retry, or pick another model. | Retry | | `SERVICE_UNAVAILABLE` | 503 | A temporary problem on our side. Try again in a moment. | Retry | | `AUTHENTICATION_FAILED` | 503 | A temporary problem on our side, not your key. Try again in a moment. | Retry | | `overloaded_error` | 503 | The model is busy right now. Try again in a moment or pick another model. | Retry | | `UPSTREAM_TIMEOUT` | 504 | The model took too long to answer. Retry; for long tasks use streaming. | Retry | ## Usage limits ### Subscription limits A subscription has two usage limits only: a 5-hour limit and a weekly limit. When you reach one, you get [`USAGE_LIMIT_EXCEEDED`](https://5abeer.ai/en/docs/help/errors.md#USAGE_LIMIT_EXCEEDED) with status `429`, and the limit renews automatically on schedule. Your dashboard shows how much of each limit you have used and when it renews; details in [Usage limits](https://5abeer.ai/en/docs/subscriptions/limits.md). ### Pay-as-you-go keys The subscription limits don't apply to pay-as-you-go keys. What limits your requests there is your balance, and the spend limit if you set one on the key: - [`INSUFFICIENT_BALANCE`](https://5abeer.ai/en/docs/help/errors.md#INSUFFICIENT_BALANCE): your balance doesn't cover the request. Top up, then try again. - [`API_KEY_QUOTA_EXHAUSTED`](https://5abeer.ai/en/docs/help/errors.md#API_KEY_QUOTA_EXHAUSTED): the key reached the spend limit you set. Raise the limit in the key settings. - [`RATE_LIMITED`](https://5abeer.ai/en/docs/help/errors.md#RATE_LIMITED): too many requests in a short time. Wait a little, then try again. ## When to retry - `429` and `5xx` are temporary: retry with a wait that doubles each time, and cap the number of attempts. - `400`, `401` and `403` won't go away on retry: fix the request, the key or the balance first. - A `429` from a subscription limit doesn't clear with quick retries; the limit renews on schedule. ## Still stuck? Contact us with the error code and the time of the request, and we'll look at it on our side. Never send your key in the message: we don't need it. --- URL: https://5abeer.ai/en/docs/help/faq # 5abeer FAQ: payment, keys, prices and limits > Short answers about payment, keys, prices, subscription limits and the 5abeer AI app, with a link to the details in every answer. Updated: 2026-10-03 Short answers to what customers ask most. Every answer has a page with the details. ## Account and payment ### Do I need a bank card? In Egypt: no bank card needed; pay with an e-wallet such as Vodafone Cash, InstaPay, or an international card. Outside Egypt: pay by international card. Details in [Payment methods](https://5abeer.ai/en/docs/start/payment.md). ### Why do you ask for a phone number? We ask for a phone number once, when you create your account, so we can reach you quickly about your account or balance. Details in [Why we ask for a phone number](https://5abeer.ai/en/docs/account/sign-in.md#phone). ### How do I track my usage? Your dashboard shows your usage and its cost per key and per model, with a log of requests. For a subscription it shows how much of the 5-hour and weekly limits you have used. ## The API ### Will my existing code work? If it's written for the OpenAI or Anthropic library, or in their format, change only the base URL and the key. See [Base URLs](https://5abeer.ai/en/docs/start/base-urls.md). ### Does the same key work with every model? No. Each key works with one provider's models, so create a key for each provider you need. All your keys draw on the same balance. Details in [Keys and authentication](https://5abeer.ai/en/docs/start/keys.md#per-provider). ### How much does a request cost? You pay per million tokens, with one price for input and one for output, and every model costs less than its official price. This is the price of the default model in our examples: Claude Sonnet 5.5 (`claude-sonnet-5.5`) per 1M tokens: input $0.60 (official $2), output $3 (official $10). Official price checked November 21, 2026. Every model's price is on the [models page](https://5abeer.ai/en/models), and how it's counted is in [Pricing and balance](https://5abeer.ai/en/docs/start/pricing.md). ## Subscriptions ### What's the difference between a subscription and the API? A subscription is a fixed monthly price for using the official apps. With the API you pay for what you use from your balance, and call the models from your code or your coding tools. ### Does the subscription run on my own official account? Yes. The subscription runs on your own official account, and is activated within minutes. ### Do all plans include every official app? Every Bundle plan runs every official app, from the smallest to the largest. The plans and their prices are on the [pricing page](https://5abeer.ai/en/pricing), and what each one runs is in [What each plan runs](https://5abeer.ai/en/docs/subscriptions/plan-apps.md). ### What are a subscription's usage limits? Two only: a 5-hour limit and a weekly limit, and each renews automatically on schedule. Details in [Usage limits](https://5abeer.ai/en/docs/subscriptions/limits.md). ## The 5abeer AI app ### What is the 5abeer AI app? 5abeer's desktop app for Mac, Windows and Linux. You sign in with your account, and it sets up the official apps to run on your 5abeer subscription. Details in the [5abeer AI guide](https://5abeer.ai/en/docs/apps/5abeer-ai.md). ### Do I need an API key to use the app? No. The app signs in with your 5abeer account and sets your apps up on your subscription, with no API key. It needs an active subscription; with an API key, follow the tool's guide. ## About 5abeer ### Is 5abeer part of OpenAI, Anthropic or Google? No. 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. ### How do I contact you? Contact us with what helps us understand the problem: the order number, or the error code and its time. We will never ask you to share your key. --- URL: https://5abeer.ai/en/docs/help/claude-import # Import old Claude.ai chats into Claude Desktop > You can move your old conversations from your Claude.ai account into Claude Desktop with Khabeer, and choose what to bring. Four short steps. Updated: 2026-10-28 Yes. After you subscribe to Khabeer you can move your old conversations from your own account into the app, and you choose what to bring. Your old chats are not lost. ## Steps 1. Open the 5abeer AI app, open **Inference configuration**, and turn on the option that allows import and export. 2. Press **Apply**. The app restarts Claude Desktop for you. 3. In Claude Desktop open **Settings**, then **Import and export**, and sign in with your Claude.ai account. 4. Choose what to import and the range you want, such as your latest conversations or everything since a date. Then press **Import**, and your conversations appear in Claude Desktop. ## What you can import - Regular **Chat** conversations. - **Cowork** conversations. - **Claude Code** sessions. ## Coming soon Coming soon in the new update: import is turned on automatically, so you can skip the first step. If any step gets stuck, reach us from the help button and we will help. --- URL: https://5abeer.ai/en/docs/help/free # Why ChatGPT shows Free on an active subscription > Why your ChatGPT account shows Free while your subscription is active, and what free credit and rewards in your account are. Updated: 2026-10-28 You may see the word «Free» in two places: on your ChatGPT account, and in your balance with us. Each means something different. ## Free or Get Plus in ChatGPT Desktop This is normal and expected. Your subscription is with Khabeer, not with OpenAI itself, so OpenAI shows your account as Free. It does not mean your subscription has stopped. - Inside ChatGPT Desktop, use your subscription through Codex or the «Work» mode, after you turn on «Use 5abeer with» next to ChatGPT Desktop in the 5abeer AI app. - Regular chat in ChatGPT runs on your own OpenAI account. - Usage counts against your Khabeer plan. It does not use or affect your ChatGPT account limits. ## Free credit and rewards in your account Free credit is balance added to your account without a payment, such as referral rewards and rewards for reviews and content. - You find your balance and rewards in the dashboard. - The rules for free credit and rewards are in the [terms](https://5abeer.ai/en/terms). - Referral rewards have their own rules. Details in [Referrals](https://5abeer.ai/en/docs/account/referrals.md). # الوثائق (العربية) --- URL: https://5abeer.ai/ar/docs/start/overview # نظرة عامة على خبير: الـ API والاشتراكات والتطبيق > ما الذي يقدّمه خبير: نماذج Claude وGPT وGemini عبر الـ API بالدفع حسب الاستخدام، واشتراكات التطبيقات الرسمية، وتطبيق 5abeer AI. آخر تحديث: 2026-10-03 خبير يتيح لك استخدام نماذج Claude وGPT وGemini بطريقتين: عبر الـ API بالدفع حسب الاستخدام، أو عبر اشتراك في التطبيقات الرسمية نفسها. وتطبيق 5abeer AI يضبط الأدوات على جهازك لتعمل مع خبير دون إعداد يدوي. ## ثلاث طرق لاستخدام خبير - [البداية السريعة](https://5abeer.ai/ar/docs/start/quickstart.md): مفتاح API ورصيد تشحنه، وتدفع حسب استخدامك فقط. - [الباقات والأسعار](https://5abeer.ai/ar/pricing): اشتراك شهري في التطبيقات الرسمية بأقل من سعرها الرسمي. - [تطبيق 5abeer AI](https://5abeer.ai/ar/docs/apps/5abeer-ai.md): تطبيق لسطح المكتب يضبط أدواتك على خبير. ## الـ API بالدفع حسب الاستخدام استخدم كل النماذج عبر الـ API بسعر أقل من سعرها الرسمي، وادفع حسب استخدامك من رصيدك. لا يوجد اشتراك شهري في هذا المسار. - **متوافق مع OpenAI:** غيّر العنوان الأساسي واحتفظ بالكود نفسه. - **متوافق مع واجهة Anthropic Messages:** تعمل مكتبات Anthropic والأدوات المبنية عليها بالمفتاح نفسه. - **مفتاح لكل مزوّد:** تنشئ مفتاحًا لنماذج Claude، وآخر لنماذج GPT، وهكذا. راجع [المفاتيح والمصادقة](https://5abeer.ai/ar/docs/start/keys.md). - **سعر واضح لكل نموذج:** سعرنا بجانب السعر الرسمي لكل مليون توكن، كما في هذا المثال: Claude Sonnet 5.5 (`claude-sonnet-5.5`) لكل مليون توكن: الإدخال 0.60 US$ (الرسمي 2 US$)، الإخراج 3 US$ (الرسمي 10 US$). آخر مراجعة للسعر الرسمي: 21 نوفمبر 2026. ## اشتراكات التطبيقات الرسمية اشترك في التطبيقات الرسمية بأقل من سعرها الرسمي، على حسابك الرسمي. للاشتراك حدّان للاستخدام فقط: حد الساعات الخمس والحد الأسبوعي، ويتجدد كل منهما تلقائيًا في موعده. تجد الباقات في [صفحة الأسعار](https://5abeer.ai/ar/pricing)، وكيف يعمل الاشتراك في [كيف يعمل الاشتراك](https://5abeer.ai/ar/docs/subscriptions/how-it-works.md). الباقات مخصّصة للتطبيقات المدعومة؛ لاستخدام النماذج من الكود الخاص بك أنشئ مفتاح API. ## تطبيق 5abeer AI تطبيق لسطح المكتب على Mac وWindows وLinux. تسجّل الدخول فيه بحساب خبير، فيضبط التطبيقات المدعومة على جهازك لتعمل باشتراكك، دون أن تنسخ مفتاحًا أو تعدّل ملف إعداد. التفاصيل في [دليل 5abeer AI](https://5abeer.ai/ar/docs/apps/5abeer-ai.md). ## النماذج المتاحة هذه أبرز النماذج المتاحة الآن، مع سعرنا لكل مليون توكن. القائمة الكاملة وأسعارها الرسمية في [صفحة النماذج](https://5abeer.ai/ar/models). | النموذج | المعرّف | الإدخال (سعرنا) | الإخراج (سعرنا) | السياق | | --- | --- | --- | --- | --- | | Claude Sonnet 5.5 | `claude-sonnet-5.5` | 0.60 US$ | 3 US$ | 1M | | Claude Opus 5.5 | `claude-opus-5.5` | 1.20 US$ | 6 US$ | 1M | | GPT-6.2 Sol | `gpt-6.2-sol` | 0.60 US$ | 3 US$ | — | | Gemini 4 Argon | `gemini-4-argon` | 0.60 US$ | 3 US$ | — | | Claude Fable 5.1 | `claude-fable-5.1` | 3 US$ | 15 US$ | — | | Claude Fable 5 | `claude-fable-5` | 3 US$ | 15 US$ | 1M | ## من أين تبدأ - [البداية السريعة](https://5abeer.ai/ar/docs/start/quickstart.md): من إنشاء الحساب إلى أول رد من النموذج. - [العناوين الأساسية](https://5abeer.ai/ar/docs/start/base-urls.md): استخدم مكتبة OpenAI أو Anthropic مع خبير. - [Claude Code](https://5abeer.ai/ar/docs/apps/claude-code.md): شغّل مساعد البرمجة في الطرفية على نماذجنا. > خبير خدمة مستقلة، ولا تتبع OpenAI أو Anthropic أو Google. --- URL: https://5abeer.ai/ar/docs/start/quickstart # البداية السريعة: أول طلب إلى Claude أو GPT أو Gemini > أرسل أول طلب إلى Claude أو GPT أو Gemini عبر عنوان واحد متوافق مع OpenAI، في 5 خطوات. آخر تحديث: 2026-10-03 إذا كان لديك كود يعمل مع OpenAI أو Anthropic، فالتغيير سطران: العنوان الأساسي والمفتاح. هذه الخطوات تأخذك من إنشاء الحساب إلى أول رد من النموذج، والمثال الأخير متاح بـ 4 لغات: cURL وPython وJavaScript وPowerShell. ### 1. أنشئ حسابك سجّل بالبريد الإلكتروني، أو تابع بحساب Google أو GitHub. نطلب رقم الهاتف مرة واحدة لنتواصل معك بشأن حسابك أو رصيدك. ### 2. اشحن رصيدك طلبات الـ API تُخصم من رصيدك حسب استخدامك، وكل نموذج بأقل من سعره الرسمي. قبل أن تدفع، تعرض لك شاشة الشحن الرصيد الذي سيُضاف إلى حسابك. التفاصيل في [الأسعار والرصيد](https://5abeer.ai/ar/docs/start/pricing.md). Claude Sonnet 5.5 (`claude-sonnet-5.5`) لكل مليون توكن: الإدخال 0.60 US$ (الرسمي 2 US$)، الإخراج 3 US$ (الرسمي 10 US$). آخر مراجعة للسعر الرسمي: 21 نوفمبر 2026. ### 3. أنشئ مفتاح API من لوحة التحكم افتح **الـ API ← المفاتيح**، وأنشئ مفتاحًا للمزوّد الذي تريد نماذجه. انسخ المفتاح واحفظه في متغير بيئة: macOS / Linux: ```bash export KHABEER_API_KEY="YOUR_5ABEER_API_KEY" ``` Windows: ```powershell $env:KHABEER_API_KEY = "YOUR_5ABEER_API_KEY" ``` > عامِل هذا المفتاح معاملة كلمة المرور: لا تضعه في كود يعمل داخل المتصفح، ولا تشاركه مع أحد. ### 4. اختر العنوان الأساسي استخدم العنوان الذي يناسب الكود الذي لديك. كل صيغة تقرأ المفتاح من ترويستها المعتادة. | الصيغة | العنوان الأساسي | ترويسة المفتاح | | --- | --- | --- | | OpenAI | `https://api.5abeer.ai/v1` | `Authorization: Bearer ` | | Anthropic | `https://api.5abeer.ai` | `x-api-key: ` | | Gemini | `https://api.5abeer.ai/v1beta` | `x-goog-api-key: ` | ### 5. أرسل أول طلب انسخ المثال وشغّله في الطرفية التي حفظت فيها المفتاح. اختر الصيغة واللغة، ويمكنك تغيير النموذج من القائمة فوق الكود. ```bash curl --request POST "https://api.5abeer.ai/v1/chat/completions" \ --header "Authorization: Bearer $KHABEER_API_KEY" \ --header "Content-Type: application/json" \ --data '{"model":"claude-sonnet-5.5","messages":[{"role":"user","content":"اكتب فكرة منتج في سطر واحد"}]}' ``` ```python import os import requests response = requests.post( "https://api.5abeer.ai/v1/chat/completions", headers={ "Authorization": f"Bearer {os.environ['KHABEER_API_KEY']}", "Content-Type": "application/json", }, json={ "model": "claude-sonnet-5.5", "messages": [ { "role": "user", "content": "اكتب فكرة منتج في سطر واحد" } ] }, stream=False, timeout=60, ) response.raise_for_status() print(response.json()) ``` إذا وصلك رد بالشكل الظاهر تحت الكود، فكل شيء يعمل. ## إذا لم يعمل الطلب - [`INVALID_API_KEY`](https://5abeer.ai/ar/docs/help/errors.md#INVALID_API_KEY): المفتاح غير صحيح أو منسوخ ناقصًا. تأكد أن متغير البيئة محفوظ في الطرفية نفسها. - [`INSUFFICIENT_BALANCE`](https://5abeer.ai/ar/docs/help/errors.md#INSUFFICIENT_BALANCE): الرصيد لا يكفي لهذا الطلب. اشحن رصيدك ثم أعد المحاولة. - [`MODEL_PLATFORM_NOT_ALLOWED`](https://5abeer.ai/ar/docs/help/errors.md#MODEL_PLATFORM_NOT_ALLOWED): المفتاح لمزوّد آخر. أنشئ مفتاحًا لمزوّد هذا النموذج. كل الرموز ومعانيها في [الأخطاء وحلولها](https://5abeer.ai/ar/docs/help/errors.md). ## الخطوة التالية - [العناوين الأساسية](https://5abeer.ai/ar/docs/start/base-urls.md): استخدم مكتبة OpenAI أو Anthropic دون تغيير الكود. - [Claude Code](https://5abeer.ai/ar/docs/apps/claude-code.md): شغّل مساعد البرمجة في الطرفية على نماذجنا. - [النماذج والأسعار](https://5abeer.ai/ar/models): سعرنا بجانب السعر الرسمي لكل نموذج. --- URL: https://5abeer.ai/ar/docs/start/keys # إنشاء مفتاح API والمصادقة في كل صيغة > كيف تنشئ مفتاح API لكل مزوّد، وأين تضعه في الطلب حسب الصيغة، وكيف تتحقق منه وتحميه. آخر تحديث: 2026-10-03 كل طلب إلى خبير يحمل مفتاح API في ترويسة. المفتاح يربط الطلب بحسابك ورصيدك، ويحدد النماذج التي يمكنه استدعاؤها. ## مفتاح لكل مزوّد يعمل كل مفتاح مع نماذج مزوّد واحد: مفتاح لنماذج Claude، وآخر لنماذج GPT، وهكذا. إذا أرسلت بالمفتاح طلبًا لنموذج من مزوّد آخر، يصلك الخطأ [`MODEL_PLATFORM_NOT_ALLOWED`](https://5abeer.ai/ar/docs/help/errors.md#MODEL_PLATFORM_NOT_ALLOWED). أنشئ مفتاحًا لكل مزوّد تحتاجه، فكلها تُخصم من الرصيد نفسه. ## أنشئ مفتاحًا ### 1. افتح صفحة المفاتيح من لوحة التحكم افتح **الـ API ← المفاتيح**. ### 2. اختر المزوّد والاسم اضغط **مفتاح جديد**، واختر المزوّد الذي تريد نماذجه، وأعطِ المفتاح اسمًا يدل على المشروع الذي سيستخدمه. ### 3. انسخ المفتاح انسخ المفتاح واحفظه في متغير بيئة أو في مدير كلمات المرور، لا في ملف داخل المشروع. ## أين تضع المفتاح في الطلب لكل صيغة ترويستها المعتادة، والمكتبات الرسمية تضعها تلقائيًا: - **صيغة OpenAI**، أي Chat Completions وResponses: الترويسة `Authorization`، وقيمتها الكلمة `Bearer` ثم المفتاح. - **صيغة Anthropic Messages**: الترويسة `x-api-key`، وقيمتها المفتاح، مع الترويسة `anthropic-version`. - **صيغة Gemini**: الترويسة `x-goog-api-key`، وقيمتها المفتاح. العنوان الأساسي لكل صيغة في [العناوين الأساسية](https://5abeer.ai/ar/docs/start/base-urls.md). ## احفظ المفتاح في متغير بيئة كل الأمثلة في هذه الوثائق تقرأ المفتاح من متغير البيئة `KHABEER_API_KEY`: macOS / Linux: ```bash export KHABEER_API_KEY="YOUR_5ABEER_API_KEY" ``` Windows: ```powershell $env:KHABEER_API_KEY = "YOUR_5ABEER_API_KEY" ``` ## تحقق من المفتاح هذا الطلب لا يستدعي أي نموذج. إذا كان المفتاح صحيحًا يعيد قائمة النماذج، وإلا يعيد رمز خطأ يحدد المشكلة. macOS / Linux: ```bash curl https://api.5abeer.ai/v1/models \ -H "Authorization: Bearer $KHABEER_API_KEY" ``` Windows: ```powershell Invoke-RestMethod -Uri "https://api.5abeer.ai/v1/models" ` -Headers @{ Authorization = "Bearer $env:KHABEER_API_KEY" } ``` ## تحكّم في كل مفتاح تحكّم في كل مفتاح: حد للإنفاق، وتاريخ انتهاء، وقائمة عناوين IP المسموح بها. تضبطها عند إنشاء المفتاح أو من إعداداته لاحقًا. - عندما يبلغ المفتاح حد الإنفاق يصلك [`API_KEY_QUOTA_EXHAUSTED`](https://5abeer.ai/ar/docs/help/errors.md#API_KEY_QUOTA_EXHAUSTED)، فارفع الحد من إعدادات المفتاح. - بعد تاريخ الانتهاء يصلك [`API_KEY_EXPIRED`](https://5abeer.ai/ar/docs/help/errors.md#API_KEY_EXPIRED)، فأنشئ مفتاحًا جديدًا. - المفتاح الموقوف يعيد [`API_KEY_DISABLED`](https://5abeer.ai/ar/docs/help/errors.md#API_KEY_DISABLED). ## احمِ مفتاحك - لا تضع المفتاح في كود يعمل داخل المتصفح أو داخل تطبيق للهاتف، فأي زائر يستطيع قراءته. أرسل الطلبات من الخادم. - لا ترفع المفتاح إلى مستودع الكود. احفظه في ملف `.env` وأضف الملف إلى `.gitignore`. - استخدم مفتاحًا لكل مشروع، لتوقف مفتاحًا واحدًا دون أن تتأثر بقية مشاريعك. - إذا ظننت أن المفتاح انكشف، أوقفه من لوحة التحكم فورًا وأنشئ مفتاحًا جديدًا. --- URL: https://5abeer.ai/ar/docs/start/base-urls # العناوين الأساسية ومكتبات OpenAI وAnthropic > العنوان الأساسي لكل صيغة، وكيف تستخدم مكتبة OpenAI أو Anthropic مع خبير بتغيير متغيري بيئة دون تعديل الكود. آخر تحديث: 2026-10-02 خبير يستقبل الطلبات بثلاث صيغ: صيغة OpenAI، وصيغة Anthropic Messages، وصيغة Gemini. اختر العنوان الأساسي الذي يطابق الكود أو المكتبة التي تستخدمها، وأرسل المفتاح في ترويسة تلك الصيغة. ## العناوين | الصيغة | العنوان الأساسي | ترويسة المفتاح | | --- | --- | --- | | OpenAI | `https://api.5abeer.ai/v1` | `Authorization: Bearer ` | | Anthropic | `https://api.5abeer.ai` | `x-api-key: ` | | Gemini | `https://api.5abeer.ai/v1beta` | `x-goog-api-key: ` | ## أي صيغة تختار - **صيغة OpenAI**، أي Chat Completions وResponses: للكود المبني على مكتبة OpenAI أو على صيغتها. متوافق مع OpenAI: غيّر العنوان الأساسي واحتفظ بالكود نفسه. - **صيغة Anthropic Messages**: للكود المبني على مكتبة Anthropic، ولأدوات مثل Claude Code. - **صيغة Gemini**: متوافق مع واجهة Gemini generateContent للنماذج التي تدعمها. يمكنك استدعاء نماذج Claude بصيغة OpenAI أيضًا. تعرض صفحة كل نموذج في [قائمة النماذج](https://5abeer.ai/ar/models) الصيغ التي يدعمها. ## مكتبة OpenAI تقرأ مكتبة OpenAI الرسمية العنوان الأساسي والمفتاح من متغيرين للبيئة، فلا تحتاج إلى تعديل الكود: macOS / Linux: ```bash export OPENAI_BASE_URL="https://api.5abeer.ai/v1" export OPENAI_API_KEY="YOUR_5ABEER_API_KEY" ``` Windows: ```powershell $env:OPENAI_BASE_URL = "https://api.5abeer.ai/v1" $env:OPENAI_API_KEY = "YOUR_5ABEER_API_KEY" ``` ثم استخدم المكتبة كما هي، مع معرّف نموذج من خبير: ```python from openai import OpenAI client = OpenAI() # reads OPENAI_BASE_URL and OPENAI_API_KEY chat = client.chat.completions.create( model="claude-sonnet-5.5", messages=[{"role": "user", "content": "Hello"}], ) print(chat.choices[0].message.content) response = client.responses.create(model="claude-sonnet-5.5", input="Hello") print(response.output_text) ``` مكتبة `openai` في JavaScript تقرأ المتغيرين نفسيهما. وإذا فضّلت تمرير القيم في الكود، فمرّر العنوان في `base_url` والمفتاح في `api_key`. ## مكتبة Anthropic تقرأ مكتبة Anthropic الرسمية متغيرين أيضًا. استخدم العنوان كما هو دون `/v1`، فالمكتبة تضيف المسار بنفسها: macOS / Linux: ```bash export ANTHROPIC_BASE_URL="https://api.5abeer.ai" export ANTHROPIC_API_KEY="YOUR_5ABEER_API_KEY" ``` Windows: ```powershell $env:ANTHROPIC_BASE_URL = "https://api.5abeer.ai" $env:ANTHROPIC_API_KEY = "YOUR_5ABEER_API_KEY" ``` ```python import anthropic client = anthropic.Anthropic() # reads ANTHROPIC_BASE_URL and ANTHROPIC_API_KEY message = client.messages.create( model="claude-sonnet-5.5", max_tokens=1024, messages=[{"role": "user", "content": "Hello"}], ) print(message.content[0].text) ``` ## أدوات أخرى إذا كانت أداتك تقبل عنوانًا أساسيًا مخصّصًا بصيغة OpenAI أو Anthropic، فأدخل فيها ثلاث قيم: العنوان الأساسي من الجدول أعلاه، ومفتاحك، ومعرّف النموذج كما يظهر في [قائمة النماذج](https://5abeer.ai/ar/models). ولأدوات البرمجة الشائعة أدلة جاهزة: - [Claude Code](https://5abeer.ai/ar/docs/apps/claude-code.md): مساعد البرمجة من Anthropic في الطرفية. - [Codex CLI](https://5abeer.ai/ar/docs/apps/codex.md): مساعد البرمجة من OpenAI في الطرفية. - [OpenCode](https://5abeer.ai/ar/docs/apps/opencode.md): مساعد برمجة مفتوح المصدر يعمل مع نماذج متعددة. --- URL: https://5abeer.ai/ar/docs/start/pricing # أسعار الـ API والرصيد: كيف تُحسب تكلفة كل طلب > كيف تُحسب تكلفة كل طلب عبر الـ API، وسعرنا بجانب السعر الرسمي لكل نموذج، وكيف تشحن رصيدك وتتابع استهلاكك. آخر تحديث: 2026-10-03 في الـ API تدفع حسب استخدامك فقط: لا اشتراك شهري ولا حد أدنى للطلبات. كل طلب يُخصم من رصيدك بحسب النموذج وعدد التوكنات، وكل نموذج بأقل من سعره الرسمي. ## كيف تُحسب تكلفة الطلب - تُحسب التكلفة لكل مليون توكن، بسعر للإدخال (ما ترسله) وسعر للإخراج (ما يكتبه النموذج). - تجمع تكلفة الطلب بين توكنات الإدخال وتوكنات الإخراج بسعر النموذج الذي استدعيته. - يظهر عدد التوكنات في الرد نفسه، في الحقل `usage`. مثال من النموذج الافتراضي: Claude Sonnet 5.5 (`claude-sonnet-5.5`) لكل مليون توكن: الإدخال 0.60 US$ (الرسمي 2 US$)، الإخراج 3 US$ (الرسمي 10 US$). آخر مراجعة للسعر الرسمي: 21 نوفمبر 2026. نحسب أسعارنا من الأسعار الرسمية المنشورة، وتاريخ آخر مراجعة لها يظهر مع كل سعر. ## أسعار النماذج | النموذج | المعرّف | الإدخال (سعرنا) | الإخراج (سعرنا) | السياق | | --- | --- | --- | --- | --- | | Claude Sonnet 5.5 | `claude-sonnet-5.5` | 0.60 US$ | 3 US$ | 1M | | Claude Opus 5.5 | `claude-opus-5.5` | 1.20 US$ | 6 US$ | 1M | | GPT-6.2 Sol | `gpt-6.2-sol` | 0.60 US$ | 3 US$ | — | | Gemini 4 Argon | `gemini-4-argon` | 0.60 US$ | 3 US$ | — | | Claude Fable 5.1 | `claude-fable-5.1` | 3 US$ | 15 US$ | — | | Claude Fable 5 | `claude-fable-5` | 3 US$ | 15 US$ | 1M | | Claude Opus 4.6 | `claude-opus-4.6` | 1.50 US$ | 7.50 US$ | 1M | | Claude Opus 4.7 | `claude-opus-4.7` | 1.50 US$ | 7.50 US$ | 1M | | Claude Opus 5 | `claude-opus-5` | 1.50 US$ | 7.50 US$ | 1M | | Claude Sonnet 5 | `claude-sonnet-5` | 0.60 US$ | 3 US$ | 1M | القائمة الكاملة، ومنها نماذج الصور والتضمين، في [صفحة النماذج](https://5abeer.ai/ar/models). ## الرصيد - تشحن رصيدك من لوحة التحكم بإحدى [طرق الدفع](https://5abeer.ai/ar/docs/start/payment.md)، وفي مصر بالجنيه المصري. - قبل أن تدفع، تعرض لك شاشة الشحن المبلغ الذي ستدفعه والرصيد الذي سيُضاف إلى حسابك. - الرصيد واحد لحسابك كله، وتُخصم منه طلبات كل مفاتيحك. - إذا لم يكفِ الرصيد لطلب، يصلك الخطأ [`INSUFFICIENT_BALANCE`](https://5abeer.ai/ar/docs/help/errors.md#INSUFFICIENT_BALANCE). ## تابع استخدامك تعرض لوحة التحكم استخدامك وتكلفته لكل مفتاح ولكل نموذج، مع سجل الطلبات. ولتضع سقفًا لمشروع بعينه، اضبط حد إنفاق على مفتاحه من إعدادات المفتاح. ## والاشتراكات؟ الاشتراكات مسار مختلف عن الـ API: سعر شهري ثابت للتطبيقات الرسمية بأقل من سعرها الرسمي، مع حدّين للاستخدام فقط: حد الساعات الخمس والحد الأسبوعي. الباقات وأسعارها في [صفحة الأسعار](https://5abeer.ai/ar/pricing). --- URL: https://5abeer.ai/ar/docs/start/payment # طرق الدفع: بطاقة دولية، وفي مصر محفظة إلكترونية أو InstaPay > ادفع ببطاقة دولية، أو في مصر بمحفظة إلكترونية أو InstaPay، لشحن رصيد الـ API أو للاشتراك في باقة، وما يحدث بعد الدفع. آخر تحديث: 2026-11-16 في مصر: لا تحتاج إلى بطاقة بنكية، وتدفع بمحفظة إلكترونية مثل Vodafone Cash، أو عبر InstaPay، أو ببطاقة دولية. وخارج مصر: ادفع ببطاقة دولية. الطرق نفسها تصلح لشحن رصيد الـ API وللاشتراك في باقة. ## الطرق المتاحة | الطريقة | كيف تدفع | | --- | --- | | محفظة إلكترونية (في مصر) | تحويل إلى رقم المحفظة الظاهر لك، ثم إرسال الإيصال | | InstaPay (في مصر) | تحويل إلى عنوان InstaPay الظاهر لك، ثم إرسال الإيصال | | بطاقة دولية | دفع عبر صفحة Stripe الآمنة، ويجب أن تدعم البطاقة الدفع الدولي | تظهر لك الطرق المتاحة الآن عند الدفع. إذا ظهرت طريقة بعلامة «غير متاح حاليًا»، فاختر طريقة أخرى. ## في مصر: الدفع بمحفظة أو InstaPay ### 1. اختر المبلغ والطريقة من لوحة التحكم اختر شحن الرصيد أو الباقة، ثم اختر المحفظة أو InstaPay. ### 2. حوّل المبلغ حوّل المبلغ الظاهر كما هو إلى الرقم أو العنوان المعروض. عند التحويل من InstaPay إلى رقم محفظة، اختر «محفظة» نوعًا للمستلم. ### 3. أرسل الإيصال ارفع صورة الإيصال أو ملف PDF. عند التحويل من محفظة أو InstaPay اكتب رقم الهاتف الذي حوّلت منه، وليس عنوان InstaPay، واسم صاحب المحفظة أو الحساب كما هو مسجّل لديهما. وعند التحويل البنكي اكتب اسم صاحب الحساب الذي حوّلت منه. ثم أرسل الطلب. فور إرسال الإيصال يُفعَّل الطلب تلقائيًا، ويظهر في حسابك برقم خاص به. إذا لم يصل التحويل، قد تُسحب الخدمة الخاصة بهذا الطلب، فاحتفظ بالإيصال ورقم الطلب. ## الدفع بالبطاقة اختر البطاقة الدولية، فتنتقل إلى صفحة الدفع الآمنة من Stripe، ثم تعود إلى لوحة التحكم بعد الدفع. لا يصلنا رقم بطاقتك كاملًا، ولا نحفظه. ## مشكلة في الدفع؟ تواصل معنا وأرسل رقم الطلب ووقت الدفع والطريقة التي استخدمتها، وسنراجع الطلب من جهتنا. --- URL: https://5abeer.ai/ar/docs/api/chat-completions # مرجع Chat Completions المتوافق مع OpenAI > مرجع صيغة Chat Completions المتوافقة مع OpenAI، وأثر كل معامل مع نماذج Claude وGPT وGemini، والبث، والأمثلة، والأخطاء. آخر تحديث: 2026-10-03 أرسل محادثة واحصل على رد النموذج. هذه الصيغة تعمل مع نماذج Claude وGPT وGemini، فيكفي أن تغيّر `model` لتنتقل بينها. `POST https://api.5abeer.ai/v1/chat/completions` ## المصادقة أرسل مفتاحك في الترويسة `Authorization` بكلمة `Bearer` يليها المفتاح. يعمل المفتاح مع نماذج المزوّد الذي أنشأته له، والتفاصيل في [المفاتيح والمصادقة](https://5abeer.ai/ar/docs/start/keys.md). العنوان الأساسي لهذه الصيغة: | الصيغة | العنوان الأساسي | ترويسة المفتاح | | --- | --- | --- | | OpenAI | `https://api.5abeer.ai/v1` | `Authorization: Bearer ` | | Anthropic | `https://api.5abeer.ai` | `x-api-key: ` | | Gemini | `https://api.5abeer.ai/v1beta` | `x-goog-api-key: ` | ## مثال سريع ```bash curl --request POST "https://api.5abeer.ai/v1/chat/completions" \ --header "Authorization: Bearer $KHABEER_API_KEY" \ --header "Content-Type: application/json" \ --data '{"model":"claude-sonnet-5.5","messages":[{"role":"user","content":"اكتب فكرة منتج في سطر واحد"}]}' ``` ```python import os import requests response = requests.post( "https://api.5abeer.ai/v1/chat/completions", headers={ "Authorization": f"Bearer {os.environ['KHABEER_API_KEY']}", "Content-Type": "application/json", }, json={ "model": "claude-sonnet-5.5", "messages": [ { "role": "user", "content": "اكتب فكرة منتج في سطر واحد" } ] }, stream=False, timeout=60, ) response.raise_for_status() print(response.json()) ``` ## المعاملات يبيّن كل صف ما يحدث للمعامل مع كل عائلة نماذج: **مدعوم** أي أننا نمرّره إلى النموذج؛ و**يُتجاهل** أي أن الطلب يُقبل لكن المعامل بلا أثر، فلا تعتمد عليه؛ و**يُرفض** أي أن الطلب يفشل. قسنا هذه الحالات على البوابة نفسها، ولم ننقلها من وثائق المزوّد. | المعامل | النوع | الوصف | Claude | GPT | Gemini | | --- | --- | --- | --- | --- | --- | | `model` (مطلوب) | string | معرّف النموذج كما في [قائمة النماذج](https://5abeer.ai/ar/models). | مدعوم | مدعوم | مدعوم | | `messages` (مطلوب) | array | المحادثة: رسائل بالأدوار `system` و`user` و`assistant` و`tool`. يقبل المحتوى نصًا أو أجزاءً منها الصور. | مدعوم | مدعوم | مدعوم | | `max_completion_tokens` | integer | أقصى عدد من توكنات الإخراج. | مدعوم | يُتجاهل | مدعوم | | `max_tokens` | integer | الاسم القديم لـ `max_completion_tokens`، ويعمل بالطريقة نفسها. | مدعوم | يُتجاهل | مدعوم | | `temperature` | number | درجة العشوائية في الرد. | يُرفض | يُتجاهل | مدعوم | | `top_p` | number | أخذ العينات من الاحتمالات الأعلى فقط. | يُرفض | يُتجاهل | مدعوم | | `stop` | string \| array | نصوص يتوقف عندها الرد. لا تصل إلى النموذج في هذه الصيغة؛ مع نماذج Claude وGemini استخدم `stop_sequences` في [Messages](https://5abeer.ai/ar/docs/api/messages.md#params). | يُتجاهل | يُتجاهل | يُتجاهل | | `stream` | boolean | أرسل الرد أجزاءً متتابعة. التفاصيل في [البث المتدفق](https://5abeer.ai/ar/docs/api/streaming.md). | مدعوم | مدعوم | مدعوم | | `stream_options` | object | `include_usage` لإرسال أرقام الاستخدام في آخر جزء. نماذج GPT ترسلها دائمًا. | مدعوم | يُتجاهل | مدعوم | | `tools` | array | الدوال التي يستطيع النموذج استدعاءها. التفاصيل في [استدعاء الأدوات](https://5abeer.ai/ar/docs/api/tools.md). | مدعوم | مدعوم | مدعوم | | `tool_choice` | string \| object | `auto` أو `none` أو `required` أو دالة بعينها. | مدعوم | مدعوم | يُتجاهل | | `parallel_tool_calls` | boolean | اسمح بأكثر من استدعاء في الرد نفسه أو امنعه. | يُتجاهل | مدعوم | يُتجاهل | | `response_format` | object | `json_schema` أو `json_object` لإخراج منظّم. لنماذج Claude استخدم أداة بمخطط في [Messages](https://5abeer.ai/ar/docs/api/messages.md). | يُتجاهل | مدعوم | يُتجاهل | | `reasoning_effort` | string | عمق التفكير: `low` أو `medium` أو `high`. | مدعوم | مدعوم | يُتجاهل | | `n` | integer | عدد الردود. يصلك رد واحد دائمًا. | يُتجاهل | يُتجاهل | يُتجاهل | | `seed` | integer | محاولة لتكرار النتيجة نفسها. | يُتجاهل | يُتجاهل | يُتجاهل | | `presence_penalty` | number | تقليل العودة إلى المواضيع نفسها. | يُتجاهل | يُتجاهل | يُتجاهل | | `frequency_penalty` | number | تقليل تكرار الكلمات نفسها. | يُتجاهل | يُتجاهل | يُتجاهل | | `logprobs` | boolean | احتمالات التوكنات في الرد. لا تُرسل. | يُتجاهل | يُتجاهل | يُتجاهل | | `logit_bias` | object | رفع احتمال توكنات معيّنة أو خفضه. | يُتجاهل | يُتجاهل | يُتجاهل | | `user` | string | معرّف للمستخدم النهائي في نظامك. | يُتجاهل | يُتجاهل | يُتجاهل | > تعمل نماذج GPT في هذه الصيغة دون إعدادات العينة والطول التي ترسلها: يُقبل `temperature` و`top_p` و`max_completion_tokens` بلا أثر. للحصول على رد بصيغة JSON من نماذج Claude أو Gemini استخدم أداة بمخطط، والتفاصيل في [استدعاء الأدوات](https://5abeer.ai/ar/docs/api/tools.md). ## الصور في الطلب ضع الصورة في قائمة `content` داخل رسالة `user` بجانب النص، إما رابط `data:` بترميز Base64 وإما رابطًا عامًا يبدأ بـ `https`. كل نموذج في القائمة أدناه يقبل الصور يقرؤها. الصورة الكبيرة تزيد حجم الطلب، والتفاصيل في [الحدود](https://5abeer.ai/ar/docs/api/limits.md#size). ## البث المتدفق مع `"stream": true` يصلك الرد بصيغة Server-Sent Events: كل سطر `data:` يحمل جزءًا من نوع `chat.completion.chunk` فيه قطعة من النص في `choices[0].delta`، وينتهي البث بالسطر `data: [DONE]`. لتصلك أرقام الاستخدام في آخر جزء أضف `"stream_options": {"include_usage": true}`، أما نماذج GPT فترسلها دائمًا. التفاصيل في [البث المتدفق](https://5abeer.ai/ar/docs/api/streaming.md). ## أمثلة ### بث متدفق مع الاستخدام cURL: ```bash curl -N https://api.5abeer.ai/v1/chat/completions \ -H "Authorization: Bearer $KHABEER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "claude-sonnet-5.5", "messages": [ { "role": "user", "content": "Write a product idea in one sentence." } ], "stream": true, "stream_options": { "include_usage": true } }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "Authorization": f"Bearer {key}", } body = { "model": "claude-sonnet-5.5", "messages": [ { "role": "user", "content": "Write a product idea in one sentence.", }, ], "stream": True, "stream_options": { "include_usage": True, }, } response = requests.post("https://api.5abeer.ai/v1/chat/completions", headers=headers, json=body, timeout=300, stream=True) response.raise_for_status() for line in response.iter_lines(decode_unicode=True): if line: print(line) ``` ```text data: {"id":"chatcmpl_p8a01","object":"chat.completion.chunk","created":1790000000,"model":"claude-sonnet-5.5","choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null}]} data: {"id":"chatcmpl_p8a01","object":"chat.completion.chunk","created":1790000000,"model":"claude-sonnet-5.5","choices":[{"index":0,"delta":{"content":"Lumen Notes: "},"finish_reason":null}]} data: {"id":"chatcmpl_p8a01","object":"chat.completion.chunk","created":1790000000,"model":"claude-sonnet-5.5","choices":[{"index":0,"delta":{"content":"a notebook that turns voice memos "},"finish_reason":null}]} data: {"id":"chatcmpl_p8a01","object":"chat.completion.chunk","created":1790000000,"model":"claude-sonnet-5.5","choices":[{"index":0,"delta":{"content":"into tidy to-do lists."},"finish_reason":null}]} data: {"id":"chatcmpl_p8a01","object":"chat.completion.chunk","created":1790000000,"model":"claude-sonnet-5.5","choices":[{"index":0,"delta":{},"finish_reason":"stop"}]} data: {"id":"chatcmpl_p8a01","object":"chat.completion.chunk","created":1790000000,"model":"claude-sonnet-5.5","choices":[],"usage":{"prompt_tokens":21,"completion_tokens":18,"total_tokens":39}} data: [DONE] ``` ### استدعاء دالة cURL: ```bash curl https://api.5abeer.ai/v1/chat/completions \ -H "Authorization: Bearer $KHABEER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-6.1-sol", "messages": [ { "role": "user", "content": "What is the weather in Cairo?" } ], "tools": [ { "type": "function", "function": { "name": "get_weather", "description": "Get the weather for a city", "parameters": { "type": "object", "properties": { "city": { "type": "string" } }, "required": [ "city" ] } } } ], "tool_choice": "auto", "parallel_tool_calls": false }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "Authorization": f"Bearer {key}", } body = { "model": "gpt-6.1-sol", "messages": [ { "role": "user", "content": "What is the weather in Cairo?", }, ], "tools": [ { "type": "function", "function": { "name": "get_weather", "description": "Get the weather for a city", "parameters": { "type": "object", "properties": { "city": { "type": "string", }, }, "required": ["city"], }, }, }, ], "tool_choice": "auto", "parallel_tool_calls": False, } response = requests.post("https://api.5abeer.ai/v1/chat/completions", headers=headers, json=body, timeout=300) response.raise_for_status() print(response.json()) ``` ```json { "id": "chatcmpl_p8a01", "object": "chat.completion", "created": 1790000000, "model": "gpt-6.1-sol", "choices": [ { "index": 0, "message": { "role": "assistant", "content": null, "tool_calls": [ { "id": "call_p8a01", "type": "function", "function": { "name": "get_weather", "arguments": "{\"city\":\"Cairo\"}" } } ] }, "finish_reason": "tool_calls" } ], "usage": { "prompt_tokens": 21, "completion_tokens": 18, "total_tokens": 39 } } ``` ### إخراج JSON بمخطط cURL: ```bash curl https://api.5abeer.ai/v1/chat/completions \ -H "Authorization: Bearer $KHABEER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-6.1-sol", "messages": [ { "role": "user", "content": "Give me one product idea." } ], "response_format": { "type": "json_schema", "json_schema": { "name": "idea", "strict": true, "schema": { "type": "object", "properties": { "idea": { "type": "string" } }, "required": [ "idea" ], "additionalProperties": false } } }, "reasoning_effort": "low" }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "Authorization": f"Bearer {key}", } body = { "model": "gpt-6.1-sol", "messages": [ { "role": "user", "content": "Give me one product idea.", }, ], "response_format": { "type": "json_schema", "json_schema": { "name": "idea", "strict": True, "schema": { "type": "object", "properties": { "idea": { "type": "string", }, }, "required": ["idea"], "additionalProperties": False, }, }, }, "reasoning_effort": "low", } response = requests.post("https://api.5abeer.ai/v1/chat/completions", headers=headers, json=body, timeout=300) response.raise_for_status() print(response.json()) ``` ```json { "id": "chatcmpl_p8a01", "object": "chat.completion", "created": 1790000000, "model": "gpt-6.1-sol", "choices": [ { "index": 0, "message": { "role": "assistant", "content": "{\"idea\":\"Lumen Notes: a notebook that turns voice memos into tidy to-do lists.\"}" }, "finish_reason": "stop" } ], "usage": { "prompt_tokens": 21, "completion_tokens": 18, "total_tokens": 39 } } ``` ### صورة مع السؤال cURL: ```bash curl https://api.5abeer.ai/v1/chat/completions \ -H "Authorization: Bearer $KHABEER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "claude-sonnet-5.5", "max_completion_tokens": 300, "messages": [ { "role": "user", "content": [ { "type": "text", "text": "What is in this image?" }, { "type": "image_url", "image_url": { "url": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==" } } ] } ] }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "Authorization": f"Bearer {key}", } body = { "model": "claude-sonnet-5.5", "max_completion_tokens": 300, "messages": [ { "role": "user", "content": [ { "type": "text", "text": "What is in this image?", }, { "type": "image_url", "image_url": { "url": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==", }, }, ], }, ], } response = requests.post("https://api.5abeer.ai/v1/chat/completions", headers=headers, json=body, timeout=300) response.raise_for_status() print(response.json()) ``` ```json { "id": "chatcmpl_p8a01", "object": "chat.completion", "created": 1790000000, "model": "claude-sonnet-5.5", "choices": [ { "index": 0, "message": { "role": "assistant", "content": "Lumen Notes: a notebook that turns voice memos into tidy to-do lists." }, "finish_reason": "stop" } ], "usage": { "prompt_tokens": 21, "completion_tokens": 18, "total_tokens": 39 } } ``` ### إعدادات العينة cURL: ```bash curl https://api.5abeer.ai/v1/chat/completions \ -H "Authorization: Bearer $KHABEER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "gemini-4-argon", "messages": [ { "role": "system", "content": "Answer in one sentence." }, { "role": "user", "content": "Write a product idea." } ], "max_tokens": 300, "temperature": 0.4, "top_p": 0.9, "stop": [ "END" ], "n": 1, "seed": 7, "presence_penalty": 0, "frequency_penalty": 0, "logprobs": false, "logit_bias": {}, "user": "user-123" }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "Authorization": f"Bearer {key}", } body = { "model": "gemini-4-argon", "messages": [ { "role": "system", "content": "Answer in one sentence.", }, { "role": "user", "content": "Write a product idea.", }, ], "max_tokens": 300, "temperature": 0.4, "top_p": 0.9, "stop": ["END"], "n": 1, "seed": 7, "presence_penalty": 0, "frequency_penalty": 0, "logprobs": False, "logit_bias": {}, "user": "user-123", } response = requests.post("https://api.5abeer.ai/v1/chat/completions", headers=headers, json=body, timeout=300) response.raise_for_status() print(response.json()) ``` ```json { "id": "chatcmpl_p8a01", "object": "chat.completion", "created": 1790000000, "model": "gemini-4-argon", "choices": [ { "index": 0, "message": { "role": "assistant", "content": "Lumen Notes: a notebook that turns voice memos into tidy to-do lists." }, "finish_reason": "stop" } ], "usage": { "prompt_tokens": 21, "completion_tokens": 18, "total_tokens": 39 } } ``` الطلب أعلاه جُرِّب على بيئة الاختبار المحلية يوم 2026-11-16؛ الرد يوضح الشكل، والنص فيه مثال. ## الأخطاء أخطاء المفتاح والرصيد والحدود تصلك قبل استدعاء أي نموذج، والباقي يأتي أثناء تنفيذ الطلب. أكثرها شيوعًا: - [`invalid_request_error`](https://5abeer.ai/ar/docs/help/errors.md#invalid_request_error): الطلب ناقص أو فيه قيمة غير صحيحة، مثل غياب `model`. - [`INVALID_API_KEY`](https://5abeer.ai/ar/docs/help/errors.md#INVALID_API_KEY): المفتاح غير صحيح. - [`MODEL_PLATFORM_NOT_ALLOWED`](https://5abeer.ai/ar/docs/help/errors.md#MODEL_PLATFORM_NOT_ALLOWED): المفتاح لمزوّد غير مزوّد النموذج. - [`INSUFFICIENT_BALANCE`](https://5abeer.ai/ar/docs/help/errors.md#INSUFFICIENT_BALANCE): الرصيد لا يكفي للطلب. - [`USAGE_LIMIT_EXCEEDED`](https://5abeer.ai/ar/docs/help/errors.md#USAGE_LIMIT_EXCEEDED): بلغ الاشتراك حد الساعات الخمس أو الحد الأسبوعي. - [`RATE_LIMITED`](https://5abeer.ai/ar/docs/help/errors.md#RATE_LIMITED): طلبات كثيرة في وقت قصير. أشكال الأخطاء والرموز التي تظهر أثناء تنفيذ الطلب، مثل `CONTEXT_LIMIT_EXCEEDED` و`MODEL_UNAVAILABLE`، في [الحدود ورموز الأخطاء](https://5abeer.ai/ar/docs/api/limits.md#model-errors). القائمة الكاملة في [الأخطاء وحلولها](https://5abeer.ai/ar/docs/help/errors.md). ## الحدود - مفتاح الدفع حسب الاستخدام يحدّه رصيدك، وحد الإنفاق الذي تضعه له إن وُجد. - حجم الطلب وطول السياق في [الحدود](https://5abeer.ai/ar/docs/api/limits.md). ## النماذج المتاحة لهذه الصيغة | النموذج | المعرّف | الإدخال (سعرنا) | الإخراج (سعرنا) | السياق | | --- | --- | --- | --- | --- | | Claude Sonnet 5.5 | `claude-sonnet-5.5` | 0.60 US$ | 3 US$ | 1M | | Claude Opus 5.5 | `claude-opus-5.5` | 1.20 US$ | 6 US$ | 1M | | GPT-6.2 Sol | `gpt-6.2-sol` | 0.60 US$ | 3 US$ | — | | Gemini 4 Argon | `gemini-4-argon` | 0.60 US$ | 3 US$ | — | | Claude Fable 5.1 | `claude-fable-5.1` | 3 US$ | 15 US$ | — | | Claude Fable 5 | `claude-fable-5` | 3 US$ | 15 US$ | 1M | --- URL: https://5abeer.ai/ar/docs/api/responses # مرجع OpenAI Responses لنماذج GPT وClaude > مرجع صيغة OpenAI Responses لنماذج GPT وClaude، وأثر كل معامل هنا، والأدوات، والإخراج المنظّم، والتفكير، والبث، والأخطاء. آخر تحديث: 2026-10-02 صيغة OpenAI الأحدث: طلب واحد فيه `input`، ورد مكوّن من عناصر مثل النص واستدعاءات الدوال. تعمل مع نماذج GPT وClaude. أما نماذج Gemini فلا تعمل على هذا العنوان، فاستخدم معها [Chat Completions](https://5abeer.ai/ar/docs/api/chat-completions.md) أو [Messages](https://5abeer.ai/ar/docs/api/messages.md) أو [generateContent](https://5abeer.ai/ar/docs/api/gemini.md). `POST https://api.5abeer.ai/v1/responses` ## المصادقة أرسل مفتاحك في الترويسة `Authorization` بكلمة `Bearer` يليها المفتاح، مع العنوان الأساسي المتوافق مع OpenAI. مكتبات OpenAI الرسمية تستدعي هذا العنوان عبر `client.responses.create`، والتفاصيل في [العناوين الأساسية](https://5abeer.ai/ar/docs/start/base-urls.md#openai). ## مثال سريع ```bash curl --request POST "https://api.5abeer.ai/v1/responses" \ --header "Authorization: Bearer $KHABEER_API_KEY" \ --header "Content-Type: application/json" \ --data '{"model":"claude-sonnet-5.5","input":"اكتب فكرة منتج في سطر واحد"}' ``` ```python import os import requests response = requests.post( "https://api.5abeer.ai/v1/responses", headers={ "Authorization": f"Bearer {os.environ['KHABEER_API_KEY']}", "Content-Type": "application/json", }, json={ "model": "claude-sonnet-5.5", "input": "اكتب فكرة منتج في سطر واحد" }, stream=False, timeout=60, ) response.raise_for_status() print(response.json()) ``` ## المعاملات يبيّن كل صف ما يحدث للمعامل مع كل عائلة نماذج: **مدعوم** أي أننا نمرّره إلى النموذج؛ و**يُتجاهل** أي أن الطلب يُقبل لكن المعامل بلا أثر، فلا تعتمد عليه؛ و**يُرفض** أي أن الطلب يفشل. قسنا هذه الحالات على البوابة نفسها. | المعامل | النوع | الوصف | Claude | GPT | Gemini | | --- | --- | --- | --- | --- | --- | | `model` (مطلوب) | string | معرّف النموذج كما في [قائمة النماذج](https://5abeer.ai/ar/models). | مدعوم | مدعوم | يُرفض | | `input` (مطلوب) | string \| array | نص واحد، أو قائمة رسائل وأجزاء منها الصور ونتائج الدوال. | مدعوم | مدعوم | يُرفض | | `instructions` | string | تعليمات النظام للنموذج. | مدعوم | مدعوم | يُرفض | | `max_output_tokens` | integer | أقصى عدد من توكنات الإخراج. | مدعوم | يُتجاهل | يُرفض | | `temperature` | number | درجة العشوائية في الرد. | يُرفض | يُتجاهل | يُرفض | | `top_p` | number | أخذ العينات من الاحتمالات الأعلى فقط. | يُرفض | يُتجاهل | يُرفض | | `stream` | boolean | أرسل الرد أحداثًا متتابعة. التفاصيل في [البث المتدفق](https://5abeer.ai/ar/docs/api/streaming.md). | مدعوم | مدعوم | يُرفض | | `tools` | array | الدوال التي يستطيع النموذج استدعاءها. | مدعوم | مدعوم | يُرفض | | `tool_choice` | string \| object | `auto` أو `none` أو `required` أو دالة بعينها. | مدعوم | مدعوم | يُرفض | | `parallel_tool_calls` | boolean | اسمح بأكثر من استدعاء في الرد نفسه أو امنعه. | يُتجاهل | مدعوم | يُرفض | | `text` | object | `format` لإخراج منظّم بمخطط `json_schema`. لنماذج Claude استخدم أداة بمخطط. | يُتجاهل | مدعوم | يُرفض | | `reasoning` | object | `effort` لعمق التفكير: `low` أو `medium` أو `high`. | مدعوم | مدعوم | يُرفض | | `include` | array | حقول إضافية في الرد، مثل `reasoning.encrypted_content`. | يُتجاهل | مدعوم | يُرفض | | `prompt_cache_key` | string | مفتاح ثابت يجمع الطلبات المتشابهة في التخزين المؤقت. | يُتجاهل | مدعوم | يُرفض | | `previous_response_id` | string | لا أثر لهذا الحقل هنا. أرسل المحادثة كاملة في `input` في كل طلب. | يُتجاهل | يُتجاهل | يُرفض | | `store` | boolean | لا أثر لهذا الحقل هنا. | يُتجاهل | يُتجاهل | يُرفض | | `truncation` | string | قص المحادثة الطويلة تلقائيًا. | يُتجاهل | يُتجاهل | يُرفض | | `metadata` | object | قيم خاصة بك تُرفق بالطلب. | يُتجاهل | يُتجاهل | يُرفض | | `user` | string | معرّف للمستخدم النهائي في نظامك. | يُتجاهل | يُتجاهل | يُرفض | ## المحادثات كل طلب مستقل بذاته: لا أثر هنا لـ `previous_response_id` ولا لـ `store`. لتكمل محادثة أرسلها كاملة في `input` في كل مرة، رسائلك بالدور `user` وردود النموذج بالدور `assistant`، كما في [مثال المحادثة الكاملة](https://5abeer.ai/ar/docs/api/responses.md#ex-conversation). ## الصور في الطلب أضف جزءًا من نوع `input_image` إلى رسالة `user`، وقيمة `image_url` فيه رابط `data:` بترميز Base64 أو رابط عام يبدأ بـ `https`، بجانب جزء `input_text`. ## البث المتدفق مع `"stream": true` يصلك الرد أحداثًا مسمّاة: `response.created`، ثم `response.output_text.delta` بالنص على أجزاء، ثم `response.completed` بالرد الكامل و`usage`. إذا فشل الطلب في منتصفه يصلك `response.failed` ومعه رمز الخطأ. التفاصيل في [البث المتدفق](https://5abeer.ai/ar/docs/api/streaming.md). ## أمثلة ### بث متدفق cURL: ```bash curl -N https://api.5abeer.ai/v1/responses \ -H "Authorization: Bearer $KHABEER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-6.1-sol", "input": "Write a product idea in one sentence.", "stream": true }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "Authorization": f"Bearer {key}", } body = { "model": "gpt-6.1-sol", "input": "Write a product idea in one sentence.", "stream": True, } response = requests.post("https://api.5abeer.ai/v1/responses", headers=headers, json=body, timeout=300, stream=True) response.raise_for_status() for line in response.iter_lines(decode_unicode=True): if line: print(line) ``` ```text event: response.created data: {"type":"response.created","response":{"id":"resp_p8a01","object":"response","status":"in_progress","model":"gpt-6.1-sol"}} event: response.output_text.delta data: {"type":"response.output_text.delta","item_id":"msg_p8a01","output_index":0,"content_index":0,"delta":"Lumen Notes: "} event: response.output_text.delta data: {"type":"response.output_text.delta","item_id":"msg_p8a01","output_index":0,"content_index":0,"delta":"a notebook that turns voice memos "} event: response.output_text.delta data: {"type":"response.output_text.delta","item_id":"msg_p8a01","output_index":0,"content_index":0,"delta":"into tidy to-do lists."} event: response.completed data: {"type":"response.completed","response":{"id":"resp_p8a01","object":"response","created_at":1790000000,"status":"completed","model":"gpt-6.1-sol","output":[{"type":"message","id":"msg_p8a01","role":"assistant","status":"completed","content":[{"type":"output_text","text":"Lumen Notes: a notebook that turns voice memos into tidy to-do lists.","annotations":[]}]}],"usage":{"input_tokens":21,"output_tokens":18,"total_tokens":39}}} ``` ### محادثة كاملة مع تعليمات cURL: ```bash curl https://api.5abeer.ai/v1/responses \ -H "Authorization: Bearer $KHABEER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "claude-sonnet-5.5", "instructions": "Answer in one sentence.", "input": [ { "role": "user", "content": [ { "type": "input_text", "text": "Suggest a product name." } ] }, { "role": "assistant", "content": [ { "type": "output_text", "text": "Lumen Notes." } ] }, { "role": "user", "content": [ { "type": "input_text", "text": "Now a slogan for it." } ] } ], "max_output_tokens": 300, "reasoning": { "effort": "low" } }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "Authorization": f"Bearer {key}", } body = { "model": "claude-sonnet-5.5", "instructions": "Answer in one sentence.", "input": [ { "role": "user", "content": [ { "type": "input_text", "text": "Suggest a product name.", }, ], }, { "role": "assistant", "content": [ { "type": "output_text", "text": "Lumen Notes.", }, ], }, { "role": "user", "content": [ { "type": "input_text", "text": "Now a slogan for it.", }, ], }, ], "max_output_tokens": 300, "reasoning": { "effort": "low", }, } response = requests.post("https://api.5abeer.ai/v1/responses", headers=headers, json=body, timeout=300) response.raise_for_status() print(response.json()) ``` ```json { "id": "resp_p8a01", "object": "response", "created_at": 1790000000, "status": "completed", "model": "claude-sonnet-5.5", "output": [ { "type": "message", "id": "msg_p8a01", "role": "assistant", "status": "completed", "content": [ { "type": "output_text", "text": "Lumen Notes: a notebook that turns voice memos into tidy to-do lists.", "annotations": [] } ] } ], "usage": { "input_tokens": 21, "output_tokens": 18, "total_tokens": 39 } } ``` ### استدعاء دالة cURL: ```bash curl https://api.5abeer.ai/v1/responses \ -H "Authorization: Bearer $KHABEER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-6.1-sol", "input": "What is the weather in Cairo?", "tools": [ { "type": "function", "name": "get_weather", "description": "Get the weather for a city", "parameters": { "type": "object", "properties": { "city": { "type": "string" } }, "required": [ "city" ] } } ], "tool_choice": "auto", "parallel_tool_calls": false }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "Authorization": f"Bearer {key}", } body = { "model": "gpt-6.1-sol", "input": "What is the weather in Cairo?", "tools": [ { "type": "function", "name": "get_weather", "description": "Get the weather for a city", "parameters": { "type": "object", "properties": { "city": { "type": "string", }, }, "required": ["city"], }, }, ], "tool_choice": "auto", "parallel_tool_calls": False, } response = requests.post("https://api.5abeer.ai/v1/responses", headers=headers, json=body, timeout=300) response.raise_for_status() print(response.json()) ``` ```json { "id": "resp_p8a01", "object": "response", "created_at": 1790000000, "status": "completed", "model": "gpt-6.1-sol", "output": [ { "type": "function_call", "id": "fc_p8a01", "call_id": "call_p8a01", "name": "get_weather", "arguments": "{\"city\":\"Cairo\"}", "status": "completed" } ], "usage": { "input_tokens": 21, "output_tokens": 18, "total_tokens": 39 } } ``` ### إخراج JSON بمخطط cURL: ```bash curl https://api.5abeer.ai/v1/responses \ -H "Authorization: Bearer $KHABEER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-6.1-sol", "input": "Give me one product idea.", "text": { "format": { "type": "json_schema", "name": "idea", "strict": true, "schema": { "type": "object", "properties": { "idea": { "type": "string" } }, "required": [ "idea" ], "additionalProperties": false } } }, "reasoning": { "effort": "low" }, "include": [ "reasoning.encrypted_content" ], "prompt_cache_key": "product-ideas-v1" }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "Authorization": f"Bearer {key}", } body = { "model": "gpt-6.1-sol", "input": "Give me one product idea.", "text": { "format": { "type": "json_schema", "name": "idea", "strict": True, "schema": { "type": "object", "properties": { "idea": { "type": "string", }, }, "required": ["idea"], "additionalProperties": False, }, }, }, "reasoning": { "effort": "low", }, "include": ["reasoning.encrypted_content"], "prompt_cache_key": "product-ideas-v1", } response = requests.post("https://api.5abeer.ai/v1/responses", headers=headers, json=body, timeout=300) response.raise_for_status() print(response.json()) ``` ```json { "id": "resp_p8a01", "object": "response", "created_at": 1790000000, "status": "completed", "model": "gpt-6.1-sol", "output": [ { "type": "message", "id": "msg_p8a01", "role": "assistant", "status": "completed", "content": [ { "type": "output_text", "text": "{\"idea\":\"Lumen Notes: a notebook that turns voice memos into tidy to-do lists.\"}", "annotations": [] } ] } ], "usage": { "input_tokens": 21, "output_tokens": 18, "total_tokens": 39 } } ``` ### حقول تُقبل دون أثر cURL: ```bash curl https://api.5abeer.ai/v1/responses \ -H "Authorization: Bearer $KHABEER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-6.1-sol", "input": "Write a product idea in one sentence.", "temperature": 0.4, "top_p": 0.9, "store": false, "previous_response_id": "resp_123", "truncation": "auto", "metadata": { "order": "42" }, "user": "user-123" }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "Authorization": f"Bearer {key}", } body = { "model": "gpt-6.1-sol", "input": "Write a product idea in one sentence.", "temperature": 0.4, "top_p": 0.9, "store": False, "previous_response_id": "resp_123", "truncation": "auto", "metadata": { "order": "42", }, "user": "user-123", } response = requests.post("https://api.5abeer.ai/v1/responses", headers=headers, json=body, timeout=300) response.raise_for_status() print(response.json()) ``` ```json { "id": "resp_p8a01", "object": "response", "created_at": 1790000000, "status": "completed", "model": "gpt-6.1-sol", "output": [ { "type": "message", "id": "msg_p8a01", "role": "assistant", "status": "completed", "content": [ { "type": "output_text", "text": "Lumen Notes: a notebook that turns voice memos into tidy to-do lists.", "annotations": [] } ] } ], "usage": { "input_tokens": 21, "output_tokens": 18, "total_tokens": 39 } } ``` الطلب أعلاه جُرِّب على بيئة الاختبار المحلية يوم 2026-11-16؛ الرد يوضح الشكل، والنص فيه مثال. ## الأخطاء الرموز الشائعة هي نفسها في [Chat Completions](https://5abeer.ai/ar/docs/api/chat-completions.md#errors)، مع فرق واحد: حين يبلغ مفتاح الدفع حسب الاستخدام حد الإنفاق الذي وضعته، يجيب هذا العنوان بالحالة `429` والرمز `insufficient_quota` كما تفعل OpenAI، بدلًا من [`API_KEY_QUOTA_EXHAUSTED`](https://5abeer.ai/ar/docs/help/errors.md#API_KEY_QUOTA_EXHAUSTED). ارفع حد المفتاح من إعداداته. باقي الأشكال والرموز في [الحدود ورموز الأخطاء](https://5abeer.ai/ar/docs/api/limits.md#model-errors). ## النماذج المتاحة لهذه الصيغة | النموذج | المعرّف | الإدخال (سعرنا) | الإخراج (سعرنا) | السياق | | --- | --- | --- | --- | --- | | GPT-6.2 Sol | `gpt-6.2-sol` | 0.60 US$ | 3 US$ | — | | GPT-6.2 Astra | `gpt-6.2-astra` | 2.40 US$ | 12 US$ | — | | GPT-6.1 Sol | `gpt-6.1-sol` | 0.60 US$ | 3 US$ | 922K | | GPT-6 Astra | `gpt-6-astra` | 3 US$ | 15 US$ | — | | GPT-6 Sol | `gpt-6-sol` | 0.60 US$ | 3 US$ | 922K | | GPT-6 Luna | `gpt-6-luna` | 0.03 US$ | 0.15 US$ | 922K | نماذج Claude تعمل هنا أيضًا، وتجدها في [قائمة النماذج](https://5abeer.ai/ar/models). --- URL: https://5abeer.ai/ar/docs/api/messages # مرجع Anthropic Messages لكل النماذج > مرجع صيغة Anthropic Messages الأصلية لنماذج Claude والصالحة لنماذج GPT وGemini، وأثر كل معامل هنا، والتفكير، والتخزين المؤقت، والأخطاء. آخر تحديث: 2026-10-02 صيغة Anthropic. مع نماذج Claude يمرّ طلبك بصيغته كما هو دون تحويل. وتعمل نماذج GPT وGemini هنا أيضًا، مع الفروق المبيّنة في جدول المعاملات. `POST https://api.5abeer.ai/v1/messages` ## المصادقة أرسل مفتاحك في الترويسة `x-api-key` مع `anthropic-version: 2023-06-01`. العنوان الأساسي بلا `/v1`، لأن المكتبات تضيف المسار بنفسها. مع مكتبة Anthropic الرسمية اضبط `ANTHROPIC_BASE_URL` و`ANTHROPIC_API_KEY`، والتفاصيل في [العناوين الأساسية](https://5abeer.ai/ar/docs/start/base-urls.md#anthropic). أدوات مثل Claude Code ترسل المفتاح في `Authorization: Bearer`، وهذا يعمل أيضًا. ## مثال سريع ```bash curl --request POST "https://api.5abeer.ai/v1/messages" \ --header "x-api-key: $KHABEER_API_KEY" \ --header "Content-Type: application/json" \ --header "anthropic-version: 2023-06-01" \ --data '{"model":"claude-sonnet-5.5","max_tokens":512,"messages":[{"role":"user","content":"اكتب فكرة منتج في سطر واحد"}]}' ``` ```python import os import requests response = requests.post( "https://api.5abeer.ai/v1/messages", headers={ "x-api-key": os.environ['KHABEER_API_KEY'], "Content-Type": "application/json", "anthropic-version": "2023-06-01", }, json={ "model": "claude-sonnet-5.5", "max_tokens": 512, "messages": [ { "role": "user", "content": "اكتب فكرة منتج في سطر واحد" } ] }, stream=False, timeout=60, ) response.raise_for_status() print(response.json()) ``` ## المعاملات يبيّن كل صف ما يحدث للمعامل مع كل عائلة نماذج: **مدعوم** أي أننا نمرّره إلى النموذج؛ و**يُتجاهل** أي أن الطلب يُقبل لكن المعامل بلا أثر، فلا تعتمد عليه؛ و**يُرفض** أي أن الطلب يفشل. قسنا هذه الحالات على البوابة نفسها. | المعامل | النوع | الوصف | Claude | GPT | Gemini | | --- | --- | --- | --- | --- | --- | | `model` (مطلوب) | string | معرّف النموذج كما في [قائمة النماذج](https://5abeer.ai/ar/models). | مدعوم | مدعوم | مدعوم | | `messages` (مطلوب) | array | المحادثة بالدورين `user` و`assistant`، والمحتوى نص أو كتل منها الصور ونتائج الأدوات. | مدعوم | مدعوم | مدعوم | | `max_tokens` (مطلوب) | integer | أقصى عدد من توكنات الإخراج. | مدعوم | يُتجاهل | مدعوم | | `system` | string \| array | تعليمات النظام، نصًا أو كتلًا. | مدعوم | مدعوم | مدعوم | | `temperature` | number | درجة العشوائية في الرد. | يُرفض | يُتجاهل | مدعوم | | `top_p` | number | أخذ العينات من الاحتمالات الأعلى فقط. | يُرفض | يُتجاهل | مدعوم | | `top_k` | integer | أخذ العينات من أعلى عدد محدد من الخيارات. | يُرفض | يُتجاهل | يُتجاهل | | `stop_sequences` | array | نصوص يتوقف عندها الرد. | مدعوم | يُتجاهل | مدعوم | | `stream` | boolean | أرسل الرد أحداثًا متتابعة. التفاصيل في [البث المتدفق](https://5abeer.ai/ar/docs/api/streaming.md). | مدعوم | مدعوم | مدعوم | | `tools` | array | الأدوات بمخطط `input_schema`. التفاصيل في [استدعاء الأدوات](https://5abeer.ai/ar/docs/api/tools.md). | مدعوم | مدعوم | مدعوم | | `tool_choice` | object | `auto` أو `any` أو `none` أو أداة بعينها. | مدعوم | مدعوم | يُتجاهل | | `thinking` | object | تفعيل التفكير الممتد. نماذج Claude الحالية تستخدم النوع `adaptive`. | مدعوم | يُتجاهل | يُتجاهل | | `output_config` | object | `effort` لعمق التفكير: `low` أو `medium` أو `high`. | مدعوم | مدعوم | يُتجاهل | | `cache_control` | object | على كتلة محتوى: علامة التخزين المؤقت. التفاصيل في [التخزين المؤقت](https://5abeer.ai/ar/docs/api/caching.md). | مدعوم | يُتجاهل | يُتجاهل | | `metadata` | object | `user_id` لمعرّف المستخدم النهائي في نظامك. | مدعوم | يُتجاهل | يُتجاهل | ## عدّ التوكنات يقبل `POST /v1/messages/count_tokens` الجسم نفسه دون `max_tokens`، ويعيد `input_tokens` دون استدعاء النموذج. وإذا لم يتوفر العدّ للنموذج يصلك `404` مع `not_found_error`، فاجعل العدّ اختياريًا في برنامجك. ## الصور في الطلب أضف كتلة `image` إلى `content` في رسالة `user`، وفيها `source` من نوع `base64` مع `media_type`، بجانب كتلة `text`، كما في [مثال الصورة](https://5abeer.ai/ar/docs/api/messages.md#ex-vision). ## البث المتدفق مع `"stream": true` يصلك الرد أحداثًا مسمّاة: `message_start`، ثم لكل كتلة `content_block_start` و`content_block_delta` و`content_block_stop`، ثم `message_delta` بسبب التوقف وأرقام الإخراج، ثم `message_stop`. الفشل في المنتصف يصلك حدثًا من نوع `error` ومعه الرمز. التفاصيل في [البث المتدفق](https://5abeer.ai/ar/docs/api/streaming.md). ## أمثلة ### بث متدفق cURL: ```bash curl -N https://api.5abeer.ai/v1/messages \ -H "x-api-key: $KHABEER_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "Content-Type: application/json" \ -d '{ "model": "claude-sonnet-5.5", "max_tokens": 512, "messages": [ { "role": "user", "content": "Write a product idea in one sentence." } ], "stream": true }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "x-api-key": key, "anthropic-version": "2023-06-01", } body = { "model": "claude-sonnet-5.5", "max_tokens": 512, "messages": [ { "role": "user", "content": "Write a product idea in one sentence.", }, ], "stream": True, } response = requests.post("https://api.5abeer.ai/v1/messages", headers=headers, json=body, timeout=300, stream=True) response.raise_for_status() for line in response.iter_lines(decode_unicode=True): if line: print(line) ``` ```text event: message_start data: {"type":"message_start","message":{"id":"msg_p8a01","type":"message","role":"assistant","model":"claude-sonnet-5.5","content":[],"stop_reason":null,"usage":{"input_tokens":21,"output_tokens":1}}} event: content_block_start data: {"type":"content_block_start","index":0,"content_block":{"type":"text","text":""}} event: content_block_delta data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"Lumen Notes: "}} event: content_block_delta data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"a notebook that turns voice memos "}} event: content_block_delta data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"into tidy to-do lists."}} event: content_block_stop data: {"type":"content_block_stop","index":0} event: message_delta data: {"type":"message_delta","delta":{"stop_reason":"end_turn","stop_sequence":null},"usage":{"output_tokens":18}} event: message_stop data: {"type":"message_stop"} ``` ### استدعاء أداة cURL: ```bash curl https://api.5abeer.ai/v1/messages \ -H "x-api-key: $KHABEER_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "Content-Type: application/json" \ -d '{ "model": "claude-sonnet-5.5", "max_tokens": 1024, "tools": [ { "name": "get_weather", "description": "Get the weather for a city", "input_schema": { "type": "object", "properties": { "city": { "type": "string" } }, "required": [ "city" ] } } ], "tool_choice": { "type": "auto" }, "messages": [ { "role": "user", "content": "What is the weather in Cairo?" } ] }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "x-api-key": key, "anthropic-version": "2023-06-01", } body = { "model": "claude-sonnet-5.5", "max_tokens": 1024, "tools": [ { "name": "get_weather", "description": "Get the weather for a city", "input_schema": { "type": "object", "properties": { "city": { "type": "string", }, }, "required": ["city"], }, }, ], "tool_choice": { "type": "auto", }, "messages": [ { "role": "user", "content": "What is the weather in Cairo?", }, ], } response = requests.post("https://api.5abeer.ai/v1/messages", headers=headers, json=body, timeout=300) response.raise_for_status() print(response.json()) ``` ```json { "id": "msg_p8a01", "type": "message", "role": "assistant", "model": "claude-sonnet-5.5", "content": [ { "type": "tool_use", "id": "toolu_p8a01", "name": "get_weather", "input": { "city": "Cairo" } } ], "stop_reason": "tool_use", "stop_sequence": null, "usage": { "input_tokens": 21, "output_tokens": 18 } } ``` ### التفكير الممتد cURL: ```bash curl https://api.5abeer.ai/v1/messages \ -H "x-api-key: $KHABEER_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "Content-Type: application/json" \ -d '{ "model": "claude-sonnet-5.5", "max_tokens": 4096, "thinking": { "type": "adaptive", "display": "summarized" }, "messages": [ { "role": "user", "content": "Plan a three-step launch for a note-taking app." } ] }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "x-api-key": key, "anthropic-version": "2023-06-01", } body = { "model": "claude-sonnet-5.5", "max_tokens": 4096, "thinking": { "type": "adaptive", "display": "summarized", }, "messages": [ { "role": "user", "content": "Plan a three-step launch for a note-taking app.", }, ], } response = requests.post("https://api.5abeer.ai/v1/messages", headers=headers, json=body, timeout=300) response.raise_for_status() print(response.json()) ``` ```json { "id": "msg_p8a01", "type": "message", "role": "assistant", "model": "claude-sonnet-5.5", "content": [ { "type": "thinking", "thinking": "Three steps: audience, channel, timing.", "signature": "sig_p8a" }, { "type": "text", "text": "Lumen Notes: a notebook that turns voice memos into tidy to-do lists." } ], "stop_reason": "end_turn", "stop_sequence": null, "usage": { "input_tokens": 21, "output_tokens": 18 } } ``` ### عمق التفكير مع نموذج GPT cURL: ```bash curl https://api.5abeer.ai/v1/messages \ -H "x-api-key: $KHABEER_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-6.1-sol", "max_tokens": 1024, "output_config": { "effort": "low" }, "messages": [ { "role": "user", "content": "Write a product idea in one sentence." } ] }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "x-api-key": key, "anthropic-version": "2023-06-01", } body = { "model": "gpt-6.1-sol", "max_tokens": 1024, "output_config": { "effort": "low", }, "messages": [ { "role": "user", "content": "Write a product idea in one sentence.", }, ], } response = requests.post("https://api.5abeer.ai/v1/messages", headers=headers, json=body, timeout=300) response.raise_for_status() print(response.json()) ``` ```json { "id": "msg_p8a01", "type": "message", "role": "assistant", "model": "gpt-6.1-sol", "content": [ { "type": "text", "text": "Lumen Notes: a notebook that turns voice memos into tidy to-do lists." } ], "stop_reason": "end_turn", "stop_sequence": null, "usage": { "input_tokens": 21, "output_tokens": 18 } } ``` ### تخزين التعليمات الطويلة مؤقتًا cURL: ```bash curl https://api.5abeer.ai/v1/messages \ -H "x-api-key: $KHABEER_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "Content-Type: application/json" \ -d '{ "model": "claude-sonnet-5.5", "max_tokens": 512, "system": [ { "type": "text", "text": "You are the support assistant for Lumen Notes. Product manual: ...", "cache_control": { "type": "ephemeral" } } ], "messages": [ { "role": "user", "content": "How do I export a note?" } ] }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "x-api-key": key, "anthropic-version": "2023-06-01", } body = { "model": "claude-sonnet-5.5", "max_tokens": 512, "system": [ { "type": "text", "text": "You are the support assistant for Lumen Notes. Product manual: ...", "cache_control": { "type": "ephemeral", }, }, ], "messages": [ { "role": "user", "content": "How do I export a note?", }, ], } response = requests.post("https://api.5abeer.ai/v1/messages", headers=headers, json=body, timeout=300) response.raise_for_status() print(response.json()) ``` ```json { "id": "msg_p8a01", "type": "message", "role": "assistant", "model": "claude-sonnet-5.5", "content": [ { "type": "text", "text": "Lumen Notes: a notebook that turns voice memos into tidy to-do lists." } ], "stop_reason": "end_turn", "stop_sequence": null, "usage": { "input_tokens": 21, "output_tokens": 18 } } ``` ### صورة مع السؤال cURL: ```bash curl https://api.5abeer.ai/v1/messages \ -H "x-api-key: $KHABEER_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "Content-Type: application/json" \ -d '{ "model": "claude-sonnet-5.5", "max_tokens": 512, "messages": [ { "role": "user", "content": [ { "type": "image", "source": { "type": "base64", "media_type": "image/png", "data": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==" } }, { "type": "text", "text": "What is in this image?" } ] } ] }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "x-api-key": key, "anthropic-version": "2023-06-01", } body = { "model": "claude-sonnet-5.5", "max_tokens": 512, "messages": [ { "role": "user", "content": [ { "type": "image", "source": { "type": "base64", "media_type": "image/png", "data": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==", }, }, { "type": "text", "text": "What is in this image?", }, ], }, ], } response = requests.post("https://api.5abeer.ai/v1/messages", headers=headers, json=body, timeout=300) response.raise_for_status() print(response.json()) ``` ```json { "id": "msg_p8a01", "type": "message", "role": "assistant", "model": "claude-sonnet-5.5", "content": [ { "type": "text", "text": "Lumen Notes: a notebook that turns voice memos into tidy to-do lists." } ], "stop_reason": "end_turn", "stop_sequence": null, "usage": { "input_tokens": 21, "output_tokens": 18 } } ``` ### إعدادات العينة cURL: ```bash curl https://api.5abeer.ai/v1/messages \ -H "x-api-key: $KHABEER_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "Content-Type: application/json" \ -d '{ "model": "gemini-4-argon", "max_tokens": 300, "system": "Answer in one sentence.", "temperature": 0.4, "top_p": 0.9, "top_k": 40, "stop_sequences": [ "END" ], "metadata": { "user_id": "user-123" }, "messages": [ { "role": "user", "content": "Write a product idea." } ] }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "x-api-key": key, "anthropic-version": "2023-06-01", } body = { "model": "gemini-4-argon", "max_tokens": 300, "system": "Answer in one sentence.", "temperature": 0.4, "top_p": 0.9, "top_k": 40, "stop_sequences": ["END"], "metadata": { "user_id": "user-123", }, "messages": [ { "role": "user", "content": "Write a product idea.", }, ], } response = requests.post("https://api.5abeer.ai/v1/messages", headers=headers, json=body, timeout=300) response.raise_for_status() print(response.json()) ``` ```json { "id": "msg_p8a01", "type": "message", "role": "assistant", "model": "gemini-4-argon", "content": [ { "type": "text", "text": "Lumen Notes: a notebook that turns voice memos into tidy to-do lists." } ], "stop_reason": "end_turn", "stop_sequence": null, "usage": { "input_tokens": 21, "output_tokens": 18 } } ``` الطلب أعلاه جُرِّب على بيئة الاختبار المحلية يوم 2026-11-16؛ الرد يوضح الشكل، والنص فيه مثال. ## الأخطاء تصلك الأخطاء بشكل Anthropic، أي `"type": "error"` والتفاصيل داخل `error`، ما عدا فحوص المفتاح والرصيد والحدود، فهي تجيب بـ `{"code", "message"}`. الرموز الشائعة هي نفسها في [Chat Completions](https://5abeer.ai/ar/docs/api/chat-completions.md#errors)، والأشكال والرموز التي تظهر أثناء تنفيذ الطلب في [الحدود ورموز الأخطاء](https://5abeer.ai/ar/docs/api/limits.md#model-errors). ## النماذج المتاحة لهذه الصيغة | النموذج | المعرّف | الإدخال (سعرنا) | الإخراج (سعرنا) | السياق | | --- | --- | --- | --- | --- | | Claude Sonnet 5.5 | `claude-sonnet-5.5` | 0.60 US$ | 3 US$ | 1M | | Claude Opus 5.5 | `claude-opus-5.5` | 1.20 US$ | 6 US$ | 1M | | Claude Fable 5.1 | `claude-fable-5.1` | 3 US$ | 15 US$ | — | | Claude Fable 5 | `claude-fable-5` | 3 US$ | 15 US$ | 1M | | Claude Opus 4.6 | `claude-opus-4.6` | 1.50 US$ | 7.50 US$ | 1M | | Claude Opus 4.7 | `claude-opus-4.7` | 1.50 US$ | 7.50 US$ | 1M | نماذج GPT وGemini تعمل هنا أيضًا، وتجدها في [قائمة النماذج](https://5abeer.ai/ar/models). --- URL: https://5abeer.ai/ar/docs/api/gemini # مرجع صيغة Gemini الأصلية: generateContent > مرجع صيغة Gemini الأصلية، وحقول الطلب، وإخراج JSON، واستدعاء الدوال، والبث، وتوليد الصور بنماذج Gemini للصور، والأخطاء. آخر تحديث: 2026-10-02 صيغة Google الأصلية لنماذج Gemini، وهي التي تستخدمها مكتبات Gemini وأداة Gemini CLI. يوضع معرّف النموذج في العنوان لا في جسم الطلب. نماذج Gemini للمحادثة تعمل أيضًا في [Chat Completions](https://5abeer.ai/ar/docs/api/chat-completions.md) و[Messages](https://5abeer.ai/ar/docs/api/messages.md). `POST https://api.5abeer.ai/v1beta/models/{model}:generateContent` ## المصادقة أرسل مفتاحك في الترويسة `x-goog-api-key` مع العنوان الأساسي لصيغة Gemini. تحتاج مفتاحًا لنماذج Gemini، فمفاتيح Claude وGPT لا تعمل تحت `/v1beta`. صيغ العنوان: - `/v1beta/models/{model}:generateContent` للرد الكامل. - `/v1beta/models/{model}:streamGenerateContent?alt=sse` للرد المتدفق. - `/v1beta/models/{model}:countTokens` لعدّ توكنات الإدخال دون استدعاء النموذج. ## مثال سريع ```bash curl --request POST "https://api.5abeer.ai/v1beta/models/gemini-4-argon:generateContent" \ --header "x-goog-api-key: $KHABEER_API_KEY" \ --header "Content-Type: application/json" \ --data '{"contents":[{"role":"user","parts":[{"text":"اكتب فكرة منتج في سطر واحد"}]}]}' ``` ```python import os import requests response = requests.post( "https://api.5abeer.ai/v1beta/models/gemini-4-argon:generateContent", headers={ "x-goog-api-key": os.environ['KHABEER_API_KEY'], "Content-Type": "application/json", }, json={ "contents": [ { "role": "user", "parts": [ { "text": "اكتب فكرة منتج في سطر واحد" } ] } ] }, stream=False, timeout=60, ) response.raise_for_status() print(response.json()) ``` ## المعاملات يمرّ طلبك بصيغة Gemini كما هو، فتعمل الحقول أدناه كما في وثائق Google. **مدعوم** أي أننا نمرّره إلى النموذج؛ و**يُرفض** أي أن الطلب يفشل، وهنا لأن المفتاح لمزوّد آخر. | المعامل | النوع | الوصف | Claude | GPT | Gemini | | --- | --- | --- | --- | --- | --- | | `contents` (مطلوب) | array | المحادثة: أدوار `user` و`model`، وكل دور فيه `parts` من نص أو صورة. | يُرفض | يُرفض | مدعوم | | `systemInstruction` | object | تعليمات النظام في `parts`. | يُرفض | يُرفض | مدعوم | | `generationConfig` | object | إعدادات الإخراج: `temperature` و`topP` و`topK` و`maxOutputTokens` و`stopSequences` و`responseMimeType` و`responseSchema` و`thinkingConfig` و`responseModalities`. | يُرفض | يُرفض | مدعوم | | `tools` | array | `functionDeclarations` للدوال التي يستطيع النموذج استدعاءها. | يُرفض | يُرفض | مدعوم | | `toolConfig` | object | متى يستدعي النموذج الدوال: `AUTO` أو `ANY` أو `NONE`. | يُرفض | يُرفض | مدعوم | | `safetySettings` | array | عتبات تصفية المحتوى لكل فئة. | يُرفض | يُرفض | مدعوم | ## توليد الصور تولّد نماذج Gemini للصور الصور عبر العنوان نفسه: أضف `"responseModalities": ["TEXT", "IMAGE"]` إلى `generationConfig`، فتصلك الصورة في `inlineData` ببيانات Base64، كما في [مثال توليد الصورة](https://5abeer.ai/ar/docs/api/gemini.md#ex-image). تجد نماذج الصور في قائمة نماذج صفحة [توليد الصور](https://5abeer.ai/ar/docs/api/images.md). ## البث المتدفق استدعِ `:streamGenerateContent?alt=sse` بدلًا من `:generateContent`. كل حدث رد جزئي بالشكل نفسه للرد الكامل، وآخر حدث يحمل `usageMetadata`. التفاصيل في [البث المتدفق](https://5abeer.ai/ar/docs/api/streaming.md). ## أمثلة ### تعليمات وإعدادات وإخراج JSON cURL: ```bash curl https://api.5abeer.ai/v1beta/models/gemini-3.1-pro:generateContent \ -H "x-goog-api-key: $KHABEER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "systemInstruction": { "parts": [ { "text": "Answer in one sentence." } ] }, "contents": [ { "role": "user", "parts": [ { "text": "Give me one product idea." } ] } ], "generationConfig": { "temperature": 0.4, "topP": 0.9, "topK": 40, "maxOutputTokens": 300, "stopSequences": [ "END" ], "responseMimeType": "application/json", "responseSchema": { "type": "OBJECT", "properties": { "idea": { "type": "STRING" } }, "required": [ "idea" ] } }, "safetySettings": [ { "category": "HARM_CATEGORY_HARASSMENT", "threshold": "BLOCK_MEDIUM_AND_ABOVE" } ] }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "x-goog-api-key": key, } body = { "systemInstruction": { "parts": [ { "text": "Answer in one sentence.", }, ], }, "contents": [ { "role": "user", "parts": [ { "text": "Give me one product idea.", }, ], }, ], "generationConfig": { "temperature": 0.4, "topP": 0.9, "topK": 40, "maxOutputTokens": 300, "stopSequences": ["END"], "responseMimeType": "application/json", "responseSchema": { "type": "OBJECT", "properties": { "idea": { "type": "STRING", }, }, "required": ["idea"], }, }, "safetySettings": [ { "category": "HARM_CATEGORY_HARASSMENT", "threshold": "BLOCK_MEDIUM_AND_ABOVE", }, ], } response = requests.post("https://api.5abeer.ai/v1beta/models/gemini-3.1-pro:generateContent", headers=headers, json=body, timeout=300) response.raise_for_status() print(response.json()) ``` ```json { "candidates": [ { "content": { "role": "model", "parts": [ { "text": "{\"idea\":\"Lumen Notes: a notebook that turns voice memos into tidy to-do lists.\"}" } ] }, "finishReason": "STOP", "index": 0 } ], "usageMetadata": { "promptTokenCount": 21, "candidatesTokenCount": 18, "totalTokenCount": 39 }, "modelVersion": "gemini-3.1-pro" } ``` ### استدعاء دالة cURL: ```bash curl https://api.5abeer.ai/v1beta/models/gemini-3.1-pro:generateContent \ -H "x-goog-api-key: $KHABEER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "contents": [ { "role": "user", "parts": [ { "text": "What is the weather in Cairo?" } ] } ], "tools": [ { "functionDeclarations": [ { "name": "get_weather", "description": "Get the weather for a city", "parameters": { "type": "OBJECT", "properties": { "city": { "type": "STRING" } }, "required": [ "city" ] } } ] } ], "toolConfig": { "functionCallingConfig": { "mode": "AUTO" } } }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "x-goog-api-key": key, } body = { "contents": [ { "role": "user", "parts": [ { "text": "What is the weather in Cairo?", }, ], }, ], "tools": [ { "functionDeclarations": [ { "name": "get_weather", "description": "Get the weather for a city", "parameters": { "type": "OBJECT", "properties": { "city": { "type": "STRING", }, }, "required": ["city"], }, }, ], }, ], "toolConfig": { "functionCallingConfig": { "mode": "AUTO", }, }, } response = requests.post("https://api.5abeer.ai/v1beta/models/gemini-3.1-pro:generateContent", headers=headers, json=body, timeout=300) response.raise_for_status() print(response.json()) ``` ```json { "candidates": [ { "content": { "role": "model", "parts": [ { "functionCall": { "name": "get_weather", "args": { "city": "Cairo" } } } ] }, "finishReason": "STOP", "index": 0 } ], "usageMetadata": { "promptTokenCount": 21, "candidatesTokenCount": 18, "totalTokenCount": 39 }, "modelVersion": "gemini-3.1-pro" } ``` ### بث متدفق cURL: ```bash curl -N https://api.5abeer.ai/v1beta/models/gemini-3.1-pro:streamGenerateContent?alt=sse \ -H "x-goog-api-key: $KHABEER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "contents": [ { "role": "user", "parts": [ { "text": "Write a product idea in one sentence." } ] } ] }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "x-goog-api-key": key, } body = { "contents": [ { "role": "user", "parts": [ { "text": "Write a product idea in one sentence.", }, ], }, ], } response = requests.post("https://api.5abeer.ai/v1beta/models/gemini-3.1-pro:streamGenerateContent?alt=sse", headers=headers, json=body, timeout=300, stream=True) response.raise_for_status() for line in response.iter_lines(decode_unicode=True): if line: print(line) ``` ```text data: {"candidates":[{"content":{"role":"model","parts":[{"text":"Lumen Notes: a notebook that turns "}]},"index":0}],"modelVersion":"gemini-3.1-pro"} data: {"candidates":[{"content":{"role":"model","parts":[{"text":"voice memos into tidy to-do lists."}]},"finishReason":"STOP","index":0}],"usageMetadata":{"promptTokenCount":21,"candidatesTokenCount":18,"totalTokenCount":39},"modelVersion":"gemini-3.1-pro"} ``` ### توليد صورة cURL: ```bash curl https://api.5abeer.ai/v1beta/models/gemini-2.5-flash-image:generateContent \ -H "x-goog-api-key: $KHABEER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "contents": [ { "role": "user", "parts": [ { "text": "A minimal orange logo for a note-taking app." } ] } ], "generationConfig": { "responseModalities": [ "TEXT", "IMAGE" ] } }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "x-goog-api-key": key, } body = { "contents": [ { "role": "user", "parts": [ { "text": "A minimal orange logo for a note-taking app.", }, ], }, ], "generationConfig": { "responseModalities": ["TEXT", "IMAGE"], }, } response = requests.post("https://api.5abeer.ai/v1beta/models/gemini-2.5-flash-image:generateContent", headers=headers, json=body, timeout=300) response.raise_for_status() print(response.json()) ``` ```json { "candidates": [ { "content": { "role": "model", "parts": [ { "text": "Here is the logo." }, { "inlineData": { "mimeType": "image/png", "data": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==" } } ] }, "finishReason": "STOP", "index": 0 } ], "usageMetadata": { "promptTokenCount": 21, "candidatesTokenCount": 18, "totalTokenCount": 39 }, "modelVersion": "gemini-2.5-flash-image" } ``` الطلب أعلاه جُرِّب على بيئة الاختبار المحلية يوم 2026-10-02؛ الرد يوضح الشكل، والنص فيه مثال. ## الأخطاء الأخطاء التي تظهر أثناء تنفيذ الطلب تصلك بشكل Google: `error` وفيه `code` رقمي و`message` و`status` مثل `INVALID_ARGUMENT` أو `RESOURCE_EXHAUSTED`. أما فحوص المفتاح والرصيد والحدود فتجيب بـ `{"code", "message"}` برموز مثل [`INVALID_API_KEY`](https://5abeer.ai/ar/docs/help/errors.md#INVALID_API_KEY) و[`USAGE_LIMIT_EXCEEDED`](https://5abeer.ai/ar/docs/help/errors.md#USAGE_LIMIT_EXCEEDED). الجدول الكامل في [الحدود ورموز الأخطاء](https://5abeer.ai/ar/docs/api/limits.md#model-errors). ## النماذج | النموذج | المعرّف | الإدخال (سعرنا) | الإخراج (سعرنا) | السياق | | --- | --- | --- | --- | --- | | Gemini 4 Argon | `gemini-4-argon` | 0.60 US$ | 3 US$ | — | | Gemini 2.5 Pro | `gemini-2.5-pro` | 0.38 US$ | 3 US$ | 1M | | Gemini 3.8 Flash | `gemini-3.8-flash` | 0.23 US$ | 1.13 US$ | — | | Gemini 3 Flash | `gemini-3-flash` | 0.15 US$ | 0.90 US$ | 1M | | Gemini 3.1 Pro | `gemini-3.1-pro` | 0.60 US$ | 3.60 US$ | 1M | | Gemini 3.1 Flash Image (Nano Banana 2) | `gemini-3.1-flash-image` | — | — | 64K | --- URL: https://5abeer.ai/ar/docs/api/images # مرجع عنوان Images: معاملات /v1/images > مرجع /v1/images/generations و/v1/images/edits بنماذج GPT للصور: كل المعاملات، وأمثلة cURL وPython، والأخطاء، وقائمة النماذج. آخر تحديث: 2026-10-02 ولّد صورة من وصف، أو عدّل صورة ترسلها. يخدم هذا العنوان نماذج GPT للصور بمفتاح لنماذج GPT، أما مفتاح Claude أو Gemini فيصله [`not_found_error`](https://5abeer.ai/ar/docs/help/errors.md#not_found_error). نماذج Gemini للصور تولّد الصور عبر [generateContent](https://5abeer.ai/ar/docs/api/gemini.md#image). ولمقارنة العائلتين وأسعارهما وأول طلب، راجع [API توليد الصور بالذكاء الاصطناعي](https://5abeer.ai/ar/guides/image-generation-api). `POST https://api.5abeer.ai/v1/images/generations` ## عنوانان - `POST /v1/images/generations` يولّد صورة من `prompt`، وجسم الطلب بصيغة JSON. - `POST /v1/images/edits` يعدّل الصورة التي ترسلها، وجسم الطلب بصيغة `multipart/form-data` يحمل الملف في `image`، ومعه `mask` إن أردت. يجيب كلاهما بالحقل `data`، وهو قائمة صور بترميز Base64 في `b64_json`. فك الترميز واحفظ الصورة ملفًا بالصيغة التي اخترتها في `output_format`. ## المصادقة أرسل مفتاحك في الترويسة `Authorization` بكلمة `Bearer` يليها المفتاح، مع العنوان الأساسي المتوافق مع OpenAI. مكتبات OpenAI تستدعي هذين العنوانين عبر `client.images.generate` و`client.images.edit`. ## مثال سريع ```bash curl --request POST "https://api.5abeer.ai/v1/images/generations" \ --header "Authorization: Bearer $KHABEER_API_KEY" \ --header "Content-Type: application/json" \ --data '{"model":"gpt-image-1","prompt":"اكتب فكرة منتج في سطر واحد","size":"1024x1024","quality":"medium"}' ``` ```python import os import requests response = requests.post( "https://api.5abeer.ai/v1/images/generations", headers={ "Authorization": f"Bearer {os.environ['KHABEER_API_KEY']}", "Content-Type": "application/json", }, json={ "model": "gpt-image-1", "prompt": "اكتب فكرة منتج في سطر واحد", "size": "1024x1024", "quality": "medium" }, stream=False, timeout=60, ) response.raise_for_status() print(response.json()) ``` ## المعاملات **مدعوم** أي أننا نمرّره إلى نموذج الصور؛ و**يُرفض** أي أن الطلب يفشل، وهنا لأن المفتاح لمزوّد آخر. | المعامل | النوع | الوصف | Claude | GPT | Gemini | | --- | --- | --- | --- | --- | --- | | `model` (مطلوب) | string | معرّف نموذج الصور كما في [قائمة النماذج](https://5abeer.ai/ar/models). | يُرفض | مدعوم | يُرفض | | `prompt` (مطلوب) | string | وصف الصورة المطلوبة أو التعديل. | يُرفض | مدعوم | يُرفض | | `image` | file | في التعديل فقط: الصورة الأصلية، ملفًا في نموذج متعدد الأجزاء. | يُرفض | مدعوم | يُرفض | | `mask` | file | في التعديل فقط: قناع شفاف يحدد المنطقة التي تتغير. | يُرفض | مدعوم | يُرفض | | `size` | string | المقاس، مثل `1024x1024` أو `1536x1024` أو `auto`. | يُرفض | مدعوم | يُرفض | | `quality` | string | الجودة: `low` أو `medium` أو `high` أو `auto`. | يُرفض | مدعوم | يُرفض | | `n` | integer | عدد الصور، وأقلّه 1. | يُرفض | مدعوم | يُرفض | | `background` | string | الخلفية: `transparent` أو `opaque` أو `auto`. | يُرفض | مدعوم | يُرفض | | `output_format` | string | صيغة الملف: `png` أو `jpeg` أو `webp`. | يُرفض | مدعوم | يُرفض | | `output_compression` | integer | نسبة الضغط من 0 إلى 100 مع `jpeg` و`webp`. | يُرفض | مدعوم | يُرفض | | `moderation` | string | مستوى فلترة المحتوى: `auto` أو `low`. | يُرفض | مدعوم | يُرفض | ## أمثلة ### توليد صورة cURL: ```bash curl https://api.5abeer.ai/v1/images/generations \ -H "Authorization: Bearer $KHABEER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-image-2", "prompt": "A minimal orange logo for a note-taking app.", "size": "1024x1024", "quality": "medium" }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "Authorization": f"Bearer {key}", } body = { "model": "gpt-image-2", "prompt": "A minimal orange logo for a note-taking app.", "size": "1024x1024", "quality": "medium", } response = requests.post("https://api.5abeer.ai/v1/images/generations", headers=headers, json=body, timeout=300) response.raise_for_status() print(response.json()) ``` ```json { "created": 1790000000, "data": [ { "b64_json": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==" } ], "usage": { "input_tokens": 14, "output_tokens": 272, "total_tokens": 286 } } ``` ### خلفية شفافة وصيغة الملف cURL: ```bash curl https://api.5abeer.ai/v1/images/generations \ -H "Authorization: Bearer $KHABEER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-image-2", "prompt": "A minimal orange logo for a note-taking app.", "size": "1024x1024", "quality": "high", "n": 1, "background": "transparent", "output_format": "webp", "output_compression": 80, "moderation": "auto" }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "Authorization": f"Bearer {key}", } body = { "model": "gpt-image-2", "prompt": "A minimal orange logo for a note-taking app.", "size": "1024x1024", "quality": "high", "n": 1, "background": "transparent", "output_format": "webp", "output_compression": 80, "moderation": "auto", } response = requests.post("https://api.5abeer.ai/v1/images/generations", headers=headers, json=body, timeout=300) response.raise_for_status() print(response.json()) ``` ```json { "created": 1790000000, "data": [ { "b64_json": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==" } ], "usage": { "input_tokens": 14, "output_tokens": 272, "total_tokens": 286 } } ``` ### تعديل صورة cURL: ```bash curl https://api.5abeer.ai/v1/images/edits \ -H "Authorization: Bearer $KHABEER_API_KEY" \ -F "model=gpt-image-2" \ -F "prompt=Make the background light blue." \ -F "image=@logo.png" \ -F "mask=@mask.png" \ -F "size=1024x1024" ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "Authorization": f"Bearer {key}", } data = { "model": "gpt-image-2", "prompt": "Make the background light blue.", "size": "1024x1024", } files = {"image": open("logo.png", "rb"), "mask": open("mask.png", "rb")} response = requests.post("https://api.5abeer.ai/v1/images/edits", headers=headers, data=data, files=files, timeout=300) response.raise_for_status() print(response.json()) ``` ```json { "created": 1790000000, "data": [ { "b64_json": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==" } ], "usage": { "input_tokens": 14, "output_tokens": 272, "total_tokens": 286 } } ``` الطلب أعلاه جُرِّب على بيئة الاختبار المحلية يوم 2026-10-02؛ الرد يوضح الشكل، والنص فيه مثال. ## الأخطاء - [`invalid_request_error`](https://5abeer.ai/ar/docs/help/errors.md#invalid_request_error): نوع غير صحيح، مثل `n` نصًا، أو `n` أقل من 1. - [`not_found_error`](https://5abeer.ai/ar/docs/help/errors.md#not_found_error): المفتاح ليس لنماذج GPT. - [`INSUFFICIENT_BALANCE`](https://5abeer.ai/ar/docs/help/errors.md#INSUFFICIENT_BALANCE): الرصيد لا يكفي للصورة. - الملف الكبير في التعديل قد يعيد `413` مع `REQUEST_TOO_LARGE`، والتفاصيل في [الحدود](https://5abeer.ai/ar/docs/api/limits.md#size). ## نماذج الصور | النموذج | المعرّف | الإدخال (سعرنا) | الإخراج (سعرنا) | السياق | | --- | --- | --- | --- | --- | | GPT Image 1 | `gpt-image-1` | — | — | — | | GPT Image 1.5 | `gpt-image-1.5` | — | — | — | | GPT Image 2 | `gpt-image-2` | — | — | — | | GPT Image 2.5 Flare | `gpt-image-2.5-flare` | — | — | — | | GPT Image 2.5 Sunburst | `gpt-image-2.5-sunburst` | — | — | — | | Gemini 3.1 Flash Image (Nano Banana 2) | `gemini-3.1-flash-image` | — | — | 64K | --- URL: https://5abeer.ai/ar/docs/api/embeddings # مرجع Embeddings المتوافق مع OpenAI > مرجع Embeddings المتوافق مع OpenAI، وحقول الطلب، ونص واحد أو عدة نصوص، ومتجهات أقصر، والأمثلة، والأخطاء. آخر تحديث: 2026-10-02 حوّل النص إلى متجه من الأرقام، فتحصل النصوص المتقاربة في المعنى على متجهات متقاربة. استخدمه للبحث بالمعنى والتجميع والتصنيف. يخدم هذا العنوان نماذج Embeddings بمفتاح لنماذج GPT. `POST https://api.5abeer.ai/v1/embeddings` ## المصادقة أرسل مفتاحك في الترويسة `Authorization` بكلمة `Bearer` يليها المفتاح، مع العنوان الأساسي المتوافق مع OpenAI. مكتبات OpenAI تستدعي هذا العنوان عبر `client.embeddings.create`. أما مفتاح Claude أو Gemini فيصله [`not_found_error`](https://5abeer.ai/ar/docs/help/errors.md#not_found_error). ## المعاملات **مدعوم** أي أننا نمرّره إلى النموذج؛ و**يُرفض** أي أن الطلب يفشل، وهنا لأن المفتاح لمزوّد آخر. | المعامل | النوع | الوصف | Claude | GPT | Gemini | | --- | --- | --- | --- | --- | --- | | `model` (مطلوب) | string | معرّف نموذج Embeddings كما في [قائمة النماذج](https://5abeer.ai/ar/models). | يُرفض | مدعوم | يُرفض | | `input` (مطلوب) | string \| array | نص واحد، أو قائمة نصوص يصلك لكل منها متجه بالترتيب نفسه. | يُرفض | مدعوم | يُرفض | | `dimensions` | integer | طول المتجه إن أردته أقصر من الافتراضي. | يُرفض | مدعوم | يُرفض | | `encoding_format` | string | `float` لقائمة أرقام، أو `base64` لنص أقصر. | يُرفض | مدعوم | يُرفض | | `user` | string | معرّف للمستخدم النهائي في نظامك. | يُرفض | مدعوم | يُرفض | ## أمثلة ### نص واحد cURL: ```bash curl https://api.5abeer.ai/v1/embeddings \ -H "Authorization: Bearer $KHABEER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "text-embedding-3-small", "input": "Write a product idea in one sentence." }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "Authorization": f"Bearer {key}", } body = { "model": "text-embedding-3-small", "input": "Write a product idea in one sentence.", } response = requests.post("https://api.5abeer.ai/v1/embeddings", headers=headers, json=body, timeout=300) response.raise_for_status() print(response.json()) ``` ```json { "object": "list", "model": "text-embedding-3-small", "data": [ { "object": "embedding", "index": 0, "embedding": [ 0.01, 0.02, 0.03, 0.04, 0.05, 0.06, 0.07, 0.08 ] } ], "usage": { "prompt_tokens": 9, "total_tokens": 9 } } ``` المتجه مختصر هنا. ### عدة نصوص بطول أقصر cURL: ```bash curl https://api.5abeer.ai/v1/embeddings \ -H "Authorization: Bearer $KHABEER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "text-embedding-3-small", "input": [ "How do I export a note?", "Can I share a notebook?" ], "dimensions": 256, "encoding_format": "float", "user": "user-123" }' ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "Authorization": f"Bearer {key}", } body = { "model": "text-embedding-3-small", "input": ["How do I export a note?", "Can I share a notebook?"], "dimensions": 256, "encoding_format": "float", "user": "user-123", } response = requests.post("https://api.5abeer.ai/v1/embeddings", headers=headers, json=body, timeout=300) response.raise_for_status() print(response.json()) ``` ```json { "object": "list", "model": "text-embedding-3-small", "data": [ { "object": "embedding", "index": 0, "embedding": [ 0.01, 0.02, 0.03, 0.04, 0.05, 0.06, 0.07, 0.08 ] }, { "object": "embedding", "index": 1, "embedding": [ 0.02, 0.04, 0.06, 0.08, 0.1, 0.12, 0.14, 0.16 ] } ], "usage": { "prompt_tokens": 9, "total_tokens": 9 } } ``` المتجه مختصر هنا. الطلب أعلاه جُرِّب على بيئة الاختبار المحلية يوم 2026-10-02؛ الرد يوضح الشكل، والنص فيه مثال. ## نصائح - أرسل النصوص دفعات في قائمة داخل `input`، فطلب واحد لنصوص كثيرة أسرع من طلبات كثيرة. - استخدم النموذج نفسه للنصوص التي تخزّنها وللأسئلة التي تقارنها بها، فمتجهات النماذج المختلفة لا تختلط. - الحقل `dimensions` يعطيك متجهات أقصر تشغل مساحة أقل، مقابل نقص طفيف في الدقة. ## الأخطاء - [`invalid_request_error`](https://5abeer.ai/ar/docs/help/errors.md#invalid_request_error): ينقص الطلب `model` أو `input`. - [`not_found_error`](https://5abeer.ai/ar/docs/help/errors.md#not_found_error): المفتاح ليس لنماذج GPT. - الدفعة الطويلة جدًا قد تعيد `413` مع `REQUEST_TOO_LARGE`، فقسّمها. التفاصيل في [الحدود](https://5abeer.ai/ar/docs/api/limits.md#size). ## نماذج Embeddings | النموذج | المعرّف | الإدخال (سعرنا) | الإخراج (سعرنا) | السياق | | --- | --- | --- | --- | --- | --- URL: https://5abeer.ai/ar/docs/api/models # قائمة النماذج: ما الذي يستطيع مفتاحك استدعاءه > اعرض النماذج التي يستطيع مفتاحك استدعاءها، واقرأ نموذجًا واحدًا، واستخدم قائمة صيغة Gemini، دون تكلفة ودون استدعاء أي نموذج. آخر تحديث: 2026-10-02 اعرف النماذج التي يستطيع مفتاحك استدعاءها. هذه الطلبات لا تستدعي أي نموذج ولا تكلّف شيئًا، فهي أيضًا طريقة سريعة للتأكد من أن المفتاح يعمل. `GET https://api.5abeer.ai/v1/models` ## ثلاثة طلبات - `GET /v1/models` يعرض نماذج مزوّد مفتاحك بصيغة OpenAI: `object: "list"` و`data`، ولكل عنصر معرّفه في `id`. - `GET /v1/models/{model}` يعيد نموذجًا واحدًا. - `GET /v1beta/models` يعرض النماذج بصيغة Gemini، بمفتاح لنماذج Gemini في `x-goog-api-key`. يعمل كل مفتاح مع نماذج مزوّد واحد، فتعرض القائمة نماذج ذلك المزوّد فقط. الحقل `id` هو القيمة التي ترسلها في `model`. ## المصادقة أرسل مفتاحك في الترويسة `Authorization` بكلمة `Bearer` يليها المفتاح. قائمة صيغة Gemini تستخدم `x-goog-api-key`. ## أمثلة ### كل نماذج مفتاحك cURL: ```bash curl https://api.5abeer.ai/v1/models \ -H "Authorization: Bearer $KHABEER_API_KEY" ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "Authorization": f"Bearer {key}", } response = requests.get("https://api.5abeer.ai/v1/models", headers=headers, timeout=60) response.raise_for_status() print(response.json()) ``` ```json { "object": "list", "data": [ { "id": "claude-opus-5", "object": "model", "created": 1790000000, "owned_by": "anthropic", "display_name": "Claude Opus 5" }, { "id": "claude-fable-5", "object": "model", "created": 1790000000, "owned_by": "anthropic", "display_name": "Claude Fable 5" }, { "id": "claude-sonnet-5", "object": "model", "created": 1790000000, "owned_by": "anthropic", "display_name": "Claude Sonnet 5" }, { "id": "claude-sonnet-4.6", "object": "model", "created": 1790000000, "owned_by": "anthropic", "display_name": "Claude Sonnet 4.6" }, { "id": "claude-haiku-4.5", "object": "model", "created": 1790000000, "owned_by": "anthropic", "display_name": "Claude Haiku 4.5" }, { "id": "claude-opus-4.5", "object": "model", "created": 1790000000, "owned_by": "anthropic", "display_name": "Claude Opus 4.5" }, { "id": "claude-opus-4.6", "object": "model", "created": 1790000000, "owned_by": "anthropic", "display_name": "Claude Opus 4.6" }, { "id": "claude-opus-4.7", "object": "model", "created": 1790000000, "owned_by": "anthropic", "display_name": "Claude Opus 4.7" }, { "id": "claude-sonnet-4.5", "object": "model", "created": 1790000000, "owned_by": "anthropic", "display_name": "Claude Sonnet 4.5" } ] } ``` القائمة مختصرة هنا. ### نموذج واحد cURL: ```bash curl https://api.5abeer.ai/v1/models/claude-opus-5 \ -H "Authorization: Bearer $KHABEER_API_KEY" ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "Authorization": f"Bearer {key}", } response = requests.get("https://api.5abeer.ai/v1/models/claude-opus-5", headers=headers, timeout=60) response.raise_for_status() print(response.json()) ``` ```json { "id": "claude-opus-5", "object": "model", "created": 1790000000, "owned_by": "anthropic", "display_name": "Claude Opus 5" } ``` ### بصيغة Gemini cURL: ```bash curl https://api.5abeer.ai/v1beta/models \ -H "x-goog-api-key: $KHABEER_API_KEY" ``` Python: ```python import os import requests key = os.environ["KHABEER_API_KEY"] headers = { "x-goog-api-key": key, } response = requests.get("https://api.5abeer.ai/v1beta/models", headers=headers, timeout=60) response.raise_for_status() print(response.json()) ``` ```json { "models": [ { "name": "models/gemini-3.1-pro", "displayName": "Gemini 3.1 Pro", "supportedGenerationMethods": [ "generateContent", "streamGenerateContent", "countTokens" ] }, { "name": "models/gemini-3-flash", "displayName": "Gemini 3 Flash", "supportedGenerationMethods": [ "generateContent", "streamGenerateContent", "countTokens" ] }, { "name": "models/gemini-3.1-flash-image", "displayName": "Gemini 3.1 Flash Image", "supportedGenerationMethods": [ "generateContent", "streamGenerateContent", "countTokens" ] }, { "name": "models/gemini-2.5-flash", "displayName": "Gemini 2.5 Flash", "supportedGenerationMethods": [ "generateContent", "streamGenerateContent", "countTokens" ] }, { "name": "models/gemini-2.5-pro", "displayName": "Gemini 2.5 Pro", "supportedGenerationMethods": [ "generateContent", "streamGenerateContent", "countTokens" ] }, { "name": "models/gemini-3.6-flash", "displayName": "Gemini 3.6 Flash", "supportedGenerationMethods": [ "generateContent", "streamGenerateContent", "countTokens" ] }, { "name": "models/gemini-2.5-flash-image", "displayName": "Gemini 2.5 Flash Image", "supportedGenerationMethods": [ "generateContent", "streamGenerateContent", "countTokens" ] } ] } ``` القائمة مختصرة هنا. الطلب أعلاه جُرِّب على بيئة الاختبار المحلية يوم 2026-10-02؛ الرد يوضح الشكل، والنص فيه مثال. ## الأخطاء - [`INVALID_API_KEY`](https://5abeer.ai/ar/docs/help/errors.md#INVALID_API_KEY): المفتاح غير صحيح. - [`API_KEY_DISABLED`](https://5abeer.ai/ar/docs/help/errors.md#API_KEY_DISABLED): المفتاح معطّل. - [`API_KEY_EXPIRED`](https://5abeer.ai/ar/docs/help/errors.md#API_KEY_EXPIRED): انتهت صلاحية المفتاح. ## كل النماذج القائمة الكاملة بالأسعار لكل المزوّدين في [صفحة النماذج](https://5abeer.ai/ar/models). أبرز النماذج: | النموذج | المعرّف | الإدخال (سعرنا) | الإخراج (سعرنا) | السياق | | --- | --- | --- | --- | --- | | Claude Sonnet 5.5 | `claude-sonnet-5.5` | 0.60 US$ | 3 US$ | 1M | | Claude Opus 5.5 | `claude-opus-5.5` | 1.20 US$ | 6 US$ | 1M | | GPT-6.2 Sol | `gpt-6.2-sol` | 0.60 US$ | 3 US$ | — | | Gemini 4 Argon | `gemini-4-argon` | 0.60 US$ | 3 US$ | — | | Claude Fable 5.1 | `claude-fable-5.1` | 3 US$ | 15 US$ | — | | Claude Fable 5 | `claude-fable-5` | 3 US$ | 15 US$ | 1M | | Claude Opus 4.6 | `claude-opus-4.6` | 1.50 US$ | 7.50 US$ | 1M | | Claude Opus 4.7 | `claude-opus-4.7` | 1.50 US$ | 7.50 US$ | 1M | --- URL: https://5abeer.ai/ar/docs/api/streaming # البث المتدفق للردود عبر API في كل صيغة > كيف تستقبل الرد أثناء كتابته في كل صيغة، Chat Completions وResponses وMessages وGemini، مع أرقام الاستخدام والأخطاء أثناء البث ونصائح. آخر تحديث: 2026-10-02 مع البث المتدفق يصلك الرد على أجزاء أثناء كتابة النموذج له، فيرى المستخدم النص فورًا بدلًا من انتظار الرد كاملًا. كل الصيغ تدعمه عبر Server-Sent Events، أي أسطر تبدأ بـ `data:`، وقد يسبقها سطر `event:`. ## التفعيل - **Chat Completions وResponses وMessages:** أضف `"stream": true` إلى جسم الطلب. - **Gemini:** استدعِ `:streamGenerateContent?alt=sse` بدلًا من `:generateContent`. مع cURL أضف `-N` لتظهر الأجزاء فور وصولها. وفي Python مع `requests` مرّر `stream=True` واقرأ الأسطر عبر `iter_lines`. المكتبات الرسمية تتولى هذا كله عنك. ```bash curl --no-buffer --request POST "https://api.5abeer.ai/v1/chat/completions" \ --header "Authorization: Bearer $KHABEER_API_KEY" \ --header "Content-Type: application/json" \ --data '{"model":"claude-sonnet-5.5","messages":[{"role":"user","content":"اكتب فكرة منتج في سطر واحد"}],"stream":true}' ``` ```python import os import requests response = requests.post( "https://api.5abeer.ai/v1/chat/completions", headers={ "Authorization": f"Bearer {os.environ['KHABEER_API_KEY']}", "Content-Type": "application/json", }, json={ "model": "claude-sonnet-5.5", "messages": [ { "role": "user", "content": "اكتب فكرة منتج في سطر واحد" } ], "stream": True }, stream=True, timeout=60, ) response.raise_for_status() for line in response.iter_lines(decode_unicode=True): if line: print(line) ``` ## ما يصلك في كل صيغة - **Chat Completions:** أسطر `data:` كل منها `chat.completion.chunk` والنص في `choices[0].delta.content`، وينتهي البث بالسطر `data: [DONE]`. - **Responses:** أحداث مسمّاة، `response.created` ثم `response.output_text.delta` وأحداث استدعاء الدوال، وينتهي بالحدث `response.completed` الذي يحمل الرد الكامل. - **Messages:** `message_start`، ثم لكل كتلة `content_block_start` و`content_block_delta` و`content_block_stop`، ثم `message_delta`، وينتهي بالحدث `message_stop`. - **Gemini:** كل حدث رد جزئي بالشكل نفسه للرد الكامل، وآخر حدث يحمل `finishReason` و`usageMetadata`. أمثلة كاملة لكل بث في المراجع: [Chat Completions](https://5abeer.ai/ar/docs/api/chat-completions.md#ex-stream) و[Responses](https://5abeer.ai/ar/docs/api/responses.md#ex-stream) و[Messages](https://5abeer.ai/ar/docs/api/messages.md#ex-stream) و[Gemini](https://5abeer.ai/ar/docs/api/gemini.md#ex-stream). ## أرقام الاستخدام - **Chat Completions:** أضف `"stream_options": {"include_usage": true}` فيحمل آخر جزء قبل `[DONE]` الحقل `usage` مع `choices` فارغة. نماذج GPT ترسله دائمًا حتى دون هذا الخيار. - **Responses:** الحقل `usage` داخل `response.completed`. - **Messages:** أرقام الإدخال في `message_start`، وأرقام الإخراج في `message_delta`. - **Gemini:** الحقل `usageMetadata` في آخر حدث. ## الأخطاء أثناء البث الخطأ الذي يقع قبل بدء البث يصلك ردًا عاديًا بصيغة JSON مع حالته في HTTP. أما بعد بدء البث فالحالة `200` قد أُرسلت، فيصلك الخطأ داخل البث: - **Chat Completions وGemini:** سطر `data:` فيه كائن `error`. - **Responses:** حدث `response.failed`. - **Messages:** حدث `error`. يحمل كل منها الرمز نفسه للخطأ العادي، والتفاصيل في [الحدود ورموز الأخطاء](https://5abeer.ai/ar/docs/api/limits.md#model-errors). اعرض للمستخدم ما كُتب حتى الآن، واعرض عليه إعادة المحاولة. ## نصائح - اقرأ البث سطرًا سطرًا، وتجاهل الأسطر الفارغة وأسطر `event:` التي لا تحتاجها. - اجعل مهلة الانتظار طويلة، فالإجابة الطويلة قد يستمر بثها عدة دقائق. - لا تحلّل JSON ناقصًا من استدعاء أداة قبل انتهاء كتلته؛ اجمع أجزاء `arguments` أو `input_json_delta` أولًا. --- URL: https://5abeer.ai/ar/docs/api/tools # استدعاء الأدوات والدوال عبر API في كل صيغة > اجعل النموذج يستدعي دوالك في كل صيغة، عرّف الأداة، واقرأ الاستدعاء، وأرسل النتيجة، واعرف ما تدعمه كل عائلة نماذج. آخر تحديث: 2026-10-02 يتيح استدعاء الأدوات للنموذج أن يطلب من برنامجك تشغيل دالة، مثل جلب حالة الطقس أو البحث في قاعدة بياناتك، ثم يجيب بالنتيجة. النموذج لا يشغّل شيئًا بنفسه: يعيد اسم الدالة ووسائطها، فيشغّلها برنامجك، ثم ترسل النتيجة في الطلب التالي. ## الدورة ### 1. صِف أدواتك أرسل قائمة أدوات في الطلب، لكل أداة اسم ووصف ومخطط JSON Schema لوسائطها. الوصف الواضح هو ما يجعل النموذج يختار الأداة الصحيحة. ### 2. اقرأ الاستدعاء حين يحتاج النموذج أداة يحمل الرد استدعاءً فيه اسم الأداة ووسائطها بدلًا من إجابة نهائية، ويدل سبب التوقف على ذلك. ### 3. شغّلها وأرسل النتيجة شغّل الدالة في برنامجك، ثم أرسل طلبًا جديدًا بالمحادثة كاملة: استدعاء النموذج، ثم نتيجتك مربوطة بمعرّف الاستدعاء. بعدها يجيب النموذج، أو يستدعي أداة أخرى. ## الأداة نفسها في كل صيغة - **Chat Completions:** الأدوات في `tools` مع `type: "function"` و`function.parameters`. يصل الاستدعاء في `message.tool_calls` مع `finish_reason: "tool_calls"`. أرسل النتيجة رسالةً بالدور `role: "tool"` ومعها `tool_call_id`. - **Responses:** الأدوات في `tools` مع `type: "function"` و`parameters`. الاستدعاء عنصر في `output` من نوع `function_call` ومعه `call_id`. أرسل النتيجة عنصرًا في `input` من نوع `function_call_output` بالقيمة نفسها لـ `call_id`. - **Messages:** الأدوات في `tools` مع `input_schema`. الاستدعاء كتلة `tool_use` مع `stop_reason: "tool_use"`. أرسل النتيجة كتلة `tool_result` في رسالة `user` ومعها `tool_use_id`. - **Gemini:** الأدوات في `tools` مع `functionDeclarations`. الاستدعاء جزء `functionCall`. أرسل النتيجة جزء `functionResponse` في دور `user`. طلبات كاملة مع ردودها المسجّلة: [Chat Completions](https://5abeer.ai/ar/docs/api/chat-completions.md#ex-tools) و[Responses](https://5abeer.ai/ar/docs/api/responses.md#ex-tools) و[Messages](https://5abeer.ai/ar/docs/api/messages.md#ex-tools) و[Gemini](https://5abeer.ai/ar/docs/api/gemini.md#ex-tools). ## إرسال النتيجة في Chat Completions يكرر الطلب الثاني المحادثة، ويضيف استدعاء النموذج كما وصل، ثم نتيجتك: ```json [ { "role": "user", "content": "What is the weather in Cairo?" }, { "role": "assistant", "content": null, "tool_calls": [ { "id": "call_1", "type": "function", "function": { "name": "get_weather", "arguments": "{\"city\":\"Cairo\"}" } } ] }, { "role": "tool", "tool_call_id": "call_1", "content": "{\"temp_c\": 31, \"sky\": \"clear\"}" } ] ``` وفي Messages يكون الاستدعاء والنتيجة كتلًا: ```json [ { "role": "user", "content": "What is the weather in Cairo?" }, { "role": "assistant", "content": [ { "type": "tool_use", "id": "toolu_1", "name": "get_weather", "input": { "city": "Cairo" } } ] }, { "role": "user", "content": [ { "type": "tool_result", "tool_use_id": "toolu_1", "content": "{\"temp_c\": 31, \"sky\": \"clear\"}" } ] } ] ``` ## ما تدعمه كل عائلة - كل العائلات تقبل `tools` في Chat Completions وMessages، ونماذج Claude وGPT تقبلها في Responses. - فرض أداة بعينها عبر `tool_choice` يعمل مع Claude وGPT. أما نماذج Gemini فتختار بنفسها في Chat Completions وMessages، ومع [generateContent](https://5abeer.ai/ar/docs/api/gemini.md) استخدم `toolConfig`. - للحقل `parallel_tool_calls` أثر مع نماذج GPT فقط. قد تستدعي نماذج Claude عدة أدوات في رد واحد، فعالج كل الاستدعاءات قبل أن تجيب. - للحصول على إجابة JSON من Claude عرّف أداة واحدة مخططها هو الشكل الذي تريده، وافرضها عبر `tool_choice`، فتكون الوسائط هي بيانات JSON التي تريدها. ## نصائح - تحقق من الوسائط قبل أن تشغّل أي شيء، فقد يرسل النموذج قيمة غير صحيحة. - اجعل نتائج الأدوات قصيرة ومحددة، فالنتائج الطويلة تكلّف توكنات إدخال في كل طلب لاحق. - أعد الأخطاء نتائجَ، مثل `{"error": "city not found"}`، ليتمكن النموذج من التصرف. --- URL: https://5abeer.ai/ar/docs/api/caching # التخزين المؤقت للطلبات في Claude وGPT وGemini > أعد استخدام بداية الطلبات الطويلة لتقل تكلفة التعليمات والمستندات المتكررة ويصبح الرد أسرع، وكيف تحدد ما يُخزَّن لنماذج Claude، وما تفعله GPT وGemini. آخر تحديث: 2026-10-02 حين تبدأ طلبات كثيرة بالنص الطويل نفسه، مثل تعليمات النظام أو دليل منتج أو قاعدة شيفرة، يستطيع النموذج إعادة استخدام ما قرأه بدلًا من قراءته من جديد. القراءة من التخزين المؤقت أقل تكلفة من الإدخال الجديد وأسرع. ## نماذج Claude: حدّد ما يُخزَّن مع نماذج Claude تختار ما يُخزَّن بإضافة `cache_control` إلى كتلة محتوى في [Messages](https://5abeer.ai/ar/docs/api/messages.md). كل ما يسبق تلك الكتلة ويشملها يصبح البداية المخزّنة: ```json [ { "type": "text", "text": "You are the support assistant for Lumen Notes. Product manual: ...", "cache_control": { "type": "ephemeral" } } ] ``` - ضع الأجزاء الثابتة أولًا: الأدوات، ثم التعليمات، ثم المستندات، والسؤال المتغير في النهاية. - يحفظ التخزين البداية كما هي حرفيًا: إذا غيّرت حرفًا واحدًا قبل العلامة يقرأ ذلك الطلب من جديد. - البداية القصيرة لا تُخزَّن، فالفائدة في النصوص الطويلة المتكررة. - الحقل `cache_control` ميزة في Messages، أما Chat Completions وResponses فلا حقل فيهما لتحديد ما يُخزَّن لنماذج Claude. طلب كامل مع رده المسجّل في [مثال التخزين المؤقت](https://5abeer.ai/ar/docs/api/messages.md#ex-caching). ## نماذج GPT: تلقائيًا تخزّن نماذج GPT البدايات الطويلة المتكررة بنفسها، فلا تحتاج إلى أي علامة. وفي [Responses](https://5abeer.ai/ar/docs/api/responses.md#params) يمكنك إضافة `prompt_cache_key` بقيمة ثابتة لكل نوع من الطلبات، فتتشارك الطلبات المتشابهة التخزين. ## نماذج Gemini لا يوجد هنا حقل للتخزين المؤقت تضبطه لنماذج Gemini. اجعل الجزء الثابت من طلباتك في بدايتها كما سبق. ## اعرفه من أرقام الاستخدام تبيّن أرقام الاستخدام في كل رد ما جاء من التخزين المؤقت: - **Messages:** ما قُرئ من التخزين في `usage.cache_read_input_tokens`، وما كُتب فيه في `usage.cache_creation_input_tokens`. - **Chat Completions:** ما قُرئ من التخزين في `usage.prompt_tokens_details.cached_tokens`. - **Responses:** ما قُرئ من التخزين في `usage.input_tokens_details.cached_tokens`. ## السعر للقراءة من التخزين والكتابة فيه سعر خاص لكل مليون توكن، تجده في صفحة كل نموذج، مثل [صفحة هذا النموذج](https://5abeer.ai/ar/models/claude-sonnet-5.5). --- URL: https://5abeer.ai/ar/docs/api/limits # حدود الـ API: الرصيد والمفتاح وحجم الطلب والسياق > ما الذي يحدّ الطلب، وحد الساعات الخمس والحد الأسبوعي للاشتراك، وحدود الرصيد والمفتاح، وحجم الطلب والسياق، وكل رموز الأخطاء وأشكالها. آخر تحديث: 2026-10-03 ما الذي قد يوقف الطلب، والرمز الذي يصلك في كل حالة، وما تفعله. لكل حد رمزه الخاص، فيستطيع برنامجك التمييز بينها. ## الاشتراكات تعمل الاشتراكات في التطبيقات المدعومة، ولها حدّان فقط للاستخدام: حد الساعات الخمس والحد الأسبوعي. حين تبلغ أحدهما تجيب الطلبات بالحالة `429` والرمز [`USAGE_LIMIT_EXCEEDED`](https://5abeer.ai/ar/docs/help/errors.md#USAGE_LIMIT_EXCEEDED) إلى أن يتجدد الحد في موعده، ولا تفيد إعادة المحاولة السريعة. تعرض لوحة التحكم مقدار ما استخدمته من كل حد وموعد تجدده، والتفاصيل في [حدود الاستخدام](https://5abeer.ai/ar/docs/subscriptions/limits.md). ## مفاتيح الدفع حسب الاستخدام حدود الاشتراك لا تنطبق هنا. ما يحدّ طلباتك: - **الرصيد:** حين ينفد تجيب الطلبات بالحالة `403` والرمز [`INSUFFICIENT_BALANCE`](https://5abeer.ai/ar/docs/help/errors.md#INSUFFICIENT_BALANCE). اشحن رصيدك ثم أعد المحاولة. - **حد الإنفاق للمفتاح** إن وضعته: الحالة `429` مع [`API_KEY_QUOTA_EXHAUSTED`](https://5abeer.ai/ar/docs/help/errors.md#API_KEY_QUOTA_EXHAUSTED)، أو `insufficient_quota` على `/v1/responses`. ارفع الحد من إعدادات المفتاح. - **تاريخ انتهاء المفتاح وقائمة عناوين IP المسموحة** إن ضبطتهما: [`API_KEY_EXPIRED`](https://5abeer.ai/ar/docs/help/errors.md#API_KEY_EXPIRED) و[`ACCESS_DENIED`](https://5abeer.ai/ar/docs/help/errors.md#ACCESS_DENIED). ## معدل الطلبات الطلبات الكثيرة في وقت قصير تجيب بالحالة `429` والرمز [`RATE_LIMITED`](https://5abeer.ai/ar/docs/help/errors.md#RATE_LIMITED). وتتباطأ أيضًا الطلبات المتكررة بمفتاح غير صحيح، مع الرمز `INVALID_AUTH_RATE_LIMITED`. انتظر، ثم أعد المحاولة بمهلة تتضاعف في كل مرة. ## حجم الطلب الطلب الكبير جدًا يجيب بالحالة `413` والرمز `REQUEST_TOO_LARGE`، وسببه عادة صور أو ملفات كثيرة أو كبيرة. صغّر الصور، أو أرسل عددًا أقل في المرة الواحدة، أو ضع المستندات الطويلة في ملف وأرسل الأجزاء التي تحتاجها فقط. العناوين التي تحمل نصًا فقط، مثل Embeddings، تقبل أجسامًا أصغر من عناوين المحادثة. ## طول السياق حين تكون المحادثة أطول من نافذة سياق النموذج يجيب الطلب بالحالة `400` والرمز `CONTEXT_LIMIT_EXCEEDED`. ابدأ محادثة جديدة، أو احذف الرسائل القديمة، أو لخّصها. نافذة السياق لكل نموذج: | النموذج | المعرّف | الإدخال (سعرنا) | الإخراج (سعرنا) | السياق | | --- | --- | --- | --- | --- | | Claude Sonnet 5.5 | `claude-sonnet-5.5` | 0.60 US$ | 3 US$ | 1M | | Claude Opus 5.5 | `claude-opus-5.5` | 1.20 US$ | 6 US$ | 1M | | GPT-6.2 Sol | `gpt-6.2-sol` | 0.60 US$ | 3 US$ | — | | Gemini 4 Argon | `gemini-4-argon` | 0.60 US$ | 3 US$ | — | | Claude Fable 5.1 | `claude-fable-5.1` | 3 US$ | 15 US$ | — | | Claude Fable 5 | `claude-fable-5` | 3 US$ | 15 US$ | 1M | | Claude Opus 4.6 | `claude-opus-4.6` | 1.50 US$ | 7.50 US$ | 1M | | Claude Opus 4.7 | `claude-opus-4.7` | 1.50 US$ | 7.50 US$ | 1M | | Claude Opus 5 | `claude-opus-5` | 1.50 US$ | 7.50 US$ | 1M | | Claude Sonnet 5 | `claude-sonnet-5` | 0.60 US$ | 3 US$ | 1M | | Claude Sonnet 4.6 | `claude-sonnet-4.6` | 0.90 US$ | 4.50 US$ | 1M | | Claude Haiku 5.5 | `claude-haiku-5.5` | 0.03 US$ | 0.15 US$ | 1M | ## أشكال الأخطاء تصلك الأخطاء بشكلين، بحسب مكان وقوعها. من فحوص المفتاح والرصيد والحدود، قبل استدعاء أي نموذج: ```json { "code": "INVALID_API_KEY", "message": "Invalid API key" } ``` وأثناء تنفيذ الطلب، بصيغة العنوان الذي استدعيته ومعها `request_id`، والمعرّف نفسه في الترويسة `X-Request-ID`. على العناوين المتوافقة مع OpenAI: ```json { "error": { "type": "invalid_request_error", "code": "CONTEXT_LIMIT_EXCEEDED", "message": "This conversation exceeds the model context limit. Start a new conversation or remove older content." } } ``` على `/v1/messages` تكون الحقول نفسها داخل `error` مع `"type": "error"` في المستوى الأعلى، وفي صيغة Gemini يحمل الخطأ `code` رقميًا و`message` و`status`. أرسل `request_id` حين تتواصل معنا بشأن طلب فشل. ## الرموز أثناء تنفيذ الطلب - `INVALID_REQUEST` · **400**: تعذّر على النموذج معالجة الطلب كما أُرسل. راجع الحقول والقيم. - `CONTEXT_LIMIT_EXCEEDED` · **400**: المحادثة أطول من نافذة سياق النموذج. اختصرها. - `REQUEST_TOO_LARGE` · **413**: جسم الطلب كبير جدًا. أرسل صورًا وملفات أصغر أو أقل. - `RATE_LIMITED` · **429**: النموذج مشغول في هذه اللحظة. انتظر قليلًا ثم أعد المحاولة. - `MODEL_UNAVAILABLE` · **503**: النموذج غير متاح مؤقتًا. أعد المحاولة، أو اختر نموذجًا آخر. - `SERVICE_UNAVAILABLE` · **503**: مشكلة مؤقتة من جهتنا. أعد المحاولة بعد لحظات. - `AUTHENTICATION_FAILED` · **503**: مشكلة مؤقتة من جهتنا، لا علاقة لها بمفتاحك. أعد المحاولة بعد لحظات. - `UPSTREAM_TIMEOUT` · **504**: تأخر النموذج في الرد. أعد المحاولة، واستخدم البث مع المهام الطويلة. - `INTERNAL_ERROR` · **500**: خطأ غير متوقع. أعد المحاولة، وإذا تكرر فتواصل معنا ومعك `request_id`. رموز فحوص المفتاح والرصيد والحدود في [الأخطاء وحلولها](https://5abeer.ai/ar/docs/help/errors.md). ## متى تعيد المحاولة - الحالات `429` و`500` و`503` و`504` مؤقتة: أعد المحاولة بمهلة تتضاعف في كل مرة، وضع حدًا لعدد المحاولات. - الحالات `400` و`401` و`403` و`413` لا تزول بإعادة المحاولة: أصلح الطلب أو المفتاح أو الرصيد أولًا. - الرمز `USAGE_LIMIT_EXCEEDED` يزول حين يتجدد الحد، لا بإعادة المحاولة. --- URL: https://5abeer.ai/ar/docs/apps/claude-code # شرح Claude Code بالعربي: التثبيت والاستخدام مع خبير > ثبّت Claude Code ووجّهه إلى خبير بثلاثة إعدادات لتشغّل نماذج Claude بأقل من سعرها الرسمي بنحو 70%، أو باشتراكك عبر تطبيق 5abeer AI. آخر تحديث: 2026-11-15 لتستخدم Claude Code مع خبير، ثبّت Claude Code ثم ضع ثلاثة إعدادات في ملف `~/.claude/settings.json`: عنوان خبير الأساسي، ومفتاح API من خبير، والنموذج. بعدها شغّل الأمر `claude` داخل مشروعك، وتُدفع كل الطلبات من رصيدك في خبير. أما مع الاشتراك فيتولى تطبيق 5abeer AI هذا الإعداد بدلًا منك. ## ما هو Claude Code؟ Claude Code هو وكيل البرمجة من Anthropic الذي يعمل في الطرفية: يقرأ مشروعك، ويعدّل الملفات، وينفّذ الأوامر. وهو من التطبيقات الرسمية المدعومة في خبير، ويعمل كما يصدر تمامًا، إما بمفتاح API من خبير تدفع له من رصيدك، وإما باشتراك في خبير عبر تطبيق 5abeer AI. ## ما الذي تحصل عليه - Claude Code كما هو، بأوامره وإعداداته. - نماذج Claude المتاحة في خبير، بأقل من سعرها الرسمي بنحو 70%. - استخدامك وتكلفته في لوحة التحكم، لكل مفتاح. ## قبل أن تبدأ - الطرفية على macOS أو Linux أو Windows. - مفتاح API لنماذج Claude ([أنشئ مفتاحًا](https://5abeer.ai/ar/docs/start/keys.md#create)). - `Node.js` بالإصدار 22 أو أحدث، فقط إذا ثبّت Claude Code بالأمر `npm`. ## مع اشتراك: تطبيق 5abeer AI إذا كان لديك اشتراك في خبير يشمل Claude Code، فإن تطبيق 5abeer AI يضبطه على اشتراكك، دون مفتاح API ودون أن تفتح أي ملف. يعمل التطبيق على Mac وWindows وLinux، والتفاصيل في [ما الذي تشغّله كل باقة](https://5abeer.ai/ar/docs/subscriptions/plan-apps.md#claude-code). أما بمفتاح API فاتبع الإعداد اليدوي أدناه. ## الإعداد اليدوي ### 1. ثبّت Claude Code توصي Anthropic بأداة التثبيت الخاصة بها. اختر التبويب الخاص بنظامك: macOS / Linux: ```bash curl -fsSL https://claude.ai/install.sh | bash ``` Windows (PowerShell): ```powershell irm https://claude.ai/install.ps1 | iex ``` إذا كنت تستخدم CMD في Windows بدلًا من PowerShell، فنفّذ هذا الأمر. يبدأ موجّه الأوامر في PowerShell بالحرفين PS، ولا يبدأ بهما في CMD. ```text curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd ``` يمكنك التثبيت أيضًا بمدير حزم. النسخة المثبّتة بأداة Homebrew أو WinGet لا تتحدّث تلقائيًا، وأداة Homebrew هنا تتبع القناة المستقرة التي تتأخر عادةً نحو أسبوع عن أحدث إصدار. Homebrew: ```bash brew install --cask claude-code ``` WinGet: ```powershell winget install Anthropic.ClaudeCode ``` npm: ```bash npm install -g @anthropic-ai/claude-code ``` تحقق من التثبيت بهذا الأمر: ```bash claude --version ``` ### 2. أضف الإعداد ضع هذا الإعداد في ملف `~/.claude/settings.json`، أو صدّر متغيرات البيئة نفسها في الطرفية. استبدل `YOUR_5ABEER_API_KEY` بمفتاحك. `~/.claude/settings.json` ```json { "env": { "ANTHROPIC_BASE_URL": "https://api.5abeer.ai", "ANTHROPIC_AUTH_TOKEN": "YOUR_5ABEER_API_KEY", "ANTHROPIC_MODEL": "claude-sonnet-5.5" } } ``` ### 3. شغّله ```bash cd your-project claude ``` اكتب أي سؤال. إذا وصلك الرد فالإعداد يعمل، ويعرض الأمر `/status` عنوان Anthropic الأساسي والمتغير الذي يحمل مفتاحك. ## اختر النموذج هذه النماذج تعمل في Claude Code الآن. غيّر النموذج بمتغير البيئة `ANTHROPIC_MODEL`، أو من داخل Claude Code بالأمر `/model`. | النموذج | المعرّف | الإدخال (سعرنا) | الإخراج (سعرنا) | السياق | | --- | --- | --- | --- | --- | | Claude Sonnet 5.5 | `claude-sonnet-5.5` | 0.60 US$ | 3 US$ | 1M | | Claude Opus 5.5 | `claude-opus-5.5` | 1.20 US$ | 6 US$ | 1M | | Claude Fable 5.1 | `claude-fable-5.1` | 3 US$ | 15 US$ | — | | Claude Fable 5 | `claude-fable-5` | 3 US$ | 15 US$ | 1M | | Claude Opus 4.6 | `claude-opus-4.6` | 1.50 US$ | 7.50 US$ | 1M | | Claude Opus 5 | `claude-opus-5` | 1.50 US$ | 7.50 US$ | 1M | | Claude Sonnet 5 | `claude-sonnet-5` | 0.60 US$ | 3 US$ | 1M | | Claude Sonnet 4.6 | `claude-sonnet-4.6` | 0.90 US$ | 4.50 US$ | 1M | | Claude Haiku 5.5 | `claude-haiku-5.5` | 0.03 US$ | 0.15 US$ | 1M | | Claude Haiku 4.5 | `claude-haiku-4.5` | 0.30 US$ | 1.50 US$ | 200K | ## إذا ظهر خطأ - [`INVALID_API_KEY`](https://5abeer.ai/ar/docs/help/errors.md#INVALID_API_KEY): المفتاح غير صحيح أو منسوخ ناقصًا. - [`INSUFFICIENT_BALANCE`](https://5abeer.ai/ar/docs/help/errors.md#INSUFFICIENT_BALANCE): الرصيد لا يكفي لهذا الطلب. - [`MODEL_PLATFORM_NOT_ALLOWED`](https://5abeer.ai/ar/docs/help/errors.md#MODEL_PLATFORM_NOT_ALLOWED): المفتاح لمزوّد آخر غير Claude. - [`RATE_LIMITED`](https://5abeer.ai/ar/docs/help/errors.md#RATE_LIMITED): طلبات كثيرة في وقت قصير. كل الرموز ومعانيها في [الأخطاء وحلولها](https://5abeer.ai/ar/docs/help/errors.md). ## أسئلة شائعة ### هل أحتاج إلى حساب في Anthropic؟ لا. عندما تضع مفتاحك من خبير في `ANTHROPIC_AUTH_TOKEN` يرسله Claude Code مع كل طلب، فلا تحتاج إلى تسجيل الدخول في Anthropic. ### أنا مسجّل الدخول في Claude بالفعل، ماذا أفعل؟ لا شيء في أغلب الحالات. ما دام مفتاحك من خبير مضبوطًا، يستخدمه Claude Code بدلًا من حسابك في claude.ai، ويبقى تسجيل دخولك محفوظًا. إذا ظهر عند التشغيل تحذير من وجود مصدرين لبيانات الدخول، فنفّذ هذا الأمر داخل Claude Code لحذف تسجيل الدخول المحفوظ: ```text /logout ``` لا تعمل ميزتا Remote Control والإملاء الصوتي إلا بتسجيل الدخول في claude.ai، لذلك تتوقفان ما دام مفتاحك من خبير مضبوطًا. والترتيب الكامل الذي يختار به Claude Code وسيلة الدخول في [مفتاح API لـ Claude Code](https://5abeer.ai/ar/guides/claude-code-api-key). ### هل أحتاج إلى Node.js؟ لا تحتاج إليه مع أداة التثبيت الرسمية. أما التثبيت بالأمر `npm` فيتطلب `Node.js` بالإصدار 22 أو أحدث. ### كيف أتأكد أن Claude Code يعمل عبر خبير؟ نفّذ الأمر `/status` داخل Claude Code. يعرض تبويب Status عنوان Anthropic الأساسي، ويجب أن يكون عنوان خبير، ويعرض سطرًا يذكر المتغير الذي يحمل مفتاحك. كما يظهر كل طلب في لوحة التحكم تحت المفتاح الذي استخدمته. ### كيف تُحسب تكلفة الطلب؟ تُدفع تكلفة كل طلب من رصيدك حسب عدد التوكنات التي يستهلكها، بسعر النموذج في خبير. التفاصيل في [الأسعار والرصيد](https://5abeer.ai/ar/docs/start/pricing.md). ### ما معنى رسالة “Claude Max, Ultra, or Pro is required to connect to Claude Code”؟ تقول صفحة الأسئلة الشائعة عن Claude Code في مركز مساعدة Anthropic إن هذه الرسالة تعني أن طريقة تسجيل الدخول المختارة في شاشة إعداد Claude Code غير صحيحة، وتنصح بتشغيل الأمر `/login` من جديد واختيار الحساب الصحيح. وإذا كان اشتراكك في خبير يشمل Claude Code، فإن تطبيق 5abeer AI يضبطه على اشتراكك دون مفتاح API ودون أن تفتح أي ملف، كما في [مع اشتراك: تطبيق 5abeer AI](https://5abeer.ai/ar/docs/apps/claude-code.md#easy). ## المصادر راجعناها في 2026-11-01: - وثائق Claude Code: [Advanced setup](https://code.claude.com/docs/en/setup) - وثائق Claude Code: [Connect Claude Code to an LLM gateway](https://code.claude.com/docs/en/llm-gateway-connect) - مركز مساعدة Anthropic: [Claude Code FAQ](https://support.claude.com/en/articles/12386420-claude-code-faq)، راجعناها في 2026-11-15 --- URL: https://5abeer.ai/ar/docs/apps/codex # شرح Codex CLI بالعربي: الإعداد مع مفتاح خبير > أضف خبير مزوّدًا في ملف إعداد Codex CLI، واحفظ مفتاحك في متغير بيئة واحد، وشغّل نماذج GPT بأقل من سعرها الرسمي بنحو 70%. آخر تحديث: 2026-10-31 لتشغّل Codex CLI مع خبير، ثبّت Codex، ثم أضف خبير مزوّدًا في ملف إعداد Codex، واحفظ مفتاح API من خبير في متغير بيئة. بعدها شغّل Codex داخل مشروعك، وتُدفع الطلبات من رصيدك في خبير. أما مع الاشتراك فيتولى تطبيق 5abeer AI هذا الإعداد بدلًا منك. ## ما الذي تحصل عليه - Codex CLI كما هو، بأوامره وإعداداته. - نماذج GPT المتاحة في خبير، بأقل من سعرها الرسمي بنحو 70%. - استخدامك وتكلفته في لوحة التحكم، لكل مفتاح. ## قبل أن تبدأ - الطرفية على macOS أو Linux أو Windows. - مفتاح API لنماذج GPT ([أنشئ مفتاحًا](https://5abeer.ai/ar/docs/start/keys.md#create)). ## مع اشتراك: تطبيق 5abeer AI إذا كان لديك اشتراك في خبير يشمل Codex، فإن تطبيق 5abeer AI يضبطه على اشتراكك بدلًا منك، دون مفتاح API ودون أن تفتح أي ملف. يعمل التطبيق على Mac وWindows وLinux، والتفاصيل في [ما الذي تشغّله كل باقة](https://5abeer.ai/ar/docs/subscriptions/plan-apps.md#codex). أما بمفتاح API فاتبع الإعداد اليدوي أدناه. ## الإعداد اليدوي ### 1. ثبّت Codex CLI شغّل أمر التثبيت الرسمي حسب نظامك: macOS / Linux: ```bash curl -fsSL https://chatgpt.com/codex/install.sh | sh ``` Windows: ```powershell powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex" ``` إذا كان Node.js مثبّتًا لديك، فيمكنك التثبيت بأداة npm بدلًا من ذلك، أو بأداة Homebrew على macOS: npm: ```bash npm install -g @openai/codex ``` Homebrew: ```bash brew install --cask codex ``` ### 2. أضف الإعداد ضع هذا الإعداد في ملف `~/.codex/config.toml`. يقرأ Codex المفتاح من متغير البيئة `KHABEER_API_KEY`، فاحفظ مفتاحك فيه من التبويب الخاص بنظامك. `~/.codex/config.toml` ```toml model = "gpt-6.2-sol" model_provider = "khabeer" [model_providers.khabeer] name = "5abeer" base_url = "https://api.5abeer.ai/v1" env_key = "KHABEER_API_KEY" wire_api = "responses" ``` أوامر الطرفية أعلاه تضبط المفتاح في الطرفية الحالية فقط. لتحفظه في كل طرفية جديدة، نفّذ هذا الأمر مرة واحدة: macOS (zsh): ```bash echo 'export KHABEER_API_KEY="YOUR_5ABEER_API_KEY"' >> ~/.zshrc ``` Linux (bash): ```bash echo 'export KHABEER_API_KEY="YOUR_5ABEER_API_KEY"' >> ~/.bashrc ``` Windows: ```powershell setx KHABEER_API_KEY "YOUR_5ABEER_API_KEY" ``` بعدها افتح طرفية جديدة، فالمفتاح المحفوظ يصل فقط إلى الطرفيات التي تفتحها بعد حفظه. ### 3. شغّله ```bash cd your-project codex ``` اكتب أي طلب. إذا وصلك الرد فالإعداد يعمل. ## اختر النموذج هذه النماذج تعمل في Codex الآن. غيّر سطر `model` في ملف الإعداد، أو اختر النموذج من داخل Codex بالأمر `/model`. | النموذج | المعرّف | الإدخال (سعرنا) | الإخراج (سعرنا) | السياق | | --- | --- | --- | --- | --- | | GPT-6.2 Sol | `gpt-6.2-sol` | 0.60 US$ | 3 US$ | — | | GPT-6.2 Astra | `gpt-6.2-astra` | 2.40 US$ | 12 US$ | — | | GPT-6.1 Sol | `gpt-6.1-sol` | 0.60 US$ | 3 US$ | 922K | | GPT-6 Astra | `gpt-6-astra` | 3 US$ | 15 US$ | — | | GPT-6 Sol | `gpt-6-sol` | 0.60 US$ | 3 US$ | 922K | | GPT-6 Luna | `gpt-6-luna` | 0.03 US$ | 0.15 US$ | 922K | | GPT-5.6 Luna | `gpt-5.6-luna` | 0.06 US$ | 0.36 US$ | 400K | | GPT-5.6 Terra | `gpt-5.6-terra` | 0.60 US$ | 3.60 US$ | 400K | | GPT-5.6 Sol | `gpt-5.6-sol` | 1.20 US$ | 6 US$ | 400K | | GPT-5.5 | `gpt-5.5` | 1.50 US$ | 9 US$ | 1.05M | | GPT-5.4 Mini | `gpt-5.4-mini` | 0.23 US$ | 1.35 US$ | 400K | ## إذا ظهر خطأ - [`INVALID_API_KEY`](https://5abeer.ai/ar/docs/help/errors.md#INVALID_API_KEY): المفتاح غير صحيح، أو متغير البيئة غير مضبوط في الطرفية التي شغّلت منها Codex. - [`MODEL_PLATFORM_NOT_ALLOWED`](https://5abeer.ai/ar/docs/help/errors.md#MODEL_PLATFORM_NOT_ALLOWED): المفتاح لمزوّد آخر غير GPT. - [`INSUFFICIENT_BALANCE`](https://5abeer.ai/ar/docs/help/errors.md#INSUFFICIENT_BALANCE): الرصيد لا يكفي لهذا الطلب. - [`RATE_LIMITED`](https://5abeer.ai/ar/docs/help/errors.md#RATE_LIMITED): طلبات كثيرة في وقت قصير. كل الرموز ومعانيها في [الأخطاء وحلولها](https://5abeer.ai/ar/docs/help/errors.md). ## أسئلة شائعة ### هل أحتاج إلى حساب في ChatGPT أو OpenAI؟ لا. يقرأ المزوّد `khabeer` في ملف الإعداد مفتاحك من `KHABEER_API_KEY`، فيرسله Codex مع كل طلب ولا تحتاج إلى تسجيل الدخول في OpenAI. ### لماذا يقول Codex إن المفتاح غير موجود؟ لأن متغير البيئة غير مضبوط في الطرفية التي شغّلت منها Codex. اضبطه من جديد، أو [احفظه بشكل دائم](https://5abeer.ai/ar/docs/apps/codex.md#configure) ثم افتح طرفية جديدة، وبعدها شغّل Codex مرة أخرى. ### ما وظيفة سطر wire_api في الإعداد؟ يجعل Codex يرسل الطلبات بصيغة OpenAI Responses، وهي صيغة يدعمها خبير لنماذج GPT. لا يدعم Codex قيمة غيرها لهذا السطر، وهي القيمة الافتراضية إذا حذفته. التفاصيل في [مرجع Responses](https://5abeer.ai/ar/docs/api/responses.md). ### كيف تُحسب تكلفة الطلب؟ تُدفع تكلفة كل طلب من رصيدك حسب عدد التوكنات التي يستهلكها، بسعر النموذج في خبير. التفاصيل في [الأسعار والرصيد](https://5abeer.ai/ar/docs/start/pricing.md). ## المصادر راجعناها في 2026-11-01: - مستودع Codex CLI: [openai/codex](https://github.com/openai/codex) - وثائق Codex: [Configuration Reference](https://learn.chatgpt.com/docs/config-file/config-reference) - وثائق Microsoft: [setx](https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/setx) --- URL: https://5abeer.ai/ar/docs/apps/opencode # إعداد OpenCode مع خبير > شغّل OpenCode على باقتك في خبير: يضبطه تطبيق 5abeer AI لنماذج Claude وGPT. أو أضف خبير يدويًا بمفتاح API يُدفع من رصيدك. آخر تحديث: 2026-11-16 لتستخدم OpenCode مع خبير، ثبّت الإصدار الأول من OpenCode. يضيف تطبيق 5abeer AI خبير مزوّدًا في OpenCode نيابةً عنك. ثم شغّل `opencode` في مشروعك واختر نموذجًا من خبير. مع تطبيق 5abeer AI يعمل OpenCode على باقتك دون مفتاح ودون أن يُخصم من رصيدك، ومع الإعداد اليدوي بمفتاح API يُدفع كل طلب من رصيدك في خبير. ## ما الذي تحصل عليه - OpenCode كما هو، مع خبير مزوّدًا جاهزًا في قائمة النماذج. - نماذج Claude وGPT وGemini المتاحة في OpenCode، بأقل من سعرها الرسمي. - استخدامك وتكلفته في لوحة التحكم، لكل مفتاح. ## قبل أن تبدأ - طرفية على macOS أو Linux أو Windows. - للإعداد اليدوي فقط: مفتاح API لمزوّد النموذج الذي ستستخدمه ([أنشئ مفتاحًا](https://5abeer.ai/ar/docs/start/keys.md#create)). ## مع اشتراك: تطبيق 5abeer AI إذا كان لديك اشتراك في خبير يشمل OpenCode، فإن تطبيق 5abeer AI يضبطه على اشتراكك دون مفتاح API ودون أن تفتح أي ملف. يعمل التطبيق على Mac وWindows وLinux، والتفاصيل في [ما الذي تشغّله كل باقة](https://5abeer.ai/ar/docs/subscriptions/plan-apps.md#open-source). أما بمفتاح API فاتبع الإعداد اليدوي أدناه. ## الإعداد اليدوي > هذا الإعداد للإصدار الأول من OpenCode. الأمر العام `brew install opencode` يثبّت الآن الإصدار الثاني، وهو يقرأ ملف الإعداد بصيغة مختلفة. والإصداران يعملان بالأمر نفسه `opencode`، فقد يحلّ تثبيت أحدهما محل الآخر. ثبّته بأحد الأوامر أدناه. ### 1. ثبّت OpenCode npm: ```bash npm install -g opencode-ai ``` macOS / Linux: ```bash curl -fsSL https://opencode.ai/install | bash ``` Homebrew: ```bash brew install anomalyco/tap/opencode ``` تأكد من التثبيت بالأمر `opencode --version`. ### 2. أضف الإعداد على باقتك، يضبط تطبيق 5abeer AI هذا الإعداد لك تلقائيًا؛ انظر [5abeer AI](https://5abeer.ai/ar/docs/apps/5abeer-ai.md). أما يدويًا فضع الإعداد نفسه في ملف `~/.config/opencode/opencode.json` مع الإبقاء على إعداداتك الأخرى إن كان الملف موجودًا، وضع مفتاح API مكان `YOUR_5ABEER_API_KEY`. وشرح كل قيمة في [العناوين الأساسية](https://5abeer.ai/ar/docs/start/base-urls.md#urls) و[أدوات أخرى](https://5abeer.ai/ar/docs/start/base-urls.md#other-tools). `~/.config/opencode/opencode.json` ```json { "$schema": "https://opencode.ai/config.json", "provider": { "khabeer": { "npm": "@ai-sdk/openai-compatible", "name": "5abeer AI", "options": { "baseURL": "https://api.5abeer.ai/v1", "apiKey": "YOUR_5ABEER_API_KEY" }, "models": { "gpt-6.1-sol": { "name": "GPT 6.1 Sol" }, "claude-opus-5-5": { "name": "Claude Opus 5.5" }, "claude-fable-5-1": { "name": "Claude Fable 5.1" } } } }, "model": "khabeer/gpt-6.1-sol" } ``` النموذج الافتراضي هنا من GPT، وكل مفتاح يعمل مع نماذج المزوّد الذي أنشأته له فقط. فإن كان مفتاحك لنماذج Claude فاختر نموذج Claude من هذا الإعداد بالأمر `/models`. ### 3. شغّله ```bash cd your-project opencode ``` اكتب أي طلب. إذا وصلك الرد فالإعداد يعمل. ## اختر النموذج هذه النماذج تعمل في OpenCode الآن. اختر أحدها من داخل OpenCode بالأمر `/models`؛ ولاستخدام نموذج غير موجود في الإعداد أعلاه أضف معرّفه إلى قائمة نماذج المزوّد. ومع مفتاح API يعمل كل مفتاح مع نماذج المزوّد الذي أنشأته له فقط. | النموذج | المعرّف | الإدخال (سعرنا) | الإخراج (سعرنا) | السياق | | --- | --- | --- | --- | --- | | Claude Sonnet 5.5 | `claude-sonnet-5.5` | 0.60 US$ | 3 US$ | 1M | | Claude Opus 5.5 | `claude-opus-5.5` | 1.20 US$ | 6 US$ | 1M | | GPT-6.2 Sol | `gpt-6.2-sol` | 0.60 US$ | 3 US$ | — | | Gemini 4 Argon | `gemini-4-argon` | 0.60 US$ | 3 US$ | — | | Claude Fable 5.1 | `claude-fable-5.1` | 3 US$ | 15 US$ | — | | Claude Fable 5 | `claude-fable-5` | 3 US$ | 15 US$ | 1M | | Claude Opus 4.6 | `claude-opus-4.6` | 1.50 US$ | 7.50 US$ | 1M | | Claude Opus 4.7 | `claude-opus-4.7` | 1.50 US$ | 7.50 US$ | 1M | | Claude Opus 5 | `claude-opus-5` | 1.50 US$ | 7.50 US$ | 1M | | Claude Sonnet 5 | `claude-sonnet-5` | 0.60 US$ | 3 US$ | 1M | | Claude Sonnet 4.6 | `claude-sonnet-4.6` | 0.90 US$ | 4.50 US$ | 1M | | Claude Haiku 5.5 | `claude-haiku-5.5` | 0.03 US$ | 0.15 US$ | 1M | | Claude Haiku 4.5 | `claude-haiku-4.5` | 0.30 US$ | 1.50 US$ | 200K | | GPT-6.2 Astra | `gpt-6.2-astra` | 2.40 US$ | 12 US$ | — | | GPT-6.1 Sol | `gpt-6.1-sol` | 0.60 US$ | 3 US$ | 922K | | GPT-6 Astra | `gpt-6-astra` | 3 US$ | 15 US$ | — | | GPT-6 Sol | `gpt-6-sol` | 0.60 US$ | 3 US$ | 922K | | GPT-6 Luna | `gpt-6-luna` | 0.03 US$ | 0.15 US$ | 922K | | GPT-5.6 Luna | `gpt-5.6-luna` | 0.06 US$ | 0.36 US$ | 400K | | GPT-5.6 Terra | `gpt-5.6-terra` | 0.60 US$ | 3.60 US$ | 400K | | GPT-5.6 Sol | `gpt-5.6-sol` | 1.20 US$ | 6 US$ | 400K | | GPT-5.5 | `gpt-5.5` | 1.50 US$ | 9 US$ | 1.05M | | GPT-5.4 | `gpt-5.4` | 0.75 US$ | 4.50 US$ | 1.05M | | GPT-5.4 Mini | `gpt-5.4-mini` | 0.23 US$ | 1.35 US$ | 400K | | GPT-5.2 | `gpt-5.2` | 0.53 US$ | 4.20 US$ | 272K | | Gemini 2.5 Pro | `gemini-2.5-pro` | 0.38 US$ | 3 US$ | 1M | | Gemini 3.8 Flash | `gemini-3.8-flash` | 0.23 US$ | 1.13 US$ | — | | Gemini 3 Flash | `gemini-3-flash` | 0.15 US$ | 0.90 US$ | 1M | | Gemini 3.1 Pro | `gemini-3.1-pro` | 0.60 US$ | 3.60 US$ | 1M | ## إذا ظهر خطأ - [`INVALID_API_KEY`](https://5abeer.ai/ar/docs/help/errors.md#INVALID_API_KEY): المفتاح غير صحيح أو منسوخ ناقصًا. - [`MODEL_PLATFORM_NOT_ALLOWED`](https://5abeer.ai/ar/docs/help/errors.md#MODEL_PLATFORM_NOT_ALLOWED): اخترت نموذجًا من مزوّد غير مزوّد المفتاح. - [`INSUFFICIENT_BALANCE`](https://5abeer.ai/ar/docs/help/errors.md#INSUFFICIENT_BALANCE): الرصيد لا يكفي لهذا الطلب. كل الرموز ومعانيها في [الأخطاء وحلولها](https://5abeer.ai/ar/docs/help/errors.md). ## أسئلة شائعة ### أي إصدار من OpenCode يشرحه هذا الدليل؟ الإصدار الأول، المثبّت من npm باسم `opencode-ai`، أو بسكربت التثبيت من opencode.ai، أو من مستودع Homebrew `anomalyco/tap`. أما الإصدار الثاني فيقرأ إعداده بصيغة مختلفة، فلا ينطبق عليه هذا الدليل. ### لماذا لا تظهر نماذج خبير؟ يعرض OpenCode النماذج التي أضفتها إلى مزوّد خبير فقط. تأكد أن معرّف كل نموذج يطابق القائمة أعلاه تمامًا، ثم افتح `/models` من جديد. ### هل أستخدم نماذج Claude وGPT معًا؟ نعم. على باقتك يشغّلهما تطبيق 5abeer AI دون مفتاح. أما بمفاتيح API فتحتاج إلى مفتاح لكل مزوّد، لأن كل مفتاح يعمل مع نماذج المزوّد الذي أنشأته له فقط. ### كيف يُحسب الطلب؟ يُدفع كل طلب من رصيدك حسب التوكنات التي يستخدمها، بسعر النموذج في خبير. التفاصيل في [الأسعار والرصيد](https://5abeer.ai/ar/docs/start/pricing.md). --- URL: https://5abeer.ai/ar/docs/apps/openclaw # إعداد OpenClaw مع خبير > شغّل OpenClaw على باقتك في خبير: يضبطه تطبيق 5abeer AI لنماذج Claude وGPT. أو أضف خبير يدويًا بمفتاح API يُدفع من رصيدك. آخر تحديث: 2026-11-16 لتشغّل OpenClaw على خبير، ثبّت OpenClaw. يضيف تطبيق 5abeer AI خبير مزوّدًا في OpenClaw نيابةً عنك. ثم تحقق من ملف الإعداد بالأمر `openclaw config validate`، وشغّل `openclaw chat` لتحادث وكيله في الطرفية. مع تطبيق 5abeer AI يعمل OpenClaw على باقتك دون مفتاح ودون أن يُخصم من رصيدك، ومع الإعداد اليدوي بمفتاح API يُدفع كل طلب من رصيدك في خبير. ## ما الذي تحصل عليه - OpenClaw كما هو، مع خبير مزوّدًا جاهزًا للنماذج. - نماذج Claude وGPT وGemini المتاحة في OpenClaw، بأقل من سعرها الرسمي. - استخدامك وتكلفته في لوحة التحكم، لكل مفتاح. ## قبل أن تبدأ - طرفية على macOS أو Linux أو Windows. - `Node.js` بالإصدار 24.16 أو أحدث من الفرع 24، أو 26.1 أو أحدث، إذا ثبّت OpenClaw بالأمر `npm` فقط، ويوصي OpenClaw بشدة بالإصدار 24.22.1 أو 26.12.1 أو أحدث لأسباب أمنية. سكربت التثبيت يجهّز Node بنفسه. - للإعداد اليدوي فقط: مفتاح API لمزوّد النموذج الذي ستستخدمه ([أنشئ مفتاحًا](https://5abeer.ai/ar/docs/start/keys.md#create)). ## مع اشتراك: تطبيق 5abeer AI إذا كان لديك اشتراك في خبير يشمل OpenClaw، فإن تطبيق 5abeer AI يضبطه على اشتراكك دون مفتاح API ودون أن تفتح أي ملف. يعمل التطبيق على Mac وWindows وLinux، والتفاصيل في [ما الذي تشغّله كل باقة](https://5abeer.ai/ar/docs/subscriptions/plan-apps.md#open-source). أما بمفتاح API فاتبع الإعداد اليدوي أدناه. ## الإعداد اليدوي ### 1. ثبّت OpenClaw هذه الأوامر تتخطى معالج الإعداد في OpenClaw، لأن الخطوة التالية تضيف خبير مزوّدًا. macOS / Linux: ```bash curl -fsSL https://openclaw.ai/install.sh | bash -s -- --no-onboard ``` Windows: ```powershell & ([scriptblock]::Create((iwr -useb https://openclaw.ai/install.ps1))) -NoOnboard ``` npm: ```bash npm install -g openclaw@latest --allow-scripts=openclaw ``` إذا كان إصدار npm لديك 11.15 أو أقدم، فشغّل أمر npm دون `--allow-scripts=openclaw`. ### 2. أضف الإعداد على باقتك، يضبط تطبيق 5abeer AI هذا الإعداد لك تلقائيًا؛ انظر [5abeer AI](https://5abeer.ai/ar/docs/apps/5abeer-ai.md). أما يدويًا فأضف الإعداد نفسه إلى ملف `~/.openclaw/openclaw.json` مع الإبقاء على إعداداتك الأخرى إن كان الملف موجودًا، وضع مفتاح API مكان `YOUR_5ABEER_API_KEY`. وشرح كل قيمة في [العناوين الأساسية](https://5abeer.ai/ar/docs/start/base-urls.md#urls) و[أدوات أخرى](https://5abeer.ai/ar/docs/start/base-urls.md#other-tools). `~/.openclaw/openclaw.json` ```json { "models": { "mode": "merge", "providers": { "khabeer": { "baseUrl": "https://api.5abeer.ai/v1", "apiKey": "YOUR_5ABEER_API_KEY", "api": "openai-responses", "models": [ { "id": "gpt-6.1-sol", "name": "GPT 6.1 Sol" }, { "id": "claude-opus-5-5", "name": "Claude Opus 5.5" }, { "id": "claude-fable-5-1", "name": "Claude Fable 5.1" } ] } } }, "agents": { "defaults": { "model": { "primary": "khabeer/gpt-6.1-sol" } } } } ``` النموذج الافتراضي في `primary` من GPT، وكل مفتاح يعمل مع نماذج المزوّد الذي أنشأته له فقط. فإن كان مفتاحك لنماذج Claude فضع في `primary` بعد `khabeer/` معرّف نموذج Claude من هذا الإعداد. ### 3. تحقق من الملف ```bash openclaw config validate ``` ### 4. شغّله ```bash openclaw chat ``` اكتب أي طلب. إذا وصلك الرد فالإعداد يعمل. ## اختر النموذج هذه النماذج تعمل في OpenClaw الآن. ومع مفتاح API يعمل كل مفتاح مع نماذج المزوّد الذي أنشأته له فقط. | النموذج | المعرّف | الإدخال (سعرنا) | الإخراج (سعرنا) | السياق | | --- | --- | --- | --- | --- | | Claude Sonnet 5.5 | `claude-sonnet-5.5` | 0.60 US$ | 3 US$ | 1M | | Claude Opus 5.5 | `claude-opus-5.5` | 1.20 US$ | 6 US$ | 1M | | GPT-6.2 Sol | `gpt-6.2-sol` | 0.60 US$ | 3 US$ | — | | Gemini 4 Argon | `gemini-4-argon` | 0.60 US$ | 3 US$ | — | | Claude Fable 5.1 | `claude-fable-5.1` | 3 US$ | 15 US$ | — | | Claude Fable 5 | `claude-fable-5` | 3 US$ | 15 US$ | 1M | | Claude Opus 4.6 | `claude-opus-4.6` | 1.50 US$ | 7.50 US$ | 1M | | Claude Opus 4.7 | `claude-opus-4.7` | 1.50 US$ | 7.50 US$ | 1M | | Claude Opus 5 | `claude-opus-5` | 1.50 US$ | 7.50 US$ | 1M | | Claude Sonnet 5 | `claude-sonnet-5` | 0.60 US$ | 3 US$ | 1M | | Claude Sonnet 4.6 | `claude-sonnet-4.6` | 0.90 US$ | 4.50 US$ | 1M | | Claude Haiku 5.5 | `claude-haiku-5.5` | 0.03 US$ | 0.15 US$ | 1M | | Claude Haiku 4.5 | `claude-haiku-4.5` | 0.30 US$ | 1.50 US$ | 200K | | GPT-6.2 Astra | `gpt-6.2-astra` | 2.40 US$ | 12 US$ | — | | GPT-6.1 Sol | `gpt-6.1-sol` | 0.60 US$ | 3 US$ | 922K | | GPT-6 Astra | `gpt-6-astra` | 3 US$ | 15 US$ | — | | GPT-6 Sol | `gpt-6-sol` | 0.60 US$ | 3 US$ | 922K | | GPT-6 Luna | `gpt-6-luna` | 0.03 US$ | 0.15 US$ | 922K | | GPT-5.6 Luna | `gpt-5.6-luna` | 0.06 US$ | 0.36 US$ | 400K | | GPT-5.6 Terra | `gpt-5.6-terra` | 0.60 US$ | 3.60 US$ | 400K | | GPT-5.6 Sol | `gpt-5.6-sol` | 1.20 US$ | 6 US$ | 400K | | GPT-5.5 | `gpt-5.5` | 1.50 US$ | 9 US$ | 1.05M | | GPT-5.4 | `gpt-5.4` | 0.75 US$ | 4.50 US$ | 1.05M | | GPT-5.4 Mini | `gpt-5.4-mini` | 0.23 US$ | 1.35 US$ | 400K | | GPT-5.2 | `gpt-5.2` | 0.53 US$ | 4.20 US$ | 272K | | Gemini 2.5 Pro | `gemini-2.5-pro` | 0.38 US$ | 3 US$ | 1M | | Gemini 3.8 Flash | `gemini-3.8-flash` | 0.23 US$ | 1.13 US$ | — | | Gemini 3 Flash | `gemini-3-flash` | 0.15 US$ | 0.90 US$ | 1M | | Gemini 3.1 Pro | `gemini-3.1-pro` | 0.60 US$ | 3.60 US$ | 1M | ## إذا ظهر خطأ - [`INVALID_API_KEY`](https://5abeer.ai/ar/docs/help/errors.md#INVALID_API_KEY): المفتاح في الملف غير صحيح أو منسوخ ناقصًا. - [`MODEL_PLATFORM_NOT_ALLOWED`](https://5abeer.ai/ar/docs/help/errors.md#MODEL_PLATFORM_NOT_ALLOWED): النموذج من مزوّد غير مزوّد المفتاح. - [`INSUFFICIENT_BALANCE`](https://5abeer.ai/ar/docs/help/errors.md#INSUFFICIENT_BALANCE): الرصيد لا يكفي لهذا الطلب. كل الرموز ومعانيها في [الأخطاء وحلولها](https://5abeer.ai/ar/docs/help/errors.md). ## أسئلة شائعة ### لماذا نتخطى معالج الإعداد؟ يطلب منك المعالج اختيار مزوّد للنماذج وتسجيل الدخول إليه. إضافة خبير مزوّدًا تغني عن هذه الخطوة، فلا تحتاج إلى حساب لدى مزوّد آخر. ### ماذا أفعل إذا أظهر `openclaw config validate` خطأً؟ غالبًا يوجد خطأ في كتابة الملف، أو وُضع مقطع داخل مقطع آخر. صحّح الملف واحفظه، ثم شغّل الأمر من جديد. ### أين يُحفظ مفتاحي؟ مع مفتاح API يُحفظ في ملف `~/.openclaw/openclaw.json` على جهازك، نصًا غير مشفّر. لا تشارك الملف، واستبدل المفتاح فيه إذا أنشأت مفتاحًا جديدًا. ### كيف تُحسب تكلفة الطلب؟ تُدفع تكلفة كل طلب من رصيدك حسب عدد التوكنات التي يستهلكها، بسعر النموذج في خبير. التفاصيل في [الأسعار والرصيد](https://5abeer.ai/ar/docs/start/pricing.md). --- URL: https://5abeer.ai/ar/docs/apps/hermes # إعداد Hermes Agent مع خبير > شغّل Hermes Agent على باقتك في خبير: يضبطه تطبيق 5abeer AI لنماذج Claude وGPT. أو أضف خبير يدويًا بمفتاح API يُدفع من رصيدك. آخر تحديث: 2026-11-16 لتشغّل Hermes Agent على خبير، ثبّت Hermes. يضيف تطبيق 5abeer AI خبير مزوّدًا في Hermes نيابةً عنك. بعدها شغّل `hermes` في الطرفية واكتب أي طلب. مع تطبيق 5abeer AI يعمل Hermes على باقتك دون مفتاح ودون أن يُخصم من رصيدك، ومع الإعداد اليدوي بمفتاح API يُدفع كل طلب من رصيدك في خبير. ## ما الذي تحصل عليه - Hermes كما هو، مع خبير مزوّدًا مخصّصًا جاهزًا. - نماذج Claude وGPT وGemini المتاحة في Hermes، بأقل من سعرها الرسمي. - استخدامك وتكلفته في لوحة التحكم، لكل مفتاح. ## قبل أن تبدأ - طرفية على macOS أو Linux أو Windows. - للإعداد اليدوي فقط: مفتاح API لمزوّد النموذج الذي ستستخدمه ([أنشئ مفتاحًا](https://5abeer.ai/ar/docs/start/keys.md#create)). ## مع اشتراك: تطبيق 5abeer AI إذا كان لديك اشتراك في خبير يشمل Hermes، فإن تطبيق 5abeer AI يضبطه على اشتراكك دون مفتاح API ودون أن تفتح أي ملف. يعمل التطبيق على Mac وWindows وLinux، والتفاصيل في [ما الذي تشغّله كل باقة](https://5abeer.ai/ar/docs/subscriptions/plan-apps.md#open-source). أما بمفتاح API فاتبع الإعداد اليدوي أدناه. ## الإعداد اليدوي ### 1. ثبّت Hermes macOS / Linux: ```bash curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash ``` Windows: ```powershell iex (irm https://hermes-agent.nousresearch.com/install.ps1) ``` يعمل الأمر الأول أيضًا داخل WSL2 على Windows. ### 2. أضف الإعداد على باقتك، يضبط تطبيق 5abeer AI هذا الإعداد لك تلقائيًا؛ انظر [5abeer AI](https://5abeer.ai/ar/docs/apps/5abeer-ai.md). أما يدويًا فأضف الإعداد نفسه إلى ملف `config.yaml` في مجلد Hermes (`~/.hermes`، أو `%LOCALAPPDATA%\hermes` إذا ثبّت Hermes على Windows دون WSL2) مع الإبقاء على إعداداتك الأخرى، وضع مفتاح API مكان `YOUR_5ABEER_API_KEY`. وشرح كل قيمة في [العناوين الأساسية](https://5abeer.ai/ar/docs/start/base-urls.md#urls) و[أدوات أخرى](https://5abeer.ai/ar/docs/start/base-urls.md#other-tools). `~/.hermes/config.yaml` ```yaml custom_providers: - base_url: https://api.5abeer.ai/v1 api_key: YOUR_5ABEER_API_KEY model: gpt-6.1-sol models: gpt-6.1-sol: name: GPT 6.1 Sol claude-opus-5-5: name: Claude Opus 5.5 claude-fable-5-1: name: Claude Fable 5.1 name: khabeer model: default: gpt-6.1-sol provider: khabeer ``` النموذج الافتراضي هنا من GPT، وكل مفتاح يعمل مع نماذج المزوّد الذي أنشأته له فقط. فإن كان مفتاحك لنماذج Claude فضع معرّف نموذج Claude من هذا الإعداد مكان معرّف GPT في `model` و`default`. ### 3. شغّله ```bash hermes ``` اكتب أي طلب. إذا وصلك الرد فالإعداد يعمل. ولواجهة الشاشة الكاملة الأحدث شغّل `hermes --tui`. ## اختر النموذج هذه النماذج تعمل في Hermes الآن. بدّل بينها من داخل Hermes بالأمر `/model`. ومع مفتاح API يعمل كل مفتاح مع نماذج المزوّد الذي أنشأته له فقط. | النموذج | المعرّف | الإدخال (سعرنا) | الإخراج (سعرنا) | السياق | | --- | --- | --- | --- | --- | | Claude Sonnet 5.5 | `claude-sonnet-5.5` | 0.60 US$ | 3 US$ | 1M | | Claude Opus 5.5 | `claude-opus-5.5` | 1.20 US$ | 6 US$ | 1M | | GPT-6.2 Sol | `gpt-6.2-sol` | 0.60 US$ | 3 US$ | — | | Gemini 4 Argon | `gemini-4-argon` | 0.60 US$ | 3 US$ | — | | Claude Fable 5.1 | `claude-fable-5.1` | 3 US$ | 15 US$ | — | | Claude Fable 5 | `claude-fable-5` | 3 US$ | 15 US$ | 1M | | Claude Opus 4.6 | `claude-opus-4.6` | 1.50 US$ | 7.50 US$ | 1M | | Claude Opus 4.7 | `claude-opus-4.7` | 1.50 US$ | 7.50 US$ | 1M | | Claude Opus 5 | `claude-opus-5` | 1.50 US$ | 7.50 US$ | 1M | | Claude Sonnet 5 | `claude-sonnet-5` | 0.60 US$ | 3 US$ | 1M | | Claude Sonnet 4.6 | `claude-sonnet-4.6` | 0.90 US$ | 4.50 US$ | 1M | | Claude Haiku 5.5 | `claude-haiku-5.5` | 0.03 US$ | 0.15 US$ | 1M | | Claude Haiku 4.5 | `claude-haiku-4.5` | 0.30 US$ | 1.50 US$ | 200K | | GPT-6.2 Astra | `gpt-6.2-astra` | 2.40 US$ | 12 US$ | — | | GPT-6.1 Sol | `gpt-6.1-sol` | 0.60 US$ | 3 US$ | 922K | | GPT-6 Astra | `gpt-6-astra` | 3 US$ | 15 US$ | — | | GPT-6 Sol | `gpt-6-sol` | 0.60 US$ | 3 US$ | 922K | | GPT-6 Luna | `gpt-6-luna` | 0.03 US$ | 0.15 US$ | 922K | | GPT-5.6 Luna | `gpt-5.6-luna` | 0.06 US$ | 0.36 US$ | 400K | | GPT-5.6 Terra | `gpt-5.6-terra` | 0.60 US$ | 3.60 US$ | 400K | | GPT-5.6 Sol | `gpt-5.6-sol` | 1.20 US$ | 6 US$ | 400K | | GPT-5.5 | `gpt-5.5` | 1.50 US$ | 9 US$ | 1.05M | | GPT-5.4 | `gpt-5.4` | 0.75 US$ | 4.50 US$ | 1.05M | | GPT-5.4 Mini | `gpt-5.4-mini` | 0.23 US$ | 1.35 US$ | 400K | | GPT-5.2 | `gpt-5.2` | 0.53 US$ | 4.20 US$ | 272K | | Gemini 2.5 Pro | `gemini-2.5-pro` | 0.38 US$ | 3 US$ | 1M | | Gemini 3.8 Flash | `gemini-3.8-flash` | 0.23 US$ | 1.13 US$ | — | | Gemini 3 Flash | `gemini-3-flash` | 0.15 US$ | 0.90 US$ | 1M | | Gemini 3.1 Pro | `gemini-3.1-pro` | 0.60 US$ | 3.60 US$ | 1M | ## إذا ظهر خطأ - [`INVALID_API_KEY`](https://5abeer.ai/ar/docs/help/errors.md#INVALID_API_KEY): المفتاح في الملف غير صحيح أو منسوخ ناقصًا. - [`MODEL_PLATFORM_NOT_ALLOWED`](https://5abeer.ai/ar/docs/help/errors.md#MODEL_PLATFORM_NOT_ALLOWED): النموذج من مزوّد غير مزوّد المفتاح. - [`INSUFFICIENT_BALANCE`](https://5abeer.ai/ar/docs/help/errors.md#INSUFFICIENT_BALANCE): الرصيد لا يكفي لهذا الطلب. كل الرموز ومعانيها في [الأخطاء وحلولها](https://5abeer.ai/ar/docs/help/errors.md). ## أسئلة شائعة ### غيّر Hermes المقطع `custom_providers` في ملفي، فهل في ذلك مشكلة؟ لا. يقرأ Hermes القائمة `custom_providers`، وقد ينقلها الأمر `hermes update` إلى المقطع الأحدث `providers`. ويستمر إعداد خبير في العمل بعد النقل. ### هل أحتاج إلى حساب في Nous Portal أو OpenRouter؟ لا. عندما يكون خبير هو المزوّد الافتراضي، يرسل Hermes طلباتك إلى خبير، على باقتك أو بمفتاحك من خبير. ### أين يُحفظ مفتاحي؟ مع مفتاح API يُحفظ في ملف `config.yaml` داخل مجلد Hermes على جهازك، نصًا غير مشفّر. المجلد هو `~/.hermes`، أو `%LOCALAPPDATA%\hermes` إذا ثبّت Hermes على Windows دون WSL2. لا تشارك الملف، واستبدل المفتاح فيه إذا أنشأت مفتاحًا جديدًا. ### كيف تُحسب تكلفة الطلب؟ تُدفع تكلفة كل طلب من رصيدك حسب عدد التوكنات التي يستهلكها، بسعر النموذج في خبير. التفاصيل في [الأسعار والرصيد](https://5abeer.ai/ar/docs/start/pricing.md). --- URL: https://5abeer.ai/ar/docs/apps/gemini-cli # شرح Gemini CLI بالعربي: الإعداد مع مفتاح خبير > ثبّت Gemini CLI، وضع عنوان خبير الأساسي ومفتاحك ونموذجًا في ملف .env الخاص به، واختر الدخول بمفتاح API، وشغّله على نماذج Gemini من رصيدك. آخر تحديث: 2026-11-16 لتستخدم Gemini CLI مع خبير، ثبّت Gemini CLI، ثم ضع ثلاثة متغيرات في ملف `~/.gemini/.env`: عنوان خبير الأساسي، ومفتاح API من خبير، ونموذجًا. اختر الدخول بمفتاح API، وشغّل `gemini` في مشروعك واكتب أي طلب، فيُدفع كل طلب من رصيدك في خبير. ومع الاشتراك تستخدم Gemini داخل Google Antigravity عبر تطبيق 5abeer AI. ## ما الذي تحصل عليه - Gemini CLI كما هو، بأوامره وإعداداته. - نماذج Gemini التي تدعم صيغة Gemini في خبير، بأقل من سعرها الرسمي. - استخدامك وتكلفته في لوحة التحكم، لكل مفتاح. ## قبل أن تبدأ - طرفية على macOS أو Linux أو Windows. - `Node.js` بالإصدار 20 أو أحدث، إذا ثبّت Gemini CLI بالأمر `npm`. - مفتاح API لنماذج Gemini ([أنشئ مفتاحًا](https://5abeer.ai/ar/docs/start/keys.md#create)). ## مع اشتراك أو بمفتاح API يعمل Gemini CLI بمفتاح API من خبير، وتُدفع تكلفته من رصيدك. أما مع الاشتراك فاستخدم نماذج Gemini داخل [Google Antigravity](https://5abeer.ai/ar/apps/antigravity) عبر تطبيق 5abeer AI على Mac أو Windows، والخطوات في [كيف يعمل الاشتراك](https://5abeer.ai/ar/docs/subscriptions/how-it-works.md#start). وبمفتاح API اتبع الإعداد اليدوي أدناه. ## الإعداد اليدوي ### 1. ثبّت Gemini CLI npm: ```bash npm install -g @google/gemini-cli ``` Homebrew: ```bash brew install gemini-cli ``` ### 2. أضف الإعداد يقرأ Gemini CLI ثلاثة متغيرات من ملف `~/.gemini/.env`: المتغير `GOOGLE_GEMINI_BASE_URL` للعنوان الأساسي، و`GEMINI_API_KEY` لمفتاحك، و`GEMINI_MODEL` للنموذج. ضع فيه هذه الأسطر، مع مفتاح API مكان `YOUR_5ABEER_API_KEY`. ولا يضبط تطبيق 5abeer AI أداة Gemini CLI، فتضيف هذه الأسطر بنفسك. `~/.gemini/.env` ```bash GEMINI_API_KEY=YOUR_5ABEER_API_KEY GEMINI_MODEL=gemini-4-argon GOOGLE_GEMINI_BASE_URL=https://api.5abeer.ai ``` العنوان الأساسي هو عنوان Gemini من [العناوين الأساسية](https://5abeer.ai/ar/docs/start/base-urls.md#urls) دون `/v1beta` في آخره، لأن Gemini CLI يضيفه بنفسه. ولاستخدام نموذج آخر ضع في `GEMINI_MODEL` معرّف نموذج يدعم صيغة Gemini. إذا كان في مجلد مشروعك ملف `.env` خاص به، فسيقرأ Gemini CLI ذلك الملف بدلًا من `~/.gemini/.env`؛ وفي هذه الحالة ضع الأسطر الثلاثة في ملف `.gemini/.env` داخل المشروع. ### 3. اختر الدخول بمفتاح API اجعل طريقة الدخول مفتاح API في ملف `~/.gemini/settings.json`، أو اختر «Use Gemini API Key» عندما يسألك Gemini CLI في أول تشغيل: ```json { "security": { "auth": { "selectedType": "gemini-api-key" } } } ``` ### 4. شغّله ```bash cd your-project gemini ``` عند أول تشغيل في مجلد جديد قد يسألك Gemini CLI إن كنت تثق به؛ وافق ليقرأ ملف الإعداد. ثم اكتب أي طلب، فإذا وصلك الرد فالإعداد يعمل. ## اختر النموذج يعمل في Gemini CLI كل نموذج يدعم صيغة Gemini في خبير. تعرض صفحة كل نموذج في [قائمة النماذج](https://5abeer.ai/ar/models) الصيغ التي يدعمها؛ ضع معرّف النموذج في المتغير `GEMINI_MODEL`. وتنبّه Google إلى أن Gemini CLI غير مُحسَّن لنموذج [`gemini-4-argon`](https://5abeer.ai/ar/models/gemini-4-argon)، وتوصي باستخدام Google Antigravity معه. ## إذا ظهر خطأ - [`INVALID_API_KEY`](https://5abeer.ai/ar/docs/help/errors.md#INVALID_API_KEY): المفتاح غير صحيح أو منسوخ ناقصًا. - [`MODEL_PLATFORM_NOT_ALLOWED`](https://5abeer.ai/ar/docs/help/errors.md#MODEL_PLATFORM_NOT_ALLOWED): المفتاح لمزوّد آخر غير Gemini. - [`INSUFFICIENT_BALANCE`](https://5abeer.ai/ar/docs/help/errors.md#INSUFFICIENT_BALANCE): الرصيد لا يكفي لهذا الطلب. كل الرموز ومعانيها في [الأخطاء وحلولها](https://5abeer.ai/ar/docs/help/errors.md). ## أسئلة شائعة ### هل أحتاج إلى حساب Google؟ لا. عند الدخول بمفتاح API يرسل Gemini CLI مفتاحك من خبير المحفوظ في `GEMINI_API_KEY` إلى عنوان خبير الأساسي، فلا تسجّل الدخول بحساب Google. ### لماذا ما زال Gemini CLI يطلب تسجيل الدخول؟ لأن طريقة الدخول لم تُضبط على مفتاح API بعد. أضف مقطع `settings.json` أعلاه، أو اختر «Use Gemini API Key» عندما يسألك، ثم شغّل `gemini` من جديد. ### هل أستخدم نماذج Claude أو GPT في Gemini CLI؟ لا. يتعامل Gemini CLI بصيغة Gemini فقط، فيشغّل النماذج التي تدعم هذه الصيغة في خبير، بمفتاح لنماذج Gemini. ### كيف تُحسب تكلفة الطلب؟ تُدفع تكلفة كل طلب من رصيدك حسب عدد التوكنات التي يستهلكها، بسعر النموذج في خبير. التفاصيل في [الأسعار والرصيد](https://5abeer.ai/ar/docs/start/pricing.md). --- URL: https://5abeer.ai/ar/docs/apps/5abeer-ai # تطبيق 5abeer AI: التنزيل والإعداد خطوة بخطوة > تطبيق سطح المكتب من خبير على Mac وWindows وLinux: سجّل الدخول بحسابك، وفعّل اشتراكك لكل تطبيق رسمي دون مفتاح API. آخر تحديث: 2026-11-15 5abeer AI هو تطبيق سطح المكتب من خبير على Mac وWindows وLinux. نزّله من صفحة 5abeer AI في لوحة التحكم، وسجّل الدخول بالبريد الإلكتروني وكلمة المرور الخاصين بحسابك في خبير، ثم فعّل التطبيقات الرسمية التي تستخدمها. يضبط كل تطبيق منها على اشتراكك، دون نسخ مفتاح API أو تعديل ملف إعداد. ## ما الذي يفعله - يكتشف الأدوات المدعومة المثبّتة على جهازك. - يضبط كل أداة تختارها لتعمل عبر خبير. - يتولى المفاتيح والعناوين بنفسه، فلا تراها ولا تحتاج إلى إدخالها. ## ابدأ ### 1. نزّل التطبيق بعد تسجيل الدخول إلى خبير، افتح صفحة **5abeer AI** في لوحة التحكم، ونزّل الإصدار المناسب لجهازك. ثم ثبّته كأي برنامج آخر. ### 2. سجّل الدخول افتح التطبيق وسجّل الدخول بالبريد الإلكتروني وكلمة المرور لحساب خبير نفسه. ### 3. اختر أدواتك فعّل الأدوات التي تريد تشغيلها عبر خبير من داخل التطبيق. يعمل التطبيق بعد تفعيل اشتراكك، والتفاصيل في [كيف يعمل الاشتراك](https://5abeer.ai/ar/docs/subscriptions/how-it-works.md). ## إذا منع macOS فتح التطبيق قد يمنع macOS فتح التطبيق في المرة الأولى. جرّب إحدى الطريقتين: - **من الإعدادات:** انقل التطبيق إلى مجلد Applications وافتحه مرة واحدة، ثم افتح System Settings ثم Privacy & Security، واختر Open Anyway بجانب التطبيق. - **على macOS 14 أو أقدم:** انقر على التطبيق بالزر الأيمن واختر Open، ثم اختر Open مرة أخرى. ## الإعداد اليدوي لكل أداة إذا فضّلت ضبط أداة بنفسك بمفتاح API، فلكل أداة دليل: - [Claude Code](https://5abeer.ai/ar/docs/apps/claude-code.md): مساعد البرمجة من Anthropic في الطرفية. - [Codex CLI](https://5abeer.ai/ar/docs/apps/codex.md): مساعد البرمجة من OpenAI في الطرفية. - [OpenCode](https://5abeer.ai/ar/docs/apps/opencode.md): مساعد برمجة مفتوح المصدر لنماذج متعددة. - [OpenClaw](https://5abeer.ai/ar/docs/apps/openclaw.md): مساعد شخصي مفتوح المصدر على جهازك. - [Hermes](https://5abeer.ai/ar/docs/apps/hermes.md): وكيل مفتوح المصدر من Nous Research. - [Gemini CLI](https://5abeer.ai/ar/docs/apps/gemini-cli.md): مساعد Google في الطرفية. ## أسئلة شائعة ### هل أحتاج إلى اشتراك؟ نعم. يشغّل التطبيق تطبيقاتك الرسمية على اشتراك فعّال في خبير. أما بمفتاح API ودون اشتراك، فاستخدم أدلة الإعداد اليدوي أعلاه. ### أنشأت حسابي بحساب Google أو GitHub، فكيف أسجّل الدخول؟ إذا ظهر في التطبيق زر «سجّل الدخول من المتصفح» فاستخدمه، فهو يعمل مع حساب Google وGitHub وكل طرق الدخول في الموقع. وإذا ظهر نموذج البريد الإلكتروني فقط، فعيّن كلمة مرور لحسابك في خبير أولًا، ثم سجّل الدخول بها. ### هل يُدفع الإعداد اليدوي بالطريقة نفسها؟ لا. الأدوات التي يضبطها التطبيق تعمل على اشتراكك، أما الإعداد اليدوي بمفتاح API فتُحسب تكلفته من رصيدك، لا من باقتك. ### كيف أحدّث التطبيق؟ يتحقق التطبيق من التحديثات عند كل تشغيل. وعندما يتوفر إصدار جديد يعرض لك رسالة، فاختر «حدّث الآن»، ويُعاد فتح التطبيق على الإصدار الجديد وتبقى إعداداتك كما هي. --- URL: https://5abeer.ai/ar/docs/subscriptions/how-it-works # كيف يعمل اشتراك خبير مع التطبيقات الرسمية > الاشتراك باقة شهرية تشغّل التطبيقات الرسمية عبر تطبيق 5abeer AI على حسابك الرسمي. اختر باقتك، ثم فعّلها لكل تطبيق في خطوات قليلة. آخر تحديث: 2026-10-03 تشترك مرة واحدة، ويضبط تطبيق 5abeer AI اشتراكك في كل تطبيق رسمي تستخدمه، مثل Claude Code وCodex، ثم تعمل فيه كالمعتاد. اشترك في التطبيقات الرسمية بأقل من سعرها الرسمي. ## ما الذي يشمله الاشتراك - التطبيقات الرسمية نفسها كما تصدرها شركاتها، دون واجهات بديلة. - كل باقات Bundle تشغّل كل التطبيقات الرسمية، من أقل باقة إلى أعلاها. التفاصيل في [ما الذي تشغّله كل باقة](https://5abeer.ai/ar/docs/subscriptions/plan-apps.md). - حدّان فقط للاستخدام: حد الساعات الخمس والحد الأسبوعي. التفاصيل في [حدود الاستخدام](https://5abeer.ai/ar/docs/subscriptions/limits.md). - سعر ثابت لكل فترة مدتها 30 يومًا. التفاصيل في [التجديد](https://5abeer.ai/ar/docs/subscriptions/renewal.md). > الباقات مخصّصة للتطبيقات المدعومة؛ لاستخدام النماذج من الكود الخاص بك أنشئ مفتاح API. ## فعّل اشتراكك ### 1. اختر باقتك وادفع اختر باقتك من [صفحة الأسعار](https://5abeer.ai/ar/pricing)، وادفع بالطريقة التي تناسبك. الطرق وخطوات كل طريقة في [طرق الدفع](https://5abeer.ai/ar/docs/start/payment.md). ### 2. نزّل 5abeer AI وسجّل الدخول نزّل تطبيق 5abeer AI لجهازك من [صفحة 5abeer AI](https://5abeer.ai/ar/app)، على Mac أو Windows أو Linux. ثم سجّل الدخول فيه بالبريد الإلكتروني وكلمة المرور الخاصين بحسابك في خبير. ### 3. فعّل اشتراكك لكل تطبيق يعرض 5abeer AI التطبيقات المدعومة الموجودة على جهازك، ويساعدك على تثبيت ما ينقصك منها. اضغط **استخدام 5abeer مع** بجانب التطبيق الذي تريده. وإذا كان لديك أكثر من اشتراك، فاختر الباقة التي تستخدمها معه. ### 4. أعد تشغيل التطبيق يحتاج التطبيق إلى إعادة تشغيل ليقرأ الإعداد الجديد. يطلب 5abeer AI إذنك، ثم يغلق تطبيقات سطح المكتب ويفتحها من جديد، فاحفظ عملك أولًا. أما جلسات الطرفية المفتوحة فلا يغلقها نيابة عنك: أغلقها بنفسك حين تنتهي، ثم افتح جلسة جديدة. ### 5. ابدأ العمل افتح التطبيق الرسمي وتابع عملك كالمعتاد. الاشتراك يُفعَّل خلال دقائق، ويعرض 5abeer AI حالة كل تطبيق: متصل، أو يحتاج إلى إعادة تشغيل، أو يحتاج إلى مراجعة. ## على حسابك الرسمي يعمل الاشتراك على حسابك الرسمي في كل تطبيق. لذلك يطلب منك بعض التطبيقات تسجيل الدخول بحسابها الرسمي: يطلب Codex حساب ChatGPT، ويطلب Google Antigravity حساب Google. ما يحتاج إليه كل تطبيق في [التطبيقات واحدًا واحدًا](https://5abeer.ai/ar/docs/subscriptions/plan-apps.md#apps). ## الاشتراك والـ API | وجه المقارنة | الاشتراك | الـ API | | --- | --- | --- | | أين تستخدمه | التطبيقات الرسمية عبر 5abeer AI | الكود الخاص بك وأدوات البرمجة | | كيف تدفع | سعر ثابت للباقة | حسب استخدامك، من رصيدك | | ما يحدّ استخدامك | حد الساعات الخمس والحد الأسبوعي | رصيدك، وحد الإنفاق إن ضبطته على المفتاح | | ما تحتاج إليه | تطبيق 5abeer AI | مفتاح API لكل مزوّد | الاشتراك والرصيد منفصلان: استخدام مفاتيح API لا يُحتسب من حدود باقتك، والاشتراك لا يُخصم من رصيدك إلا إذا فعّلت [المتابعة من المحفظة](https://5abeer.ai/ar/docs/subscriptions/limits.md#wallet). لاستخدام النماذج من الكود ابدأ من [البداية السريعة](https://5abeer.ai/ar/docs/start/quickstart.md). ولمقارنة ذلك بالباقات الرسمية والـ API اقرأ [الفرق بين اشتراك AI والـ API](https://5abeer.ai/ar/guides/ai-subscription-vs-api). ## إذا لم يستطع 5abeer AI ضبط التطبيق الطريقة المعتادة هي 5abeer AI، فهو يضبط اشتراكك تلقائيًا. وإذا احتجت إلى تشغيل تطبيق مدعوم في مكان لا يعمل عليه 5abeer AI، كخادم بعيد، فيمكنك طلب مفتاح الاشتراك للاستخدام اليدوي: - تجد الطلب في أسفل صفحة «اشتراكك» في لوحة التحكم، داخل «إعدادات متقدمة». - اختر فيمَ ستستخدم المفتاح، واكتب السبب. نراجع الطلب ونرسل النتيجة إلى بريدك. - المفتاح شخصي، ويعمل في التطبيقات المدعومة ضمن اشتراكك. يُسجَّل كل كشف له ونسخ، ويُحتسب أي استخدام له من حدود اشتراكك. - مفتاح الاشتراك ليس مفتاح API. للكود والأتمتة أنشئ [مفتاح API](https://5abeer.ai/ar/docs/start/keys.md) من رصيدك. ## إذا واجهتك مشكلة - يعرض 5abeer AI حالة كل تطبيق، وسبب أي خطوة متوقفة، مثل إعادة التشغيل أو إصلاح ملف إعداد. - إذا لم تكن باقتك تشمل التطبيق، يخبرك 5abeer AI بذلك قبل التفعيل. - إذا كان التطبيق مثبّتًا داخل WSL فقط، فلا يستطيع 5abeer AI ضبطه بعد. - [تواصل معنا](https://5abeer.ai/ar/contact)، واذكر اسم التطبيق وما يظهر لك في 5abeer AI. > خبير خدمة مستقلة، ولا تتبع OpenAI أو Anthropic أو Google. --- URL: https://5abeer.ai/ar/docs/subscriptions/plan-apps # التطبيقات الرسمية التي تشغّلها كل باقة > كل باقات Bundle تشغّل كل التطبيقات الرسمية، وباقات المزوّد الواحد تشغّل تطبيقات مزوّدها. وما يحتاج إليه كل تطبيق عند تفعيله من 5abeer AI. آخر تحديث: 2026-10-03 تختلف باقات Bundle في حدود الاستخدام فقط، أما التطبيقات فواحدة. وتجد هنا أيضًا ما يحتاج إليه كل تطبيق عند تفعيله من 5abeer AI. > الباقات مخصّصة للتطبيقات المدعومة؛ لاستخدام النماذج من الكود الخاص بك أنشئ مفتاح API. ## باقات Bundle باقات Bundle هي Pro وMax (سابقًا Max 5x) وUltra (سابقًا Max 20x). كل باقات Bundle تشغّل كل التطبيقات الرسمية، من أقل باقة إلى أعلاها. وباقة Max فيها 5 أضعاف حدود باقة Pro، وباقة Ultra فيها 20 ضعفًا لحدود باقة Pro. اشترك في التطبيقات الرسمية بأقل من سعرها الرسمي، والأسعار والمقارنة في [صفحة الأسعار](https://5abeer.ai/ar/pricing). ## باقات المزوّد الواحد إذا كنت تستخدم تطبيقات مزوّد واحد فقط، فهناك باقات له وحده: Claude وGPT وGemini. تشغّل كل باقة منها تطبيقات مزوّدها فقط، وتظهر أسعارها عند اختيار باقتك بعد إنشاء الحساب. | التطبيق | باقات Bundle | باقة المزوّد الواحد | | --- | --- | --- | | Claude Desktop وCowork | مشمول | باقة Claude | | Claude Code | مشمول | باقة Claude | | ChatGPT Desktop وCodex | مشمول | باقة GPT | | Google Antigravity | مشمول | باقة Gemini | | OpenCode وOpenClaw وHermes | مشمول | يخبرك 5abeer AI قبل التفعيل | ## التطبيقات واحدًا واحدًا تفعّل اشتراكك لكل تطبيق من 5abeer AI، كما في [كيف يعمل الاشتراك](https://5abeer.ai/ar/docs/subscriptions/how-it-works.md#start). وهذا ما يحتاج إليه كل تطبيق. ### Claude Desktop وCowork - تطبيق Anthropic لسطح المكتب، ويعمل Cowork من داخله. - تشمله باقات Bundle وباقة Claude. - عند التفعيل يغلقه 5abeer AI ويفتحه من جديد بعد إذنك، فاحفظ عملك أولًا. - على Mac اختر Quit من قائمة التطبيق، لأن إغلاق النافذة قد يتركه يعمل في الخلفية. وعلى Windows أغلقه من أيقونته بجوار الساعة. - قد يحتاج Cowork إلى مساحة إضافية على القرص ليكمل تجهيزه، ويعرض 5abeer AI المساحة المطلوبة. - [النماذج التي تعمل في Claude Desktop](https://5abeer.ai/ar/models?app=claude-desktop) · [النماذج التي تعمل في Cowork](https://5abeer.ai/ar/models?app=cowork) ### Claude Code - مساعد البرمجة من Anthropic في الطرفية. - تشمله باقات Bundle وباقة Claude. - يثبّته 5abeer AI لك إن لم يكن على جهازك. - بعد التفعيل أغلق جلسات Claude Code المفتوحة في الطرفية، ثم افتح جلسة جديدة. - لاستخدامه بمفتاح API بدل الاشتراك، اتبع [دليل Claude Code](https://5abeer.ai/ar/docs/apps/claude-code.md). - [النماذج التي تعمل في Claude Code](https://5abeer.ai/ar/models?app=claude-code) ### ChatGPT Desktop وCodex - Codex مساعد البرمجة من OpenAI، ويعمل داخل ChatGPT Desktop وفي الطرفية. - تشمله باقات Bundle وباقة GPT. - سجّل الدخول في ChatGPT Desktop بحسابك في ChatGPT، ثم اختر Codex. يتولى Codex تسجيل الدخول وحفظه، ويبقى إعداد خبير كما هو. - إذا ثبّت Codex للطرفية وحدها، فنزّل ChatGPT Desktop الرسمي لتعمل في نافذة التطبيق. - لاستخدامه بمفتاح API بدل الاشتراك، اتبع [دليل Codex CLI](https://5abeer.ai/ar/docs/apps/codex.md). - [النماذج التي تعمل في ChatGPT Desktop](https://5abeer.ai/ar/models?app=chatgpt-desktop) · [النماذج التي تعمل في Codex](https://5abeer.ai/ar/models?app=codex) ### Google Antigravity - بيئة البرمجة من Google. - تشمله باقات Bundle وباقة Gemini. - افتح Google Antigravity وسجّل الدخول بحساب Google إن طُلب منك، ثم أرسل رسالة إلى نموذج Gemini. يتحقق 5abeer AI من وصول الرد. - اترك 5abeer AI مفتوحًا أثناء الاستخدام. وإذا أغلقت أحد التطبيقين بالكامل، ففعّل الاتصال من جديد. - [النماذج التي تعمل في Google Antigravity](https://5abeer.ai/ar/models?app=antigravity) ### OpenCode وOpenClaw وHermes - أدوات مفتوحة المصدر تعمل في الطرفية. - تشملها باقات Bundle. وفي باقات المزوّد الواحد يخبرك 5abeer AI قبل التفعيل إن كانت باقتك لا تشمل الأداة. - يثبّتها 5abeer AI لك إن لم تكن على جهازك. وبعد التفعيل افتح جلسة جديدة في الطرفية. - لاستخدامها بمفتاح API بدل الاشتراك: [دليل OpenCode](https://5abeer.ai/ar/docs/apps/opencode.md) و[دليل OpenClaw](https://5abeer.ai/ar/docs/apps/openclaw.md) و[دليل Hermes](https://5abeer.ai/ar/docs/apps/hermes.md). - [النماذج التي تعمل في OpenCode](https://5abeer.ai/ar/models?app=opencode) · [في OpenClaw](https://5abeer.ai/ar/models?app=openclaw) · [في Hermes](https://5abeer.ai/ar/models?app=hermes) ## إذا أردت تطبيقًا لا تشمله باقتك - انتقل إلى باقة Bundle، فهي تشغّل كل التطبيقات الرسمية، والترقية تبدأ فورًا، كما في [التجديد](https://5abeer.ai/ar/docs/subscriptions/renewal.md#change). - أو استخدم نماذج المزوّد من الكود بمفتاح API ورصيد تشحنه، كما في [البداية السريعة](https://5abeer.ai/ar/docs/start/quickstart.md). --- URL: https://5abeer.ai/ar/docs/subscriptions/limits # حدود الاستخدام > للاشتراك حدّان فقط: حد الساعات الخمس والحد الأسبوعي. أين تتابعهما، وما يحدث عند بلوغ أحدهما، وخياراتك لتستمر في العمل. آخر تحديث: 2026-10-03 يتجدد كل حد تلقائيًا في موعده، وتجد ما تبقى منه في لوحة التحكم وفي 5abeer AI. وحين تبلغ أحد الحدّين، أمامك أربعة خيارات لتستمر في العمل. ## الحدّان - **حد الساعات الخمس:** ما يمكنك استخدامه خلال خمس ساعات، ثم يتجدد. - **الحد الأسبوعي:** ما يمكنك استخدامه خلال الأسبوع، ثم يتجدد. يُحتسب استخدامك في كل التطبيقات المفعّلة على الاشتراك نفسه من الحدّين نفسيهما. ## حدود كل باقة تشغّل باقات Bundle التطبيقات نفسها، وتختلف في الحدود: حدود Max (سابقًا Max 5x) خمسة أضعاف حدود باقة Pro، وحدود Ultra (سابقًا Max 20x) عشرون ضعفًا لها. المقارنة في [صفحة الأسعار](https://5abeer.ai/ar/pricing). ## أين تتابع حدودك - **صفحة «اشتراكك» في لوحة التحكم:** ما تبقى من كل حد، وموعد تجدده. - **تطبيق 5abeer AI:** الحدّان لكل اشتراك، وتنبيه حين تقترب من أحدهما. - **صفحة «استخدام الاشتراك»:** قيمة ما استخدمته في كل طلب محسوبة بالسعر الرسمي للنموذج. القيمة للعرض فقط، ولا تُخصم من أي رصيد. افتح [اشتراكك](https://5abeer.ai/ar/dashboard/plan) في لوحة التحكم. ## عند بلوغ أحد الحدّين تتوقف طلبات اشتراكك حتى يتجدد الحد، ويصل التطبيق الخطأ [`USAGE_LIMIT_EXCEEDED`](https://5abeer.ai/ar/docs/help/errors.md#USAGE_LIMIT_EXCEEDED). إعادة المحاولة السريعة لا تفيد هنا، فالحد يتجدد في موعده. أمامك أربعة خيارات: ### انتظر حتى يتجدد الحد يظهر موعد التجدد في صفحة «اشتراكك» وفي 5abeer AI. ### اشترِ تجديد الحد الأسبوعي يبدأ «تجديد الحد الأسبوعي» حدّك الأسبوعي وحد الساعات الخمس من جديد لحظة تفعيله، ويُحسب الأسبوع الجديد من تلك اللحظة. تجده في صفحة «اشتراكك» في أي وقت ما دام اشتراكك فعّالًا وباقتك تتيحه، وتدفع له كما تدفع للباقة. وقبل الدفع تعرض نافذة الدفع ما يلي: - المتبقي من حدّك الأسبوعي الآن، فهو لا يُضاف إلى الأسبوع الجديد. - موعد تجدد حدّك تلقائيًا دون دفع إن لم تشترِ التجديد. - موعد انتهاء اشتراكك، فتجديد الحد الأسبوعي لا يمدّ مدته. ### تابع من رصيد محفظتك حين تفعّل «المتابعة من المحفظة»، تستمر الطلبات بعد بلوغ الحد، وتُخصم من رصيدك حسب استخدامك حتى يتجدد الحد. وتتوقف الطلبات إذا لم يكفِ الرصيد. هذا الإعداد غير مفعّل حتى تفعّله أنت، وتجده في «إعدادات متقدمة» في صفحة «اشتراكك» وفي 5abeer AI. ### انتقل إلى باقة أعلى الباقة الأعلى تشغّل التطبيقات نفسها بحدود أعلى. تبدأ الترقية فورًا: تُحتسب لك قيمة ما لم تستخدمه من باقتك الحالية، فتدفع الفرق فقط، وتبدأ الباقة الجديدة فترة كاملة مدتها 30 يومًا، كما في [التجديد](https://5abeer.ai/ar/docs/subscriptions/renewal.md#change). ## الحدود ومفاتيح API حدّا الاشتراك لا يخصّان مفاتيح API. ما يحدّ طلبات مفاتيح API هو رصيدك، وحد الإنفاق إن ضبطته على المفتاح، كما في [الأخطاء وحلولها](https://5abeer.ai/ar/docs/help/errors.md#api-limits). > الباقات مخصّصة للتطبيقات المدعومة؛ لاستخدام النماذج من الكود الخاص بك أنشئ مفتاح API. --- URL: https://5abeer.ai/ar/docs/subscriptions/renewal # تجديد الاشتراك: بالبطاقة، أو في مصر بالمحفظة أو InstaPay > مدة الاشتراك 30 يومًا. كيف يتجدد تلقائيًا إذا دفعت بالبطاقة، وكيف تجدده بنفسك في مصر بالمحفظة أو InstaPay، ومتى يبدأ تغيير الباقة. آخر تحديث: 2026-11-16 إذا دفعت بالبطاقة يتجدد اشتراكك تلقائيًا، وإذا دفعت في مصر بمحفظة إلكترونية أو InstaPay تجدده بنفسك. وتجد تاريخ انتهاء اشتراكك في صفحة «اشتراكك» وفي 5abeer AI. ## الدفع بالبطاقة: تجديد تلقائي - يُخصم سعر الباقة من بطاقتك تلقائيًا كل 30 يومًا، ويظهر موعد الدفع القادم في صفحة «اشتراكك». - لإيقاف التجديد التلقائي أو تغيير البطاقة، اضغط **إدارة التجديد** في صفحة «اشتراكك»، فتفتح صفحة الفواتير من Stripe. - بعد إيقاف التجديد تبقى أيامك المدفوعة متاحة حتى نهاية الفترة. - إذا تعذّر الخصم، تظهر لك رسالة «حدّث وسيلة الدفع لإكمال التجديد». حدّث بطاقتك من **إدارة التجديد**. ## الدفع في مصر بمحفظة أو InstaPay: جدّد بنفسك - كل دفعة تضيف 30 يومًا إلى اشتراكك. - جدّد قبل تاريخ الانتهاء ليستمر اشتراكك دون انقطاع. ينبّهك 5abeer AI حين يقترب هذا التاريخ. - اضغط **جدد الاشتراك** في صفحة «اشتراكك»، ثم اتبع خطوات [الدفع في مصر بمحفظة أو InstaPay](https://5abeer.ai/ar/docs/start/payment.md#transfer). يُفعَّل الاشتراك تلقائيًا فور إرسال الإيصال. ## تغيير الباقة تبدأ الترقية إلى باقة أعلى فورًا: اضغط «رقِّ باقتك» في صفحة «اشتراكك»، فترى المبلغ قبل الدفع، وتُحتسب لك قيمة ما لم تستخدمه من باقتك الحالية فتدفع الفرق فقط. تنتهي باقتك الحالية عند التفعيل، وتبدأ الجديدة فترة كاملة مدتها 30 يومًا. أما الانتقال إلى باقة أقل فيبدأ بعد انتهاء باقتك الحالية، وتبقى باقتك تعمل حتى نهاية فترتها. ## عند انتهاء الاشتراك - تتوقف طلبات التطبيقات عبر الاشتراك، ويعرض 5abeer AI أن الباقة انتهت. - جدّد الباقة لتعود التطبيقات إلى العمل بها. - مفاتيح API ورصيدك منفصلان عن الاشتراك، ولا يتأثران بانتهائه. ## أسئلة عن الدفع [تواصل معنا](https://5abeer.ai/ar/contact) واذكر رقم الطلب الظاهر في تفاصيل الدفع. لا ترسل كلمة المرور أو مفتاح API في رسالتك. --- URL: https://5abeer.ai/ar/docs/account/sign-in # الدخول إلى خبير بحساب Google أو GitHub > أنشئ حسابك في خبير أو سجّل الدخول إليه بحساب Google أو GitHub، ولماذا نطلب رقم الهاتف، وكيف تدخل إلى 5abeer AI بالبريد الإلكتروني وكلمة المرور. آخر تحديث: 2026-10-03 يمكنك إنشاء حسابك في خبير وتسجيل الدخول إليه بالبريد الإلكتروني وكلمة المرور، أو بالمتابعة بحساب Google أو GitHub. وحسابك واحد مهما كانت الطريقة، لأنه مرتبط ببريدك الإلكتروني. ## المتابعة بحساب Google أو GitHub ### 1. اختر الطريقة في صفحة [تسجيل الدخول](https://5abeer.ai/ar/login) أو [إنشاء حساب](https://5abeer.ai/ar/register)، اضغط «المتابعة بحساب Google» أو «المتابعة بحساب GitHub». إذا لم تظهر هذه الأزرار، فسجّل الدخول ببريدك الإلكتروني وكلمة المرور. ### 2. سجّل الدخول عند المزوّد سجّل الدخول في صفحة Google أو GitHub، ثم تعود إلى خبير تلقائيًا. أكمل الخطوات في المتصفح نفسه الذي بدأت منه. ### 3. أكمل حسابك الجديد إذا لم يكن لبريدك حساب في خبير، فننشئه بهذا البريد. يبقى رقم هاتفك وكلمة مرور، ثم يصبح حسابك جاهزًا. كلمة المرور هذه تتيح لك الدخول من أي تطبيق أيضًا، ومنه 5abeer AI. ## حسابك واحد - إذا كان لبريدك حساب في خبير بالفعل، فالمتابعة بحساب Google أو GitHub بالبريد نفسه تفتح حسابك نفسه. - نقبل حسابات Google وGitHub ذات البريد المؤكَّد فقط. - إذا تغيّر البريد في حساب Google أو GitHub بعد ربطه بخبير، فلن يكتمل الدخول به. ادخل بالبريد الإلكتروني وكلمة المرور. ## لماذا نطلب رقم الهاتف نطلب رقم هاتفك مرة واحدة، لنتواصل معك سريعًا بشأن حسابك أو رصيدك. اختر الدولة وأدخل الرقم كاملًا. وإذا لم يكن في حسابك رقم هاتف، فستطلبه منك لوحة التحكم مرة واحدة. كيف نتعامل مع بياناتك في [سياسة الخصوصية](https://5abeer.ai/ar/privacy). ## الدخول إلى 5abeer AI يسجّل تطبيق 5abeer AI الدخول بالبريد الإلكتروني وكلمة المرور فقط. إذا أنشأت حسابك بحساب Google أو GitHub، فاستخدم بريده وكلمة المرور التي اخترتها في الخطوة الأخيرة. وإذا نسيتها، فاختر كلمة جديدة كما في القسم التالي. ## نسيت كلمة المرور - اطلب رابطًا من [استعادة كلمة المرور](https://5abeer.ai/ar/forgot-password). يصلك الرابط إذا كان لبريدك حساب. - الرابط صالح 30 دقيقة، ويُستخدم مرة واحدة. - حفظ كلمة مرور جديدة يُخرج حسابك من كل الأجهزة، فسجّل الدخول من جديد. ## إذا لم يكتمل الدخول - **أُلغي تسجيل الدخول:** حاول مرة أخرى، أو استخدم بريدك الإلكتروني. - **انتهت مهلة تسجيل الدخول:** ابدأ من جديد في المتصفح نفسه. - **تعذّر التأكد من البريد الإلكتروني:** استخدم حسابًا ببريد مؤكَّد. - **الحساب موقوف:** [تواصل معنا](https://5abeer.ai/ar/contact). --- URL: https://5abeer.ai/ar/docs/account/referrals # برنامج الدعوات: ادعُ أصدقاءك واكسب رصيد API > ادعُ أصدقاءك إلى خبير برابط دعوتك، واحصل على مكافأة حين يشحنون رصيدهم أو يشتركون، تأخذها رصيد API بقيمتها كاملة أو ما يعادل جزءًا منها نقدًا. آخر تحديث: 2026-10-03 شارك رابط دعوتك. حين يشحن صديقك رصيده أو يشترك، تُضاف مكافأتك إلى أرباحك، فتأخذها رصيد API بقيمتها كاملة أو ما يعادل جزءًا منها نقدًا. ## كيف تبدأ ### 1. انسخ رابط دعوتك افتح صفحة [ادعُ أصدقاءك](https://5abeer.ai/ar/dashboard/referrals) في لوحة التحكم، وانسخ رابط دعوتك أو رمز الدعوة، أو شاركه مباشرة على واتساب. ### 2. يُنشئ صديقك حسابه من رابطك يُحسب لك صديقك من أول تسجيل له عبر رابطك، بالبريد الإلكتروني أو عبر Google أو GitHub. وتعرض صفحة الدعوات مدة احتسابه لك. ### 3. تحصل على مكافأتك حين يشحن صديقك رصيده أو يشترك، تظهر مكافأتك في «أرباحك» خلال دقائق. ## كيف تُحسب المكافأة - تحصل على نسبة من قيمة كل رصيد يُضاف لصديقك، ومن سعر كل باقة يدفعها. - تأخذ مكافأتك رصيد API بقيمتها كاملة، أو ما يعادل جزءًا منها نقدًا. النسبتان المطبّقتان على حسابك تظهران في صفحة الدعوات، وقد تكون لحسابك نسبة خاصة. - تنتظر كل مكافأة مدة قصيرة بعد دفع صديقك، ثم تُتاح لك، ويظهر بجانبها موعد إتاحتها. - إذا أُلغي الطلب خلال مدة الانتظار، تُلغى المكافأة المرتبطة به. ## استخدم أرباحك - **رصيد API:** اضغط «حوّل إلى رصيدي» في صفحة الدعوات، فتُضاف أرباحك المتاحة إلى رصيد حسابك بقيمتها كاملة فورًا. يُستخدم هذا الرصيد في طلبات الـ API فقط، من مفاتيحك وتطبيقاتك، ولا يُدفع به اشتراك أو شحن. - **نقدًا، حين يكون السحب النقدي متاحًا لحسابك:** اضغط «اطلب سحبًا»، فيُخصم المبلغ الذي تختاره من أرباحك، ويصلك ما يعادل النسبة النقدية منه بتحويل بنكي دولي، أو في مصر على محفظة إلكترونية (Vodafone Cash أو Etisalat Cash أو Orange Cash أو محفظة بنكية)، باسم صاحب الحساب نفسه. - يظهر أقل مبلغ نقدي للطلب الواحد في صفحة الدعوات قبل أن ترسله، ونحوّل المبالغ النقدية يدويًا. - إذا أُلغي طلب صديقك بعد تحويل مكافأته إلى رصيدك، تُخصم قيمتها من أرباحك القادمة، لا من رصيدك. ## إذا لم تظهر صفحة الدعوات قد يتوقف برنامج الدعوات مؤقتًا. وحين يعود البرنامج، تجد رابطك وأرباحك في صفحة الدعوات كما هي. ولأي سؤال عن مكافأة، [تواصل معنا](https://5abeer.ai/ar/contact). --- URL: https://5abeer.ai/ar/docs/account/security # أمان مفاتيح API: أين تحفظها وماذا تفعل إذا انكشفت > كيف تحمي مفاتيح API وحسابك في خبير: أين تحفظ المفتاح، والحدود التي تضعها لكل مفتاح، وما تفعله إذا انكشف مفتاح، وما لن نطلبه منك أبدًا. آخر تحديث: 2026-10-03 مفتاح API يعمل مثل كلمة المرور: من يملكه يستطيع إرسال طلبات تُخصم من رصيدك. احفظه في مكان آمن، وضع لكل مفتاح حدودًا تناسب استخدامه. ## احفظ المفتاح في مكان آمن - احفظه في متغير البيئة `KHABEER_API_KEY` أو في مخزن الأسرار على خادمك، لا داخل الكود نفسه. التفاصيل في [احفظ المفتاح في متغير بيئة](https://5abeer.ai/ar/docs/start/keys.md#env). - لا تضعه في كود يعمل داخل المتصفح أو داخل تطبيق للهاتف، فأي زائر يستطيع قراءته. أرسل الطلبات من الخادم. - لا ترفعه إلى مستودع الكود. احفظه في ملف `.env` وأضف الملف إلى `.gitignore`. - لا تلصقه في لقطة شاشة أو محادثة أو رسالة إلى الدعم. ## ضع حدودًا لكل مفتاح تحكّم في كل مفتاح: حد للإنفاق، وتاريخ انتهاء، وقائمة عناوين IP المسموح بها. - استخدم مفتاحًا لكل مشروع أو لكل شخص، لتوقف مفتاحًا واحدًا دون أن يتأثر غيره. - ضع حد إنفاق يناسب المشروع، فلا يتجاوزه المفتاح حتى لو انكشف. - إذا كانت عناوين IP لخوادمك ثابتة، فاقصر المفتاح عليها. - اجعل للمفاتيح المؤقتة تاريخ انتهاء. تضبط هذه الحدود عند إنشاء المفتاح أو من إعداداته لاحقًا، كما في [تحكّم في كل مفتاح](https://5abeer.ai/ar/docs/start/keys.md#controls). ## إذا انكشف مفتاح ### 1. أوقف المفتاح فورًا افتح صفحة المفاتيح في لوحة التحكم، واختر **تدوير المفتاح** ليُنشأ مفتاح جديد بدلًا منه ويتوقف الحالي فور نجاح العملية. أو اختر **تعطيل المفتاح** لتوقفه الآن. ### 2. حدّث أدواتك ضع المفتاح الجديد في متغير البيئة وفي كل أداة أو خادم كان يستخدم المفتاح القديم. ### 3. راجع الاستخدام راجع استخدام المفتاح وتكلفته في لوحة التحكم. وإذا رأيت استخدامًا لا تعرفه، [تواصل معنا](https://5abeer.ai/ar/contact) واذكر اسم المفتاح، لا المفتاح نفسه. ## احمِ حسابك - يمكنك كشف مفاتيحك مرة أخرى في أي وقت من صفحة المفاتيح، لذلك فحماية حسابك جزء من حماية مفاتيحك. - استخدم كلمة مرور قوية لا تستخدمها في موقع آخر. - إذا كنت تدخل بحساب Google أو GitHub، ففعّل التحقق بخطوتين في ذلك الحساب. - سجّل الخروج من الأجهزة المشتركة. وإذا شككت في أن أحدًا دخل حسابك، فاختر كلمة مرور جديدة: حفظها يُخرج حسابك من كل الأجهزة، كما في [نسيت كلمة المرور](https://5abeer.ai/ar/docs/account/sign-in.md#reset). ## ما لن نطلبه منك أبدًا لا ترسل مفتاح API أو كلمة المرور لأي أحد، ولن يطلبها منك فريقنا أبدًا. وإذا تواصلت معنا بشأن مشكلة، فأرسل رمز الخطأ ووقت الطلب واسم المفتاح فقط. --- URL: https://5abeer.ai/ar/docs/help/errors # رموز أخطاء الـ API: معناها وطريقة حلها > كل رمز خطأ قد يصلك من الـ API ومعناه وما تفعله بعده، مع حدود الاستخدام: حد الساعات الخمس والحد الأسبوعي للاشتراك. آخر تحديث: 2026-10-03 عندما يفشل طلب، يصلك رمز حالة HTTP ومعه رمز خطأ يحدد السبب. ابحث عن الرمز هنا لتعرف الخطوة التالية. ## شكل رسالة الخطأ تأتي رسالة الخطأ بشكلين. فحوص المفتاح والرصيد والحدود تجري قبل استدعاء أي نموذج، وتردّ بجسم بسيط: ```json { "code": "INVALID_API_KEY", "message": "Invalid API key" } ``` أما أخطاء تنفيذ الطلب فتتبع صيغة الواجهة التي استدعيتها، ومعها `request_id` تجده أيضًا في الترويسة `X-Request-ID`. الشكلان مع مثال لكل صيغة في [أشكال الأخطاء](https://5abeer.ai/ar/docs/api/limits.md#shapes). ## رموز الأخطاء | الرمز | الحالة | المعنى | ما تفعله | | --- | --- | --- | --- | | `invalid_request_error` | 400 | الطلب ناقص أو يحتوي على قيمة غير صحيحة. راجع المعاملات ثم أعد الإرسال. | راجع الطلب | | `INVALID_REQUEST` | 400 | تعذّرت معالجة الطلب كما أُرسل. راجع الحقول والقيم ثم أعد الإرسال. | راجع الطلب | | `CONTEXT_LIMIT_EXCEEDED` | 400 | المحادثة أطول من نافذة سياق النموذج. اختصرها أو ابدأ محادثة جديدة. | راجع الطلب | | `API_KEY_REQUIRED` | 401 | أرسل مفتاح API مع الطلب في ترويسة Authorization: Bearer أو x-api-key. | تحقق من المفتاح | | `INVALID_API_KEY` | 401 | مفتاح API غير صحيح. انسخه مرة أخرى من لوحة التحكم. | تحقق من المفتاح | | `INVALID_AUTH_HEADER` | 401 | صيغة الترويسة غير صحيحة. استخدم Authorization: Bearer . | تحقق من المفتاح | | `API_KEY_DISABLED` | 401 | هذا المفتاح معطّل. فعّله من لوحة التحكم أو أنشئ مفتاحًا جديدًا. | تحقق من المفتاح | | `INSUFFICIENT_BALANCE` | 403 | رصيدك لا يكفي لهذا الطلب. اشحن رصيدك ثم أعد المحاولة. | اشحن رصيدك | | `API_KEY_EXPIRED` | 403 | انتهت صلاحية هذا المفتاح. مدّد تاريخ انتهائه أو أنشئ مفتاحًا جديدًا. | تحقق من المفتاح | | `MODEL_PLATFORM_NOT_ALLOWED` | 403 | هذا النموذج غير متاح لهذا المفتاح. | تحقق من المفتاح | | `ACCESS_DENIED` | 403 | عنوان IP الذي أرسلت منه غير مسموح به لهذا المفتاح. أضفه إلى قائمة العناوين المسموح بها. | تحقق من المفتاح | | `SUBSCRIPTION_NOT_FOUND` | 403 | لا يوجد اشتراك فعّال لهذا المفتاح. اشترك في باقة أو استخدم مفتاح الدفع حسب الاستخدام. | اختر باقة | | `not_found_error` | 404 | لم نجد هذا النموذج أو المسار. تحقق من معرّف النموذج والعنوان. | راجع الطلب | | `REQUEST_TOO_LARGE` | 413 | حجم الطلب أكبر من المسموح. أرسل صورًا أو ملفات أقل عددًا أو أصغر حجمًا. | راجع الطلب | | `RATE_LIMITED` | 429 | طلبات كثيرة في وقت قصير. أبطئ قليلًا ثم أعد المحاولة. | انتظر ثم أعد المحاولة | | `INVALID_AUTH_RATE_LIMITED` | 429 | محاولات كثيرة بمفتاح غير صحيح. انتظر قليلًا ثم تحقق من المفتاح. | انتظر ثم أعد المحاولة | | `API_KEY_QUOTA_EXHAUSTED` | 429 | بلغ هذا المفتاح حد الإنفاق الذي حدّدته له. ارفع الحد من إعدادات المفتاح. | تحقق من المفتاح | | `insufficient_quota` | 429 | بلغ هذا المفتاح حد الإنفاق الذي حدّدته له. ارفع الحد من إعدادات المفتاح. | تحقق من المفتاح | | `USAGE_LIMIT_EXCEEDED` | 429 | بلغت حد الاستخدام في باقتك. يتجدد الحد تلقائيًا في موعده. | انتظر ثم أعد المحاولة | | `INTERNAL_ERROR` | 500 | حدث خطأ من جهتنا. أعد المحاولة بعد لحظات. | أعد المحاولة | | `api_error` | 500 | حدث خطأ من جهتنا. أعد المحاولة بعد لحظات. | أعد المحاولة | | `upstream_error` | 502 | تعذّر الوصول إلى مزوّد النموذج الآن. أعد المحاولة بعد لحظات. | أعد المحاولة | | `MODEL_UNAVAILABLE` | 503 | النموذج غير متاح مؤقتًا. أعد المحاولة أو اختر نموذجًا آخر. | أعد المحاولة | | `SERVICE_UNAVAILABLE` | 503 | مشكلة مؤقتة من جهتنا. أعد المحاولة بعد لحظات. | أعد المحاولة | | `AUTHENTICATION_FAILED` | 503 | مشكلة مؤقتة من جهتنا، وليست في مفتاحك. أعد المحاولة بعد لحظات. | أعد المحاولة | | `overloaded_error` | 503 | النموذج مزدحم الآن. أعد المحاولة بعد لحظات أو اختر نموذجًا آخر. | أعد المحاولة | | `UPSTREAM_TIMEOUT` | 504 | تأخّر رد النموذج أكثر من اللازم. أعد المحاولة، واستخدم البث المتدفق في المهام الطويلة. | أعد المحاولة | ## حدود الاستخدام ### حدود الاشتراك للاشتراك حدّان للاستخدام فقط: حد الساعات الخمس والحد الأسبوعي. عندما تبلغ أحدهما يصلك الخطأ [`USAGE_LIMIT_EXCEEDED`](https://5abeer.ai/ar/docs/help/errors.md#USAGE_LIMIT_EXCEEDED) بالحالة `429`، ويتجدد الحد تلقائيًا في موعده. تعرض لوحة التحكم ما استخدمته من كل حد وموعد تجدده، والتفاصيل في [حدود الاستخدام](https://5abeer.ai/ar/docs/subscriptions/limits.md). ### مفاتيح الدفع حسب الاستخدام حدّا الاشتراك لا يخصّان مفاتيح الدفع حسب الاستخدام. ما يحدّ طلباتك هنا هو رصيدك، وحد الإنفاق إن ضبطته على المفتاح: - [`INSUFFICIENT_BALANCE`](https://5abeer.ai/ar/docs/help/errors.md#INSUFFICIENT_BALANCE): الرصيد لا يكفي للطلب. اشحن رصيدك ثم أعد المحاولة. - [`API_KEY_QUOTA_EXHAUSTED`](https://5abeer.ai/ar/docs/help/errors.md#API_KEY_QUOTA_EXHAUSTED): بلغ المفتاح حد الإنفاق الذي حدّدته له. ارفع الحد من إعدادات المفتاح. - [`RATE_LIMITED`](https://5abeer.ai/ar/docs/help/errors.md#RATE_LIMITED): طلبات كثيرة في وقت قصير. انتظر قليلًا ثم أعد المحاولة. ## متى تعيد المحاولة - أخطاء `429` و`5xx` مؤقتة: أعد المحاولة بعد انتظار يتضاعف في كل مرة، وضع حدًا لعدد المحاولات. - أخطاء `400` و`401` و`403` لا تختفي بإعادة المحاولة: أصلح الطلب أو المفتاح أو الرصيد أولًا. - خطأ `429` بسبب حد الاشتراك لا يزول بإعادة المحاولة السريعة، بل يتجدد الحد في موعده. ## ما زالت المشكلة قائمة؟ تواصل معنا وأرسل رمز الخطأ ووقت الطلب، وسنراجع الطلب من جهتنا. لا ترسل مفتاحك في الرسالة، فنحن لا نحتاج إليه. --- URL: https://5abeer.ai/ar/docs/help/faq # أسئلة شائعة عن خبير: الدفع والمفاتيح والأسعار > إجابات قصيرة عن الدفع، والمفاتيح، والأسعار، وحدود الاشتراك، وتطبيق 5abeer AI، مع رابط للتفاصيل في كل إجابة. آخر تحديث: 2026-10-03 إجابات قصيرة عن أكثر ما يسأل عنه العملاء. ولكل إجابة صفحة فيها التفاصيل. ## الحساب والدفع ### هل أحتاج إلى بطاقة بنكية؟ في مصر: لا تحتاج إلى بطاقة بنكية، وتدفع بمحفظة إلكترونية مثل Vodafone Cash، أو عبر InstaPay، أو ببطاقة دولية. وخارج مصر: ادفع ببطاقة دولية. التفاصيل في [طرق الدفع](https://5abeer.ai/ar/docs/start/payment.md). ### لماذا تطلبون رقم الهاتف؟ نطلب رقم الهاتف مرة واحدة عند إنشاء الحساب، لنتواصل معك سريعًا بشأن حسابك أو رصيدك. التفاصيل في [لماذا نطلب رقم الهاتف](https://5abeer.ai/ar/docs/account/sign-in.md#phone). ### كيف أتابع استخدامي؟ تعرض لوحة التحكم استخدامك وتكلفته لكل مفتاح ولكل نموذج، مع سجل الطلبات. وللاشتراك تعرض ما استخدمته من حد الساعات الخمس والحد الأسبوعي. ## الـ API ### هل يعمل الكود الذي لدي الآن؟ إذا كان مكتوبًا لمكتبة OpenAI أو Anthropic أو بصيغتهما، فغيّر العنوان الأساسي والمفتاح فقط. راجع [العناوين الأساسية](https://5abeer.ai/ar/docs/start/base-urls.md). ### هل يعمل المفتاح نفسه مع كل النماذج؟ لا. يعمل كل مفتاح مع نماذج مزوّد واحد، فأنشئ مفتاحًا لكل مزوّد تحتاجه. كل المفاتيح تُخصم من الرصيد نفسه. التفاصيل في [المفاتيح والمصادقة](https://5abeer.ai/ar/docs/start/keys.md#per-provider). ### كم تكلفة الطلب؟ تدفع لكل مليون توكن، بسعر للإدخال وسعر للإخراج، وكل نموذج بأقل من سعره الرسمي. هذا سعر النموذج الافتراضي في أمثلتنا: Claude Sonnet 5.5 (`claude-sonnet-5.5`) لكل مليون توكن: الإدخال 0.60 US$ (الرسمي 2 US$)، الإخراج 3 US$ (الرسمي 10 US$). آخر مراجعة للسعر الرسمي: 21 نوفمبر 2026. أسعار كل النماذج في [صفحة النماذج](https://5abeer.ai/ar/models)، وطريقة الحساب في [الأسعار والرصيد](https://5abeer.ai/ar/docs/start/pricing.md). ## الاشتراكات ### ما الفرق بين الاشتراك والـ API؟ الاشتراك سعر شهري ثابت لاستخدام التطبيقات الرسمية. أما الـ API فتدفع فيه حسب استخدامك من رصيدك، وتستدعي النماذج من الكود أو من أدوات البرمجة. ### هل يعمل الاشتراك على حسابي الرسمي؟ نعم، يعمل الاشتراك على حسابك الرسمي، ويُفعَّل خلال دقائق. ### هل تشمل كل الباقات كل التطبيقات الرسمية؟ كل باقات Bundle تشغّل كل التطبيقات الرسمية، من أقل باقة إلى أعلاها. الباقات وأسعارها في [صفحة الأسعار](https://5abeer.ai/ar/pricing)، وما تشغّله كل باقة في [ما الذي تشغّله كل باقة](https://5abeer.ai/ar/docs/subscriptions/plan-apps.md). ### ما حدود الاستخدام في الاشتراك؟ حدّان فقط: حد الساعات الخمس والحد الأسبوعي، ويتجدد كل منهما تلقائيًا في موعده. التفاصيل في [حدود الاستخدام](https://5abeer.ai/ar/docs/subscriptions/limits.md). ## تطبيق 5abeer AI ### ما تطبيق 5abeer AI؟ تطبيق سطح المكتب من خبير على Mac وWindows وLinux. تسجّل الدخول فيه بحسابك، فيضبط التطبيقات الرسمية لتعمل باشتراكك في خبير. التفاصيل في [دليل 5abeer AI](https://5abeer.ai/ar/docs/apps/5abeer-ai.md). ### هل أحتاج إلى مفتاح API لاستخدام التطبيق؟ لا. التطبيق يسجّل الدخول بحساب خبير، ويضبط تطبيقاتك على اشتراكك دون مفتاح API. ويحتاج إلى اشتراك فعّال؛ أما بمفتاح API فاتبع دليل الأداة. ## عن خبير ### هل خبير تابع لـ OpenAI أو Anthropic أو Google؟ لا. خبير خدمة مستقلة، ولا تتبع OpenAI أو Anthropic أو Google. ### كيف أتواصل معكم؟ تواصل معنا وأرسل ما يساعدنا على فهم المشكلة: رقم الطلب، أو رمز الخطأ ووقته. لن نطلب منك مشاركة مفتاحك أبدًا. --- URL: https://5abeer.ai/ar/docs/help/claude-import # نقل محادثات Claude.ai القديمة إلى Claude Desktop > يمكنك نقل محادثاتك القديمة من حسابك في Claude.ai إلى Claude Desktop مع خبير، واختيار ما تنقله منها. أربع خطوات قصيرة. آخر تحديث: 2026-10-28 نعم، يمكنك نقل محادثاتك القديمة من حسابك الخاص إلى التطبيق بعد اشتراكك في خبير، وتختار بنفسك ما تنقله منها. ولا تضيع محادثاتك القديمة. ## خطوات النقل 1. افتح تطبيق 5abeer AI، ثم افتح صفحة **Inference configuration**، وفعّل خيار السماح بالاستيراد والتصدير. 2. اضغط **Apply**. يعيد التطبيق تشغيل Claude Desktop تلقائيًا. 3. في Claude Desktop افتح **Settings** ثم **Import and export**، وسجّل الدخول بحسابك في Claude.ai. 4. اختر ما تريد نقله، والنطاق الذي يناسبك، مثل آخر عدد من المحادثات أو المحادثات منذ تاريخ معيّن. ثم اضغط **Import**، وستجد محادثاتك في Claude Desktop. ## ما الذي يمكن نقله - المحادثات العادية **Chat**. - محادثات **Cowork**. - جلسات **Claude Code**. ## قريبًا قريبًا في التحديث الجديد يكون خيار الاستيراد مفعّلًا تلقائيًا، فلا تحتاج إلى الخطوة الأولى. إذا واجهتك مشكلة في أي خطوة، تواصل معنا من زر المساعدة، وسنساعدك. --- URL: https://5abeer.ai/ar/docs/help/free # لماذا يظهر ChatGPT بحالة Free مع اشتراك فعّال > لماذا يظهر حسابك في ChatGPT على أنه Free مع أن اشتراكك فعّال، وما الرصيد المجاني والمكافآت في حسابك وكيف تُستخدم. آخر تحديث: 2026-10-28 قد تقرأ كلمة «مجاني» في مكانين: في حسابك على ChatGPT، وفي رصيدك عندنا. ولكل منهما معنى مختلف. ## ظهور Free أو Get Plus في ChatGPT Desktop هذا طبيعي ومتوقع. اشتراكك معنا في خبير، وليس مع OpenAI نفسها، لذلك تعرض OpenAI حسابك على أنه حساب مجاني. ولا يعني ذلك أن اشتراكك متوقف. - داخل ChatGPT Desktop استخدم اشتراكك عبر Codex أو وضع «Work»، بعد تفعيل «استخدام 5abeer مع» بجانب ChatGPT Desktop في تطبيق 5abeer AI. - المحادثة العادية في ChatGPT تعمل بحسابك الخاص في OpenAI. - الاستهلاك يُحتسب من باقتك في خبير، ولا يستخدم حدود حسابك في ChatGPT ولا يؤثر عليها. ## الرصيد المجاني والمكافآت في حسابك الرصيد المجاني هو رصيد يُضاف إلى حسابك دون أن تدفع مقابله، مثل مكافآت الدعوات ومكافآت المراجعات والمحتوى. - تجد رصيدك ومكافآتك في لوحة التحكم. - قواعد الرصيد المجاني والمكافآت تجدها في [الشروط](https://5abeer.ai/ar/terms). - مكافآت الدعوات لها قواعدها الخاصة. التفاصيل في [برنامج الدعوات](https://5abeer.ai/ar/docs/account/referrals.md). # Guides (English) --- URL: https://5abeer.ai/en/guides/chatgpt-go-plus-pro # ChatGPT Go vs Plus vs Pro: price, limits and Codex (2026) > ChatGPT Go vs Plus vs Pro from OpenAI's own pages: the monthly price, what Go leaves out, what Plus and Pro add, Codex on each plan, and ads on Go. Updated: 2026-11-16 Go, Plus and Pro are OpenAI's three paid ChatGPT plans for individuals. Go raises the free plan's tool limits and context window, and like Free it may show ads. Plus adds the advanced reasoning models and more deep research and Codex, with no ads. Pro has three tiers for heavy use. Pick by the features you need. ## How much do Go, Plus and Pro cost? These are the monthly list prices on OpenAI's website in the US, each row with its source and the date we checked it: | Plan | Market and channel | Official price | Billing | Source | Checked | | --- | --- | --- | --- | --- | --- | | ChatGPT Go | United States · Vendor website | $8 | per month | https://openai.com/index/introducing-chatgpt-go/ | 2026-11-15 | | ChatGPT Plus | United States · Vendor website | $20 | per month | https://help.openai.com/en/articles/6950777-what-is-chatgpt-plus | 2026-11-15 | | ChatGPT Pro 100 | United States · Vendor website | $100 | per month | https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers | 2026-11-15 | | ChatGPT Pro 200 | United States · Vendor website | $200 | per month | https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers | 2026-11-15 | | ChatGPT Pro 500 | United States · Vendor website | $500 | per month | https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers | 2026-11-15 | The vendors' own prices as published at the source on the date checked; they can change. These are the vendor's official prices; 5abeer's prices are on the pricing page. - **Your price can differ.** OpenAI bills in US dollars, with local-currency billing in a limited set of countries, and the App Store or Google Play can show another price. Local prices are in [ChatGPT Plus price in Egypt](https://5abeer.ai/en/guides/chatgpt-plus-price-egypt) and [ChatGPT and Claude prices in Saudi Arabia and the UAE](https://5abeer.ai/en/guides/chatgpt-claude-gulf-price). - **Monthly only.** OpenAI's help center says Go, Plus and Pro have no annual billing and no way to pay months in advance. You cancel where you paid: chatgpt.com, the App Store or Google Play. ## What does Go leave out compared with Plus? The gap between Go and Plus is in models, speed and some tools, not in the context window. This is how OpenAI's [pricing page](https://chatgpt.com/pricing) compares the two, as we read it on 2026-11-02: | | ChatGPT Go | ChatGPT Plus | | --- | --- | --- | | Ads | May include ads | No ads | | Models | Luna, plus Think on the web and in the mobile app | Adds Sol in Chat, Astra and Sol 6.1 in ChatGPT Work and Codex, and older models | | Response speed | Limited by bandwidth and availability | Fast | | Deep research | Limited | Expanded | | Image creation | Included, without image generation with Thinking | Adds image generation with Thinking | | Interactive tables and charts, Sites, Developer mode (beta) | Not included | Included | | Excel, Word, PowerPoint and Google Sheets extensions | Limited | Included | | ChatGPT Work | Limited, in the desktop app | Desktop, web and mobile | | Codex | Limited, in the desktop app | Adds web, CLI, IDE extension and iOS | | Context window, Instant / reasoning | 54K / 256K | 54K / 256K | Both plans include file uploads, data analysis, vision, projects, scheduled tasks and voice with video, and Plus has more memory, messages and uploads. Since the context window is the same, a document of about 320 pages fits in reasoning mode on Go just as on Plus. **About ads on Go.** OpenAI's help center says ads may appear on Free and Go, below a response and clearly labelled, while Plus, Pro, Business, Enterprise and Edu show none. Testing began in the US on February 9, 2026 and is rolling out to select regions. Ads stay away from sensitive topics such as health and politics, and you can turn off ad personalisation under Ads controls in Settings. ## What does Pro add over Plus? Pro keeps everything in Plus. OpenAI's pricing page and its Pro help article list what it adds: - Three usage tiers, Pro 100, Pro 200 and Pro 500, each named after its monthly price in US dollars. Each higher tier includes more usage, and only Pro 500 includes Ultrafast. - Pro reasoning in Chat, and longer Codex and ChatGPT Work sessions. - A larger context window: 128K in Instant mode and 400K in reasoning mode. - Dot, OpenAI's always-on agent, and ChatGPT Space. - Monthly API credits that match the number in the tier's name. They need activation, and unused credits expire at the end of each billing cycle. The full comparison, with thinking levels and usage limits, is in [ChatGPT Plus vs Pro: what does Pro add?](https://5abeer.ai/en/guides/chatgpt-plus-vs-pro) ## How does Codex differ on each plan? Codex, OpenAI's coding agent, comes with every ChatGPT plan, and ChatGPT Work draws on the same usage. OpenAI's [Codex pricing page](https://learn.chatgpt.com/docs/pricing) lists: | Plan | Codex on that plan | | --- | --- | | Free | Quick coding tasks in the desktop app, subject to rollout | | Go | Lightweight coding tasks in the desktop app, subject to rollout | | Plus | Adds web, CLI, IDE extension and iOS, with models including Astra and Sol 6.1, and a five-hour limit on local messages that varies by model | | Pro | Longer sessions, no five-hour limit for now, and Ultrafast on Pro 500 | OpenAI pitches Plus for "a few focused coding sessions each week". Weekly limits may also apply, cloud tasks can use more of your allowance than local work, and on Plus and Pro you can buy credits to keep going after a limit. To run Codex on an API key instead, read [Run Codex CLI with an API key](https://5abeer.ai/en/guides/codex-cli-api-key). ## Which plan should you choose? - **Free** if you mostly chat in text: OpenAI doesn't cap everyday text chats on Free or Go beyond abuse guardrails. - **Go** if you upload files, analyse data or create images every week, and ads don't bother you. - **Plus** if you need Astra or Sol, more deep research, Codex beyond the desktop app, or no ads. - **Pro** if you hit the Plus limits most days or need Pro reasoning. Start at Pro 100 and move up if you still run out, or to Pro 500 if you need Ultrafast. - **A 5abeer Bundle plan** if you work every day in ChatGPT Desktop or Codex on a computer, especially alongside Claude Code or Google Antigravity. ## Is there a cheaper way to use ChatGPT for work? If you use ChatGPT on a computer for work, 5abeer's Bundle plans run ChatGPT Desktop and Codex, plus Claude Desktop, Claude Code and Google Antigravity. Subscribe to the official apps for less than their official price. These are our plans and their limits; prices are on the [pricing page](https://5abeer.ai/en/pricing): | 5abeer plan | Best for | Usage limits | Our price | | --- | --- | --- | --- | | Pro | For everyday use | A 5-hour limit and a weekly limit | Prices on the pricing page: https://5abeer.ai/en/pricing | | Max (formerly Max 5x) | For heavy daily work | 5× the Pro plan limits | Prices on the pricing page: https://5abeer.ai/en/pricing | | Ultra (formerly Max 20x) | If you work with it all day | 20× the Pro plan limits | Prices on the pricing page: https://5abeer.ai/en/pricing | - **Desktop apps, not the phone app.** A 5abeer plan runs ChatGPT Desktop and Codex through the 5abeer AI app on Mac, Windows and Linux, not inside the ChatGPT phone app. - Every Bundle plan runs every official app, from the smallest to the largest. The plans differ in usage limits only: a 5-hour limit and a weekly limit, as in [Usage limits](https://5abeer.ai/en/docs/subscriptions/limits.md). - On your own official account: Codex asks for your own ChatGPT account, and Google Antigravity for your own Google account. - 5abeer's Pro, Max (formerly Max 5x) and Ultra (formerly Max 20x) are 5abeer's plans, so 5abeer's Pro is not ChatGPT Pro. 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. To start, pay the way that suits you ([Payment methods](https://5abeer.ai/en/docs/start/payment.md)), install the 5abeer AI app, then press **Use 5abeer with** next to ChatGPT Desktop or Codex. Activated within minutes. The full steps are in [How the subscription works](https://5abeer.ai/en/docs/subscriptions/how-it-works.md). > Plans are for the supported apps. To use the models from your own code, create an API key. ## Frequently asked questions ### Is ChatGPT Go worth it if I only chat in text? Usually not. Free already covers everyday text chats. Go pays off when you need more file uploads, data analysis, image creation, memory or context than the free plan gives you. ### How can I use ChatGPT without ads? Plus and Pro have no ads, and Temporary Chats show none on any plan. Where ads are being tested, the Free plan also offers an ad-free mode with lower message limits and without some tools, such as image generation and deep research. ### Can I move from Plus or Pro down to Go? Yes, from Settings, then Account, in ChatGPT. Your current plan stays active until the end of the billing cycle you paid for, then your account moves to Go at Go's price. If you subscribed through the App Store or Google Play, check the change in that store too. ### Is ChatGPT Go sold in every country? OpenAI says Go is available in every country where ChatGPT is supported. Purchases are in US dollars, with local-currency billing in a limited set of countries, and OpenAI says it may adjust Go's price over time. ### Does a 5abeer plan replace Go, Plus or Pro? Not one for one. A 5abeer Bundle plan runs ChatGPT Desktop, Codex and the other official apps on your computer, with 5abeer's own limits. It doesn't run in the ChatGPT phone app, and its plan names are 5abeer's, not OpenAI's. ## Sources Checked on 2026-11-02. OpenAI's pages refuse automated fetches, so we read their text through the public reader r.jina.ai: - OpenAI: [ChatGPT pricing](https://chatgpt.com/pricing) - OpenAI Help Center: [What is ChatGPT Go?](https://help.openai.com/en/articles/11989085-what-is-chatgpt-go), [Ads in ChatGPT](https://help.openai.com/en/articles/20001047) and [About ChatGPT Pro tiers](https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers) - OpenAI: [Codex pricing](https://learn.chatgpt.com/docs/pricing) --- URL: https://5abeer.ai/en/guides/one-subscription-all-ai-apps # One subscription for all AI apps: ChatGPT, Claude, Codex > One 5abeer subscription runs ChatGPT, Codex, Claude Code, Antigravity, OpenCode, OpenClaw and Hermes below the official price. Which plan runs which app. Updated: 2026-11-16 Every Bundle plan runs every official app, from the smallest to the largest. So one 5abeer (خبير) Bundle plan runs ChatGPT Desktop, Codex, Claude Desktop, Cowork, Claude Code, Google Antigravity, OpenCode, OpenClaw and Hermes on your own official account, for less than the official price. Turn it on once per app in 5abeer AI, then switch whenever you like. ## How is 5abeer different from a chat aggregator? A chat aggregator gives you a chat window of its own for models from several companies. 5abeer runs the official apps themselves, as their makers ship them, on your own official account. The three ways to use several AI apps compare like this: | Option | Runs the official app? | Claude Code and Codex included? | Price basis | | --- | --- | --- | --- | | A 5abeer Bundle plan | Yes, on your own official account | Yes, both | One monthly plan for every official app, below the official price, with a 5-hour and a weekly limit | | Each company's own plans | Yes | Yes: Codex with an OpenAI plan, Claude Code with an Anthropic plan | One subscription per company, at its official price | | A chat aggregator | No: you chat in the aggregator's own interface | No: its plan covers its own interface | The aggregator's own plan | A chat aggregator can suit you if you want to try models from several companies in one window. If you work in the official apps, such as Claude Code, Codex or ChatGPT Desktop, a Bundle plan runs them for you. ## What does one subscription for all AI apps mean? The usual way is to pay each company separately: an OpenAI plan for ChatGPT and Codex, an Anthropic plan for Claude and Claude Code, and a Google plan for its tools. If you work in more than one app, you pay for more than one subscription every month. With 5abeer you pay for one subscription, and the 5abeer AI app sets it up in each official app you use. What you get: - The official apps themselves, as their makers ship them, not a look-alike interface. - On your own official account in each app, so your chats and settings stay in your account. - Every Bundle plan runs every official app, from the smallest to the largest. - Subscribe to the official apps for less than their official price. ## Which plan runs which app? 5abeer has two kinds of plans. The Bundle plans, Pro, Max (formerly Max 5x) and Ultra (formerly Max 20x), run every app and differ in usage limits only. The single-provider plans, Claude, GPT and Gemini, each run their own provider's apps only: | App | Bundle plans | Single-provider plan | | --- | --- | --- | | ChatGPT Desktop and Codex | Included | GPT plan | | Claude Desktop and Cowork | Included | Claude plan | | Claude Code | Included | Claude plan | | Google Antigravity | Included | Gemini plan | | OpenCode, OpenClaw and Hermes | Included | 5abeer AI tells you before you turn it on | These are our plans and their limits; prices are on the [pricing page](https://5abeer.ai/en/pricing): | 5abeer plan | Best for | Usage limits | Our price | | --- | --- | --- | --- | | Pro | For everyday use | A 5-hour limit and a weekly limit | Prices on the pricing page: https://5abeer.ai/en/pricing | | Max (formerly Max 5x) | For heavy daily work | 5× the Pro plan limits | Prices on the pricing page: https://5abeer.ai/en/pricing | | Ultra (formerly Max 20x) | If you work with it all day | 20× the Pro plan limits | Prices on the pricing page: https://5abeer.ai/en/pricing | The full details for each app are in [What each plan runs](https://5abeer.ai/en/docs/subscriptions/plan-apps.md). 5abeer's Max has 5 times the limits of 5abeer's Pro plan, and 5abeer's Ultra has 20 times. They are 5abeer plans, not Anthropic's plans of the same name. ## How do you switch between ChatGPT, Claude and Antigravity? You turn the subscription on in each app once. After that, switching just means opening the app you want: ### 1. Choose your plan Pick a Bundle plan on the [pricing page](https://5abeer.ai/en/pricing) if you want every app, and pay with a method available to you, as in [Payment methods](https://5abeer.ai/en/docs/start/payment.md). ### 2. Download 5abeer AI Download the [5abeer AI app](https://5abeer.ai/en/app) on Mac, Windows or Linux and sign in with your 5abeer account. It lists the supported apps on your computer and helps you install the ones you are missing. ### 3. Turn on each app Press **Use 5abeer with** next to each app you want. If you have more than one subscription, pick the plan to use with it. ### 4. Restart and start working 5abeer AI asks for your permission, then reopens desktop apps for you, so save your work first. Close terminal sessions yourself and open a new one. The subscription is activated within minutes. From then on you can work in ChatGPT Desktop in the morning, move to Claude Code for a coding task, then open Google Antigravity, without changing anything. 5abeer AI shows the state of each app: connected, needs a restart, or needs a review. With Google Antigravity, keep 5abeer AI open while you work, and if you fully quit either app, turn the connection on again. ## What does each app ask for when you turn it on? Because the subscription runs on your own official account, some apps ask you to sign in with their account: - **Codex and ChatGPT Desktop:** sign in with your own ChatGPT account, then choose Codex. - **Google Antigravity:** sign in with your Google account if asked, then send a message to a Gemini model, and 5abeer AI checks that the reply arrived. - **Claude Code:** 5abeer AI installs it for you if it isn't on your computer. - **Claude Desktop and Cowork:** on Mac, quit the app from its menu, because closing the window can leave it running in the background. Each app has its own page: [ChatGPT Desktop](https://5abeer.ai/en/apps/chatgpt), [Codex](https://5abeer.ai/en/apps/codex), [Claude Code](https://5abeer.ai/en/apps/claude-code) and [Google Antigravity](https://5abeer.ai/en/apps/antigravity). The models available in each app are on the [models page](https://5abeer.ai/en/models). ## Does each app have its own limits? No. Each plan has two limits, a 5-hour limit and a weekly limit, and your use in every app turned on with the same subscription counts against both. If you spend your day in Claude Code, you have less left for Codex. You can follow what is left of each limit in 5abeer AI and on the "Your subscription" page. The details are in [Usage limits](https://5abeer.ai/en/docs/subscriptions/limits.md). We don't promise limits matching OpenAI's or Anthropic's plans. ## What would you pay for each app separately? These are the official OpenAI and Anthropic plan prices on their own websites, each row with its source and the date we checked it: | Plan | Market and channel | Official price | Billing | Source | Checked | | --- | --- | --- | --- | --- | --- | | ChatGPT Go | United States · Vendor website | $8 | per month | https://openai.com/index/introducing-chatgpt-go/ | 2026-11-15 | | ChatGPT Plus | United States · Vendor website | $20 | per month | https://help.openai.com/en/articles/6950777-what-is-chatgpt-plus | 2026-11-15 | | ChatGPT Pro 100 | United States · Vendor website | $100 | per month | https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers | 2026-11-15 | | ChatGPT Pro 200 | United States · Vendor website | $200 | per month | https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers | 2026-11-15 | | ChatGPT Pro 500 | United States · Vendor website | $500 | per month | https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers | 2026-11-15 | | Claude Pro | United States · Vendor website | $20 | per month | https://claude.com/pricing | 2026-11-15 | | Claude Pro | United States · Vendor website | $200 | per year | https://claude.com/pricing | 2026-11-15 | | Claude Max | United States · Vendor website | $100 | per month | https://claude.com/pricing | 2026-11-15 | | Claude Ultra | United States · Vendor website | $200 | per month | https://claude.com/pricing | 2026-11-15 | The vendors' own prices as published at the source on the date checked; they can change. These are the vendor's official prices; 5abeer's prices are on the pricing page. Tax: per Anthropic's pages, some countries include tax in the displayed price and others add it at checkout. For App Store prices in Egypt and the Gulf, read [ChatGPT Plus price in Egypt](https://5abeer.ai/en/guides/chatgpt-plus-price-egypt), [Claude Pro and Max price in Egypt](https://5abeer.ai/en/guides/claude-pro-max-price-egypt) and [Prices in Saudi Arabia and the UAE](https://5abeer.ai/en/guides/chatgpt-claude-gulf-price). ## What does the subscription not cover? - The subscription works in the desktop apps through 5abeer AI, not inside the phone apps or on the websites. - If an app is installed only inside WSL, 5abeer AI can't set it up yet. > Plans are for the supported apps. To use the models from your own code, create an API key. To build with the API, start with the [quickstart](https://5abeer.ai/en/docs/start/quickstart.md). It runs on a balance you top up, separate from the subscription. ## Which subscription suits you? | Your situation | Best fit | | --- | --- | | You work with ChatGPT and Claude together | A Bundle plan | | You code with Codex and Claude Code | A Bundle plan | | You only use Claude Code | The Claude plan or a Bundle plan | | You only use Google Antigravity | The Gemini plan or a Bundle plan | | You mostly use AI on your phone | The company's official plan | ## Frequently asked questions ### Does the subscription work in ChatGPT and Claude at the same time? Yes. Once it is on in each app, you can have more than one app open together, and all your use counts against the same plan limits. ### Do I need new accounts? No. The subscription runs on your own official account in each app. Codex asks for your ChatGPT account, and Google Antigravity asks for your Google account. ### Do the apps differ between Bundle plans? No. Every Bundle plan runs every official app, from the smallest to the largest. The plans differ in usage limits only. ### Can I add an app my plan doesn't include? Yes, by moving to a Bundle plan. An upgrade starts right away, as in [Renewal](https://5abeer.ai/en/docs/subscriptions/renewal.md#change). ### Does the subscription work in the ChatGPT phone app? No. It works in the official desktop apps through 5abeer AI on Mac, Windows and Linux. ### Is my account shared with other people? No. The subscription runs on your own official account through 5abeer AI, not on an account shared with other people, and it is activated within minutes. ### Is 5abeer a chat aggregator? No. 5abeer runs the official apps themselves, such as ChatGPT Desktop, Claude Code and Codex, on your own official account. A chat aggregator gives you a chat window of its own instead. ### Is 5abeer part of OpenAI, Anthropic or Google? No. 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. --- URL: https://5abeer.ai/en/guides/codex-cli-api-key # Run Codex CLI with an API key: the complete guide > How to run OpenAI's Codex CLI on an API key instead of a ChatGPT sign-in, what it costs per token, and how to set up a custom provider in config.toml. Updated: 2026-11-16 Codex CLI can run on an API key instead of a ChatGPT sign-in. With an OpenAI key, you sign in with `codex login --with-api-key`. With an OpenAI-compatible service such as 5abeer, you add a model provider with its base URL to `~/.codex/config.toml`, and Codex reads your key from the `KHABEER_API_KEY` environment variable. ## Should you use a ChatGPT plan or an API key? Codex runs on either one. [OpenAI's Codex pricing page](https://learn.chatgpt.com/docs/pricing) lists Codex as part of its ChatGPT plans. These are the Plus and Pro plans, with the date we checked each one: ChatGPT individual plans that include Codex (official prices) | Service | Item | Value | Note | Source | | --- | --- | --- | --- | --- | | ChatGPT | Plus | $20 a month | Includes Codex. Read from a search result for the page, because the page itself didn't open for us. | https://help.openai.com/en/articles/6950777-what-is-chatgpt-plus | | ChatGPT | Pro 100 | $100 a month | Includes Codex with more usage. Read from a search result for the page, because the page itself didn't open for us. | https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers | | ChatGPT | Pro 200 | $200 a month | More usage than Pro 100. Read from a search result for the page, because the page itself didn't open for us. | https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers | | ChatGPT | Pro 500 | $500 a month | The highest usage of the Pro plans. Read from a search result for the page, because the page itself didn't open for us. | https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers | Each row links to the page it comes from, checked October 31, 2026. These figures can change, so check the source before you buy. A plan costs a fixed amount each month and comes with usage limits. A key is billed by the tokens each request sends and receives, with no monthly fee. A key fits best when: - You use Codex now and then, and a monthly plan would sit mostly unused. - Codex runs in a script, a container or a CI job, where nobody can sign in through a browser. - You want a spend limit per project instead of one limit for everything. If you would rather not pay per token, a 5abeer plan that includes Codex runs it with no key; see [What each plan runs](https://5abeer.ai/en/docs/subscriptions/plan-apps.md#codex). A key has one trade-off. [OpenAI's sign-in docs](https://learn.chatgpt.com/docs/auth) say that "API key authentication supports local Codex workflows, but some features that rely on ChatGPT workspace access or cloud services are limited or unavailable." If you depend on those cloud features, keep the ChatGPT sign-in for them. ## How much does Codex cost on an API key? A coding agent sends a lot of input. Each turn carries your request plus the files, command output and conversation that Codex needs, so input tokens usually far outnumber output tokens. These are the newest GPT models, at our price per million tokens: | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | GPT-6.2 Sol | `gpt-6.2-sol` | $0.60 | $3 | — | | GPT-6.2 Astra | `gpt-6.2-astra` | $2.40 | $12 | — | | GPT-6.1 Sol | `gpt-6.1-sol` | $0.60 | $3 | 922K | As an example, a month of regular Codex sessions that sends twenty million tokens and gets one million back, on [`gpt-6.1-sol`](https://5abeer.ai/en/models/gpt-6.1-sol): Example: 20,000,000 input tokens and 1,000,000 output tokens on GPT-6.1 Sol (`gpt-6.1-sol`) cost $15.00 at our price against $50.00 at the official price (70% lower). Official price checked November 21, 2026. Treat this as an upper bound: it prices every input token at the full rate, while Codex resends much of the same context each turn and OpenAI bills [cached input at a lower rate](https://developers.openai.com/api/docs/pricing). Your own numbers depend on the size of your repository and how long your sessions run. Use one key for Codex for a week and read its usage, as in [Track your usage](https://5abeer.ai/en/docs/start/pricing.md#usage), before you decide between a key and a plan. The official price of each model sits next to ours on the [OpenAI API page](https://5abeer.ai/en/api/openai). ## How to sign in to Codex with an OpenAI key If your key comes from the OpenAI Platform, Codex keeps its built-in OpenAI provider. Save the key in the `OPENAI_API_KEY` environment variable, then pass it to Codex: ```bash printenv OPENAI_API_KEY | codex login --with-api-key ``` On Windows PowerShell, `printenv` is not available. Use this line instead: ```powershell $env:OPENAI_API_KEY | codex login --with-api-key ``` The account behind the key needs API credit before it can make paid calls. Where to create the key and how the official consoles take payment are in [How to get an API key](https://5abeer.ai/en/guides/ai-api-key-guide#official). ## How to run Codex CLI on a 5abeer key 5abeer serves GPT models in the Responses format that Codex uses, at our price. Codex reads its settings from `~/.codex/config.toml`, so the whole setup is one file and one environment variable: ### 1. Install Codex CLI ```bash npm install -g @openai/codex ``` On macOS you can also use `brew install --cask codex`. ### 2. Create a key for GPT models Top up your balance with one of the [payment methods](https://5abeer.ai/en/docs/start/payment.md), then create a key for the OpenAI provider, as in [Create a key](https://5abeer.ai/en/docs/start/keys.md#create). Give it a name such as `codex` so its usage is easy to find. ### 3. Add the provider to config.toml Put these settings in `~/.codex/config.toml`, and save your key in the `KHABEER_API_KEY` environment variable, as in [Keep the key in an environment variable](https://5abeer.ai/en/docs/start/keys.md#env). Full per-OS setup is in the [Codex guide](https://5abeer.ai/en/docs/apps/codex.md). `~/.codex/config.toml` ```toml model = "gpt-6.2-sol" model_provider = "khabeer" [model_providers.khabeer] name = "5abeer" base_url = "https://api.5abeer.ai/v1" env_key = "KHABEER_API_KEY" wire_api = "responses" ``` To keep plain `codex` on your ChatGPT sign-in, use a profile, as in [How to switch between ChatGPT and a key](https://5abeer.ai/en/guides/codex-cli-api-key#switch). ### 4. Start Codex ```bash cd your-project codex ``` Ask for something small. If a reply comes back, the key and the base URL both work. ## What does each line in config.toml do? - **`model`:** the model Codex starts with. Copy any model id from the table above. - **`model_provider`:** which provider block to use. Here it points to the `khabeer` block below it. - **`base_url`:** where Codex sends its requests. For 5abeer, that is our OpenAI-format base URL. - **`env_key`:** the name of the environment variable that holds the key. The key itself never goes in the file. - **`wire_api`:** the request format. `"responses"` is the only value Codex supports, and it is the default. You don't need `codex login` for this provider. Codex reads the key from the variable named in `env_key` each time it starts. ## How to switch between ChatGPT and a key You don't have to choose once. Codex supports profiles: when you pass `--profile profile-name`, it loads `~/.codex/config.toml` and then applies `~/.codex/profile-name.config.toml` on top. Two common setups: - Keep the `[model_providers.khabeer]` table in `~/.codex/config.toml` and move the two top-level lines (`model` and `model_provider`) into `~/.codex/khabeer.config.toml`. Plain `codex` then keeps your ChatGPT sign-in, and `codex --profile khabeer` uses the key. - Override one setting for one run with `-c`, for example to try another model without editing the file. The other flags are in [Codex CLI commands](https://5abeer.ai/en/guides/codex-cli-commands#flags). Codex keeps its settings and local state in `~/.codex` unless the `CODEX_HOME` variable points somewhere else. ## Which model should you pick in Codex? The table above shows the newest GPT models. Change the `model` line in the file, or pick a model inside a session with `/model`. A stronger model fits planning and large changes, and a cheaper one fits quick edits and questions. Every model that runs in Codex is listed on the [Codex CLI setup page](https://5abeer.ai/en/docs/apps/codex.md#models), and the full catalog is on the [models page](https://5abeer.ai/en/models). ## Common errors and fixes - [`INVALID_API_KEY`](https://5abeer.ai/en/docs/help/errors.md#INVALID_API_KEY): the key is wrong, or `KHABEER_API_KEY` isn't set in the terminal you started Codex from. - [`MODEL_PLATFORM_NOT_ALLOWED`](https://5abeer.ai/en/docs/help/errors.md#MODEL_PLATFORM_NOT_ALLOWED): the key belongs to a provider other than GPT. - [`INSUFFICIENT_BALANCE`](https://5abeer.ai/en/docs/help/errors.md#INSUFFICIENT_BALANCE): your balance doesn't cover the request. Top up, then try again. - [`API_KEY_QUOTA_EXHAUSTED`](https://5abeer.ai/en/docs/help/errors.md#API_KEY_QUOTA_EXHAUSTED): the key reached the spend limit you set on it. Every code and what it means is in [Errors and fixes](https://5abeer.ai/en/docs/help/errors.md). ## FAQ ### Do I need to run codex login with a 5abeer key? No. With the provider block in `config.toml`, Codex reads the key from `KHABEER_API_KEY` on every start. `codex login --with-api-key` is for OpenAI keys on the built-in provider. ### Can I run Claude models in Codex? No. Each 5abeer key covers one provider, and Codex runs GPT models here. For Claude models, use [Claude Code](https://5abeer.ai/en/docs/apps/claude-code.md) with a Claude key, and see [The cheapest way to use Claude Code](https://5abeer.ai/en/guides/claude-code-cheapest-way). ### Will setting up a key remove my ChatGPT sign-in? No. If you move the `model` and `model_provider` lines into a profile, your main config still uses the ChatGPT sign-in, and Codex uses the key only when you start it with that profile. ### Why does Codex say the key is missing? `KHABEER_API_KEY` isn't set in the terminal that started Codex. Set it again, or open a new terminal after saving it permanently, then run `codex` again. ### Can I cap what Codex spends? Yes. Create a key just for Codex and give it a spend limit and an expiry date, as in [Control every key](https://5abeer.ai/en/docs/start/keys.md#controls). When it reaches the limit, requests return `API_KEY_QUOTA_EXHAUSTED` until you raise it. ### Can I pay from Egypt? Yes. The ways to pay from Egypt and the steps are in [How to pay for the OpenAI or Claude API from Egypt](https://5abeer.ai/en/guides/pay-ai-api-from-egypt), and the details are on the [API in Egypt page](https://5abeer.ai/en/api/egypt). ### Can I run Codex on a 5abeer plan instead of a key? Yes, if your plan includes Codex. The 5abeer AI app sets Codex up on your plan with no key, as described in [What each plan runs](https://5abeer.ai/en/docs/subscriptions/plan-apps.md#codex). Plans are on the [pricing page](https://5abeer.ai/en/pricing). ### Is 5abeer part of OpenAI? No. 5abeer is an independent service, not affiliated with OpenAI. ## Get started Compare GPT prices on the [OpenAI API page](https://5abeer.ai/en/api/openai), or create a key for GPT models and start Codex on it. --- URL: https://5abeer.ai/en/guides/card-declined-ai-payment # ChatGPT or Claude card declined? Why and how to fix it > Why ChatGPT, Claude and the OpenAI API decline cards (bank limits, billing details, 3D Secure), what to ask your bank, and other ways to pay. Updated: 2026-11-16 A card is usually declined on ChatGPT, Claude or the OpenAI API because your bank blocks or caps international online purchases, the billing details don't match the bank's records, or the 3D Secure step wasn't completed. Some cards are refused by type: OpenAI doesn't accept prepaid cards for API credits. Check these, retry, then ask your bank. ## Why was my card declined? Anthropic and OpenAI each list the reasons on their help pages. This is what they say, as we read them on 2026-11-01: | | Anthropic (Claude) | OpenAI (ChatGPT and API) | | --- | --- | --- | | The bank | Your bank may be declining the payment, so contact it | Your payment may have been blocked by your bank | | Card details | The billing address must match the one your bank has | Check the card number, expiry date, CVC and billing address, including the postal code | | Country | Your billing location must be a supported one | You and your card issuer must be in a supported country (renewals page) | | Card type | Credit and debit cards; no PayPal or Venmo | Standard credit or debit cards; no prepaid cards for API credits | Anthropic adds two more checks: complete the 3D Secure verification your bank asks for, by a one-time code or an approval in the bank's app, and make sure the card has enough funds. If the card is still declined, it suggests trying again or using another payment method. Check the country first. Anthropic publishes its [supported regions](https://www.anthropic.com/legal/supported-regions), and Egypt, for example, is on the list. If your country is listed, the cause is more likely the card settings or the bank. ## What should you ask your bank? Only your bank sees the actual reason a payment was declined, and both companies send you to it. Ask these four questions: - **Are international online purchases turned on?** If your card was issued outside the US, a payment to OpenAI or Anthropic is usually treated as an international purchase. Some banks keep this off until you turn it on in their app or by phone. - **Does the limit cover the full amount?** That means the price plus tax and any fee your bank charges on foreign currency transactions. - **Did fraud checks stop it?** A first payment to a new merchant abroad is sometimes held until you confirm it. - **Does the card work online at all?** Some cards are set up for local purchases and cash withdrawals only. ## How do you fix a declined card? ### 1. Turn on international payments In your bank's app or by phone, turn on international and online purchases, and raise the limit if it is below the amount. ### 2. Re-enter the details Type the card number, expiry date and CVC again, and enter the billing address and postal code exactly as your bank has them. ### 3. Complete the verification If your bank sends a one-time code or asks you to approve the payment in its app, finish that step, and don't close the payment page while it waits. ### 4. Use a standard card Pay with a regular credit or debit card. OpenAI doesn't accept prepaid cards for API credits, and Anthropic doesn't take PayPal or Venmo. ### 5. Retry, then call the bank Try once more after a few minutes. If it fails again, call your bank before you retry, because several declined attempts in a row can look like fraud to the bank. ## Can you subscribe from the phone app instead? For a ChatGPT or Claude subscription, yes. If you subscribe in the iPhone or Android app, Apple or Google bills you with the payment method on your Apple or Google account, not through the card form on the website. - Anthropic says that for web subscriptions it only accepts credit or debit cards, and that subscriptions bought in Claude for iOS or Android are handled by the App Store or Google Play, where you manage the payment method and receipts. - OpenAI says ChatGPT subscriptions bought in the App Store or Google Play are billed in local currency, so the price can differ from the website. Apple and Google list different methods in each country, as in [Pay for ChatGPT from Egypt](https://5abeer.ai/en/guides/pay-chatgpt-from-egypt), [ChatGPT and Claude price in Iraq](https://5abeer.ai/en/guides/chatgpt-claude-price-iraq) and [ChatGPT and Claude price in Morocco](https://5abeer.ai/en/guides/chatgpt-claude-price-morocco). This only works for subscriptions. API credits are bought by card on each company's developer platform, so the phone app doesn't help there. ## What if the card is declined when buying API credits? Buying API credits is a separate purchase from a subscription, with the same card checks. This is how the official APIs are paid for, each row with its source and the date we checked it: How the official APIs are paid for | Service | Item | Value | Note | Source | | --- | --- | --- | --- | --- | | Anthropic | Supported countries | Egypt is on the list | — | https://www.anthropic.com/supported-countries | | Anthropic | How you pay in the Claude Console | Prepaid credits, bought by card | Under Billing, then Buy credits. | https://support.claude.com/en/articles/8977456 | | OpenAI | Smallest API credit purchase | $5 | Prepaid credits that usage is deducted from. Read from a search result for the page, because the page itself didn't open for us. | https://help.openai.com/en/articles/8264778-what-is-prepaid-billing | Each row links to the page it comes from, checked October 31, 2026. These figures can change, so check the source before you buy. Another way to call the models from your code is a 5abeer API key, paid from your 5abeer balance as you use it. Your balance is credited automatically once the payment completes. - OpenAI-compatible: change the base URL and keep your code. - Compatible with the Anthropic Messages API. - Control every key: a spend limit, an expiry date and an IP allow-list. These are the base URLs: | Format | Base URL | Key header | | --- | --- | --- | | OpenAI | `https://api.5abeer.ai/v1` | `Authorization: Bearer ` | | Anthropic | `https://api.5abeer.ai` | `x-api-key: ` | | Gemini | `https://api.5abeer.ai/v1beta` | `x-goog-api-key: ` | Prices and details are on the [API page](https://5abeer.ai/en/api), and creating a key is explained in [Keys and authentication](https://5abeer.ai/en/docs/start/keys.md). ## What other ways are there to pay? If what you want is the official apps rather than the API, 5abeer plans run Claude Code, Codex, Claude Desktop and ChatGPT Desktop on your own official account, through the 5abeer AI app on Mac, Windows and Linux. Subscribe to the official apps for less than their official price. The plans are on the [pricing page](https://5abeer.ai/en/pricing). > Plans are for the supported apps. To use the models from your own code, create an API key. 5abeer takes international cards on Stripe's secure payment page; the card must support international payments. The full card number never reaches us, and we don't store it. The methods available right now show when you pay, as explained in [Payment methods](https://5abeer.ai/en/docs/start/payment.md#methods). If you are in Egypt, these guides cover the local options in detail: [Pay for Claude from Egypt](https://5abeer.ai/en/guides/pay-claude-from-egypt#fix), [Paying for an AI API from Egypt](https://5abeer.ai/en/guides/pay-ai-api-from-egypt#enable-card) and [The API in Egypt](https://5abeer.ai/en/api/egypt). ## Frequently asked questions ### What does “This payment method was declined. Try another payment method.” mean on ChatGPT? It means the card payment was refused, usually by your bank: international online purchases may be off or capped, the billing details may not match the bank's records, or the verification step wasn't completed. Go through the steps in [How do you fix a declined card?](https://5abeer.ai/en/guides/card-declined-ai-payment#fix) and ask your bank for the exact reason. If the card still fails, you can subscribe to ChatGPT in the iPhone or Android app instead, where Apple or Google bills you. ### Why is my card declined when it has enough money? Enough funds is only one of the checks. The bank can still decline the payment if international online purchases are off, if the amount is above the card's online limit, or if its fraud checks stopped a first payment to a merchant abroad. Your bank can tell you which one it was. ### Can I use a prepaid card? Not for OpenAI API credits: OpenAI says only standard credit or debit cards are supported there. Anthropic's page lists credit and debit cards and doesn't mention prepaid cards, so a regular credit or debit card is the safer choice. ### Can I pay for Claude with PayPal? Not on the website. Anthropic says it accepts credit and debit cards only, not PayPal or Venmo. If you subscribe in the Claude phone app, the App Store or Google Play handles the payment with the methods on your account there. ### Why did my ChatGPT renewal fail? OpenAI's help pages say a renewal can fail when you or your card's issuer aren't in a supported country, and suggest checking the card details, the billing address and the expiry date. Check those, then ask your bank whether it declined the charge. ### Why is the price different in the phone app? Subscriptions bought through the App Store or Google Play are billed by Apple or Google, and OpenAI says ChatGPT subscriptions from the app stores are billed in local currency. Anthropic says the prices on its website don't include applicable tax. So the amount you pay can differ between the app and the website. ### Does 5abeer accept my card? 5abeer takes international cards on Stripe's secure payment page, and the card must support international payments. The methods available right now show when you pay, as explained in [Payment methods](https://5abeer.ai/en/docs/start/payment.md#methods). ### Is 5abeer part of OpenAI or Anthropic? No. 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. ## Sources Checked on 2026-11-01: - Anthropic Help Center: [Why was my card declined?](https://support.claude.com/en/articles/9402418-why-was-my-card-declined) - Anthropic Help Center: [Paid plan billing FAQs](https://support.claude.com/en/articles/8325618-paid-plan-billing-faqs) - Anthropic: [Supported regions policy](https://www.anthropic.com/legal/supported-regions) - Anthropic: [Claude pricing](https://claude.com/pricing) - OpenAI Help Center: [Why was my credit card declined?](https://help.openai.com/en/articles/7232916-why-was-my-credit-card-declined) - OpenAI Help Center: [Troubleshooting ChatGPT Plus or Pro renewal payments](https://help.openai.com/en/articles/7242622-troubleshooting-chatgpt-plus-or-pro-renewal-payments) - OpenAI Help Center: [Multi-currency billing FAQ](https://help.openai.com/en/articles/10421635-multi-currency-billing-faq) Each row in the official API billing table shows its own source and the date we checked it. > 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. --- URL: https://5abeer.ai/en/guides/chatgpt-price-saudi # ChatGPT price in Saudi Arabia 2026 (Go, Plus and Pro) > ChatGPT Go, Plus and Pro prices in riyals in the Saudi App Store, sourced and dated, plus STC, Mobily and Zain billing, VAT and a cheaper way. Updated: 2026-11-16 In Saudi Arabia, OpenAI sells ChatGPT plans in the iPhone app in riyals: Go, then Plus, then three Pro tiers. Apple there accepts phone billing with Mobily, STC and Zain, alongside Apple Account balance and most cards. The Saudi App Store prices are below, with their source and the date we checked them, and what may be added on top. ChatGPT's official prices on the App Store in Saudi Arabia: ChatGPT Go SAR 35 a month, ChatGPT Plus SAR 89.99 a month, ChatGPT Pro 100 SAR 429.99 a month, ChatGPT Pro 200 SAR 899.99 a month, ChatGPT Pro 500 SAR 2,149.99 a month, checked 2026-11-15. ## How much is ChatGPT in Saudi Arabia in riyals? These are the ChatGPT plan prices from the app's page in the Saudi App Store, each row with its source and the date we checked it: | Plan | Market and channel | Official price | Billing | Source | Checked | | --- | --- | --- | --- | --- | --- | | ChatGPT Go | Saudi Arabia · App Store | SAR 35 | per month | https://apps.apple.com/sa/app/chatgpt/id6448311069 | 2026-11-15 | | ChatGPT Plus | Saudi Arabia · App Store | SAR 89.99 | per month | https://apps.apple.com/sa/app/chatgpt/id6448311069 | 2026-11-15 | | ChatGPT Pro 100 | Saudi Arabia · App Store | SAR 429.99 | per month | https://apps.apple.com/sa/app/chatgpt/id6448311069 | 2026-11-15 | | ChatGPT Pro 200 | Saudi Arabia · App Store | SAR 899.99 | per month | https://apps.apple.com/sa/app/chatgpt/id6448311069 | 2026-11-15 | | ChatGPT Pro 500 | Saudi Arabia · App Store | SAR 2,149.99 | per month | https://apps.apple.com/sa/app/chatgpt/id6448311069 | 2026-11-15 | The vendors' own prices as published at the source on the date checked; they can change. These are the vendor's official prices; 5abeer's prices are on the pricing page. Two things to keep in mind when you read the table: - **Apple sets the price for Saudi Arabia.** The riyal price in the App Store is a fixed price for the Saudi store, not today's dollar price converted at the exchange rate, so it can be a little above or below it. - **Check the billing period before you confirm.** The app's page can list more than one purchase with the same name, so read the subscription period on the in-app payment screen before you confirm. Claude's prices in the same store are in [Claude price in Saudi Arabia](https://5abeer.ai/en/guides/claude-price-saudi). ## Go, Plus or Pro: which should you choose? The plans differ in how much usage you get and which features they unlock: - **ChatGPT Go** is OpenAI's lowest-priced plan, and its price varies by region, as on [OpenAI's Go page](https://openai.com/index/introducing-chatgpt-go/). - **ChatGPT Plus** is the plan above Go, for regular daily work, as on [OpenAI's Plus page](https://help.openai.com/en/articles/6950777-what-is-chatgpt-plus). - **ChatGPT Pro** comes in three tiers, Pro 100, Pro 200 and Pro 500, for heavy professional use, as on [OpenAI's Pro tiers page](https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers). OpenAI changes plan limits and features from time to time, and the detailed comparison is in [ChatGPT Go vs Plus vs Pro](https://5abeer.ai/en/guides/chatgpt-go-plus-pro). ## Is the App Store price the same as the ChatGPT website price? Not always. OpenAI's website lists its prices in US dollars: | Plan | Market and channel | Official price | Billing | Source | Checked | | --- | --- | --- | --- | --- | --- | | ChatGPT Go | United States · Vendor website | $8 | per month | https://openai.com/index/introducing-chatgpt-go/ | 2026-11-15 | | ChatGPT Plus | United States · Vendor website | $20 | per month | https://help.openai.com/en/articles/6950777-what-is-chatgpt-plus | 2026-11-15 | | ChatGPT Pro 100 | United States · Vendor website | $100 | per month | https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers | 2026-11-15 | | ChatGPT Pro 200 | United States · Vendor website | $200 | per month | https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers | 2026-11-15 | | ChatGPT Pro 500 | United States · Vendor website | $500 | per month | https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers | 2026-11-15 | The vendors' own prices as published at the source on the date checked; they can change. These are the vendor's official prices; 5abeer's prices are on the pricing page. OpenAI says in its [multi-currency billing FAQ](https://help.openai.com/en/articles/10421635-multi-currency-billing-faq) that a subscription bought through the App Store or Google Play is billed in local currency, so it can differ from the website price. Three things make the difference: - **Currency.** The App Store charges you in riyals, while the website shows dollars, and your bank converts the amount if your card is in riyals. - **Bank fees.** Your bank may charge a foreign transaction fee when a riyal card pays an amount in another currency, so ask your bank before you choose the website. - **Who you pay.** In the iPhone app you pay Apple, and you manage or cancel the subscription in your Apple account settings, not in ChatGPT's settings. ## Does the ChatGPT price in Saudi Arabia include VAT? Saudi Arabia charges VAT at 15% ([ZATCA](https://zatca.gov.sa/en/HelpCenter/guidelines/Documents/VAT-Guideline-for-Electronic-Contracts.pdf)), and [Apple's developer agreement](https://developer.apple.com/support/downloads/terms/exhibits/Exhibits-to-Schedule-2-and-3-English.pdf) lists Saudi Arabia among the regions where Apple collects and remits taxes on App Store sales. The app's store page doesn't say whether the listed price includes tax. So the safe rule is simple: compare the final amount on the payment screen, not the price on the app's page or in a seller's post, because that final amount is what you are charged. ## How do you pay for ChatGPT in Saudi Arabia? In the iPhone app you pay with your Apple account. [Apple's payment methods page](https://support.apple.com/en-us/111741) lists these options in Saudi Arabia: | Payment method | In the Saudi App Store | | --- | --- | | Apple Account balance | Yes, from gift cards or added funds | | Mobile phone billing | Mobily, STC and Zain | | Credit and debit cards | Yes, most cards | | Apple Pay and mada | Not listed by Apple for the Saudi store | Phone billing depends on your line and carrier support, so check the payment methods in your Apple account settings. On Android, [Google Play's Saudi page](https://support.google.com/googleplay/answer/2651410?co=GENIE.CountryCode%3DSA) lists American Express, Mastercard and Visa, mobile phone billing with Mobily, STC, Zain and Virgin, and a Google Play balance you can top up with cash at stores, and warns that some carriers can't be used to pay for subscriptions. > Never give a seller your ChatGPT password. A safe subscription runs on your own account, and your chats stay yours. ## Is ChatGPT available in Saudi Arabia? Yes. The ChatGPT app is in the Saudi App Store, selling Go, Plus and Pro in riyals, and Saudi Arabia is also on [OpenAI's list of supported countries for its API](https://developers.openai.com/api/docs/supported-countries). So you can subscribe from Saudi Arabia directly, with no extra steps. ## Is there a cheaper way to run ChatGPT and Codex? Yes, if you use them on a computer. 5abeer Bundle plans run the official apps: ChatGPT Desktop and Codex, plus Claude Desktop, Cowork, Claude Code and Google Antigravity. Subscribe to the official apps for less than their official price. These are our plans and the limits of each; their prices are on the [pricing page](https://5abeer.ai/en/pricing): | 5abeer plan | Best for | Usage limits | Our price | | --- | --- | --- | --- | | Pro | For everyday use | A 5-hour limit and a weekly limit | Prices on the pricing page: https://5abeer.ai/en/pricing | | Max (formerly Max 5x) | For heavy daily work | 5× the Pro plan limits | Prices on the pricing page: https://5abeer.ai/en/pricing | | Ultra (formerly Max 20x) | If you work with it all day | 20× the Pro plan limits | Prices on the pricing page: https://5abeer.ai/en/pricing | What to know before you subscribe: - It runs on your own official account, and Codex asks for your ChatGPT account. - Every Bundle plan runs every official app, from the smallest to the largest. The plans differ only in usage limits. - Each plan has a 5-hour limit and a weekly limit, as in [Usage limits](https://5abeer.ai/en/docs/subscriptions/limits.md). We don't promise limits matching OpenAI's plans. - You pay by international card on Stripe's secure payment page, as in [Payment methods](https://5abeer.ai/en/docs/start/payment.md#card). - Activated within minutes in the [5abeer AI app](https://5abeer.ai/en/app) on Mac, Windows and Linux; it doesn't work inside the phone apps. ChatGPT's details are on the [ChatGPT app page](https://5abeer.ai/en/apps/chatgpt). Saudi and UAE prices side by side are in [ChatGPT and Claude prices in Saudi Arabia and the UAE](https://5abeer.ai/en/guides/chatgpt-claude-gulf-price), and the UAE on its own in [ChatGPT price in the UAE](https://5abeer.ai/en/guides/chatgpt-price-uae). > Plans are for the supported apps. To use the models from your own code, create an API key on the [OpenAI API page](https://5abeer.ai/en/api/openai). ## Which option suits you? | Your situation | Best fit | | --- | --- | | You use ChatGPT mostly on iPhone | The official plan from the App Store | | You want to pay on your STC, Mobily or Zain bill | The official plan from the App Store | | You work with ChatGPT and Codex on a computer | A 5abeer Bundle plan | | You also use Claude Code or Claude Desktop | A 5abeer Bundle plan | | You want the models in your own code | A 5abeer API key | ## Frequently asked questions ### How much is ChatGPT Plus in Saudi Arabia? The App Store price in riyals is in the table above, with the date we checked it. Apple sets it for Saudi Arabia and it can change, so check the final amount on the payment screen. ### How much is ChatGPT Go in riyals? The Go price in riyals is the first row of the table. It is OpenAI's lowest-priced paid plan, and its price differs from country to country. ### Can I pay for ChatGPT on my STC bill? Yes in the iPhone app, because Apple lists phone billing with Mobily, STC and Zain in Saudi Arabia. On Android, Google Play lists the same carriers plus Virgin. It depends on your line. ### Does the Saudi App Store accept mada or Apple Pay? Apple's payment methods page doesn't list mada or Apple Pay for the Saudi store. The listed methods are Apple Account balance, phone billing and most cards. ### Is it cheaper to pay in riyals or in dollars? It depends on the exchange rate and on your bank's fees for foreign currency payments. Compare the App Store riyal price with the dollar price after conversion and fees. ### Does a 5abeer plan run on my own ChatGPT account? Yes. Codex and ChatGPT Desktop run on your own official account. What each app asks for at sign-in is in [The apps one by one](https://5abeer.ai/en/docs/subscriptions/plan-apps.md#apps). ### How do I pay for a 5abeer plan from Saudi Arabia? By international card on Stripe's secure payment page. Your full card number never reaches us, and we don't store it. You can also pay with any bank card, Apple Pay or Google Pay. ### Is 5abeer part of OpenAI? No. 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. ## Sources Checked on 2026-11-16: - Apple Support: [Payment methods that you can use with your Apple Account](https://support.apple.com/en-us/111741) - OpenAI: [Supported countries and territories](https://developers.openai.com/api/docs/supported-countries) Checked on 2026-11-15: - The Saudi App Store: [ChatGPT](https://apps.apple.com/sa/app/chatgpt/id6448311069), in-app purchases - Google Play Help: [Accepted payment methods on Google Play](https://support.google.com/googleplay/answer/2651410?co=GENIE.CountryCode%3DSA), the Saudi Arabia page - ZATCA: [VAT guideline for electronic contracts](https://zatca.gov.sa/en/HelpCenter/guidelines/Documents/VAT-Guideline-for-Electronic-Contracts.pdf) - Apple Developer: [Exhibits to Schedules 2 and 3](https://developer.apple.com/support/downloads/terms/exhibits/Exhibits-to-Schedule-2-and-3-English.pdf) Checked on 2026-11-01: - OpenAI Help Center: [Multi-currency billing FAQ](https://help.openai.com/en/articles/10421635-multi-currency-billing-faq) > 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. --- URL: https://5abeer.ai/en/guides/opencode-vs-claude-code # OpenCode vs Claude Code: models, cost and setup compared > How OpenCode and Claude Code differ on license, models and cost, which one fits you, how to move a project between them, and how to run both. Updated: 2026-11-16 OpenCode and Claude Code are both coding agents for the terminal. Claude Code is Anthropic's agent for Claude models, on a Claude plan or an API key. OpenCode is open source under the MIT license and runs models from more than 75 providers, on your own API keys or a subscription it supports, such as ChatGPT Plus. ## How do OpenCode and Claude Code compare? | | Claude Code | OpenCode | | --- | --- | --- | | Made by | Anthropic | Anomaly, as an open-source project | | License | Proprietary: use is subject to Anthropic's Commercial Terms of Service | Open source, MIT | | Models | Claude models | Models from more than 75 providers, including Claude, GPT and Gemini, plus local models | | How you pay | A Claude plan, an Anthropic API key, or a cloud provider | A provider's API key, or a ChatGPT Plus or Pro, GitHub Copilot, GitLab Duo or SuperGrok sign-in | | Where it runs | Terminal, VS Code and Cursor, JetBrains, a desktop app and the web | Terminal, a desktop app, a web interface, and an extension for VS Code and editors built on it, such as Cursor | | Install | Native installer, Homebrew, WinGet, Linux package managers or npm | Install script, npm, Homebrew, Chocolatey, Scoop or Docker, among others | | Project instructions | `CLAUDE.md`, or `AGENTS.md` when there is no `CLAUDE.md` | `AGENTS.md`, or `CLAUDE.md` when there is no `AGENTS.md` | | Extending it | MCP, skills, hooks, subagents and plugins | MCP, agents, skills, commands, plugins and custom tools | | Scripted runs | `claude -p` | `opencode run` | Both are full coding agents: they read your project, edit files and run commands. The real differences are the models, how you pay for them, and whether you can read and change the agent's source. ## What does each one cost? Claude Code is included in Anthropic's Pro, Max and Ultra plans and in Team and Enterprise seats, and its use counts toward the plan's usage limits: Claude individual plans (official prices) | Service | Item | Value | Note | Source | | --- | --- | --- | --- | --- | | Claude | Pro, billed monthly | $20 a month | Includes Claude Code. | https://claude.com/pricing | | Claude | Pro, billed yearly up front | $200 a year | Includes Claude Code. | https://claude.com/pricing | | Claude | Max | $100 a month | 5x Pro usage every 5 hours and every week; includes Claude Code. | https://claude.com/pricing | | Claude | Ultra | $200 a month | 10x Pro usage every week, no 5-hour limit for verified accounts; includes Claude Code. | https://claude.com/pricing | | Anthropic | API usage with a paid plan | Billed separately from the plan | Max and Ultra include monthly API credits. | https://support.claude.com/en/articles/9876003 | Each row links to the page it comes from, checked October 31, 2026, November 1, 2026. These figures can change, so check the source before you buy. Without a plan, it runs on an Anthropic API key billed per token, or through a cloud provider such as Amazon Bedrock. Whether a plan or a key costs less for you is worked out in [The cheapest way to use Claude Code](https://5abeer.ai/en/guides/claude-code-cheapest-way). OpenCode itself costs nothing. When we checked on 2026-11-03, its site said it comes with a set of free models you can use without an account. For other models you pay the provider you connect it to: per token on an API key, or through a subscription it can sign in with. Claude plans are the exception. On the same date, OpenCode's docs said Anthropic explicitly prohibits using a Claude Pro or Max plan in OpenCode, and that OpenCode stopped bundling the plugins that allowed it as of version 1.3.0. For Claude models, the docs point to an API key from the Anthropic Console. ## Which model providers does each tool support? Claude Code speaks the Anthropic Messages format and runs Claude models, and `/model` switches between them during a session. OpenCode connects to each provider's own API and to any OpenAI-compatible service. You add a provider with `/connect` or in `opencode.json`, then pick any of their models with `/models`, so one session can move between Claude, GPT and Gemini. These are the models Claude Code runs on 5abeer, at our price per million tokens. The default is [`claude-sonnet-5.5`](https://5abeer.ai/en/models/claude-sonnet-5.5): | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | Claude Sonnet 5.5 | `claude-sonnet-5.5` | $0.60 | $3 | 1M | | Claude Opus 5.5 | `claude-opus-5.5` | $1.20 | $6 | 1M | | Claude Fable 5.1 | `claude-fable-5.1` | $3 | $15 | — | | Claude Fable 5 | `claude-fable-5` | $3 | $15 | 1M | | Claude Opus 4.6 | `claude-opus-4.6` | $1.50 | $7.50 | 1M | | Claude Opus 5 | `claude-opus-5` | $1.50 | $7.50 | 1M | | Claude Sonnet 5 | `claude-sonnet-5` | $0.60 | $3 | 1M | | Claude Sonnet 4.6 | `claude-sonnet-4.6` | $0.90 | $4.50 | 1M | | Claude Haiku 5.5 | `claude-haiku-5.5` | $0.03 | $0.15 | 1M | | Claude Haiku 4.5 | `claude-haiku-4.5` | $0.30 | $1.50 | 200K | And these are the models OpenCode runs on 5abeer: | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | Claude Sonnet 5.5 | `claude-sonnet-5.5` | $0.60 | $3 | 1M | | Claude Opus 5.5 | `claude-opus-5.5` | $1.20 | $6 | 1M | | GPT-6.2 Sol | `gpt-6.2-sol` | $0.60 | $3 | — | | Gemini 4 Argon | `gemini-4-argon` | $0.60 | $3 | — | | Claude Fable 5.1 | `claude-fable-5.1` | $3 | $15 | — | | Claude Fable 5 | `claude-fable-5` | $3 | $15 | 1M | | Claude Opus 4.6 | `claude-opus-4.6` | $1.50 | $7.50 | 1M | | Claude Opus 4.7 | `claude-opus-4.7` | $1.50 | $7.50 | 1M | | Claude Opus 5 | `claude-opus-5` | $1.50 | $7.50 | 1M | | Claude Sonnet 5 | `claude-sonnet-5` | $0.60 | $3 | 1M | | Claude Sonnet 4.6 | `claude-sonnet-4.6` | $0.90 | $4.50 | 1M | | Claude Haiku 5.5 | `claude-haiku-5.5` | $0.03 | $0.15 | 1M | | Claude Haiku 4.5 | `claude-haiku-4.5` | $0.30 | $1.50 | 200K | | GPT-6.2 Astra | `gpt-6.2-astra` | $2.40 | $12 | — | | GPT-6.1 Sol | `gpt-6.1-sol` | $0.60 | $3 | 922K | | GPT-6 Astra | `gpt-6-astra` | $3 | $15 | — | | GPT-6 Sol | `gpt-6-sol` | $0.60 | $3 | 922K | | GPT-6 Luna | `gpt-6-luna` | $0.03 | $0.15 | 922K | | GPT-5.6 Luna | `gpt-5.6-luna` | $0.06 | $0.36 | 400K | | GPT-5.6 Terra | `gpt-5.6-terra` | $0.60 | $3.60 | 400K | | GPT-5.6 Sol | `gpt-5.6-sol` | $1.20 | $6 | 400K | | GPT-5.5 | `gpt-5.5` | $1.50 | $9 | 1.05M | | GPT-5.4 | `gpt-5.4` | $0.75 | $4.50 | 1.05M | | GPT-5.4 Mini | `gpt-5.4-mini` | $0.23 | $1.35 | 400K | | GPT-5.2 | `gpt-5.2` | $0.53 | $4.20 | 272K | | Gemini 2.5 Pro | `gemini-2.5-pro` | $0.38 | $3 | 1M | | Gemini 3.8 Flash | `gemini-3.8-flash` | $0.23 | $1.13 | — | | Gemini 3 Flash | `gemini-3-flash` | $0.15 | $0.90 | 1M | | Gemini 3.1 Pro | `gemini-3.1-pro` | $0.60 | $3.60 | 1M | ## Which one should you pick? | Your situation | The tool that fits | | --- | --- | | You have a Claude plan | Claude Code, which the plan includes | | You want Claude models on an API key | Either one: both run Claude models on a key | | You want Claude, GPT and Gemini models in one tool | OpenCode, with a key for each provider | | You pay for ChatGPT Plus or Pro, GitHub Copilot, GitLab Duo or SuperGrok | OpenCode, which signs in with those subscriptions | | You want to read or change the agent's source | OpenCode, under the MIT license | ## How do you move a project between them? OpenCode 1's docs list three Claude Code files it reads as fallbacks, so most projects open in OpenCode as they are: - A project's `CLAUDE.md`, when the project has no `AGENTS.md`. - `~/.claude/CLAUDE.md`, when there is no `~/.config/opencode/AGENTS.md`. - Skills in `.claude/skills/` and `~/.claude/skills/`. OpenCode needs `name` and `description` in each `SKILL.md`, with the name matching its folder, so check both on skills you wrote for Claude Code. `OPENCODE_DISABLE_CLAUDE_CODE=1` turns off all of that `.claude` support, `OPENCODE_DISABLE_CLAUDE_CODE_PROMPT=1` turns off only `~/.claude/CLAUDE.md`, and `OPENCODE_DISABLE_CLAUDE_CODE_SKILLS=1` only `.claude/skills`. The rest moves by hand: | In Claude Code | In OpenCode | | --- | --- | | Subagents in `.claude/agents/` | Agent files in `.opencode/agents/`, with `mode: subagent` in the frontmatter | | Custom commands in `.claude/commands/` | Command files in `.opencode/commands/` | | MCP servers under `mcpServers` in `.mcp.json` | Servers under `mcp` in `opencode.json`, each with `type` set to `local` or `remote` | | `claude -p "…"` in scripts | `opencode run "…"` | | `/model` to switch models | `/models` | Going the other way, Claude Code 2.1.277 or later reads `AGENTS.md` when there is no `CLAUDE.md` or `CLAUDE.local.md` in the folder or above it. Watch a project that has both files: by default OpenCode reads only `AGENTS.md` and Claude Code reads only `CLAUDE.md`. To share instructions, keep a single `AGENTS.md`, or set **Project instructions** to `claude-md-and-agents-md` in Claude Code's `/config` so it also loads `AGENTS.md`, and put what both tools need there. The Claude Code side of each piece is in [MCP in Claude Code](https://5abeer.ai/en/guides/claude-code-mcp) and [Claude Code skills](https://5abeer.ai/en/guides/claude-code-skills). ## How do you run both on 5abeer? 5abeer serves Claude models in the Anthropic Messages format for Claude Code, and Claude, GPT and Gemini models in the OpenAI format for OpenCode. Each key works with one provider's models, so one Claude key works in both tools. All your keys draw on one balance, and every API price is below the model's official price. ### 1. Create your keys Create a Claude key, plus one for each other provider you want in OpenCode, as in [Create a key](https://5abeer.ai/en/docs/start/keys.md#create). ### 2. Set up Claude Code Put these settings in `~/.claude/settings.json`, with your Claude key in place of `YOUR_5ABEER_API_KEY`: `~/.claude/settings.json` ```json { "env": { "ANTHROPIC_BASE_URL": "https://api.5abeer.ai", "ANTHROPIC_AUTH_TOKEN": "YOUR_5ABEER_API_KEY", "ANTHROPIC_MODEL": "claude-sonnet-5.5" } } ``` Run `claude` in your project. `/status` shows the base URL in use. The full steps are in [Claude Code setup](https://5abeer.ai/en/docs/apps/claude-code.md). ### 3. Set up OpenCode Install OpenCode 1 as in [OpenCode setup](https://5abeer.ai/en/docs/apps/opencode.md#install). Put this config in `~/.config/opencode/opencode.json`, with your Claude key in place of `YOUR_5ABEER_API_KEY`: `~/.config/opencode/opencode.json` ```json { "$schema": "https://opencode.ai/config.json", "provider": { "khabeer": { "npm": "@ai-sdk/openai-compatible", "name": "5abeer AI", "options": { "baseURL": "https://api.5abeer.ai/v1", "apiKey": "YOUR_5ABEER_API_KEY" }, "models": { "gpt-6.1-sol": { "name": "GPT 6.1 Sol" }, "claude-opus-5-5": { "name": "Claude Opus 5.5" }, "claude-fable-5-1": { "name": "Claude Fable 5.1" } } } }, "model": "khabeer/gpt-6.1-sol" } ``` Run `opencode` in your project and pick a Claude model from this config with `/models`, because its default model is a GPT model and your key is for Claude models. To run GPT or Gemini models too, add a provider entry with that provider's key, as in [Claude and GPT models together](https://5abeer.ai/en/docs/apps/opencode.md#faq-providers). You can also skip the keys. Every 5abeer Bundle plan runs both tools, and the Claude plan runs Claude Code. The 5abeer AI app sets each tool up on your plan, with no API key and no files to edit, as in [What each plan runs](https://5abeer.ai/en/docs/subscriptions/plan-apps.md#open-source). 5abeer's plans cost less than the official ones, with details on the [OpenCode page](https://5abeer.ai/en/apps/opencode) and the [Claude Code page](https://5abeer.ai/en/apps/claude-code). | 5abeer plan | Best for | Usage limits | Our price | | --- | --- | --- | --- | | Pro | For everyday use | A 5-hour limit and a weekly limit | Prices on the pricing page: https://5abeer.ai/en/pricing | | Max (formerly Max 5x) | For heavy daily work | 5× the Pro plan limits | Prices on the pricing page: https://5abeer.ai/en/pricing | | Ultra (formerly Max 20x) | If you work with it all day | 20× the Pro plan limits | Prices on the pricing page: https://5abeer.ai/en/pricing | ## Questions ### Is OpenCode free? The tool is: it's open source under the MIT license, and its site says it comes with a set of free models you can use without an account. Other models are paid: you pay their provider per token on an API key, or through a subscription OpenCode signs in with. ### Can I use my Claude Pro or Max plan in OpenCode? No. OpenCode's docs say Anthropic explicitly prohibits it, and OpenCode stopped bundling the plugins that did it as of version 1.3.0. Use a Claude API key in OpenCode, or keep the plan for Claude Code. ### Which subscriptions can OpenCode sign in with? Its docs name ChatGPT Plus or Pro, GitHub Copilot, GitLab Duo and xAI's SuperGrok, each connected with `/connect`. Some Copilot models may need a Copilot Pro+ plan, and GitLab Duo's agent platform needs a GitLab Premium or Ultimate subscription. ### Which OpenCode version should I install? OpenCode 1, which our setup is written for. Both versions use the `opencode` command and are not installed side by side by default, and Homebrew's plain `brew install opencode` now installs OpenCode 2, so use an install command from [OpenCode setup](https://5abeer.ai/en/docs/apps/opencode.md#install). ### Which tool costs less on an API key? It depends on the tokens, not the tool. On 5abeer a model has one price per token whichever tool calls it, but each tool builds its own requests, so the same task can use a different number of tokens. Give each tool its own key, run the same task in both, and compare each key's usage, as in [Track your usage](https://5abeer.ai/en/docs/start/pricing.md#usage). ## Sources Checked on 2026-11-03: - OpenCode: [Home page FAQ](https://opencode.ai), docs: [Intro](https://opencode.ai/docs), [Providers](https://opencode.ai/docs/providers), [Rules](https://opencode.ai/docs/rules), [Skills](https://opencode.ai/docs/skills), [Agents](https://opencode.ai/docs/agents), [Commands](https://opencode.ai/docs/commands), [MCP servers](https://opencode.ai/docs/mcp-servers), [CLI](https://opencode.ai/docs/cli), [IDE](https://opencode.ai/docs/ide) and the [OpenCode license](https://github.com/anomalyco/opencode/blob/dev/LICENSE) - Claude Code docs: [Overview](https://code.claude.com/docs/en/overview), [Manage costs](https://code.claude.com/docs/en/costs), [How Claude remembers your project](https://code.claude.com/docs/en/memory), [Subagents](https://code.claude.com/docs/en/sub-agents), [MCP](https://code.claude.com/docs/en/mcp) and the [Claude Code license](https://github.com/anthropics/claude-code/blob/main/LICENSE.md) > 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. ## Get started Compare every model's price on the [API page](https://5abeer.ai/en/api), or create a key and set up either tool. --- URL: https://5abeer.ai/en/guides/which-gemini-model # Which Gemini model is best in 2026: Argon or Flash? > Argon is Google's most capable Gemini model for hard coding, math and agent tasks; the newest Flash is faster and costs well under half as much per token. Updated: 2026-11-16 Use Argon for the hardest work: Google calls it its most capable model, built for complex coding, math, science and agent tasks. Use the newest Flash for most everyday and agent work: Google built it for long software and agent tasks at Flash speed, and it costs well under half Argon's price per token. ## Which Gemini model fits which task? Google's newest Gemini line has two headline models: Argon, the most capable, and Flash, the fast, lower-priced one. This table uses the wording of Google's own model pages and release notes: | Your task | Model | Why | | --- | --- | --- | | The hardest reasoning and coding, math, science, long agent runs | Argon | "Our most capable model, built to solve the hardest problems with depth and precision" | | Everyday coding, agents that call tools, business workflows | The newest Flash | "Our most intelligent Flash model, engineered for long-horizon software engineering, autonomous agents, and complex enterprise workflows" | | Simple, repeated tasks where cost matters most | The newest Flash at a `low` thinking level | The lower price per token, and the fewest thinking tokens | In short: start with the newest Flash, move up to Argon when a task needs more depth, and lower the thinking level for jobs you repeat many times. ## The Gemini models you can use today This list comes from our live catalog, so it shows the current versions and our price per million tokens: | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | Gemini 4 Argon | `gemini-4-argon` | $0.60 | $3 | — | | Gemini 2.5 Pro | `gemini-2.5-pro` | $0.38 | $3 | 1M | | Gemini 3.8 Flash | `gemini-3.8-flash` | $0.23 | $1.13 | — | | Gemini 3 Flash | `gemini-3-flash` | $0.15 | $0.90 | 1M | | Gemini 3.1 Pro | `gemini-3.1-pro` | $0.60 | $3.60 | 1M | When two versions of the same model appear, the higher version number is the newer one. Google recommends its latest models for new projects; older versions stay on the models page for code that still uses them. ## Argon: for the hardest work Argon's model id is [`gemini-4-argon`](https://5abeer.ai/en/models/gemini-4-argon). Google calls it its "latest, most capable model" and says it "can reason longer on hard problems for better results on complex coding, agentic, math, and science tasks". Its one context window of 1,048,576 tokens holds input, thinking and output together, so a large codebase or a long set of documents fits in one request. Argon has three thinking levels: `low`, `medium` (the default) and `high`. Google recommends `medium` "for most tasks, including complex code and agentic use cases", and `high` for complex reasoning, "hard math and science, and the most difficult code or agent tasks". Its advice is practical: "Run your evaluations at all three levels, then pick the lowest level that meets your quality bar." Depth takes time. Google warns that hard prompts "can take several minutes", so Argon is a poor fit for chat replies that must arrive in seconds. ## The newest Flash: for most work The newest Flash is [`gemini-3.8-flash`](https://5abeer.ai/en/models/gemini-3.8-flash). Google calls it its "most intelligent Flash model, engineered for long-horizon software engineering, autonomous agents, and complex enterprise workflows". It reads up to 1,048,576 tokens and writes up to 65,536 per reply, at well under half Argon's price per token. It has the same three thinking levels as Argon, with `medium` as the default. One change from older Flash versions such as `gemini-3-flash`, which also accept `minimal`: on the newest Flash, Google says `minimal` "is not supported and returns an error". If your code sends `minimal`, change it to `low` before you switch. ## Try a different thinking level before a different model The thinking level sets how much the model reasons before it answers. A higher level can give better results on hard tasks, but it takes longer and uses more tokens, and Google bills every thinking token. So before you move from Flash to Argon, try Flash at `high`. Before you run routine work on Argon, try Argon at `low`, or the newest Flash. In the native Gemini format, thinking settings go in `thinkingConfig` inside `generationConfig` ([Gemini API reference](https://5abeer.ai/en/docs/api/gemini.md#params)). ## What does each model cost for a real task? Our Gemini prices keep the same steps as Google's list: on our prices too, the newest Flash costs well under half Argon's price per input and output token. The list above shows our price for each model. Use every model priced per token through the API for 70% less than its official price. Three rules from Google's pricing, checked on 2026-11-04, change what a real task costs: - Thinking tokens are billed at the output price. A short answer after long thinking can cost more than a longer answer with little thinking. - Cached input costs a fraction of the input price: 5% on Argon and 10% on the newest Flash. Google caches repeated input on its own, in prompts of at least 4,096 tokens on both models. - Google's list prices change on set dates: Argon's doubles from December 1, 2026, and the newest Flash's from January 1, 2027. The list above always shows our current price. So compare the cost of a finished task, not the price per token. A model that needs three tries can cost more than one that gets it right the first time. Each model has its own cache, so switching models in the middle of a task means the next request has no cache hits. For Gemini models there is no cache field to set ([Prompt caching](https://5abeer.ai/en/docs/api/caching.md#gemini)). ## How to pick a model in Gemini CLI To use Gemini CLI with a 5abeer key, put three values in `~/.gemini/.env`: the base URL, your key and a model: `~/.gemini/.env` ```bash GEMINI_API_KEY=YOUR_5ABEER_API_KEY GEMINI_MODEL=gemini-4-argon GOOGLE_GEMINI_BASE_URL=https://api.5abeer.ai ``` Gemini CLI adds `/v1beta` to the base URL on its own, so the base URL in this file has no version path. To change the model, the Gemini CLI docs give three ways: 1. `GEMINI_MODEL` in `~/.gemini/.env`, the default model for every session 2. `gemini --model `, or its `-m` alias, for one session 3. `/model` during a session, then Manual to choose a specific model With a 5abeer key, set a specific model rather than an Auto option, so you know which model answers and what each request costs. The docs also note that `/model` and `--model` don't change the model that sub-agents use, so your usage may show other models too. The full setup is in [Gemini CLI setup](https://5abeer.ai/en/docs/apps/gemini-cli.md#manual), and [Pick a model](https://5abeer.ai/en/docs/apps/gemini-cli.md#models) explains which models run in it. ## Switching models in your own code In the native Gemini format, the model id goes in the request URL, not in the body. The base URL and the key stay the same for every Gemini model, so your code can send routine requests to Flash and the hardest ones to Argon. Every request is billed by its model and its token count. | Format | Base URL | Key header | | --- | --- | --- | | OpenAI | `https://api.5abeer.ai/v1` | `Authorization: Bearer ` | | Anthropic | `https://api.5abeer.ai` | `x-api-key: ` | | Gemini | `https://api.5abeer.ai/v1beta` | `x-goog-api-key: ` | Compatible with the Gemini generateContent API for the models that support it. Gemini chat models also work in [Chat Completions](https://5abeer.ai/en/docs/api/chat-completions.md) and [Messages](https://5abeer.ai/en/docs/api/messages.md), with a key for Gemini models. Three details from Google's notes on Argon matter when you switch: - The output limit counts thinking and the answer together. Google asks for at least 32,768 tokens, and suggests a lower thinking level, not a lower limit, to use fewer tokens. - Remove `temperature`, `topP` and `topK` from your requests. Argon ignores them. - Hard prompts can take several minutes, so Google advises an HTTP client timeout of at least 15 minutes. Through 5abeer, stream long replies: a reply that takes too long ends with `504` and `UPSTREAM_TIMEOUT`, as in [Codes while serving the request](https://5abeer.ai/en/docs/api/limits.md#model-errors). The full request format is in [Gemini API reference](https://5abeer.ai/en/docs/api/gemini.md), and prices for every Gemini model are on [Gemini API](https://5abeer.ai/en/api/gemini). ## FAQ ### Which Gemini model is best for coding? For most coding, the newest Flash: Google built it for long software engineering and agent work at Flash speed and price. For the hardest problems and long agent runs, Argon. For small, repeated edits, Flash at a lower thinking level. ### Is Argon always better than Flash? No. Argon is stronger on the hardest work, but it costs more per token and takes longer. Try the newest Flash at `high` before you pay Argon's price for routine work. ### Why does a short answer use so many tokens? The model thinks before it answers, and Google bills those thinking tokens at the output price. For simple tasks, a lower thinking level uses fewer of them. ### Should I still use Gemini Pro? Argon is now Google's most capable Gemini model. Older Pro versions stay on the models page for code that still uses them, but Google has deprecated `gemini-2.5-pro`: from December 1, 2026, Google automatically sends requests for that model to the newest Flash. For new work, test Argon or the newest Flash first. ### What about Flash-Lite? Google's models page describes Flash-Lite as its fastest, most cost-effective option for high-throughput work. Check the [models page](https://5abeer.ai/en/models) for which Flash-Lite versions you can use with 5abeer today. ### Can I switch models in the middle of a conversation? Yes, with `/model` in Gemini CLI or the model id in your request URL. The next request after a switch has no cache hits on the new model, so it costs more. Switch between tasks rather than inside one. ## Get started Comparing Gemini with Claude or GPT? [Which Claude model to use](https://5abeer.ai/en/guides/which-claude-model) and [Which GPT model to use](https://5abeer.ai/en/guides/which-gpt-model) cover them the same way, and [How to get an API key](https://5abeer.ai/en/guides/ai-api-key-guide) explains keys for all three. Or create a key and try both Gemini models on your own tasks. ## Sources Checked on 2026-11-04: - Google: [Gemini models](https://aistudio.google.com/docs/models), and the model pages for [Argon](https://aistudio.google.com/docs/models/gemini-4-argon) and [Flash](https://aistudio.google.com/docs/models/gemini-3.8-flash) - Google: [Latest model](https://aistudio.google.com/docs/latest-model) - Google: [Gemini Developer API pricing](https://aistudio.google.com/docs/pricing) - Google: [Gemini thinking](https://aistudio.google.com/docs/thinking) - Google: [Context caching](https://aistudio.google.com/docs/caching) - Gemini CLI docs: [Model selection](https://geminicli.com/docs/cli/model/) and [Configuration](https://geminicli.com/docs/reference/configuration/) > 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. --- URL: https://5abeer.ai/en/guides/claude-code-egypt # Claude Code in Egypt: does it work, how to pay and set up > Does Claude Code work in Egypt? Which Claude plan includes it, its App Store price in pounds, how to pay without a card, and how to install and sign in. Updated: 2026-11-16 Yes. Egypt is on Anthropic's list of supported countries, so Claude Code works there directly. You need a Claude Pro, Max or Ultra plan, which the App Store in Egypt sells in pounds, or an API key billed per token. Anthropic's website takes cards only, while 5abeer's [Claude Code subscription in Egypt](https://5abeer.ai/en/apps/claude-code/egypt) can be paid by mobile wallet or InstaPay. ## Does Claude Code work in Egypt? Yes. Egypt is on [Anthropic's list of supported countries](https://www.anthropic.com/supported-countries), which covers its apps, such as Claude.ai, Claude Code and Cowork, and its API. The Claude Code docs list the same page as the location requirement. You subscribe, install and work from Egypt without changing your region. Keep Claude Code on your own account. Don't buy a shared account: everyone who uses it can see your chats and your code. ## Which Claude plan includes Claude Code? Pro, Max and Ultra. The free plan doesn't include it. Anthropic's help page says: "With Pro, Max, and Ultra plans, you now have access to both Claude on the web, desktop, and mobile apps and Claude Code in your terminal with one unified subscription." The plan also covers Claude Code in editors such as VS Code and JetBrains. The plans differ in their usage limits: - **Pro and Max** have a five-hour session limit and a weekly limit. - **Ultra** has a weekly limit, and verified Ultra accounts have no five-hour limit. - **Max and Ultra** also have a separate weekly limit for Fable. Claude Code shares these limits with the Claude apps, so everything you do in either counts against the same limits. Run `/status` inside Claude Code to see what is left. The plans are compared in detail in [Claude Pro, Max and Ultra prices in Egypt](https://5abeer.ai/en/guides/claude-pro-max-price-egypt). ## How much is Claude Code in Egypt? Anthropic doesn't sell Claude Code on its own, so its price is the price of the plan that includes it. The App Store in Egypt sells these plans in pounds inside the Claude iPhone app, and Anthropic's website lists them in dollars. These are the Egypt App Store prices and the website prices, each row with its source and the date it was checked: | Plan | Market and channel | Official price | Billing | Source | Checked | | --- | --- | --- | --- | --- | --- | | Claude Pro | Egypt · App Store | EGP 999.99 | per month | https://apps.apple.com/eg/app/claude-by-anthropic/id6473753684 | 2026-11-15 | | Claude Pro | Egypt · App Store | EGP 9,999.99 | per year | https://apps.apple.com/eg/app/claude-by-anthropic/id6473753684 | 2026-11-15 | | Claude Max | Egypt · App Store | EGP 6,999.99 | per month | https://apps.apple.com/eg/app/claude-by-anthropic/id6473753684 | 2026-11-15 | | Claude Ultra | Egypt · App Store | EGP 12,999.99 | per month | https://apps.apple.com/eg/app/claude-by-anthropic/id6473753684 | 2026-11-15 | | Claude Pro | United States · Vendor website | $20 | per month | https://claude.com/pricing | 2026-11-15 | | Claude Pro | United States · Vendor website | $200 | per year | https://claude.com/pricing | 2026-11-15 | | Claude Max | United States · Vendor website | $100 | per month | https://claude.com/pricing | 2026-11-15 | | Claude Ultra | United States · Vendor website | $200 | per month | https://claude.com/pricing | 2026-11-15 | The vendors' own prices as published at the source on the date checked; they can change. These are the vendor's official prices; 5abeer's prices are on the pricing page. Tax: per Anthropic's pages, some countries include tax in the displayed price and others add it at checkout. How to read the table: - Anthropic says the prices on its website don't include applicable tax, so the final amount is what the checkout page shows before you confirm. - Pro has a monthly row and a yearly row. The monthly row is the one to compare with any monthly plan. - If you code on an API key instead of a plan, you pay per token. Worked examples are in [The cheapest way to use Claude Code](https://5abeer.ai/en/guides/claude-code-cheapest-way). ## How do you pay for Claude from Egypt? Anthropic sets the payment method by where you subscribe, as in its [paid plan billing FAQs](https://support.claude.com/en/articles/8325618-paid-plan-billing-faqs), and [Apple's payment methods page](https://support.apple.com/en-us/111741) lists what the App Store accepts in Egypt: | Where you subscribe | How you pay from Egypt | Who handles the payment | | --- | --- | --- | | claude.ai | Credit or debit card only | Anthropic | | The Claude iPhone app | Apple Account balance, Vodafone phone billing, or most credit and debit cards | App Store | | The Claude Android app | The payment methods on your Google Play account | Google Play | After you subscribe on iPhone, log in to Claude Code with the same account and your plan works there on your computer. You then manage the payment method and receipts in your Apple account, not on claude.ai. ## Why is an Egyptian card declined? Egypt is supported, so a decline usually comes from the card itself. Anthropic's [card declined page](https://support.claude.com/en/articles/9402418-why-was-my-card-declined) gives these reasons: - The billing address doesn't match the one your bank has on file. A small slip in the street name can be enough. - 3D Secure verification wasn't completed: the code your bank sends to your phone, or the approval in your bank's app. - The balance doesn't cover the full amount. - The payment method isn't accepted. Anthropic doesn't accept third-party processors such as PayPal. - A temporary network issue, which may clear on its own. Anthropic says banks don't send it the detailed reason for a decline, so ask your bank. Banks in Egypt also cap online purchases from outside Egypt. Here is one bank's example: One Egyptian bank's example: credit card limits outside Egypt | Service | Item | Value | Note | Source | | --- | --- | --- | --- | --- | | Banque Misr | International use on a new credit card | Two months after issue | — | https://www.banquemisr.com/en/SMEs/Retail-Banking/Pages/Cards/Credit-Cards-Pages/Classic-Credit-Cards | | Banque Misr | Online purchases outside Egypt, no travel reported | EGP 10,000 a month | At most 8 a day, on the Classic card. | https://www.banquemisr.com/en/SMEs/Retail-Banking/Pages/Cards/Credit-Cards-Pages/Classic-Credit-Cards | Each row links to the page it comes from, checked October 31, 2026. These figures can change, so check the source before you buy. Turn on international online purchases in your bank's app, match the billing address, complete the verification step, then try again. The full steps are in [Paying for Claude from Egypt without a card](https://5abeer.ai/en/guides/pay-claude-from-egypt). ## What do you need before you install it? - **System:** macOS 13.0 or later, Windows 10 1809 or later, Windows Server 2019 or later, or Ubuntu 20.04 or later, Debian 10 or later, or Alpine Linux 3.19 or later. - **Hardware:** 4 GB of RAM or more, on an x64 or ARM64 processor. - **Shell:** Bash, Zsh, PowerShell or CMD, and an internet connection. On Windows, Anthropic recommends Git for Windows so Claude Code can use its Bash tool; without it, Claude Code uses PowerShell. ## How do you install Claude Code? Run Anthropic's installer for your system: ```bash curl -fsSL https://claude.ai/install.sh | bash ``` ```powershell irm https://claude.ai/install.ps1 | iex ``` ```text curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd ``` The installer shows no progress while it downloads. When it finishes, open a new terminal window and run `claude --version`. If something looks wrong, `claude doctor` checks your setup. This install updates itself in the background, and on Windows it doesn't need Administrator rights. Step-by-step Windows instructions are in [Install Claude Code on Windows](https://5abeer.ai/en/guides/claude-code-windows-install). Other methods Anthropic offers: - **Homebrew:** `brew install --cask claude-code`. It doesn't update itself by default; run `brew upgrade claude-code`. - **WinGet:** `winget install Anthropic.ClaudeCode`. It doesn't update itself by default either; run `winget upgrade Anthropic.ClaudeCode`. - **npm:** `npm install -g @anthropic-ai/claude-code`, with Node.js 22 or later and without `sudo`. ## How do you sign in? Run `claude` in your terminal. On first launch, it opens a browser window for you to log in. If the browser doesn't open, press `c` to copy the login link and paste it into your browser. - **With a Claude plan:** log in with the account that holds your Pro, Max or Ultra plan. If you subscribed in the Claude iPhone app, use the same account. - **With an Anthropic API key:** choose the Claude Console and log in with your Console account. You then pay per token from your Console balance. If `ANTHROPIC_API_KEY` is set in your environment, Claude Code uses that key in place of your plan once you approve it, and the usage is billed per token to the account that owns the key. Run `/status` to see which method is active. ## Is there a cheaper way to run Claude Code in Egypt? Yes. 5abeer is an independent service compatible with the Anthropic Messages API, so Claude Code runs on it as Anthropic ships it, on a plan or on an API key. Either way, you can pay from Egypt by mobile wallet or InstaPay. ### With a 5abeer plan Subscribe to the official apps for less than their official price. The [5abeer AI app](https://5abeer.ai/en/app) turns Claude Code on for your plan in one click, with no key and no files to edit, and installs Claude Code if it is missing. These are our plans and prices, as on the [pricing page](https://5abeer.ai/en/pricing), and everything about Claude Code with us is on the [Claude Code subscription in Egypt](https://5abeer.ai/en/apps/claude-code/egypt) page: | 5abeer plan | Best for | Usage limits | Our price | | --- | --- | --- | --- | | Pro | For everyday use | A 5-hour limit and a weekly limit | EGP 797 / month | | Max (formerly Max 5x) | For heavy daily work | 5× the Pro plan limits | EGP 3,500 / month | | Ultra (formerly Max 20x) | If you work with it all day | 20× the Pro plan limits | EGP 6,970 / month | What you should know before you subscribe: - Every Bundle plan runs every official app, from the smallest to the largest: Claude Code, Claude Desktop, Cowork, ChatGPT Desktop, Codex and Google Antigravity. - Max (formerly Max 5x) and 5abeer's Ultra (formerly Max 20x) are 5abeer plans, not the Anthropic plans with the same names. - Each plan has one 5-hour limit and one weekly limit that cover all your apps, as in [Usage limits](https://5abeer.ai/en/docs/subscriptions/limits.md). We don't promise limits that match Anthropic's plans. - On your own official account. Activated within minutes in the 5abeer AI app on Mac, Windows and Linux, as in [How subscriptions work](https://5abeer.ai/en/docs/subscriptions/how-it-works.md). Then close any open Claude Code session and start a new one. - **Payment:** We accept every mobile wallet in Egypt: Vodafone Cash, Orange Cash, Etisalat Cash (e& money), WE Pay and bank wallets, plus InstaPay. No bank card needed. The steps are in [Payment methods](https://5abeer.ai/en/docs/start/payment.md#transfer). If you only need the Claude apps, 5abeer also has a Claude plan; the apps it runs are in [Apps per plan](https://5abeer.ai/en/docs/subscriptions/plan-apps.md#claude-code). > Plans are for the supported apps. To use the models from your own code, create an API key. ### With a 5abeer API key Through the API, you use every model priced per token for less than its official price. Create a key for Claude models, as in [Create a key](https://5abeer.ai/en/docs/start/keys.md#create), then add it to Claude Code's settings file: `~/.claude/settings.json` ```json { "env": { "ANTHROPIC_BASE_URL": "https://api.5abeer.ai", "ANTHROPIC_AUTH_TOKEN": "YOUR_5ABEER_API_KEY", "ANTHROPIC_MODEL": "claude-sonnet-5.5" } } ``` - `ANTHROPIC_BASE_URL` sends Claude Code's requests to 5abeer. - `ANTHROPIC_AUTH_TOKEN` is your key: replace `YOUR_5ABEER_API_KEY` with it. - `ANTHROPIC_MODEL` is the starting model; change it later with `/model`. The file must be valid JSON, with no comments or trailing commas. Start a new session and run `/status`: an `Anthropic base URL` line shows 5abeer's address, and another line names `ANTHROPIC_AUTH_TOKEN`. While the key is set, requests carry it in place of your Claude login, so they don't count against your plan's limits and come out of your 5abeer balance instead. To go back, remove the three lines. Control every key: a spend limit, an expiry date and an IP allow-list. You top up your API balance from Egypt by mobile wallet or InstaPay, as on the [API in Egypt page](https://5abeer.ai/en/api/egypt), and the full setup is in [Claude Code setup](https://5abeer.ai/en/docs/apps/claude-code.md). ## Which option suits you? | Your situation | Best fit | | --- | --- | | You have a card that works abroad and code for hours every day | Claude Max or Ultra on claude.ai | | You pay Apple from your account balance or your Vodafone line | A Claude plan from the App Store, then the same account in Claude Code | | A few sessions a week | An API key, from Anthropic or 5abeer | | Claude Code plus Claude Desktop, Cowork or Codex, for less than the official price | A 5abeer Bundle plan | | You want to pay in Egypt by mobile wallet or InstaPay, with no card | A 5abeer plan or API key | | Long sessions without a five-hour limit | Claude Ultra, once Anthropic verifies your account | ## Common errors and fixes - **Card declined when you subscribe:** check the billing address, the verification step and international purchases, as in [Why is an Egyptian card declined?](https://5abeer.ai/en/guides/claude-code-egypt#declined) - **"Login expired":** run `/login` and sign in again. Claude Code warns you three days before. - **Charged per token while on a plan:** an `ANTHROPIC_API_KEY` in your shell takes priority over your login. Run `unset ANTHROPIC_API_KEY` (in PowerShell, `Remove-Item Env:ANTHROPIC_API_KEY`), then check `/status`. - **`command not found` after installing:** open a new terminal window, then follow Anthropic's [Troubleshoot installation and login](https://code.claude.com/docs/en/troubleshoot-install) page if it persists. - [`INVALID_API_KEY`](https://5abeer.ai/en/docs/help/errors.md#INVALID_API_KEY): on a 5abeer key, the key is wrong or didn't reach Claude Code. Check the settings file. - [`MODEL_PLATFORM_NOT_ALLOWED`](https://5abeer.ai/en/docs/help/errors.md#MODEL_PLATFORM_NOT_ALLOWED): the key belongs to a provider other than Claude. - [`INSUFFICIENT_BALANCE`](https://5abeer.ai/en/docs/help/errors.md#INSUFFICIENT_BALANCE): top up your balance, then try again. Every other code is in [Errors and fixes](https://5abeer.ai/en/docs/help/errors.md). ## Questions ### Do I need a VPN to use Claude Code in Egypt? No. Egypt is on Anthropic's list of supported countries, so you sign up, subscribe and use Claude Code from there directly. ### Is Claude Code free? It costs nothing to install, but it needs a paid Claude plan, starting at Pro, or an API key with a balance. The free Claude plan doesn't include it. ### How much is Claude Code in Egyptian pounds? Claude Code comes with the Pro, Max and Ultra plans, so its price in pounds is the plan's price on the App Store in Egypt, inside the Claude iPhone app. The current prices are in this guide's official price table, with each row's source and the date it was checked. ### Can I pay for Claude Code with Vodafone Cash in Egypt? Anthropic doesn't accept wallets on its website, which takes credit and debit cards only. On iPhone, you pay Apple from your Apple Account balance or your Vodafone phone bill. 5abeer plans and API balance are paid by wallet: we accept every mobile wallet in Egypt: Vodafone Cash, Orange Cash, Etisalat Cash (e& money), WE Pay and bank wallets, plus InstaPay. ### Does Claude Code behave differently on a 5abeer key? It's the Claude Code Anthropic ships, with the same commands and settings files. Features that need a claude.ai sign-in aren't available on a key: Remote Control and voice dictation are off while `ANTHROPIC_AUTH_TOKEN` is active, and Remote Control is also off while the base URL isn't Anthropic's. ### Is 5abeer part of Anthropic? No. 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. ## Sources Checked on 2026-11-11: - Anthropic: [Supported countries and regions](https://www.anthropic.com/supported-countries) - Claude Help Center: [Use Claude Code with your Pro, Max, or Ultra plan](https://support.claude.com/en/articles/11145838-use-claude-code-with-your-pro-max-or-ultra-plan), [Paid plan billing FAQs](https://support.claude.com/en/articles/8325618-paid-plan-billing-faqs) and [Why was my card declined?](https://support.claude.com/en/articles/9402418-why-was-my-card-declined) - Claude: [Pricing](https://claude.com/pricing) - Apple App Store, Egypt: [Claude by Anthropic](https://apps.apple.com/eg/app/claude-by-anthropic/id6473753684), in-app purchases - Apple: [Payment methods you can use with your Apple Account](https://support.apple.com/en-us/111741) - Banque Misr: [Classic credit cards](https://www.banquemisr.com/en/SMEs/Retail-Banking/Pages/Cards/Credit-Cards-Pages/Classic-Credit-Cards) - Claude Code docs: [Advanced setup](https://code.claude.com/docs/en/setup), [Authentication](https://code.claude.com/docs/en/authentication), [Other LLM gateways](https://code.claude.com/docs/en/llm-gateway) and [Connect Claude Code to an LLM gateway](https://code.claude.com/docs/en/llm-gateway-connect) Each row in the official price tables shows its own source and the date it was read. > 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. --- URL: https://5abeer.ai/en/guides/pay-chatgpt-from-egypt # Pay for ChatGPT from Egypt without a card, fix card declines > How to pay for ChatGPT from Egypt per OpenAI, Apple and Google, why cards get declined and the fix, and a way to run ChatGPT paid by e-wallet or InstaPay. Updated: 2026-11-16 On chatgpt.com you pay OpenAI with a card that supports international payments. The official way to pay without a card in Egypt is the ChatGPT app: on iPhone, Apple accepts Apple Account balance and Vodafone phone billing, and on Android, Google Play accepts Vodafone and e& carrier billing. On a computer, 5abeer plans can be paid by e-wallet or InstaPay. ## Which payment methods work for ChatGPT in Egypt? How you pay depends on where you subscribe: | Where you subscribe | How you pay in Egypt | Who handles payment | | --- | --- | --- | | chatgpt.com website | A credit or debit card that allows international online purchases | OpenAI | | ChatGPT app on iPhone | Apple Account balance, Vodafone phone billing, or most cards | App Store | | ChatGPT app on Android | Cards, or Vodafone and e& carrier billing | Google Play | OpenAI says in its [multi-currency billing FAQ](https://help.openai.com/en/articles/10421635-multi-currency-billing-faq) that a subscription bought through the App Store or Google Play is billed in local currency, which is why the iPhone app shows Egyptian pounds. These are ChatGPT's prices in the Egyptian App Store, each row with its source and the date we checked it: | Plan | Market and channel | Official price | Billing | Source | Checked | | --- | --- | --- | --- | --- | --- | | ChatGPT Go | Egypt · App Store | EGP 249.99 | per month | https://apps.apple.com/eg/app/chatgpt/id6448311069 | 2026-11-15 | | ChatGPT Plus | Egypt · App Store | EGP 999.99 | per month | https://apps.apple.com/eg/app/chatgpt/id6448311069 | 2026-11-15 | | ChatGPT Pro 100 | Egypt · App Store | EGP 5,399.99 | per month | https://apps.apple.com/eg/app/chatgpt/id6448311069 | 2026-11-15 | | ChatGPT Pro 200 | Egypt · App Store | EGP 9,999.99 | per month | https://apps.apple.com/eg/app/chatgpt/id6448311069 | 2026-11-15 | | ChatGPT Pro 500 | Egypt · App Store | EGP 26,999.99 | per month | https://apps.apple.com/eg/app/chatgpt/id6448311069 | 2026-11-15 | The vendors' own prices as published at the source on the date checked; they can change. These are the vendor's official prices; 5abeer's prices are on the pricing page. Each plan and its website price are covered in [ChatGPT Plus price in Egypt](https://5abeer.ai/en/guides/chatgpt-plus-price-egypt). ## Why does ChatGPT decline my card? OpenAI's [card declined page](https://help.openai.com/en/articles/7232916-why-was-my-credit-card-declined) says your bank may have blocked the payment, and asks you to check the card number, expiry date, CVC and billing address, including the postal code. Its [renewal troubleshooting page](https://help.openai.com/en/articles/7242622-troubleshooting-chatgpt-plus-or-pro-renewal-payments) adds that a payment can fail when you or your card's issuer aren't in a supported country. In Egypt the cause is usually the card's own settings: international online purchases are off, capped at a low limit, or not yet allowed on a new card. Here is one bank's published example. Every bank sets its own limits: One Egyptian bank's example: credit card limits outside Egypt | Service | Item | Value | Note | Source | | --- | --- | --- | --- | --- | | Banque Misr | International use on a new credit card | Two months after issue | — | https://www.banquemisr.com/en/SMEs/Retail-Banking/Pages/Cards/Credit-Cards-Pages/Classic-Credit-Cards | | Banque Misr | Online purchases outside Egypt, no travel reported | EGP 10,000 a month | At most 8 a day, on the Classic card. | https://www.banquemisr.com/en/SMEs/Retail-Banking/Pages/Cards/Credit-Cards-Pages/Classic-Credit-Cards | Each row links to the page it comes from, checked October 31, 2026. These figures can change, so check the source before you buy. If the website charges you in a currency other than the pound, your bank may add a currency conversion fee, so check your bank's fee schedule before you pay. ## How do you fix a declined card on ChatGPT? ### 1. Turn on international purchases In your bank's app or by phone, turn on international online purchases, and make sure the monthly limit covers the plan's price. ### 2. Check the card details Type the card number, expiry date and CVC again, and enter the billing address and postal code exactly as your bank has them. ### 3. Complete the verification If your bank asks for a code or an approval in its app, finish that step before you close the payment page. ### 4. Retry, or ask your bank Try again after a few minutes. If it fails again, ask your bank for the reason before another attempt, because several declined attempts in a row can look like fraud to the bank. The reasons OpenAI and Anthropic give side by side are in [Card declined on AI payments](https://5abeer.ai/en/guides/card-declined-ai-payment). ## How do you subscribe to ChatGPT from Egypt without a card? The official route without a card is the ChatGPT phone app. Here you pay Apple or Google, not OpenAI. [Apple's payment methods page](https://support.apple.com/en-us/111741) lists these options for Egypt: - Apple Account balance, for adding funds only. - Mobile phone billing with Vodafone. - Most credit and debit cards. Open the ChatGPT app on iPhone, tap upgrade, pick a plan and pay with a method on your Apple account. You manage or cancel the subscription in your Apple account's subscription settings, not in ChatGPT's settings. On Android, payment goes through Google Play. [Google Play's Egypt page](https://support.google.com/googleplay/answer/2651410?co=GENIE.CountryCode%3DEG) lists credit and debit cards, and carrier billing with Vodafone and e&. Google notes that a payment may be declined for recurring payments, and a monthly subscription is one, so if carrier billing fails, try a card or subscribe on iPhone. > Don't buy an account other people also use, and never give a seller your ChatGPT password. A safe subscription runs on your own account, and your chats stay yours. ## Can you run ChatGPT and pay by e-wallet or InstaPay? Yes, if you use ChatGPT on a computer in Egypt. 5abeer Bundle plans run the official apps: ChatGPT Desktop and Codex, plus Claude Desktop, Cowork, Claude Code and Google Antigravity. Subscribe to the official apps for less than their official price. Pay the way that suits you: e-wallets such as Vodafone Cash, InstaPay, or an international card. No bank card is needed if you pay by e-wallet or InstaPay in Egypt. We accept every mobile wallet in Egypt: Vodafone Cash, Orange Cash, Etisalat Cash (e& money), WE Pay and bank wallets, plus InstaPay. The details for Egypt are on the [ChatGPT subscription in Egypt](https://5abeer.ai/en/apps/chatgpt/egypt) page, and Codex has its own [Codex in Egypt](https://5abeer.ai/en/apps/codex/egypt) page. These are our plan prices, as on the [pricing page](https://5abeer.ai/en/pricing), in your currency: | 5abeer plan | Best for | Usage limits | Our price | | --- | --- | --- | --- | | Pro | For everyday use | A 5-hour limit and a weekly limit | EGP 797 / month | | Max (formerly Max 5x) | For heavy daily work | 5× the Pro plan limits | EGP 3,500 / month | | Ultra (formerly Max 20x) | If you work with it all day | 20× the Pro plan limits | EGP 6,970 / month | ### 1. Choose a plan Pick your plan on the [pricing page](https://5abeer.ai/en/pricing). Every Bundle plan runs every official app, from the smallest to the largest. ### 2. Transfer the amount Choose e-wallet or InstaPay, and transfer the exact amount shown to the number or address on screen. ### 3. Upload the receipt Upload a photo of the receipt and enter the number you paid from. The order then appears in your account with its own number. ### 4. Activate in 5abeer AI Download the [5abeer AI app](https://5abeer.ai/en/app) on Mac, Windows or Linux and sign in. Activated within minutes. The full details are in [Payment methods](https://5abeer.ai/en/docs/start/payment.md) and [How the subscription works](https://5abeer.ai/en/docs/subscriptions/how-it-works.md). ## How do the two routes compare? | Item | ChatGPT from the phone app | A 5abeer Bundle plan | | --- | --- | --- | | How you pay in Egypt | Apple balance, Vodafone or e& billing, or a card | E-wallet, InstaPay or an international card | | Where it works | The ChatGPT apps on your account | The official desktop apps through 5abeer AI | | Apps | ChatGPT and Codex | ChatGPT, Codex, Claude and Google Antigravity | | Limits | Set by OpenAI | A 5-hour limit and a weekly limit | 5abeer's limits are explained in [Usage limits](https://5abeer.ai/en/docs/subscriptions/limits.md). We don't promise limits matching OpenAI's plans. If you also pay for Claude, the same routes for Anthropic are in [Pay for Claude from Egypt](https://5abeer.ai/en/guides/pay-claude-from-egypt). > Plans are for the supported apps. To use the models from your own code, create an API key. ## Frequently asked questions ### How do I pay for ChatGPT from Egypt? On chatgpt.com you pay with a card that allows international purchases. Without a card, subscribe in the ChatGPT iPhone app with Apple Account balance or Vodafone phone billing, or on Android through Google Play with Vodafone or e& billing. On a computer, 5abeer plans can be paid by e-wallet or InstaPay. ### Does ChatGPT accept Vodafone Cash? Neither Apple nor Google Play lists e-wallets among the payment methods for Egypt. 5abeer plans can be paid in Egypt with e-wallets such as Vodafone Cash and with InstaPay. ### Can I pay for ChatGPT with my Vodafone phone credit? Yes in the iPhone app, because Apple lists Vodafone phone billing among its payment methods in Egypt. On Android, Google Play lists Vodafone and e& billing and warns that recurring payments may be declined. Availability depends on your line, so check the payment methods in your account settings. ### What does “This payment method was declined. Try another payment method.” mean on ChatGPT? It means the card payment was refused, usually by your bank: international purchases are off or capped, the billing details don't match the bank's records, or the verification step wasn't completed. Follow the steps above, ask your bank for the reason, or subscribe in the phone app instead. ### Is ChatGPT Go available in Egypt? Yes. ChatGPT Go is sold in the Egyptian App Store in pounds, and its price is in the table above with the date we checked it. It is OpenAI's lowest-priced paid plan. ### How do I cancel a ChatGPT subscription I paid for on iPhone? In your Apple account's subscription settings, not on chatgpt.com, because Apple handles the payment in this case. Check the next renewal date there before you change the payment method. ### Is a 5abeer plan on my own account? Yes, on your own official account in each app, which is why Codex asks for your own ChatGPT account. What each app asks for at sign-in is in [The apps one by one](https://5abeer.ai/en/docs/subscriptions/plan-apps.md#apps). ### Is 5abeer part of OpenAI? No. 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. ## Sources Checked on 2026-11-16: - Apple Support: [Payment methods that you can use with your Apple Account](https://support.apple.com/en-us/111741) - Google Play Help: [Accepted payment methods on Google Play](https://support.google.com/googleplay/answer/2651410?co=GENIE.CountryCode%3DEG), the Egypt page Checked on 2026-11-15: - The Egyptian App Store: [ChatGPT](https://apps.apple.com/eg/app/chatgpt/id6448311069), in-app purchases Checked on 2026-11-01: - OpenAI Help Center: [Why was my credit card declined?](https://help.openai.com/en/articles/7232916-why-was-my-credit-card-declined) - OpenAI Help Center: [Troubleshooting ChatGPT Plus or Pro renewal payments](https://help.openai.com/en/articles/7242622-troubleshooting-chatgpt-plus-or-pro-renewal-payments) - OpenAI Help Center: [Multi-currency billing FAQ](https://help.openai.com/en/articles/10421635-multi-currency-billing-faq) --- URL: https://5abeer.ai/en/guides/chatgpt-claude-gemini-price-egypt # ChatGPT vs Claude vs Gemini price in Egypt (2026) > Official ChatGPT, Claude and Google AI prices in Egypt side by side, in pounds from the App Store and Google's Gemini page, sourced and dated. Updated: 2026-11-16 In Egypt, all three companies sell paid plans in pounds: OpenAI and Anthropic in their iPhone apps, and Google on its Egyptian Gemini page and in its app. Each one's lowest plan is ChatGPT Go, Claude Pro and Google AI Plus; the top ones are ChatGPT Pro, Claude Ultra and Google AI Ultra. Official prices are below, sourced and dated. ## How much do ChatGPT, Claude and Gemini cost in Egypt? These are the three companies' prices in pounds in one table: ChatGPT and Claude from the Egyptian App Store, and Google AI from Google's Egyptian Gemini page and the App Store, each row with its source and the date we checked it: | Plan | Market and channel | Official price | Billing | Source | Checked | | --- | --- | --- | --- | --- | --- | | ChatGPT Go | Egypt · App Store | EGP 249.99 | per month | https://apps.apple.com/eg/app/chatgpt/id6448311069 | 2026-11-15 | | ChatGPT Plus | Egypt · App Store | EGP 999.99 | per month | https://apps.apple.com/eg/app/chatgpt/id6448311069 | 2026-11-15 | | ChatGPT Pro 100 | Egypt · App Store | EGP 5,399.99 | per month | https://apps.apple.com/eg/app/chatgpt/id6448311069 | 2026-11-15 | | ChatGPT Pro 200 | Egypt · App Store | EGP 9,999.99 | per month | https://apps.apple.com/eg/app/chatgpt/id6448311069 | 2026-11-15 | | ChatGPT Pro 500 | Egypt · App Store | EGP 26,999.99 | per month | https://apps.apple.com/eg/app/chatgpt/id6448311069 | 2026-11-15 | | Claude Pro | Egypt · App Store | EGP 999.99 | per month | https://apps.apple.com/eg/app/claude-by-anthropic/id6473753684 | 2026-11-15 | | Claude Pro | Egypt · App Store | EGP 9,999.99 | per year | https://apps.apple.com/eg/app/claude-by-anthropic/id6473753684 | 2026-11-15 | | Claude Max | Egypt · App Store | EGP 6,999.99 | per month | https://apps.apple.com/eg/app/claude-by-anthropic/id6473753684 | 2026-11-15 | | Claude Ultra | Egypt · App Store | EGP 12,999.99 | per month | https://apps.apple.com/eg/app/claude-by-anthropic/id6473753684 | 2026-11-15 | | Google AI Plus | Egypt · Vendor website | EGP 249.99 | per month | https://gemini.google/eg/subscriptions/?hl=ar | 2026-11-15 | | Google AI Pro | Egypt · Vendor website | EGP 939.99 | per month | https://gemini.google/eg/subscriptions/?hl=ar | 2026-11-15 | | Google AI Ultra (5x) | Egypt · Vendor website | EGP 2,199.99 | per month | https://gemini.google/eg/subscriptions/?hl=ar | 2026-11-15 | | Google AI Ultra (20x) | Egypt · Vendor website | EGP 8,799.99 | per month | https://gemini.google/eg/subscriptions/?hl=ar | 2026-11-15 | | Google AI Plus (400 GB) | Egypt · App Store | EGP 249.99 | per month | https://apps.apple.com/eg/app/google-gemini/id6477489729 | 2026-11-15 | | Google AI Pro (5 TB) | Egypt · App Store | EGP 939.99 | per month | https://apps.apple.com/eg/app/google-gemini/id6477489729 | 2026-11-15 | The vendors' own prices as published at the source on the date checked; they can change. These are the vendor's official prices; 5abeer's prices are on the pricing page. Notes for reading the table: - **Google AI Ultra is on the website only.** Google's Egyptian Gemini page lists Ultra at two levels, while the Gemini iPhone app lists Plus and Pro only, with the storage size in each plan's name. - **Only Claude Pro has a yearly price in the table.** The ChatGPT and Google AI rows are monthly. - **The final price is on the payment screen.** Apple and Google set the price per country, and it can change after the date checked, so check the amount before you confirm. ## How do the three companies' plans differ? | Item | ChatGPT | Claude | Gemini | | --- | --- | --- | --- | | Company | OpenAI | Anthropic | Google | | Paid plans for individuals | Go, Plus and Pro | Pro, Max and Ultra | Google AI Plus, Pro and Ultra | | Lowest-priced plan | ChatGPT Go | Claude Pro | Google AI Plus | | Where the price shows in pounds | App Store | App Store | Google's Egyptian Gemini page and the App Store | | Yearly price in the table | No | Claude Pro | No | ### ChatGPT in Egypt ChatGPT's official prices on the App Store in Egypt: ChatGPT Go EGP 249.99 a month, ChatGPT Plus EGP 999.99 a month, ChatGPT Pro 100 EGP 5,399.99 a month, ChatGPT Pro 200 EGP 9,999.99 a month, ChatGPT Pro 500 EGP 26,999.99 a month, checked 2026-11-15. ChatGPT Go is OpenAI's lowest-priced plan, Plus is the plan most people mean by "a ChatGPT subscription", and Pro comes in three tiers. The details and the website price are in [ChatGPT Plus price in Egypt](https://5abeer.ai/en/guides/chatgpt-plus-price-egypt). ### Claude in Egypt Claude's official prices on the App Store in Egypt: Claude Pro EGP 999.99 a month, Claude Max EGP 6,999.99 a month, Claude Ultra EGP 12,999.99 a month, checked 2026-11-15. Yearly: Claude Pro EGP 9,999.99 a year. Claude Pro is Anthropic's lowest paid plan, and Pro, Max and Ultra all include Claude Code, as on [Claude's pricing page](https://claude.com/pricing). The details are in [Claude Pro and Max price in Egypt](https://5abeer.ai/en/guides/claude-pro-max-price-egypt). ### Gemini in Egypt Google AI's official prices on Google AI's website: Google AI Plus EGP 249.99 a month, Google AI Pro EGP 939.99 a month, Google AI Ultra (5x) EGP 2,199.99 a month, Google AI Ultra (20x) EGP 8,799.99 a month, checked 2026-11-15. Google AI Plus is Google's lowest plan, and Google calls its top plan Ultra. The details are in [Google AI Pro price in Egypt](https://5abeer.ai/en/guides/gemini-pro-price-egypt). ## Which subscription is cheapest in Egypt? If you want the lowest monthly amount, compare each company's lowest plan: ChatGPT Go and Google AI Plus are the lowest-priced in the table. Claude's lowest paid plan is Pro, so it starts at a higher level. The cheapest isn't always the right one. Pick the company whose apps you actually use first, then the plan that covers your working hours. If you are comparing ChatGPT Plus and Claude Pro, the full comparison is in [ChatGPT Plus vs Claude Pro](https://5abeer.ai/en/guides/chatgpt-plus-vs-claude-pro), and the cheapest routes in Egypt overall are in [Cheapest AI subscriptions in Egypt](https://5abeer.ai/en/guides/cheap-ai-subscriptions-egypt). ## How do you pay each company from Egypt? All three companies' iPhone subscriptions go through the App Store, so you pay Apple. [Apple's payment methods page](https://support.apple.com/en-us/111741) lists Apple Account balance (adding funds), Vodafone phone billing and most cards for Egypt. On Android, payment goes through Google Play. [Google Play's Egypt page](https://support.google.com/googleplay/answer/2651410?co=GENIE.CountryCode%3DEG) lists cards and carrier billing with Vodafone and e&, and warns that recurring payments may be declined. The companies' websites usually ask for a card that allows international purchases. Each company's steps, with fixes for declined cards, are in [Pay for ChatGPT from Egypt](https://5abeer.ai/en/guides/pay-chatgpt-from-egypt) and [Pay for Claude from Egypt](https://5abeer.ai/en/guides/pay-claude-from-egypt). ## Is there one subscription for all three? Not from the companies themselves: each official subscription works in its own company's apps only. On a computer in Egypt, 5abeer Bundle plans run the official apps of all three: ChatGPT Desktop and Codex, Claude Desktop, Cowork and Claude Code, and Google Antigravity. Subscribe to the official apps for less than their official price. Pay the way that suits you: e-wallets such as Vodafone Cash, InstaPay, or an international card. No bank card is needed if you pay by e-wallet or InstaPay in Egypt. These are our plan prices, as on the [pricing page](https://5abeer.ai/en/pricing), in your currency: | 5abeer plan | Best for | Usage limits | Our price | | --- | --- | --- | --- | | Pro | For everyday use | A 5-hour limit and a weekly limit | EGP 797 / month | | Max (formerly Max 5x) | For heavy daily work | 5× the Pro plan limits | EGP 3,500 / month | | Ultra (formerly Max 20x) | If you work with it all day | 20× the Pro plan limits | EGP 6,970 / month | What to know before you subscribe: - 5abeer's Pro, Max (formerly Max 5x) and Ultra (formerly Max 20x) are 5abeer plans, not Anthropic's plans, though the names are alike. - Every Bundle plan runs every official app, from the smallest to the largest. The plans differ only in usage limits. - On your own official account: Codex asks for your ChatGPT account, and Google Antigravity for your Google account. - Each plan has a 5-hour limit and a weekly limit, as in [Usage limits](https://5abeer.ai/en/docs/subscriptions/limits.md). We don't promise limits matching the companies' plans. - Activated within minutes in the [5abeer AI app](https://5abeer.ai/en/app) on Mac, Windows and Linux; it doesn't work inside the phone apps. The Egypt pages for each app are [Claude subscription in Egypt](https://5abeer.ai/en/apps/claude/egypt) and [Google Antigravity in Egypt](https://5abeer.ai/en/apps/antigravity/egypt). How one subscription covers several apps is in [One subscription for all AI apps](https://5abeer.ai/en/guides/one-subscription-all-ai-apps). > Plans are for the supported apps. To use the models from your own code, create an API key. ## Which option suits you? | Your situation | Best fit | | --- | --- | | You use one app, mostly on your phone | The lowest official plan from that company that covers you | | You want storage along with AI | A Google AI plan | | You code with Claude Code or Codex on a computer | A 5abeer Bundle plan | | You work with more than one company's apps on a computer | A 5abeer Bundle plan | | You want the models in your own code | A 5abeer API key | ## Frequently asked questions ### How much is Claude per month in Egypt? Claude Pro is sold in the Egyptian App Store in pounds, monthly and yearly, and its price is in the table above with the date checked. Max and Ultra cost more for more usage. ### How much is Gemini Pro in Egypt? Google calls this plan Google AI Pro. Its price in pounds, from Google's Egyptian page and the App Store, is in the table above. ### Which is cheaper in Egypt: ChatGPT Plus or Claude Pro? When we checked on 2026-11-15, their monthly prices in the Egyptian App Store were the same, as in the table. So the choice comes down to what you need from each app, not the price. ### Can you pay for these subscriptions without a card in Egypt? Yes, in the phone apps: Apple accepts Apple Account balance and Vodafone phone billing in Egypt, and Google Play accepts Vodafone and e& billing. 5abeer plans can be paid in Egypt by e-wallet or InstaPay. ### Why is the price in pounds different from the website's dollar price? Because Apple and Google set a fixed price for each country rather than converting the dollar price daily. Compare the final amount on the payment screen. ### Is 5abeer part of these companies? No. 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. ## Sources Checked on 2026-11-16: - Apple Support: [Payment methods that you can use with your Apple Account](https://support.apple.com/en-us/111741) - Google Play Help: [Accepted payment methods on Google Play](https://support.google.com/googleplay/answer/2651410?co=GENIE.CountryCode%3DEG), the Egypt page Checked on 2026-11-15: - The Egyptian App Store: [ChatGPT](https://apps.apple.com/eg/app/chatgpt/id6448311069), [Claude by Anthropic](https://apps.apple.com/eg/app/claude-by-anthropic/id6473753684) and [Google Gemini](https://apps.apple.com/eg/app/google-gemini/id6477489729), in-app purchases - Google: [Gemini plans in Egypt](https://gemini.google/eg/subscriptions/?hl=ar) - Claude: [Pricing](https://claude.com/pricing) > 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. --- URL: https://5abeer.ai/en/guides/chatgpt-claude-price-iraq # ChatGPT and Claude price in Iraq 2026 (App Store) > Official ChatGPT and Claude prices in the Iraqi App Store, sourced and dated, paying on Google Play with Zain, Asiacell or Korek, and a cheaper way. Updated: 2026-11-16 In Iraq, ChatGPT and Claude are sold in their iPhone apps at prices Apple shows with a dollar sign; the store shows no dinar price. Apple lists only cards for Iraq, while Google Play accepts Zain, Asiacell and Korek carrier billing and Google Play gift cards. The prices are below, sourced and dated. ChatGPT's official prices on the App Store in Iraq: ChatGPT Go $4.99 a month, ChatGPT Plus $19.99 a month, ChatGPT Pro 100 $100 a month, ChatGPT Pro 200 $200 a month, ChatGPT Pro 500 $500 a month, checked 2026-11-16. ## How much is ChatGPT in Iraq? These are the ChatGPT plan prices from the app's page in the Iraqi App Store, each row with its source and the date we checked it: | Plan | Market and channel | Official price | Billing | Source | Checked | | --- | --- | --- | --- | --- | --- | | ChatGPT Go | Iraq · App Store | $4.99 | per month | https://apps.apple.com/iq/app/chatgpt/id6448311069 | 2026-11-16 | | ChatGPT Plus | Iraq · App Store | $19.99 | per month | https://apps.apple.com/iq/app/chatgpt/id6448311069 | 2026-11-16 | | ChatGPT Pro 100 | Iraq · App Store | $100 | per month | https://apps.apple.com/iq/app/chatgpt/id6448311069 | 2026-11-16 | | ChatGPT Pro 200 | Iraq · App Store | $200 | per month | https://apps.apple.com/iq/app/chatgpt/id6448311069 | 2026-11-16 | | ChatGPT Pro 500 | Iraq · App Store | $500 | per month | https://apps.apple.com/iq/app/chatgpt/id6448311069 | 2026-11-16 | The vendors' own prices as published at the source on the date checked; they can change. These are the vendor's official prices; 5abeer's prices are on the pricing page. What each plan is: Go is OpenAI's lowest-priced plan, Plus is the plan above it, and Pro comes in three tiers, Pro 100, Pro 200 and Pro 500. They are compared in [ChatGPT Go vs Plus vs Pro](https://5abeer.ai/en/guides/chatgpt-go-plus-pro). > When we checked on 2026-11-16, the app's page in the Iraqi store also listed a second purchase named ChatGPT Plus at a higher price, without its billing period. Check the subscription period on the in-app payment screen before you confirm. ## How much is Claude in Iraq? These are the Claude plan prices from the app's page in the Iraqi App Store, each row with its source and the date we checked it: Claude's official prices on the App Store in Iraq: Claude Pro $20 a month, Claude Max $124.99 a month, Claude Ultra $249.99 a month, checked 2026-11-16. Yearly: Claude Pro $214.99 a year. | Plan | Market and channel | Official price | Billing | Source | Checked | | --- | --- | --- | --- | --- | --- | | Claude Pro | Iraq · App Store | $20 | per month | https://apps.apple.com/iq/app/claude-by-anthropic/id6473753684 | 2026-11-16 | | Claude Pro | Iraq · App Store | $214.99 | per year | https://apps.apple.com/iq/app/claude-by-anthropic/id6473753684 | 2026-11-16 | | Claude Max | Iraq · App Store | $124.99 | per month | https://apps.apple.com/iq/app/claude-by-anthropic/id6473753684 | 2026-11-16 | | Claude Ultra | Iraq · App Store | $249.99 | per month | https://apps.apple.com/iq/app/claude-by-anthropic/id6473753684 | 2026-11-16 | The vendors' own prices as published at the source on the date checked; they can change. These are the vendor's official prices; 5abeer's prices are on the pricing page. Pro is sold monthly or yearly, Max and Ultra are monthly for more usage, and all three include Claude Code, as on [Claude's pricing page](https://claude.com/pricing). The app's page also lists packs of usage credits; these are separate purchases, not a subscription, so read the product name before you pay. The plans are compared in [Claude Pro vs Max](https://5abeer.ai/en/guides/claude-pro-vs-max). ## Why does the Iraqi App Store price differ from the website? OpenAI and Anthropic publish their website prices in US dollars: | Plan | Market and channel | Official price | Billing | Source | Checked | | --- | --- | --- | --- | --- | --- | | ChatGPT Go | United States · Vendor website | $8 | per month | https://openai.com/index/introducing-chatgpt-go/ | 2026-11-15 | | ChatGPT Plus | United States · Vendor website | $20 | per month | https://help.openai.com/en/articles/6950777-what-is-chatgpt-plus | 2026-11-15 | | ChatGPT Pro 100 | United States · Vendor website | $100 | per month | https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers | 2026-11-15 | | ChatGPT Pro 200 | United States · Vendor website | $200 | per month | https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers | 2026-11-15 | | ChatGPT Pro 500 | United States · Vendor website | $500 | per month | https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers | 2026-11-15 | | Claude Pro | United States · Vendor website | $20 | per month | https://claude.com/pricing | 2026-11-15 | | Claude Pro | United States · Vendor website | $200 | per year | https://claude.com/pricing | 2026-11-15 | | Claude Max | United States · Vendor website | $100 | per month | https://claude.com/pricing | 2026-11-15 | | Claude Ultra | United States · Vendor website | $200 | per month | https://claude.com/pricing | 2026-11-15 | The vendors' own prices as published at the source on the date checked; they can change. These are the vendor's official prices; 5abeer's prices are on the pricing page. Tax: per Anthropic's pages, some countries include tax in the displayed price and others add it at checkout. Compare the two tables and you will see two differences: - **ChatGPT Go costs less in the Iraqi store than on the website**, because OpenAI prices Go by region, as on [OpenAI's Go page](https://openai.com/index/introducing-chatgpt-go/). - **Claude Max and Ultra cost more in the Iraqi store than on claude.com**, while monthly Claude Pro is about the same in both channels. On the website you pay the company directly, and Anthropic accepts only credit and debit cards there, as in its [billing FAQs](https://support.claude.com/en/articles/8325618-paid-plan-billing-faqs). In the iPhone app you pay Apple, and you manage or cancel the subscription in your Apple account settings. ## How do you pay for ChatGPT or Claude from Iraq? | Channel | Payment methods in Iraq | Source | | --- | --- | --- | | App Store on iPhone | Most credit and debit cards only | [Apple](https://support.apple.com/en-us/111741) | | Google Play on Android | Cards, Zain, Asiacell and Korek carrier billing, and Google Play balance and gift cards | [Google Play](https://support.google.com/googleplay/answer/2651410?co=GENIE.CountryCode%3DIQ) | | The company's website | A credit or debit card that allows international purchases | The companies' pages | So if you don't have a card that allows international purchases, carrier billing or a Google Play gift card is available on Android only. Google notes that some carriers can't be used to pay for subscriptions, so if carrier billing fails, try Google Play balance or a card. If your card is declined on OpenAI's or Anthropic's website, the reasons and fixes are in [Card declined on AI payments](https://5abeer.ai/en/guides/card-declined-ai-payment). > Don't buy an account other people also use, and never give a seller your password. A safe subscription runs on your own account. ## Are ChatGPT and Claude available in Iraq? Yes. Iraq is on [the list of countries Anthropic supports](https://www.anthropic.com/supported-countries) and on [OpenAI's list of supported countries for its API](https://developers.openai.com/api/docs/supported-countries), and both apps are listed in the Iraqi App Store with their prices. So you can sign up and subscribe from Iraq directly. ## Is there a cheaper way to run ChatGPT and Claude? Yes, if you use them on a computer. 5abeer Bundle plans run the official apps: ChatGPT Desktop and Codex, Claude Desktop, Cowork and Claude Code, plus Google Antigravity. Subscribe to the official apps for less than their official price. These are our plans and the limits of each; their prices are on the [pricing page](https://5abeer.ai/en/pricing): | 5abeer plan | Best for | Usage limits | Our price | | --- | --- | --- | --- | | Pro | For everyday use | A 5-hour limit and a weekly limit | Prices on the pricing page: https://5abeer.ai/en/pricing | | Max (formerly Max 5x) | For heavy daily work | 5× the Pro plan limits | Prices on the pricing page: https://5abeer.ai/en/pricing | | Ultra (formerly Max 20x) | If you work with it all day | 20× the Pro plan limits | Prices on the pricing page: https://5abeer.ai/en/pricing | What to know before you subscribe: - 5abeer's Pro, Max (formerly Max 5x) and Ultra (formerly Max 20x) are 5abeer plans, not Anthropic's plans, though the names are alike. - On your own official account, so you sign in to each app as you normally do. - Every Bundle plan runs every official app, from the smallest to the largest. The plans differ only in usage limits. - Each plan has a 5-hour limit and a weekly limit, as in [Usage limits](https://5abeer.ai/en/docs/subscriptions/limits.md). We don't promise limits matching OpenAI's or Anthropic's plans. - You pay by international card on Stripe's secure payment page, as in [Payment methods](https://5abeer.ai/en/docs/start/payment.md#card). - Activated within minutes in the [5abeer AI app](https://5abeer.ai/en/app) on Mac, Windows and Linux; it doesn't work inside the phone apps. Gulf store prices for comparison are in [ChatGPT and Claude prices in Saudi Arabia and the UAE](https://5abeer.ai/en/guides/chatgpt-claude-gulf-price). > Plans are for the supported apps. To use the models from your own code, create an API key. ## Which option suits you? | Your situation | Best fit | | --- | --- | | You use ChatGPT or Claude on iPhone and have a card | The official plan from the App Store | | You want to pay with Zain, Asiacell or Korek credit | The official plan from Google Play on Android | | You work with ChatGPT and Claude together on a computer | A 5abeer Bundle plan | | You code with Claude Code or Codex | A 5abeer Bundle plan | | You want the models in your own code | A 5abeer API key | ## Frequently asked questions ### How much is ChatGPT Plus in Iraq? The Plus price in the Iraqi App Store is in the table above, with the date we checked it. Check the billing period on the payment screen, because the page lists a second purchase with the same name. ### How much is Claude Pro in Iraq? Claude Pro is sold in the Iraqi App Store monthly and yearly, at the prices in the Claude table above. Yearly costs less than twelve months, but you pay it all at once. ### Is there a ChatGPT price in Iraqi dinars? No. Apple shows ChatGPT and Claude prices in the Iraqi store with a dollar sign, and the store shows no price in dinars. Your bank converts the amount if your card is in dinars, so ask it about foreign transaction fees. ### Can I pay for ChatGPT with Asiacell or Zain credit? On Android, yes: Google Play lists Zain, Asiacell and Korek carrier billing in Iraq, and notes that some carriers can't be used for subscriptions. On iPhone, Apple lists only cards for Iraq. ### Does Claude work in Iraq? Yes. Iraq is on Anthropic's list of supported countries, and the Claude app is listed in the Iraqi App Store with its plans and prices. ### How do I pay for a 5abeer plan from Iraq? By international card on Stripe's secure payment page. The steps are in [Payment methods](https://5abeer.ai/en/docs/start/payment.md#card). You can also pay with any bank card, Apple Pay or Google Pay. ### Is 5abeer part of OpenAI or Anthropic? No. 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. ## Sources Checked on 2026-11-16: - The Iraqi App Store: [ChatGPT](https://apps.apple.com/iq/app/chatgpt/id6448311069) and [Claude by Anthropic](https://apps.apple.com/iq/app/claude-by-anthropic/id6473753684), in-app purchases - Apple Support: [Payment methods that you can use with your Apple Account](https://support.apple.com/en-us/111741) - Google Play Help: [Accepted payment methods on Google Play](https://support.google.com/googleplay/answer/2651410?co=GENIE.CountryCode%3DIQ), the Iraq page - Anthropic: [Supported countries and regions](https://www.anthropic.com/supported-countries) - OpenAI: [Supported countries and territories](https://developers.openai.com/api/docs/supported-countries) Checked on 2026-11-15: - Claude: [Pricing](https://claude.com/pricing) - Claude Help Center: [Paid plan billing FAQs](https://support.claude.com/en/articles/8325618-paid-plan-billing-faqs) > 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. --- URL: https://5abeer.ai/en/guides/cheapest-api-egp-compare # Cheapest AI API in Egypt: what to compare before you top up > Six questions to compare sites selling an AI API in Egyptian pounds: minimum top-up, price against official, subscription, sign-up, payment and models. Updated: 2026-11-16 A price in Egyptian pounds is not enough. Compare any site that sells an AI API on six questions: the minimum top-up, the price per million tokens against the official price, whether it requires a subscription, how you sign up, how you pay, and which models it offers. This guide explains each question and gives 5abeer's answer. ## What is the minimum top-up? The minimum decides whether you can try before you commit. Look for a site that lets you start with a small amount and then top up any amount, with no plan and no fixed fee. The minimum API top-up is 10 EGP. After that, top up any amount. ## What is the price per million tokens against the official price? Compare the site's price per million tokens with the official price of the same model, for input and output together, because output usually costs several times more. Don't stop at the input price, and don't trust a price in pounds that doesn't name the model. Use every model priced per token through the API for 70% less than its official price. Claude Sonnet 5.5 (`claude-sonnet-5.5`) per 1M tokens: input $0.60 (official $2), output $3 (official $10). Official price checked November 21, 2026. Ask for a table that names every model, with its price, the official price and the date of the last update, so you know you are comparing current prices. Our prices follow the published official prices, last checked on November 21, 2026. ## Do you need a monthly subscription? Some services tie the API to a monthly plan or a minimum subscription. If you use it now and then, or you are still testing, paying only for what you use costs less. The API needs no subscription: your wallet balance pays only for what you use, and the monthly plans are a separate product for the official apps. ## How do you sign up and get a key? The easiest is to sign up on the site itself and get the key in minutes, with no manual approval and nothing to download. Sign up on the website with email or Google and create the API key in the dashboard, with nothing to download. ## How do you pay? Check that the payment method suits you before you sign up, and that the balance arrives after payment without messaging anyone. We accept every mobile wallet in Egypt: Vodafone Cash, Orange Cash, Etisalat Cash (e& money), WE Pay and bank wallets, plus InstaPay. No bank card needed. You can also pay with any bank card, Apple Pay or Google Pay. Your balance is credited automatically once the payment completes. ## Which models are available, and does the key work with your tools? Check that the site offers the newest models, not an older generation at a lower price, and that the key works with your tools without code changes. These are the newest models on 5abeer right now: | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | Claude Sonnet 5.5 | `claude-sonnet-5.5` | $0.60 | $3 | 1M | | Claude Opus 5.5 | `claude-opus-5.5` | $1.20 | $6 | 1M | | Claude Fable 5.1 | `claude-fable-5.1` | $3 | $15 | — | | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | GPT-6.2 Sol | `gpt-6.2-sol` | $0.60 | $3 | — | | GPT-6.2 Astra | `gpt-6.2-astra` | $2.40 | $12 | — | | GPT-6.1 Sol | `gpt-6.1-sol` | $0.60 | $3 | 922K | | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | Gemini 4 Argon | `gemini-4-argon` | $0.60 | $3 | — | | Gemini 2.5 Pro | `gemini-2.5-pro` | $0.38 | $3 | 1M | OpenAI-compatible: change the base URL and keep your code. Compatible with the Anthropic Messages API. ## Frequently asked questions ### Do I need a monthly subscription to use the API? No. The API needs no subscription: your wallet balance pays only for what you use, and the monthly plans are a separate product for the official apps. ### Do I need a bank card to top up? No bank card needed. We accept every mobile wallet in Egypt: Vodafone Cash, Orange Cash, Etisalat Cash (e& money), WE Pay and bank wallets, plus InstaPay. ### When is my balance added after paying? Your balance is credited automatically once the payment completes. ### Does code I wrote for OpenAI still work? Yes. The API is OpenAI-compatible: change the base URL and keep your code, as shown in [Base URLs](https://5abeer.ai/en/docs/start/base-urls.md). ### Is 5abeer affiliated with OpenAI, Anthropic or Google? No. 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. ## Where to start Every model's price in pounds and the steps to start are on the [API in Egypt page](https://5abeer.ai/en/api/egypt), and the payment methods in detail are in [How to pay for an AI API from Egypt](https://5abeer.ai/en/guides/pay-ai-api-from-egypt). If you need one provider only, start from its page: [Claude API in EGP](https://5abeer.ai/en/api/egypt/claude), [OpenAI API in EGP](https://5abeer.ai/en/api/egypt/openai) or [Gemini API in EGP](https://5abeer.ai/en/api/egypt/gemini). 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. --- URL: https://5abeer.ai/en/guides/chatgpt-claude-price-morocco # ChatGPT and Claude price in Morocco 2026 (App Store) > Official ChatGPT and Claude prices in the Moroccan App Store, sourced and dated, Maroc Telecom billing on Google Play, VAT, and a cheaper way. Updated: 2026-11-16 In Morocco, ChatGPT and Claude are sold in their iPhone apps at prices Apple shows with a dollar sign, and ChatGPT Go costs more in the Moroccan store than in the Iraqi and Algerian ones. Apple lists only cards for Morocco, while Google Play accepts Maroc Telecom carrier billing. The prices are below, sourced and dated. ChatGPT's official prices on the App Store in Morocco: ChatGPT Go $5.99 a month, ChatGPT Plus $19.99 a month, ChatGPT Pro 100 $100 a month, ChatGPT Pro 200 $200 a month, ChatGPT Pro 500 $500 a month, checked 2026-11-16. ## How much is ChatGPT in Morocco? These are the ChatGPT plan prices from the app's page in the Moroccan App Store, each row with its source and the date we checked it: | Plan | Market and channel | Official price | Billing | Source | Checked | | --- | --- | --- | --- | --- | --- | | ChatGPT Go | Morocco · App Store | $5.99 | per month | https://apps.apple.com/ma/app/chatgpt/id6448311069 | 2026-11-16 | | ChatGPT Plus | Morocco · App Store | $19.99 | per month | https://apps.apple.com/ma/app/chatgpt/id6448311069 | 2026-11-16 | | ChatGPT Pro 100 | Morocco · App Store | $100 | per month | https://apps.apple.com/ma/app/chatgpt/id6448311069 | 2026-11-16 | | ChatGPT Pro 200 | Morocco · App Store | $200 | per month | https://apps.apple.com/ma/app/chatgpt/id6448311069 | 2026-11-16 | | ChatGPT Pro 500 | Morocco · App Store | $500 | per month | https://apps.apple.com/ma/app/chatgpt/id6448311069 | 2026-11-16 | The vendors' own prices as published at the source on the date checked; they can change. These are the vendor's official prices; 5abeer's prices are on the pricing page. What each plan is: Go is OpenAI's lowest-priced plan and its price differs by country, Plus is the plan above it, and Pro comes in three tiers, Pro 100, Pro 200 and Pro 500. They are compared in [ChatGPT Go vs Plus vs Pro](https://5abeer.ai/en/guides/chatgpt-go-plus-pro). > When we checked on 2026-11-16, the app's page in the Moroccan store also listed a second purchase named ChatGPT Plus at a higher price, without its billing period. Check the subscription period on the in-app payment screen before you confirm. ## How much is Claude in Morocco? These are the Claude plan prices from the app's page in the Moroccan App Store, each row with its source and the date we checked it: Claude's official prices on the App Store in Morocco: Claude Pro $20 a month, Claude Max $124.99 a month, Claude Ultra $249.99 a month, checked 2026-11-16. Yearly: Claude Pro $214.99 a year. | Plan | Market and channel | Official price | Billing | Source | Checked | | --- | --- | --- | --- | --- | --- | | Claude Pro | Morocco · App Store | $20 | per month | https://apps.apple.com/ma/app/claude-by-anthropic/id6473753684 | 2026-11-16 | | Claude Pro | Morocco · App Store | $214.99 | per year | https://apps.apple.com/ma/app/claude-by-anthropic/id6473753684 | 2026-11-16 | | Claude Max | Morocco · App Store | $124.99 | per month | https://apps.apple.com/ma/app/claude-by-anthropic/id6473753684 | 2026-11-16 | | Claude Ultra | Morocco · App Store | $249.99 | per month | https://apps.apple.com/ma/app/claude-by-anthropic/id6473753684 | 2026-11-16 | The vendors' own prices as published at the source on the date checked; they can change. These are the vendor's official prices; 5abeer's prices are on the pricing page. Pro is sold monthly or yearly, Max and Ultra are monthly for more usage, and all three include Claude Code, as on [Claude's pricing page](https://claude.com/pricing). The app's page also lists packs of usage credits; these are separate purchases, not a subscription, so read the product name before you pay. ## Is tax added to ChatGPT in Morocco? A report published by [Morocco World News](https://www.moroccoworldnews.com/2026/07/328303/moroccans-will-now-pay-20-vat-on-netflix-chatgpt-and-other-digital-services) on 2026-07-09 says Morocco applies VAT at 20% to digital services sold by foreign companies, including ChatGPT, under Article 115 bis of the General Tax Code. This is a press report; we have not read the tax authority's own page. The app's store page doesn't say whether the listed price includes tax. So compare the final amount on the payment screen before you confirm, because that amount is what you are charged, whether you subscribe in the app or on the website. ## Why does the Moroccan App Store price differ from the website? OpenAI and Anthropic publish their website prices in US dollars: | Plan | Market and channel | Official price | Billing | Source | Checked | | --- | --- | --- | --- | --- | --- | | ChatGPT Go | United States · Vendor website | $8 | per month | https://openai.com/index/introducing-chatgpt-go/ | 2026-11-15 | | ChatGPT Plus | United States · Vendor website | $20 | per month | https://help.openai.com/en/articles/6950777-what-is-chatgpt-plus | 2026-11-15 | | ChatGPT Pro 100 | United States · Vendor website | $100 | per month | https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers | 2026-11-15 | | ChatGPT Pro 200 | United States · Vendor website | $200 | per month | https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers | 2026-11-15 | | ChatGPT Pro 500 | United States · Vendor website | $500 | per month | https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers | 2026-11-15 | | Claude Pro | United States · Vendor website | $20 | per month | https://claude.com/pricing | 2026-11-15 | | Claude Pro | United States · Vendor website | $200 | per year | https://claude.com/pricing | 2026-11-15 | | Claude Max | United States · Vendor website | $100 | per month | https://claude.com/pricing | 2026-11-15 | | Claude Ultra | United States · Vendor website | $200 | per month | https://claude.com/pricing | 2026-11-15 | The vendors' own prices as published at the source on the date checked; they can change. These are the vendor's official prices; 5abeer's prices are on the pricing page. Tax: per Anthropic's pages, some countries include tax in the displayed price and others add it at checkout. Compare the two tables and you will see two differences: - **ChatGPT Go costs less in the Moroccan store than on the website**, because OpenAI prices Go by region, as on [OpenAI's Go page](https://openai.com/index/introducing-chatgpt-go/). - **Claude Max and Ultra cost more in the Moroccan store than on claude.com**, while monthly Claude Pro is about the same in both channels. On the website you pay the company directly, and Anthropic accepts only credit and debit cards there, as in its [billing FAQs](https://support.claude.com/en/articles/8325618-paid-plan-billing-faqs). If your card is in Moroccan dirhams, your bank may add fees for foreign currency transactions, so ask it about them. ## How do you pay for ChatGPT or Claude from Morocco? | Channel | Payment methods in Morocco | Source | | --- | --- | --- | | App Store on iPhone | Most credit and debit cards only | [Apple](https://support.apple.com/en-us/111741) | | Google Play on Android | Cards, and Maroc Telecom carrier billing | [Google Play](https://support.google.com/googleplay/answer/2651410?co=GENIE.CountryCode%3DMA) | | The company's website | A credit or debit card that allows international purchases | The companies' pages | Google notes that some carriers can't be used to pay for subscriptions, so if Maroc Telecom billing fails, try a card. In the iPhone app you manage or cancel the subscription in your Apple account settings, not in the app's settings. If your card is declined on OpenAI's or Anthropic's website, the reasons and fixes are in [Card declined on AI payments](https://5abeer.ai/en/guides/card-declined-ai-payment). > Don't buy an account other people also use, and never give a seller your password. A safe subscription runs on your own account. ## Are ChatGPT and Claude available in Morocco? Yes. Morocco is on [the list of countries Anthropic supports](https://www.anthropic.com/supported-countries) and on [OpenAI's list of supported countries for its API](https://developers.openai.com/api/docs/supported-countries), and both apps are listed in the Moroccan App Store with their prices. So you can sign up and subscribe from Morocco directly. ## Is there a cheaper way to run ChatGPT and Claude? Yes, if you use them on a computer. 5abeer Bundle plans run the official apps: ChatGPT Desktop and Codex, Claude Desktop, Cowork and Claude Code, plus Google Antigravity. Subscribe to the official apps for less than their official price. These are our plans and the limits of each; their prices are on the [pricing page](https://5abeer.ai/en/pricing): | 5abeer plan | Best for | Usage limits | Our price | | --- | --- | --- | --- | | Pro | For everyday use | A 5-hour limit and a weekly limit | Prices on the pricing page: https://5abeer.ai/en/pricing | | Max (formerly Max 5x) | For heavy daily work | 5× the Pro plan limits | Prices on the pricing page: https://5abeer.ai/en/pricing | | Ultra (formerly Max 20x) | If you work with it all day | 20× the Pro plan limits | Prices on the pricing page: https://5abeer.ai/en/pricing | What to know before you subscribe: - 5abeer's Pro, Max (formerly Max 5x) and Ultra (formerly Max 20x) are 5abeer plans, not Anthropic's plans, though the names are alike. - On your own official account, so you sign in to each app as you normally do. - Every Bundle plan runs every official app, from the smallest to the largest. The plans differ only in usage limits. - Each plan has a 5-hour limit and a weekly limit, as in [Usage limits](https://5abeer.ai/en/docs/subscriptions/limits.md). We don't promise limits matching OpenAI's or Anthropic's plans. - You pay by international card on Stripe's secure payment page, as in [Payment methods](https://5abeer.ai/en/docs/start/payment.md#card). - Activated within minutes in the [5abeer AI app](https://5abeer.ai/en/app) on Mac, Windows and Linux; it doesn't work inside the phone apps. Gulf store prices for comparison are in [ChatGPT and Claude prices in Saudi Arabia and the UAE](https://5abeer.ai/en/guides/chatgpt-claude-gulf-price), and Iraq's in [ChatGPT and Claude price in Iraq](https://5abeer.ai/en/guides/chatgpt-claude-price-iraq). > Plans are for the supported apps. To use the models from your own code, create an API key. ## Which option suits you? | Your situation | Best fit | | --- | --- | | You use ChatGPT or Claude on iPhone and have a card | The official plan from the App Store | | You want to pay with Maroc Telecom credit | The official plan from Google Play on Android | | You work with ChatGPT and Claude together on a computer | A 5abeer Bundle plan | | You code with Claude Code or Codex | A 5abeer Bundle plan | | You want the models in your own code | A 5abeer API key | ## Frequently asked questions ### How much is ChatGPT in Morocco? The Go, Plus and Pro prices in the Moroccan App Store are in the table above, with the date we checked them. Check the final amount and the billing period on the payment screen before you confirm. ### How do I pay for ChatGPT in Morocco? On iPhone you pay with a credit or debit card on your Apple account. On Android you pay through Google Play with a card or Maroc Telecom carrier billing. On the website you pay OpenAI with a card that allows international purchases. ### Is there a ChatGPT price in Moroccan dirhams? No. Apple shows ChatGPT and Claude prices in the Moroccan store with a dollar sign, and the store shows no price in dirhams. Your bank converts the amount if your card is in dirhams. ### How much is Claude Pro in Morocco? Claude Pro is sold in the Moroccan App Store monthly and yearly, at the prices in the Claude table above. Yearly costs less than twelve months, but you pay it all at once. ### Does Claude work in Morocco? Yes. Morocco is on Anthropic's list of supported countries, and the Claude app is listed in the Moroccan App Store with its plans and prices. ### How do I pay for a 5abeer plan from Morocco? By international card on Stripe's secure payment page. The steps are in [Payment methods](https://5abeer.ai/en/docs/start/payment.md#card). You can also pay with any bank card, Apple Pay or Google Pay. ### Is 5abeer part of OpenAI or Anthropic? No. 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. ## Sources Checked on 2026-11-16: - The Moroccan App Store: [ChatGPT](https://apps.apple.com/ma/app/chatgpt/id6448311069) and [Claude by Anthropic](https://apps.apple.com/ma/app/claude-by-anthropic/id6473753684), in-app purchases - Apple Support: [Payment methods that you can use with your Apple Account](https://support.apple.com/en-us/111741) - Google Play Help: [Accepted payment methods on Google Play](https://support.google.com/googleplay/answer/2651410?co=GENIE.CountryCode%3DMA), the Morocco page - Anthropic: [Supported countries and regions](https://www.anthropic.com/supported-countries) - OpenAI: [Supported countries and territories](https://developers.openai.com/api/docs/supported-countries) - Morocco World News (press report dated 2026-07-09): [VAT on digital services in Morocco](https://www.moroccoworldnews.com/2026/07/328303/moroccans-will-now-pay-20-vat-on-netflix-chatgpt-and-other-digital-services) Checked on 2026-11-15: - Claude: [Pricing](https://claude.com/pricing) - Claude Help Center: [Paid plan billing FAQs](https://support.claude.com/en/articles/8325618-paid-plan-billing-faqs) > 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. --- URL: https://5abeer.ai/en/guides/claude-api-key # How to get a Claude API key (Anthropic API key) > Create a Claude API key, also called an Anthropic API key, in the Claude Console: key types, expiry, headers, a test request and what usage costs. Updated: 2026-11-16 To get a Claude API key, sign in to the Claude Console, open the API keys page, choose Create key, and copy the key, which starts with `sk-ant-` and is shown only once. Anthropic also calls it an Anthropic API key. Before the key can make requests, your organization needs prepaid credits. ## How do you get a Claude API key? Claude API keys live in the Claude Console, Anthropic's developer dashboard. These are Anthropic's own steps: ### 1. Sign in to the Claude Console Go to the [Claude Console](https://platform.claude.com/) and sign in, or create an account if you don't have one yet. ### 2. Open the API keys page Open the [API keys](https://platform.claude.com/settings/keys) page at `platform.claude.com/settings/keys`. ### 3. Create the key Choose Create key, name the key, pick an expiration and set the linked account to yourself or to a service account. You can also scope the key to one workspace. ### 4. Copy and store the key The Console shows the full key only once, when you create it. Copy it into a secrets manager or another safe place. If you lose it, you can't view it again, so you create a new one. ### 5. Add credits On the [Billing](https://platform.claude.com/settings/billing) page, a member with the Admin or Billing role chooses Buy credits and confirms the amount. Purchased credits are available at once. When they run out, the key can no longer call the API until you add more. If the Create key button is greyed out, your role may not allow you to create keys. Ask an admin of your organization to change your role or to create a service account key for you. ## Which Claude API key type should you pick? The Console asks for a type when you create a key. The type decides whom the key acts as and when it stops working: | Key type | Acts as | Stops working when | Use it for | | --- | --- | --- | --- | | Personal key | You, with your roles | You lose access to the organization | Your own development and scripts | | Service account key | A service account | The service account is archived | CI pipelines, production services and agents | | Workspace key (legacy) | No one: it belongs to a workspace | It expires, is disabled or deleted, or the workspace is archived | Older setups; Anthropic prefers the other two | Anthropic's advice is a personal key for your own work and a service account key for anything a team or a service runs, because a personal key stops working when its owner leaves the organization. ## How long does a Claude API key last? You pick the lifetime when you create the key: a preset of 3 hours, 1 day, 7 days or 30 days, a custom duration, or Never for keys you keep in a secrets manager and rotate yourself. The lifetime can't be changed later. Anthropic emails the key's creator before a longer-lived key expires. An expired key returns `401 authentication_error` and can't be turned back on. Create a new key and put it wherever the old one was used. ## How do you use and test the key? Anthropic's SDKs read the key from the `ANTHROPIC_API_KEY` environment variable and set the headers for you: ```bash export ANTHROPIC_API_KEY="sk-ant-api03-..." ``` A direct HTTP request sends the key as `Authorization: Bearer `. The older `x-api-key` header still works in its place. Every request also carries `anthropic-version` and `content-type`. If your key isn't scoped to a workspace, add the `anthropic-workspace-id` header too, or the API answers `400 invalid_request_error`. This request checks a new key against Anthropic's API. A reply with Claude's text means the key works: ```bash curl https://api.anthropic.com/v1/messages \ -H "Authorization: Bearer $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2026-10-21" \ -H "content-type: application/json" \ -d '{"model": "claude-sonnet-5-5", "max_tokens": 256, "messages": [{"role": "user", "content": "Hello, Claude"}]}' ``` The same key also runs Claude Code. The setup and how Claude Code picks between a key and a plan login are in [Claude Code API key](https://5abeer.ai/en/guides/claude-code-api-key). ## How much does a Claude API key cost? The key itself costs nothing. Each request is charged by the tokens it sends and receives, per million tokens, and output costs more than input. These are the newest Claude models with our price per million tokens: | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | Claude Sonnet 5.5 | `claude-sonnet-5.5` | $0.60 | $3 | 1M | | Claude Opus 5.5 | `claude-opus-5.5` | $1.20 | $6 | 1M | | Claude Fable 5.1 | `claude-fable-5.1` | $3 | $15 | — | The default model and the main Opus, ours next to the official price: Claude Sonnet 5.5 (`claude-sonnet-5.5`) per 1M tokens: input $0.60 (official $2), output $3 (official $10). Official price checked November 21, 2026. Claude Opus 5.5 (`claude-opus-5.5`) per 1M tokens: input $1.20 (official $4), output $6 (official $20). Official price checked November 21, 2026. Use every model priced per token through the API for 70% less than its official price. A worked example: a small app that sends ten million tokens a month and gets two million back, on the default model: Example: 10,000,000 input tokens and 2,000,000 output tokens on Claude Sonnet 5.5 (`claude-sonnet-5.5`) cost $12.00 at our price against $40.00 at the official price (70% lower). Official price checked November 21, 2026. Caching, the Batch API and how a Claude bill adds up are in [Claude API pricing](https://5abeer.ai/en/guides/claude-api-pricing). ## An Anthropic key or a 5abeer key? | | Anthropic API key | 5abeer API key | | --- | --- | --- | | Where you create it | The API keys page in the Claude Console | The keys page in your 5abeer dashboard | | How you pay | Prepaid credits on the Billing page | Your 5abeer balance, see [Payment methods](https://5abeer.ai/en/docs/start/payment.md) | | Price per token | The official price | Below the official price | | Where it works | Anthropic's API, `api.anthropic.com` | Our Anthropic-compatible base URL | | Models | Claude models | Claude models; GPT and Gemini with a key for each, on the same balance | | Controls | Key types, expiry, workspaces and IP allowlisting | A spend limit, an expiry date and an IP allow-list on every key | If you need Anthropic platform features or a direct contract with Anthropic, an Anthropic key is the right choice. If you want a lower price per token for the same models, a 5abeer key fits. ## How to get a Claude key from 5abeer 5abeer is an independent service, not affiliated with Anthropic. Its API follows the Anthropic Messages format, so the Anthropic SDK keeps working once you change the base URL and the key. Sign up on the website with email or Google and create the API key in the dashboard, with nothing to download. ### 1. Top up your balance Add credit with one of the methods in [Payment methods](https://5abeer.ai/en/docs/start/payment.md). Every key you create draws on this balance. ### 2. Create a key for Claude models Open the keys page, pick Claude as the provider and name the key after the project that uses it. The steps are in [Create a key](https://5abeer.ai/en/docs/start/keys.md#create). ### 3. Change the base URL Keep your Anthropic code and change only the base URL and the key: | Format | Base URL | Key header | | --- | --- | --- | | OpenAI | `https://api.5abeer.ai/v1` | `Authorization: Bearer ` | | Anthropic | `https://api.5abeer.ai` | `x-api-key: ` | | Gemini | `https://api.5abeer.ai/v1beta` | `x-goog-api-key: ` | This is a full request in the Anthropic Messages format, with the key read from the `KHABEER_API_KEY` environment variable: ```bash curl --request POST "https://api.5abeer.ai/v1/messages" \ --header "x-api-key: $KHABEER_API_KEY" \ --header "Content-Type: application/json" \ --header "anthropic-version: 2023-06-01" \ --data '{"model":"claude-sonnet-5.5","max_tokens":512,"messages":[{"role":"user","content":"Write a product idea in one sentence."}]}' ``` ```python import os import requests response = requests.post( "https://api.5abeer.ai/v1/messages", headers={ "x-api-key": os.environ['KHABEER_API_KEY'], "Content-Type": "application/json", "anthropic-version": "2023-06-01", }, json={ "model": "claude-sonnet-5.5", "max_tokens": 512, "messages": [ { "role": "user", "content": "Write a product idea in one sentence." } ] }, stream=False, timeout=60, ) response.raise_for_status() print(response.json()) ``` The API needs no subscription: your wallet balance pays only for what you use, and the monthly plans are a separate product for the official apps. A 5abeer key works only with our base URL, not with `api.anthropic.com`. You can give it a spend limit, an expiry date and an IP allow-list, as in [Control every key](https://5abeer.ai/en/docs/start/keys.md#controls). ## How do you keep a Claude API key safe? - Keep the key in a secrets manager or an environment variable, never in code you commit. - Call the API from your own server. Anthropic warns that anyone who uses a web page can read a key in that page's code. - Use one key per project, and rotate keys from time to time. - Set an expiry, so a leaked key stops working on its own. - If a key leaks, disable or delete it at once. In the Console, Disable can be undone, while Delete is permanent. ## FAQ ### Is a Claude API key the same as an Anthropic API key? Yes. Anthropic's docs say API keys for the Claude API are also called Anthropic API keys. Both names mean the key you create on the API keys page of the Claude Console. ### Is a Claude API key free? Creating the key is free. Calling the API is not: each request is deducted from prepaid credits by its token count, and without credits the key can't call the API. ### Can I see my Claude API key again after I close the page? No. The Console shows the full key only once, when you create it. If you lose it, create a new key and replace the old one wherever you used it. ### Does a Claude Pro or Max plan include an API key? Not as the same product. Anthropic bills the Claude API separately from its paid plans, although its Max, Ultra and Team plans include monthly Claude API credits. Compare both routes in [Claude API vs Claude Pro/Max](https://5abeer.ai/en/guides/claude-api-vs-subscription). ### Can I use my Claude API key in Claude Code? Yes. Set it in the `ANTHROPIC_API_KEY` environment variable and approve it the first time Claude Code asks. The full setup is in [Claude Code API key](https://5abeer.ai/en/guides/claude-code-api-key). ### Why does my Claude API key return a 401 error? A `401 authentication_error` usually means the key is wrong, copied only in part, disabled or expired. Copy it again, check its status on the API keys page, or create a new key. ### Which Claude model should I call first? Start with the default model, [`claude-sonnet-5.5`](https://5abeer.ai/en/models/claude-sonnet-5.5), and move to Opus for long, demanding work. What Opus costs and how to call it is in [Claude Opus API](https://5abeer.ai/en/guides/claude-opus-api). ### Is 5abeer part of Anthropic? No. 5abeer is an independent service, not affiliated with Anthropic, OpenAI or Google. ## Get started Compare every Claude model's price on the [Claude API page](https://5abeer.ai/en/api/claude), or create a key and send your first request. ## Sources Checked on 2026-11-16: - Anthropic: [Get your Claude API key](https://platform.claude.com/docs/en/get-api-key) - Anthropic: [Authentication](https://platform.claude.com/docs/en/manage-claude/authentication) - Anthropic: [API overview](https://platform.claude.com/docs/en/api/overview) - Anthropic Help Center: [How do I pay for my Claude API usage?](https://support.claude.com/en/articles/8977456) - Anthropic Help Center: [Why is Claude API usage billed separately from my paid Claude plan?](https://support.claude.com/en/articles/9876003) --- URL: https://5abeer.ai/en/guides/claude-code-api-key # Claude Code API key: how to set it up and use it > Run Claude Code on an API key: ANTHROPIC_API_KEY and its approval prompt, a Console login, apiKeyHelper, which credential wins over a plan, and the cost. Updated: 2026-11-16 To use Claude Code with an API key, create a key in the Claude Console, set it in the `ANTHROPIC_API_KEY` environment variable and run `claude`. Claude Code asks once whether to use the key and remembers your answer. From then on, every request is billed per token to the key instead of counting against a Claude plan. ## Which ways can Claude Code use an API key? Claude Code signs in with a Claude plan, or it runs on a credential you give it. These are the credential routes Anthropic documents: | Credential | How Claude Code sends it | What it is for | | --- | --- | --- | | `ANTHROPIC_API_KEY` variable | The `X-Api-Key` header | A key from the Claude Console, straight to Anthropic's API | | `ANTHROPIC_AUTH_TOKEN` variable | The `Authorization: Bearer` header | A gateway or proxy that takes bearer tokens | | `apiKeyHelper` setting | The key a script of yours prints | Keys that rotate, such as short-lived ones from a vault | | Console login with `/login` | A saved Console sign-in, with or without an API key | Organizations that pay for Claude Code through the Console | | Plan login with `/login` | Your claude.ai sign-in | Pro, Max, Ultra, Team and Enterprise plans | The first three bill every request per token. A plan login counts against the plan's usage limits instead. ## How to set up Claude Code with an Anthropic API key ### 1. Create a key Create a key on the API keys page of the Claude Console, as in [How to get a Claude API key](https://5abeer.ai/en/guides/claude-api-key). In a team, a Console admin can give you the Claude Code role, which can create Claude Code API keys only. ### 2. Set the variable Put the key in `ANTHROPIC_API_KEY` in the shell you run Claude Code from: macOS / Linux: ```bash export ANTHROPIC_API_KEY="sk-ant-api03-..." ``` Windows (PowerShell): ```powershell $env:ANTHROPIC_API_KEY = "sk-ant-api03-..." ``` Windows (CMD): ```text set ANTHROPIC_API_KEY=sk-ant-api03-... ``` To keep it for new terminals, add the same line to your shell profile, such as `~/.zshrc` or `~/.bashrc`. ### 3. Run Claude Code and approve the key Run `claude` in your project. In interactive mode, Claude Code asks once whether to use the key, and it remembers your choice. To change it later, use the "Use custom API key" toggle in `/config`, which appears only while the variable is set. ### 4. Check which credential is active Run `/status`. When a login and a key are both set, it marks the one that isn't in use. In non-interactive mode, `claude -p`, Claude Code always uses the key when it is set, with no prompt. ## Can you sign in with a Console account instead? Yes. At the `/login` prompt, choose the Anthropic Console account and Claude Code asks how to sign in. Both routes sign you in to the Console in the browser: - **Sign in with your Console account**, marked recommended: Claude Code keeps the sign-in as an Anthropic profile and creates no API key. It renews that login on its own. - **Create an API key**, marked legacy: Claude Code creates a Console API key for you and stores it with your other credentials. The keyless route needs Claude Code v2.1.242 or later. Unset `ANTHROPIC_API_KEY` before you choose it. On macOS, Claude Code stores credentials in the encrypted Keychain; on Linux and Windows, in `.credentials.json` under your `.claude` folder. ## Which credential does Claude Code use first? When several credentials are present, Claude Code takes the first one in Anthropic's order: 1. A cloud provider, when `CLAUDE_CODE_USE_BEDROCK`, `CLAUDE_CODE_USE_VERTEX` or `CLAUDE_CODE_USE_FOUNDRY` is set. 2. `ANTHROPIC_AUTH_TOKEN`. 3. `ANTHROPIC_API_KEY`. 4. The output of your `apiKeyHelper` script. 5. `CLAUDE_CODE_OAUTH_TOKEN`, a long-lived plan token from `claude setup-token`. 6. An Anthropic profile or federation credentials. 7. Your plan login from `/login`. So if you have a Claude plan and also set `ANTHROPIC_API_KEY`, Claude Code uses the key once you approve it, and those requests are billed per token. If the key belongs to a disabled or expired organization, sign-in fails. To go back to your plan, run `unset ANTHROPIC_API_KEY` and check `/status`. ## Use a key in scripts and CI - **Headless runs:** `claude -p` uses `ANTHROPIC_API_KEY` whenever it is set. - **Rotating keys:** set `apiKeyHelper` to a shell script that prints a key. If the script takes longer than ten seconds, Claude Code shows a notice; if it fails, prints nothing or times out, requests fail within three attempts. - **Bare mode:** `--bare` doesn't read `CLAUDE_CODE_OAUTH_TOKEN`, so authenticate with `ANTHROPIC_API_KEY` or an `apiKeyHelper` there. - **Where the variables apply:** the CLI and the tools built on it, including the VS Code extension, the Agent SDK and GitHub Actions. Claude Desktop and cloud sessions don't read them. For a ready workflow, see [Claude Code with GitHub Actions](https://5abeer.ai/en/guides/claude-code-github-actions). ## What does Claude Code cost on an API key? On a key, Claude Code is billed by the tokens each turn sends and receives. Every turn carries the conversation so far and the files and command output it reads, so a long session sends far more tokens than you type. Anthropic publishes these averages for teams that use it at work: Claude Code costs, as Anthropic publishes them | Service | Item | Value | Note | Source | | --- | --- | --- | --- | --- | | Anthropic | Average cost per developer per active day | $13 a day | An approximate average across enterprise deployments. | https://code.claude.com/docs/en/costs | | Anthropic | Average cost per developer per month | $150–250 | An approximate average across enterprise deployments. | https://code.claude.com/docs/en/costs | | Anthropic | What 90% of users stay below per active day | $30 a day | Across enterprise deployments. | https://code.claude.com/docs/en/costs | | Anthropic | Claude Code on a Pro, Max or Ultra plan | Within the plan's usage limits | Usage credits, paid separately, let you continue past the limit. | https://code.claude.com/docs/en/costs | Each row links to the page it comes from, checked October 31, 2026, November 1, 2026. These figures can change, so check the source before you buy. These are the newest Claude models in Claude Code, with our price per million tokens: | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | Claude Sonnet 5.5 | `claude-sonnet-5.5` | $0.60 | $3 | 1M | | Claude Opus 5.5 | `claude-opus-5.5` | $1.20 | $6 | 1M | | Claude Fable 5.1 | `claude-fable-5.1` | $3 | $15 | — | And the default model, ours next to the official price: Claude Sonnet 5.5 (`claude-sonnet-5.5`) per 1M tokens: input $0.60 (official $2), output $3 (official $10). Official price checked November 21, 2026. Use every model priced per token through the API for 70% less than its official price. The cost that `/usage` shows on a key is an estimate Claude Code works out on your machine. Whether a plan or a key costs less for your usage is worked out in [The cheapest way to use Claude Code](https://5abeer.ai/en/guides/claude-code-cheapest-way). ## Use Claude Code with a 5abeer key 5abeer is an independent service, not affiliated with Anthropic. Its API follows the Anthropic Messages format, so Claude Code runs on it as it ships. With a 5abeer key you set the base URL and send the key as a bearer token in `ANTHROPIC_AUTH_TOKEN`, the gateway route in the table above: `~/.claude/settings.json` ```json { "env": { "ANTHROPIC_BASE_URL": "https://api.5abeer.ai", "ANTHROPIC_AUTH_TOKEN": "YOUR_5ABEER_API_KEY", "ANTHROPIC_MODEL": "claude-sonnet-5.5" } } ``` Create a key for Claude models first, as in [Create a key](https://5abeer.ai/en/docs/start/keys.md#create). Every request is deducted from your balance by model and token count, and each key can have a spend limit, an expiry date and an IP allow-list. Setup for each operating system is in the [Claude Code guide](https://5abeer.ai/en/docs/apps/claude-code.md#configure), and `/status` shows the base URL in use. ## If Claude Code rejects the key - **Sign-in fails with a key set:** the key may belong to a disabled or expired organization. Check it on the API keys page, or unset it to fall back to your plan. - **"Your apiKeyHelper script is failing":** run the script yourself and make sure it prints a key and exits without an error. - **On a 5abeer key:** [`INVALID_API_KEY`](https://5abeer.ai/en/docs/help/errors.md#INVALID_API_KEY) means the key is wrong or copied only in part, and [`INSUFFICIENT_BALANCE`](https://5abeer.ai/en/docs/help/errors.md#INSUFFICIENT_BALANCE) means your balance doesn't cover the request. ## FAQ ### Does Claude Code need an API key? No. You can log in with a Claude Pro, Max, Ultra, Team or Enterprise plan instead. A key is for paying per token, for automation, or for teams billed through the Claude Console. ### Where do I put my API key in Claude Code? In the `ANTHROPIC_API_KEY` environment variable of the shell you run `claude` from. Claude Code asks once whether to use it. A gateway key goes in `ANTHROPIC_AUTH_TOKEN` with the gateway's address in `ANTHROPIC_BASE_URL`. ### Why does Claude Code bill my key instead of my plan? A key in `ANTHROPIC_API_KEY` comes before a plan login once you approve it. Run `unset ANTHROPIC_API_KEY` to go back to the plan, then check `/status`. ### Can I use an API key in the Claude Code VS Code extension? Yes. `ANTHROPIC_API_KEY`, `ANTHROPIC_AUTH_TOKEN` and `apiKeyHelper` apply to the VS Code extension too. Setup inside the editor is in [Claude Code in VS Code](https://5abeer.ai/en/guides/claude-code-vscode). ### Is a Claude Code API key different from a Claude API key? It is the same kind of Claude Console key. A Console admin can give a member the Claude Code role, which can create only Claude Code API keys, while the Developer role can create any kind. ### Is 5abeer part of Anthropic? No. 5abeer is an independent service, not affiliated with Anthropic, OpenAI or Google. ## Get started See every Claude model's price on the [Claude API page](https://5abeer.ai/en/api/claude), or create a key and point Claude Code at it. ## Sources Checked on 2026-11-16: - Claude Code docs: [Authentication](https://code.claude.com/docs/en/authentication) - Claude Code docs: [Manage costs effectively](https://code.claude.com/docs/en/costs) - Anthropic: [Get your Claude API key](https://platform.claude.com/docs/en/get-api-key) Each row in the official table shows its own source and the date we checked it. --- URL: https://5abeer.ai/en/guides/image-generation-api # AI image generation API: GPT image and Gemini models > How an AI image generation API works with the GPT image and Gemini image models: endpoints, keys, a first request, what sets the price and which to pick. Updated: 2026-11-16 An AI image generation API turns a text prompt into an image file your code can save. OpenAI's GPT image models answer on the Images endpoint, and Google's Gemini image models answer through generateContent. Both return the image as Base64 data, and both price each image by its size, plus its quality on GPT. ## What is an image generation API? An image generation API is an HTTP endpoint that takes a description and sends back a picture. Your code sends the prompt with an API key, waits for the model to draw, then decodes the reply and saves it as a PNG, JPEG or WebP file. Most image APIs can also edit a picture you send, such as changing its background or adding an object. You need one when a program makes the images: product shots for a store, thumbnails for a blog, art for a game or app, or an assistant that answers with a picture. To make a few images by hand, an app is enough. ## GPT image or Gemini image: which API fits? Both families are sold through one API at 5abeer, but they speak different request formats. This is how they differ, from OpenAI's and Google's own docs and our [Images](https://5abeer.ai/en/docs/api/images.md) and [Gemini](https://5abeer.ai/en/docs/api/gemini.md#image) references: | | GPT image models (OpenAI) | Gemini image models (Google) | | --- | --- | --- | | Request format | OpenAI Images: `POST /v1/images/generations` | Gemini: `generateContent` with `responseModalities` set to text and image | | Key | A key for GPT models, sent as `Authorization: Bearer` | A key for Gemini models, sent as `x-goog-api-key` | | What you get back | `b64_json` in the `data` list | `inlineData` with Base64 data | | Editing | `POST /v1/images/edits` with the image and an optional mask | Google documents edits by sending an image with your text | | Options | Size, quality, transparent background, file format | Resolutions up to 4K, and many aspect ratios | | What sets the official price | Image tokens, which grow with quality and size | Image tokens, quoted per image by resolution | | Watermark | Not stated in OpenAI's guide | Google says every generated image carries a SynthID watermark | In practice: pick GPT image when you need masked edits, a transparent background or code that already uses the OpenAI SDK. Pick Gemini image when you need large resolutions or unusual aspect ratios, or your code already calls Gemini. ## Which image models can you call? These are the image models you can call through our API now. Open a model to see its price per image, ours next to the official one: | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | GPT Image 1 | `gpt-image-1` | — | — | — | | GPT Image 1.5 | `gpt-image-1.5` | — | — | — | | GPT Image 2 | `gpt-image-2` | — | — | — | | GPT Image 2.5 Flare | `gpt-image-2.5-flare` | — | — | — | | GPT Image 2.5 Sunburst | `gpt-image-2.5-sunburst` | — | — | — | | Gemini 3.1 Flash Image (Nano Banana 2) | `gemini-3.1-flash-image` | — | — | 64K | The table shows a dash in the token columns because image models are priced per image, not per token. Use the newest model of each family for new work. ## How to generate an image with the GPT image API ### 1. Create a key for GPT models Top up your balance and create a key for GPT models, as in [Create a key](https://5abeer.ai/en/docs/start/keys.md#create). A Claude or Gemini key gets `not_found_error` on this endpoint. ### 2. Send the prompt Send a request to the Images endpoint. Replace the prompt with a description of the image you want: ```bash curl --request POST "https://api.5abeer.ai/v1/images/generations" \ --header "Authorization: Bearer $KHABEER_API_KEY" \ --header "Content-Type: application/json" \ --data '{"model":"gpt-image-1","prompt":"Write a product idea in one sentence.","size":"1024x1024","quality":"medium"}' ``` ```python import os import requests response = requests.post( "https://api.5abeer.ai/v1/images/generations", headers={ "Authorization": f"Bearer {os.environ['KHABEER_API_KEY']}", "Content-Type": "application/json", }, json={ "model": "gpt-image-1", "prompt": "Write a product idea in one sentence.", "size": "1024x1024", "quality": "medium" }, stream=False, timeout=60, ) response.raise_for_status() print(response.json()) ``` ### 3. Save the file The reply carries the image in `data[0].b64_json`. Decode the Base64 text and write it to a file with the extension of the `output_format` you asked for. PNG is OpenAI's default. OpenAI-compatible: change the base URL and keep your code. Every option, the edit endpoint and full examples are in [Images](https://5abeer.ai/en/docs/api/images.md#params). OpenAI notes that complex prompts can take up to two minutes, so give the request a long timeout. ## How to generate an image with the Gemini API ### 1. Create a key for Gemini models Create a key for Gemini models on the same balance. Each key works with one provider's models. ### 2. Ask for an image in the reply Call `generateContent` on a Gemini image model and add `"responseModalities": ["TEXT", "IMAGE"]` to `generationConfig`: ```bash curl --request POST "https://api.5abeer.ai/v1beta/models/gemini-3.1-flash-image:generateContent" \ --header "x-goog-api-key: $KHABEER_API_KEY" \ --header "Content-Type: application/json" \ --data '{"contents":[{"role":"user","parts":[{"text":"Write a product idea in one sentence."}]}],"generationConfig":{"responseModalities":["TEXT","IMAGE"]}}' ``` ```python import os import requests response = requests.post( "https://api.5abeer.ai/v1beta/models/gemini-3.1-flash-image:generateContent", headers={ "x-goog-api-key": os.environ['KHABEER_API_KEY'], "Content-Type": "application/json", }, json={ "contents": [ { "role": "user", "parts": [ { "text": "Write a product idea in one sentence." } ] } ], "generationConfig": { "responseModalities": [ "TEXT", "IMAGE" ] } }, stream=False, timeout=60, ) response.raise_for_status() print(response.json()) ``` ### 3. Read the image part The image comes back as a part with `inlineData`. Decode its Base64 `data` and save it with the file type that `mimeType` names. Compatible with the Gemini generateContent API for the models that support it. The request format and a full image example are in [Gemini](https://5abeer.ai/en/docs/api/gemini.md#image). ## What does an image cost? Both vendors bill image output in tokens, then publish what one image costs: - **OpenAI:** larger sizes and higher quality settings take more tokens, so a high-quality large image costs more than a low-quality square one. Use explicit `size` and `quality` values if you want a fixed cost, because `auto` depends on the image the model draws. - **Google:** image output is priced per million tokens, with the cost of one image quoted by resolution, from small images up to 4K. Google's pricing page lists no free tier for image output. Our price for each model and size is on its model page, linked from the table above. Your balance pays per image you generate, and a request your balance can't cover returns [`INSUFFICIENT_BALANCE`](https://5abeer.ai/en/docs/help/errors.md#INSUFFICIENT_BALANCE). The API needs no subscription: your wallet balance pays only for what you use, and the monthly plans are a separate product for the official apps. Text models on the same balance are priced per token: see the [OpenAI API page](https://5abeer.ai/en/api/openai) and [Gemini API pricing](https://5abeer.ai/en/guides/gemini-api-pricing). ## Tips before you go live - **Call the API from your server.** A key in browser or phone app code can be read by anyone. - **Set the size and quality yourself,** so each image costs what you expect. - **Give requests a long timeout** and show a progress state in your app while the image is drawn. - **Store the file once.** Save the decoded image to your own storage and serve it from there instead of generating it again. - **Give each project its own key** with a spend limit, an expiry date and an IP allow-list, as in [Control every key](https://5abeer.ai/en/docs/start/keys.md#controls). - **Mind the request size on edits.** A large file can return `413` with `REQUEST_TOO_LARGE`; see [Limits](https://5abeer.ai/en/docs/api/limits.md#size). ## FAQ ### What is the best API for image generation? It depends on the job. The GPT image models suit masked edits, transparent backgrounds and code built on the OpenAI SDK. The Gemini image models suit large resolutions and wide or tall aspect ratios. Try both on your own prompts, since you can call either from one balance. ### Is there a GPT image API? Yes. OpenAI serves its GPT image models through its Image API, with endpoints to generate and to edit images, and through its Responses API for image work inside a conversation. On 5abeer you call them on the OpenAI Images endpoints with a key for GPT models. ### Can one key generate images with both GPT and Gemini? No. Each key works with one provider's models, so you create a key for GPT models and another for Gemini models. Both keys draw on the same balance. ### How do I get the image out of the response? Decode the Base64 text: `b64_json` in the `data` list on the Images endpoint, or the `inlineData` part in a Gemini reply. Then write the bytes to a file. ### Do generated images carry a watermark? Google says every image its Gemini image models generate includes a SynthID watermark. OpenAI's image generation guide doesn't describe one. ### Can I edit an existing image through the API? Yes. The GPT image models take the image, an optional mask and a prompt on `POST /v1/images/edits`. For Gemini image models, Google documents editing by sending the image together with your text prompt. ### Is 5abeer part of OpenAI or Google? No. 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. ## Get started Compare GPT model prices on the [OpenAI API page](https://5abeer.ai/en/api/openai) and Gemini prices on the [Gemini API page](https://5abeer.ai/en/api/gemini), or create a key and generate your first image. ## Sources Checked on 2026-11-16: - OpenAI: [Image generation](https://developers.openai.com/api/docs/guides/image-generation) - Google: [Image generation](https://aistudio.google.com/docs/image-generation) - Google: [Gemini API pricing](https://aistudio.google.com/docs/pricing) --- URL: https://5abeer.ai/en/guides/claude-opus-api # Claude Opus API: model ID, price and first request > Call Claude Opus through the API: the model ID, the price per 1M tokens next to Sonnet, effort and thinking settings, a first request, and when to pick it. Updated: 2026-11-16 The Claude Opus API is Anthropic's Opus model called through the Claude Messages API: you put the Opus model ID in the `model` field, send your key, and pay per million tokens, with input and output priced separately. Anthropic built Opus for long-running agentic coding and knowledge work, and suggests starting with it when unsure. ## What is the Claude Opus API? Anthropic's current Claude line has three main models: Sonnet, "the best combination of speed and intelligence"; Opus, "for long-running agentic coding and knowledge work"; and Fable, for demanding reasoning and long-horizon agentic work. Calling Opus "through the API" means your code sends it requests over HTTP, instead of a person typing in the Claude app. Every Claude model answers on the same Messages endpoint with the same key. Moving a request from Sonnet to Opus changes one value, the `model` field. Opus is also offered on cloud platforms such as Amazon Bedrock, Google Cloud and Microsoft Foundry, each with its own model ID and billing. ## What is the Claude Opus model ID? On Anthropic's own API, the newest Opus is `claude-opus-5-5`. Anthropic notes that every Claude model ID is a pinned snapshot, including the dateless IDs, so the same ID keeps pointing at the same model. On 5abeer, use the ID shown here. Open a model for its full details: | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | Claude Sonnet 5.5 | `claude-sonnet-5.5` | $0.60 | $3 | 1M | | Claude Opus 5.5 | `claude-opus-5.5` | $1.20 | $6 | 1M | ## How much does the Claude Opus API cost? Opus is priced per million tokens, with output dearer than input. Its thinking tokens are billed as output. Here is Opus next to Sonnet, ours beside the official price: Claude Opus 5.5 (`claude-opus-5.5`) per 1M tokens: input $1.20 (official $4), output $6 (official $20). Official price checked November 21, 2026. Claude Sonnet 5.5 (`claude-sonnet-5.5`) per 1M tokens: input $0.60 (official $2), output $3 (official $10). Official price checked November 21, 2026. Use every model priced per token through the API for 70% less than its official price. A worked example: an agent run that sends three million tokens and gets 600,000 back on Opus: Example: 3,000,000 input tokens and 600,000 output tokens on Claude Opus 5.5 (`claude-opus-5.5`) cost $7.20 at our price against $24.00 at the official price (70% lower). Official price checked November 21, 2026. Anthropic also lists ways to pay less on its own API: the Batch API takes 50% off input and output for jobs that don't need an instant answer, and on the newest Opus and Sonnet a prompt cache read costs 5% of the base input price. Fast mode for Opus is sold at a higher rate. Every rate, with caching and long prompts, is in [Claude API pricing](https://5abeer.ai/en/guides/claude-api-pricing). ## Opus or Sonnet on the API? Anthropic's model overview compares the two like this: | | Opus | Sonnet | | --- | --- | --- | | Anthropic's description | For long-running agentic coding and knowledge work | The best combination of speed and intelligence | | Comparative latency | Moderate | Fast | | Default effort on the API | `medium` | `high` | | Thinking | Adaptive, always on | Adaptive | | Context window | 1M tokens | 1M tokens | | Price per token | Higher, see the rows above | Lower, see the rows above | Use Sonnet when you work turn by turn and review each change. Hand Opus whole tasks: a refactor across a codebase, a feature built from a plan, or an agent that runs for a long time. Anthropic suggests Fable when Opus at a higher effort still falls short. The full comparison is in [Which Claude model to use](https://5abeer.ai/en/guides/which-claude-model). ## How to call Claude Opus ### 1. Get a key Create a key for Claude models, as in [How to get a Claude API key](https://5abeer.ai/en/guides/claude-api-key). The same key calls every Claude model. ### 2. Send a request to Opus This request uses the Anthropic Messages format and reads the key from the `KHABEER_API_KEY` environment variable: ```bash curl --request POST "https://api.5abeer.ai/v1/messages" \ --header "x-api-key: $KHABEER_API_KEY" \ --header "Content-Type: application/json" \ --header "anthropic-version: 2023-06-01" \ --data '{"model":"claude-opus-5.5","max_tokens":512,"messages":[{"role":"user","content":"Write a product idea in one sentence."}]}' ``` ```python import os import requests response = requests.post( "https://api.5abeer.ai/v1/messages", headers={ "x-api-key": os.environ['KHABEER_API_KEY'], "Content-Type": "application/json", "anthropic-version": "2023-06-01", }, json={ "model": "claude-opus-5.5", "max_tokens": 512, "messages": [ { "role": "user", "content": "Write a product idea in one sentence." } ] }, stream=False, timeout=60, ) response.raise_for_status() print(response.json()) ``` ### 3. Set the effort Effort sets how many tokens the model spends on a reply, its thinking included. Set it with `output_config.effort`, as in [Messages](https://5abeer.ai/en/docs/api/messages.md#param-output_config): ```json "output_config": { "effort": "high" } ``` Compatible with the Anthropic Messages API. Three things are new on the newest Opus, from Anthropic's effort guide: - **The default effort is `medium`.** Earlier Opus models default to `high`, so a request that omits effort runs one level lower than before. - **Thinking can't be turned off.** Adaptive thinking is always on, so effort is your main control for depth and cost. A request with `thinking: {"type": "disabled"}` returns a 400 error. - **Leave room in `max_tokens` at high effort.** At `xhigh` or `max`, set a large `max_tokens`, because it caps thinking and the reply together. Anthropic notes that tuning effort is often a better lever than switching models, so try Opus at a higher effort before you move up a model. ## Opus in Claude Code In Claude Code, switch to Opus with `/model` or the `ANTHROPIC_MODEL` variable. Claude Code also has `opusplan`, which plans with Opus and then carries out the plan with Sonnet. To run Claude Code on a key, see [Claude Code API key](https://5abeer.ai/en/guides/claude-code-api-key). ## FAQ ### Is Claude Opus available through the API? Yes. Opus is served through Anthropic's Claude API, on cloud platforms such as Amazon Bedrock and Google Cloud, and through 5abeer's Anthropic-compatible API below the official price. ### What is the Claude Opus API price? Opus is billed per million tokens, input and output separately, and costs more per token than Sonnet. The current official price and ours are in the price rows on this page, and every Claude rate is on the [Claude API page](https://5abeer.ai/en/api/claude). ### What model name do I send for Opus? On Anthropic's API, `claude-opus-5-5` for the newest Opus. On 5abeer, send the ID shown in the models table on this page. ### Is Opus better than Sonnet for coding? For long, autonomous coding and large refactors, Anthropic positions Opus above Sonnet. For quick, turn-by-turn edits, Sonnet is faster and costs less. Try a higher effort on Sonnet before you switch. ### Does a long prompt cost more on Opus? Not per token. On Anthropic's API, Opus and the other recent Claude models bill the whole 1M-token context window at the standard rate, so a very long request pays the same rate per token as a short one. It still costs more in total, because it sends more tokens. ### Is 5abeer part of Anthropic? No. 5abeer is an independent service, not affiliated with Anthropic, OpenAI or Google. ## Get started See every Claude model's price on the [Claude API page](https://5abeer.ai/en/api/claude), or create a key and send your first request to Opus. ## Sources Checked on 2026-11-16: - Anthropic: [Models overview](https://platform.claude.com/docs/en/about-claude/models/overview) - Anthropic: [Choosing the right model](https://platform.claude.com/docs/en/about-claude/models/choosing-a-model) - Anthropic: [Effort](https://platform.claude.com/docs/en/build-with-claude/effort) - Anthropic: [Pricing](https://platform.claude.com/docs/en/about-claude/pricing) - Claude Code docs: [Model configuration](https://code.claude.com/docs/en/model-config) - Claude Code docs: [Manage costs effectively](https://code.claude.com/docs/en/costs) --- URL: https://5abeer.ai/en/guides/claude-price-saudi # Claude price in Saudi Arabia (2026) > Official Claude Pro, Max and Ultra prices in Saudi riyals and US dollars, with sources and dates, what each plan includes, and a cheaper way to run Claude. Updated: 2026-11-15 In Saudi Arabia, Anthropic sells Claude Pro, Max and Ultra in riyals through the Claude iPhone app, and in US dollars on claude.com. Pro is the entry plan, monthly or yearly. Max and Ultra cost several times more and add usage. All three include Claude Code. The prices below come with their source and date. ## How much is a Claude subscription in Saudi Arabia? These are the prices of Claude's plans in the Saudi App Store, where the seller is Anthropic PBC: | Plan | Market and channel | Official price | Billing | Source | Checked | | --- | --- | --- | --- | --- | --- | | Claude Pro | Saudi Arabia · App Store | SAR 89.99 | per month | https://apps.apple.com/sa/app/claude-by-anthropic/id6473753684 | 2026-11-15 | | Claude Pro | Saudi Arabia · App Store | SAR 999.99 | per year | https://apps.apple.com/sa/app/claude-by-anthropic/id6473753684 | 2026-11-15 | | Claude Max | Saudi Arabia · App Store | SAR 499.99 | per month | https://apps.apple.com/sa/app/claude-by-anthropic/id6473753684 | 2026-11-15 | | Claude Ultra | Saudi Arabia · App Store | SAR 999.99 | per month | https://apps.apple.com/sa/app/claude-by-anthropic/id6473753684 | 2026-11-15 | The vendors' own prices as published at the source on the date checked; they can change. These are the vendor's official prices; 5abeer's prices are on the pricing page. The same App Store page also lists Claude usage credit packs. Those are separate purchases, not plans, and some of them cost about the same as a plan, so read the item name before you confirm. ChatGPT's prices in the same Saudi store are in [ChatGPT price in Saudi Arabia](https://5abeer.ai/en/guides/chatgpt-price-saudi). What each plan gives you, in Anthropic's own words on its [pricing page](https://claude.com/pricing): - **Claude Pro** gives "more usage than Free, every 5 hours and every week". It is sold monthly or yearly. - **Claude Max** gives "5x Pro usage every 5 hours and every week". - **Claude Ultra** has no 5-hour limit for verified accounts and gives "10x Pro usage every week". Anthropic's Ultra plan used to be called Max 20x. Its help page says: "The Max 20x plan is now called the Ultra plan." If a seller still offers "Max 20x", they mean the plan Anthropic now calls Ultra. ## Is Claude Pro cheaper monthly or yearly? Yearly costs less overall. In the Saudi App Store, the yearly Pro plan costs less than twelve monthly payments; compare the two Pro rows in the table above. On claude.com, Anthropic also charges less per month for Pro when you pay for the whole year upfront. The catch is that you pay for twelve months at once. Yearly makes sense once you know Pro fits how you work. If you are not sure yet, start with one month, watch how quickly you reach the limit, and decide after that. Only Pro has a yearly option: Max and Ultra are monthly in both the App Store and on claude.com. ## What do Max and Ultra add over Pro? Usage. Pro, Max and Ultra open the same Claude apps, and all three include Claude Code. The free plan does not include it. What changes is how much you can use before you wait: - **Max** multiplies Pro's usage by five, both in each 5-hour window and across the week. - **Ultra** drops the 5-hour limit once Anthropic has verified your account, and gives ten times Pro's usage across the week. So Max suits people who hit Pro's limit most days. Ultra suits people who work in long sessions, such as running Claude Code for hours, and don't want to stop and wait for the 5-hour reset. A side-by-side comparison of the plans, with examples of each kind of use, is in [Claude Pro vs Max](https://5abeer.ai/en/guides/claude-pro-vs-max). ## Is Claude cheaper on the website or in the App Store? The two are priced differently, so compare the final amounts rather than the listed prices. These are Anthropic's prices on claude.com, in US dollars: | Plan | Market and channel | Official price | Billing | Source | Checked | | --- | --- | --- | --- | --- | --- | | Claude Pro | United States · Vendor website | $20 | per month | https://claude.com/pricing | 2026-11-15 | | Claude Pro | United States · Vendor website | $200 | per year | https://claude.com/pricing | 2026-11-15 | | Claude Max | United States · Vendor website | $100 | per month | https://claude.com/pricing | 2026-11-15 | | Claude Ultra | United States · Vendor website | $200 | per month | https://claude.com/pricing | 2026-11-15 | The vendors' own prices as published at the source on the date checked; they can change. These are the vendor's official prices; 5abeer's prices are on the pricing page. Tax: per Anthropic's pages, some countries include tax in the displayed price and others add it at checkout. Three things separate the two prices: - **Currency.** The App Store shows a fixed riyal price that Apple sets for Saudi Arabia. The pricing page we read lists US dollars, and Anthropic's Pro help page says it prices in your local currency where supported, so check the currency at claude.ai/upgrade and convert at your card's rate. If your card is in riyals, your bank may also add a foreign-currency fee, so check with your bank. - **Tax.** Saudi Arabia charges VAT at 15% ([ZATCA](https://zatca.gov.sa/en/HelpCenter/guidelines/Documents/VAT-Guideline-for-Electronic-Contracts.pdf)), and [Apple's developer agreement](https://developer.apple.com/support/downloads/terms/exhibits/Exhibits-to-Schedule-2-and-3-English.pdf) lists Saudi Arabia among the regions where Apple collects and remits taxes on App Store sales. Anthropic says the prices on its pricing page "don't include applicable tax". The final amount on the website can be higher than the listed price, so check the total on the payment page before you confirm. - **Who you pay.** On the website, Anthropic accepts credit or debit cards only. In the iPhone app, Apple handles the payment, and you manage or cancel the subscription from your Apple account settings. In Saudi Arabia, [Apple's payment methods page](https://support.apple.com/en-us/111741) lists an Apple Account balance from App Store & iTunes Gift Cards or added funds, mobile phone billing with Mobily, STC and Zain, and most credit and debit cards. It does not list Apple Pay or mada for the Saudi App Store. On Android, [Google Play's Saudi page](https://support.google.com/googleplay/answer/2651410?co=GENIE.CountryCode%3DSA) lists American Express, Mastercard and Visa, mobile phone billing with Mobily, STC, Zain and Virgin, and a Google Play balance you can top up with cash at convenience stores. Google adds that some carriers can't be used to pay for subscriptions. Saudi and UAE prices side by side are in [ChatGPT and Claude prices in Saudi Arabia and the UAE](https://5abeer.ai/en/guides/chatgpt-claude-gulf-price). ## Does Claude work in Saudi Arabia? Yes. Saudi Arabia is on [Anthropic's list of supported countries](https://www.anthropic.com/supported-countries). The list covers Anthropic's apps, including Claude.ai, Claude Code and Cowork, as well as its API and developer platform. You can sign up, subscribe and use Claude from Saudi Arabia without changing your region. Whoever you subscribe through, keep the subscription on your own account. Don't buy an account that someone else also uses, because everyone who uses it can see your chats, and don't give anyone your account password. ## Which Claude plan should you buy? | How you use Claude | What to look at | | --- | --- | | A few chats a day, mostly on your phone | Pro, from the App Store | | Writing and research most of the day | Pro, then Max if you keep hitting the limit | | Claude Code for hours every day | Max or Ultra | | Long sessions without waiting for the 5-hour reset | Ultra | | Claude on a computer, for less than the official price | A 5abeer plan | | Claude models inside your own code | A 5abeer API key | ## Is there a cheaper way to run Claude in Saudi Arabia? Yes, if you use Claude on a computer. 5abeer's plans run the official Claude apps: Claude Desktop, Cowork and Claude Code. Subscribe to the official apps for less than their official price. These are our plans and their limits; prices are on the [pricing page](https://5abeer.ai/en/pricing): | 5abeer plan | Best for | Usage limits | Our price | | --- | --- | --- | --- | | Pro | For everyday use | A 5-hour limit and a weekly limit | Prices on the pricing page: https://5abeer.ai/en/pricing | | Max (formerly Max 5x) | For heavy daily work | 5× the Pro plan limits | Prices on the pricing page: https://5abeer.ai/en/pricing | | Ultra (formerly Max 20x) | If you work with it all day | 20× the Pro plan limits | Prices on the pricing page: https://5abeer.ai/en/pricing | What you should know before you subscribe: - On your own official account. You sign in to the Claude apps as you normally would. - Every Bundle plan runs every official app, from the smallest to the largest. Besides Claude, that includes ChatGPT Desktop, Codex and Google Antigravity. - Each plan has one 5-hour limit and one weekly limit that cover all your apps, as in [Usage limits](https://5abeer.ai/en/docs/subscriptions/limits.md). We don't promise limits that match Anthropic's plans. - You pay by international card on Stripe's secure payment page, as in [Payment methods](https://5abeer.ai/en/docs/start/payment.md#card). - Activated within minutes in the [5abeer AI app](https://5abeer.ai/en/app) on Mac, Windows and Linux. It doesn't work inside the Claude phone app. > Plans are for the supported apps. To use the models from your own code, create an API key. What each plan runs is in [Apps one by one](https://5abeer.ai/en/docs/subscriptions/plan-apps.md). The app pages are [Claude](https://5abeer.ai/en/apps/claude) and [Claude Code](https://5abeer.ai/en/apps/claude-code). If Claude Code is all you need, [The cheapest way to use Claude Code](https://5abeer.ai/en/guides/claude-code-cheapest-way) compares a plan with an API key. ## Questions ### How much is Claude Pro in riyals? In the Saudi App Store, Claude Pro is sold monthly and yearly, at the riyal prices in the table at the top of this page. On claude.com it is priced in US dollars, before tax. ### Is the yearly Claude Pro plan worth it? It costs less than twelve monthly payments, but you pay for the whole year at once. Take it once you know Pro is the right plan for you. ### Does Claude Pro include Claude Code? Yes. Anthropic's pricing page lists Claude Code as included in Pro, Max and Ultra. The free plan does not include it. ### What are the usage credits in the App Store? The Saudi App Store page lists usage credit packs next to the plans. They are separate purchases from Pro, Max and Ultra, so check the item name before you pay. ### Did Claude Max 20x stop? No. Anthropic now calls it Ultra. Its help page says existing Max 20x subscribers move to Ultra automatically, with no price change. ### Can I pay for a 5abeer plan from Saudi Arabia? Yes, by international card on Stripe's secure payment page. The steps are in [Payment methods](https://5abeer.ai/en/docs/start/payment.md#card). You can also pay with any bank card, Apple Pay or Google Pay. ### Is 5abeer part of Anthropic? No. 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. ## Sources Checked on 2026-11-15: - Apple App Store, Saudi Arabia: [Claude by Anthropic](https://apps.apple.com/sa/app/claude-by-anthropic/id6473753684), in-app purchases - Claude: [Pricing](https://claude.com/pricing) - Claude Help Center: [Paid plan billing FAQs](https://support.claude.com/en/articles/8325618-paid-plan-billing-faqs) - Claude Help Center: [What is the Ultra plan?](https://support.claude.com/en/articles/17728952-what-is-the-ultra-plan) - Claude Help Center: [What is the Pro plan?](https://support.claude.com/en/articles/8325606-what-is-the-pro-plan) - Anthropic: [Supported countries and regions](https://www.anthropic.com/supported-countries) - Apple Support: [Payment methods that you can use with your Apple Account](https://support.apple.com/en-us/111741) - Google Play Help: [Accepted payment methods on Google Play](https://support.google.com/googleplay/answer/2651410?co=GENIE.CountryCode%3DSA), the Saudi Arabia page - ZATCA: [VAT guideline for electronic contracts](https://zatca.gov.sa/en/HelpCenter/guidelines/Documents/VAT-Guideline-for-Electronic-Contracts.pdf) - Apple Developer: [Exhibits to Schedules 2 and 3](https://developer.apple.com/support/downloads/terms/exhibits/Exhibits-to-Schedule-2-and-3-English.pdf) > 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. --- URL: https://5abeer.ai/en/guides/pay-ai-tools-nigeria # Paying for ChatGPT and Claude from Nigeria (2026) > How to pay for ChatGPT and Claude from Nigeria, with naira App Store prices, why naira cards get declined abroad, and a cheaper way to run both. Updated: 2026-11-15 From Nigeria you can pay for ChatGPT and Claude in two ways: with a bank card on the website, or inside the app through the App Store or Google Play. The Nigeria App Store shows prices in naira. A naira card works on the website only when your bank allows international payments within its foreign spending limit. ## Can you use ChatGPT and Claude in Nigeria? Anthropic's supported-countries page lists Nigeria among the places where it offers Claude.ai, Claude Code and the API. We checked that page on the date at the end of this guide. OpenAI keeps its own list of supported countries. That page didn't open for us, so we can't confirm Nigeria's place on it here. Check it yourself before you subscribe. OpenAI's [API country list](https://developers.openai.com/api/docs/supported-countries), which did open, includes Nigeria and says that accessing or offering access from outside the listed countries may get an account blocked or suspended. The ChatGPT app is sold in the Nigeria App Store with naira prices, which is a good sign, but the list is what counts. Subscribe from the country you actually live in, with an account in your own name. Hiding your location to reach a plan puts the account at risk. ## How much are ChatGPT and Claude in naira? These are the prices the Nigeria App Store shows for both apps: ChatGPT and Claude in the Nigeria App Store (official prices) | Service | Item | Value | Note | Source | | --- | --- | --- | --- | --- | | ChatGPT | Go | NGN 6,900 | In-app purchase. You pay Apple. The store page doesn't show the billing period. | https://apps.apple.com/ng/app/chatgpt/id6448311069 | | ChatGPT | Plus | NGN 31,500 | In-app purchase. You pay Apple. The store page doesn't show the billing period. | https://apps.apple.com/ng/app/chatgpt/id6448311069 | | ChatGPT | Pro 100 | NGN 144,900 | In-app purchase. You pay Apple. The store page doesn't show the billing period. | https://apps.apple.com/ng/app/chatgpt/id6448311069 | | ChatGPT | Pro 200 | NGN 299,900 | In-app purchase. You pay Apple. The store page doesn't show the billing period. | https://apps.apple.com/ng/app/chatgpt/id6448311069 | | ChatGPT | Pro 500 | NGN 699,900 | In-app purchase. You pay Apple. The store page doesn't show the billing period. | https://apps.apple.com/ng/app/chatgpt/id6448311069 | | Claude | Pro, billed monthly | NGN 29,900 a month | In-app purchase. You pay Apple. | https://apps.apple.com/ng/app/claude-by-anthropic/id6473753684 | | Claude | Pro, billed yearly | NGN 349,900 a year | In-app purchase. You pay Apple. | https://apps.apple.com/ng/app/claude-by-anthropic/id6473753684 | | Claude | Max, billed monthly | NGN 199,900 a month | In-app purchase. You pay Apple. | https://apps.apple.com/ng/app/claude-by-anthropic/id6473753684 | | Claude | Ultra, billed monthly | NGN 399,900 a month | In-app purchase. You pay Apple. | https://apps.apple.com/ng/app/claude-by-anthropic/id6473753684 | Each row links to the page it comes from, checked November 15, 2026. These figures can change, so check the source before you buy. The Claude listing names the billing period for each plan. The ChatGPT listing doesn't, so check the period on the purchase screen before you pay. [Apple's developer agreement](https://developer.apple.com/support/downloads/terms/exhibits/Exhibits-to-Schedule-2-and-3-English.pdf) lists Nigeria among the regions where Apple collects and remits taxes on App Store sales. For comparison, these are the official US prices on the vendors' own websites: | Plan | Market and channel | Official price | Billing | Source | Checked | | --- | --- | --- | --- | --- | --- | | ChatGPT Go | United States · Vendor website | $8 | per month | https://openai.com/index/introducing-chatgpt-go/ | 2026-11-15 | | ChatGPT Plus | United States · Vendor website | $20 | per month | https://help.openai.com/en/articles/6950777-what-is-chatgpt-plus | 2026-11-15 | | ChatGPT Pro 100 | United States · Vendor website | $100 | per month | https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers | 2026-11-15 | | ChatGPT Pro 200 | United States · Vendor website | $200 | per month | https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers | 2026-11-15 | | ChatGPT Pro 500 | United States · Vendor website | $500 | per month | https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers | 2026-11-15 | | Claude Pro | United States · Vendor website | $20 | per month | https://claude.com/pricing | 2026-11-15 | | Claude Pro | United States · Vendor website | $200 | per year | https://claude.com/pricing | 2026-11-15 | | Claude Max | United States · Vendor website | $100 | per month | https://claude.com/pricing | 2026-11-15 | | Claude Ultra | United States · Vendor website | $200 | per month | https://claude.com/pricing | 2026-11-15 | The vendors' own prices as published at the source on the date checked; they can change. These are the vendor's official prices; 5abeer's prices are on the pricing page. Tax: per Anthropic's pages, some countries include tax in the displayed price and others add it at checkout. Claude's three plans, Pro, Max and Ultra, all appear in the Nigeria listing. Compare the usage each one gives before you pick a size. ## Why does a naira card get declined? The refusal usually comes from the bank, not from OpenAI or Anthropic. The common reasons: - International online payments are switched off on the card. Many banks turn them off by default, and you switch them on in the banking app or by asking the bank. - The foreign spending limit is used up. Each bank sets how much a naira card can spend abroad and changes it from time to time. - The card is prepaid. A search result for OpenAI's help page says prepaid cards can't buy API credits, and only standard credit or debit cards work there. - The extra check didn't finish. If the bank sends a code or asks you to approve the payment in its app, the payment fails until you do. Two Nigerian banks raised their naira card limits abroad in 2026, according to news reports: Examples from Nigerian banks: naira card spending limits abroad | Service | Item | Value | Note | Source | | --- | --- | --- | --- | --- | | GTBank | International spending on a naira card | $40,000 | Per quarter. From a Legit.ng report of 12 August 2026, not from the bank's own page. | https://www.legit.ng/business-economy/money/1724648-gtbank-major-change-naira-cards-raises-quarterly-international-limit/ | | Zenith Bank | International spending on a naira card | $50,000 a year | From an Aboki Forex report of 8 September 2026, not from the bank's own page. | https://abokiforex.app/show-news/firstbank-zenith-bank-gtb-raise-dollar-limits-on-naira-cards-leadership | Each row links to the page it comes from, checked November 15, 2026. These figures can change, so check the source before you buy. These figures come from news reports, not from the banks' own pages. Ask your bank for your card's current limit. The bank also converts each dollar charge to naira at its own rate, so your statement can differ from the price you saw. ## Which way of paying is easier? | Route | Who you pay | How you pay | | --- | --- | --- | | Official website | OpenAI or Anthropic | A credit or debit card | | iPhone app | Apple | Your Apple account, in naira | | Android app | Google | Your Google Play account | Anthropic's billing help says it only accepts credit or debit cards for subscriptions bought on the web. Subscriptions bought inside the app are handled by the App Store or Google Play. A search result for OpenAI's billing help says the same for ChatGPT, with in-app plans charged in local currency. So when your card fails on the website, the app store is often the easier route. On iPhone, the price is already in naira. In Nigeria, [Apple's payment methods page](https://support.apple.com/en-us/111741) lists an Apple Account balance from added funds and most credit and debit cards. [Google Play's Nigeria page](https://support.google.com/googleplay/answer/2651410?co=GENIE.CountryCode%3DNG) lists Visa, Mastercard and JCB cards, plus Verve cards, which it says work for subscriptions. A plan bought in a store is cancelled in that store's account, not on the website. ## Should you buy someone else's account or a dollar card from a seller? An account that a seller also uses puts your chats in someone else's hands, because another person holds the password. If the account gets flagged, everyone on it loses access at once. A virtual dollar card is only as reliable as the company that issues it. Make sure it's a standard debit card, not a prepaid one, and know who answers when a payment fails. Never give a seller the password to your own account. ## Is there a cheaper way to run ChatGPT and Claude? 5abeer's Bundle plans let you use the official apps, such as ChatGPT, Claude and Claude Code, for less than their official price. You work on your own official account in each app, and every Bundle plan runs every official app, from the smallest to the largest. | 5abeer plan | Best for | Usage limits | Our price | | --- | --- | --- | --- | | Pro | For everyday use | A 5-hour limit and a weekly limit | Prices on the pricing page: https://5abeer.ai/en/pricing | | Max (formerly Max 5x) | For heavy daily work | 5× the Pro plan limits | Prices on the pricing page: https://5abeer.ai/en/pricing | | Ultra (formerly Max 20x) | If you work with it all day | 20× the Pro plan limits | Prices on the pricing page: https://5abeer.ai/en/pricing | Max (formerly Max 5x) and Ultra (formerly Max 20x) are 5abeer plan names, not Anthropic's plans. Plans are for the supported apps. To use the models from your own code, create an API key. Each plan has usage limits that renew, explained in [usage limits](https://5abeer.ai/en/docs/subscriptions/limits.md). See [how to pay](https://5abeer.ai/en/docs/start/payment.md) and the [pricing page](https://5abeer.ai/en/pricing) for the payment methods open to you before you buy. ## What if you build with the API? If you call the models from your own code, a 5abeer API key gives you the models below the official prices, paid from a top-up balance. It's OpenAI-compatible: change the base URL and keep your code. It's also compatible with the Anthropic Messages API. | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | Claude Sonnet 5.5 | `claude-sonnet-5.5` | $0.60 | $3 | 1M | | Claude Opus 5.5 | `claude-opus-5.5` | $1.20 | $6 | 1M | | Claude Fable 5.1 | `claude-fable-5.1` | $3 | $15 | — | The [default model](https://5abeer.ai/en/models/claude-sonnet-5.5) costs this per million tokens: Claude Sonnet 5.5 (`claude-sonnet-5.5`) per 1M tokens: input $0.60 (official $2), output $3 (official $10). Official price checked November 21, 2026. For harder work there's [`claude-opus-5.5`](https://5abeer.ai/en/models/claude-opus-5.5). [Create a key](https://5abeer.ai/en/docs/start/keys.md#create), set the [base URL](https://5abeer.ai/en/docs/start/base-urls.md), and see the [Claude API](https://5abeer.ai/en/api/claude) and [OpenAI API](https://5abeer.ai/en/api/openai) pages. ## Which option suits you? | If you… | Use | | --- | --- | | Have a naira card that works abroad | The official website | | Use an iPhone and want to pay in naira | The App Store | | Want ChatGPT and Claude for less | A 5abeer Bundle plan | | Call the models from your code | A 5abeer API key | ## Frequently asked questions ### Is Claude available in Nigeria? Yes. Anthropic's supported-countries page lists Nigeria for Claude.ai, Claude Code and the API. ### Can I pay for ChatGPT in naira? On iPhone, yes. The Nigeria App Store shows the ChatGPT plans in naira, and you pay Apple. On the website, check the currency shown at checkout, and expect your bank to convert any dollar charge. ### Why does my naira card fail on the ChatGPT or Claude website? Usually international payments are off, the foreign spending limit is used up, or the card is prepaid. All three are fixed with the bank, not with OpenAI or Anthropic. ### Does a virtual dollar card work? It can, if it's a standard debit card. A search result for OpenAI's help page says prepaid cards can't buy API credits. ### How do I cancel a plan I bought in the App Store? From the subscriptions in your Apple account settings. Apple manages plans bought in the app, so cancelling on the website doesn't stop them. ### Is 5abeer part of OpenAI or Anthropic? No. 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. ## Sources Checked on 2026-11-15: - Anthropic: [Supported countries and regions](https://www.anthropic.com/supported-countries) - Anthropic Help Center: [Paid plan billing FAQs](https://support.claude.com/en/articles/8325618-paid-plan-billing-faqs) - App Store Nigeria: [ChatGPT](https://apps.apple.com/ng/app/chatgpt/id6448311069) and [Claude by Anthropic](https://apps.apple.com/ng/app/claude-by-anthropic/id6473753684) - Apple Support: [Payment methods that you can use with your Apple Account](https://support.apple.com/en-us/111741) - Google Play Help: [Accepted payment methods on Google Play](https://support.google.com/googleplay/answer/2651410?co=GENIE.CountryCode%3DNG), the Nigeria page - Apple Developer: [Exhibits to Schedules 2 and 3](https://developer.apple.com/support/downloads/terms/exhibits/Exhibits-to-Schedule-2-and-3-English.pdf) - OpenAI API docs: [Supported countries and territories](https://developers.openai.com/api/docs/supported-countries) - OpenAI Help Center (from search results, the pages didn't open for us): [Supported countries](https://help.openai.com/en/articles/7947663), [Card declined](https://help.openai.com/en/articles/7232916) and [Multi-currency billing](https://help.openai.com/en/articles/10421635) - News reports: [Legit.ng on GTBank naira card limits](https://www.legit.ng/business-economy/money/1724648-gtbank-major-change-naira-cards-raises-quarterly-international-limit/) and [Aboki Forex on Zenith Bank](https://abokiforex.app/show-news/firstbank-zenith-bank-gtb-raise-dollar-limits-on-naira-cards-leadership) > 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. --- URL: https://5abeer.ai/en/guides/chatgpt-price-uae # ChatGPT price in the UAE (2026) > ChatGPT Go, Plus and Pro prices in dirhams in the UAE App Store, with source and date, how to pay, VAT, and a cheaper way to run ChatGPT and Codex. Updated: 2026-11-15 In the UAE, OpenAI sells ChatGPT Go, Plus and three Pro tiers (Pro 100, Pro 200 and Pro 500) inside the ChatGPT iPhone app, priced in dirhams. Plus sits above Go, and the Pro tiers cost several times more. The App Store prices are in the table below, with their source and the date we checked them. ## How much is ChatGPT in the UAE in dirhams? These are the prices in the UAE App Store listing of the ChatGPT app, sold by OpenAI OpCo, LLC: | Plan | Market and channel | Official price | Billing | Source | Checked | | --- | --- | --- | --- | --- | --- | | ChatGPT Go | UAE · App Store | AED 29.99 | per month | https://apps.apple.com/ae/app/chatgpt/id6448311069 | 2026-11-15 | | ChatGPT Plus | UAE · App Store | AED 79.99 | per month | https://apps.apple.com/ae/app/chatgpt/id6448311069 | 2026-11-15 | | ChatGPT Pro 100 | UAE · App Store | AED 384.99 | per month | https://apps.apple.com/ae/app/chatgpt/id6448311069 | 2026-11-15 | | ChatGPT Pro 200 | UAE · App Store | AED 799.99 | per month | https://apps.apple.com/ae/app/chatgpt/id6448311069 | 2026-11-15 | | ChatGPT Pro 500 | UAE · App Store | AED 1,919.99 | per month | https://apps.apple.com/ae/app/chatgpt/id6448311069 | 2026-11-15 | The vendors' own prices as published at the source on the date checked; they can change. These are the vendor's official prices; 5abeer's prices are on the pricing page. Two things to keep in mind when you read the table: - **Apple sets the price per country.** The dirham price is a fixed App Store price for the UAE. It is not today's dollar price converted at the exchange rate, so it can sit a little above or below that. - **The listing has one more Plus purchase.** On 2026-11-15 the UAE listing still showed a second ChatGPT Plus purchase at a higher price, without stating its billing period. Check the period on the payment screen in the app before you confirm. If you also want Claude prices in the UAE, or the Saudi prices for both apps, see [ChatGPT and Claude prices in Saudi Arabia and the UAE](https://5abeer.ai/en/guides/chatgpt-claude-gulf-price). ChatGPT in Saudi Arabia on its own, with VAT and payment methods, is in [ChatGPT price in Saudi Arabia](https://5abeer.ai/en/guides/chatgpt-price-saudi). ## Go, Plus or Pro: which ChatGPT plan do you need? The plans differ mainly in how much you can use ChatGPT and which features open up. A simple way to pick: - **Go** suits light, everyday use: questions, writing, translation and short tasks. - **Plus** suits steady daily work, such as long documents, files and regular coding help. - **Pro 100, Pro 200 and Pro 500** suit heavy professional use. The number in the name tracks the price level, and each step costs a lot more. OpenAI changes plan limits and features from time to time, so read the plan details on the payment screen before you subscribe. If you mainly want Codex for coding, the plan you pick matters less than where you run it. Codex on a computer is covered in the [Codex app page](https://5abeer.ai/en/apps/codex). ## Is the App Store price the same as chatgpt.com? Not always. OpenAI's website lists its prices in US dollars: | Plan | Market and channel | Official price | Billing | Source | Checked | | --- | --- | --- | --- | --- | --- | | ChatGPT Go | United States · Vendor website | $8 | per month | https://openai.com/index/introducing-chatgpt-go/ | 2026-11-15 | | ChatGPT Plus | United States · Vendor website | $20 | per month | https://help.openai.com/en/articles/6950777-what-is-chatgpt-plus | 2026-11-15 | | ChatGPT Pro 100 | United States · Vendor website | $100 | per month | https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers | 2026-11-15 | | ChatGPT Pro 200 | United States · Vendor website | $200 | per month | https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers | 2026-11-15 | | ChatGPT Pro 500 | United States · Vendor website | $500 | per month | https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers | 2026-11-15 | The vendors' own prices as published at the source on the date checked; they can change. These are the vendor's official prices; 5abeer's prices are on the pricing page. Three things make the two prices differ: - **The currency.** The App Store charges in dirhams at Apple's set price. The website lists dollars, and your bank converts the amount if your card is in dirhams. - **Bank fees.** A dirham card paying a dollar amount can carry a foreign transaction fee from your bank. Ask your bank before you pick the website. - **Who you pay.** In the iPhone app you pay Apple, not OpenAI. You manage and cancel that subscription from your Apple account settings, not from ChatGPT's settings. ## Is VAT included in the ChatGPT price in the UAE? The UAE charges VAT at a default rate of 5% on taxable services, and the [Federal Tax Authority's e-commerce guide](https://tax.gov.ae/DownloadOpenTextFile?fileUrl=en%2FVAT_VAT_Guides%2FE_Commerce%2FE_Commerce_VAT+Guide_EN_09_08_2020_EN.pdf) treats electronic services as supplied in the UAE to the extent they are used and enjoyed there. [Apple's developer agreement](https://developer.apple.com/support/downloads/terms/exhibits/Exhibits-to-Schedule-2-and-3-English.pdf) lists the UAE among the regions where Apple collects and remits taxes on App Store sales. The App Store listing does not say whether the displayed price includes VAT, and OpenAI's billing help pages did not open for us on 2026-11-15, so we can't say how the website handles it. So the safe rule is simple: compare the final amount on the payment screen, not the price on a listing or a seller's post. That final amount is what leaves your account. ## How do you pay for ChatGPT in the UAE? In the iPhone app you pay with your Apple account. [Apple's payment methods page](https://support.apple.com/en-ae/111741) lists these options in the UAE: | Payment method | UAE | | --- | --- | | Apple Account balance | Yes, from gift cards or added funds | | Apple Pay | Yes | | Mobile phone billing | Du and Etisalat | | Credit and debit cards | Yes, most cards | Mobile phone billing depends on your line and your carrier's support, so check the methods in your Apple account settings. On the website you pay OpenAI directly. We could not open OpenAI's billing help pages on 2026-11-15, so we don't list its website methods here. > Don't share the password to your ChatGPT account with a seller. A safe subscription runs on your own account, and you keep your chats. ## Is there a cheaper way to run ChatGPT and Codex? Yes, if you use them on a computer. 5abeer's Bundle plans run the official apps: ChatGPT Desktop and Codex, Claude Desktop, Cowork and Claude Code, plus Google Antigravity. Subscribe to the official apps for less than their official price. These are our plans and their limits; prices are on the [pricing page](https://5abeer.ai/en/pricing): | 5abeer plan | Best for | Usage limits | Our price | | --- | --- | --- | --- | | Pro | For everyday use | A 5-hour limit and a weekly limit | Prices on the pricing page: https://5abeer.ai/en/pricing | | Max (formerly Max 5x) | For heavy daily work | 5× the Pro plan limits | Prices on the pricing page: https://5abeer.ai/en/pricing | | Ultra (formerly Max 20x) | If you work with it all day | 20× the Pro plan limits | Prices on the pricing page: https://5abeer.ai/en/pricing | What you should know before you subscribe: - It runs on your own official account. Codex asks for your ChatGPT account. - Every Bundle plan runs every official app, from the smallest to the largest. The plans differ in usage limits only. - Each plan has one 5-hour limit and one weekly limit that cover all your apps, as in [Usage limits](https://5abeer.ai/en/docs/subscriptions/limits.md). We don't promise limits matching OpenAI's plans. - You pay by international card on Stripe's secure page, as in [Payment methods](https://5abeer.ai/en/docs/start/payment.md#card). - Activated within minutes in the [5abeer AI app](https://5abeer.ai/en/app) on Mac, Windows and Linux. It doesn't work inside the phone apps. How each app signs in is in [Apps one by one](https://5abeer.ai/en/docs/subscriptions/plan-apps.md#apps), and the ChatGPT side is on the [ChatGPT app page](https://5abeer.ai/en/apps/chatgpt). How one subscription covers several apps is in [One subscription for ChatGPT, Claude and Antigravity](https://5abeer.ai/en/guides/one-subscription-all-ai-apps). > Plans are for the supported apps. To use the models from your own code, create an API key on the [OpenAI API page](https://5abeer.ai/en/api/openai). The setup for the Codex command line is in [Codex CLI with an API key](https://5abeer.ai/en/guides/codex-cli-api-key). ## Which option suits you? | Your situation | Best fit | | --- | --- | | You mostly use ChatGPT on your iPhone | The official plan in the App Store | | You pay in dollars and your card has no foreign fees | The official plan on chatgpt.com | | You work with ChatGPT and Codex on a computer | A 5abeer Bundle plan | | You also use Claude Code or Claude Desktop | A 5abeer Bundle plan | | You want the models in your own code | A 5abeer API key, from a balance you top up | ## Frequently asked questions ### How much is ChatGPT Plus in the UAE? The App Store price in dirhams is in the table at the top of this guide, with the date we checked it. Apple sets it for the UAE, so it can change. Check the final amount on the payment screen. ### Is ChatGPT available in the UAE? Yes. The ChatGPT app is listed in the UAE App Store, sold by OpenAI OpCo, LLC, with Go, Plus and Pro sold in dirhams. ### Is it cheaper to pay in dirhams or in dollars? It depends on today's exchange rate and your bank's fees on dollar payments. Compare the App Store price in dirhams with the dollar price after conversion and fees. ### Can I pay for ChatGPT with my phone credit? In the iPhone app, Apple lists mobile phone billing with Du and Etisalat in the UAE. It depends on your line, so check your Apple account settings. ### Is a 5abeer plan on my own ChatGPT account? Yes. Codex and ChatGPT Desktop run on your own official account. What each app asks for at sign-in is in [Apps one by one](https://5abeer.ai/en/docs/subscriptions/plan-apps.md#apps). ### How do I pay for a 5abeer plan from the UAE? By international card on Stripe's secure page. The full card number never reaches us, and we don't store it. You can also pay with any bank card, Apple Pay or Google Pay. ## Sources Checked on 2026-11-15: - [ChatGPT in the UAE App Store](https://apps.apple.com/ae/app/chatgpt/id6448311069) - [Apple payment methods by country](https://support.apple.com/en-ae/111741) - [UAE Federal Tax Authority: VAT](https://tax.gov.ae/en/taxes/vat.aspx) - [UAE Federal Tax Authority: E-Commerce VAT Guide](https://tax.gov.ae/DownloadOpenTextFile?fileUrl=en%2FVAT_VAT_Guides%2FE_Commerce%2FE_Commerce_VAT+Guide_EN_09_08_2020_EN.pdf) - [Apple Developer: Exhibits to Schedules 2 and 3](https://developer.apple.com/support/downloads/terms/exhibits/Exhibits-to-Schedule-2-and-3-English.pdf) > 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. --- URL: https://5abeer.ai/en/guides/gulf-pay-ai-subscriptions # How to pay for AI subscriptions from the Gulf > How to pay for ChatGPT and Claude from Saudi Arabia, the UAE, Kuwait, Qatar, Bahrain and Oman, by card, App Store, Google Play or phone bill. Updated: 2026-11-15 From the Gulf you can pay for Claude and ChatGPT on the provider's website or in the iPhone app with your Apple account. Anthropic's website takes cards only. In the App Store, Apple offers mobile phone billing in all six Gulf countries, which helps when your card is declined or you would rather pay through your phone bill. ## Which payment methods work for ChatGPT and Claude in the Gulf? Where you subscribe decides who takes your money, and so which methods you can use: | Where you subscribe | Who takes the payment | Methods | | --- | --- | --- | | The Claude website | Anthropic | Credit or debit card only | | The ChatGPT website | OpenAI | Shown at checkout (we could not check them) | | The ChatGPT or Claude iPhone app | Apple | Your Apple account's methods, by country | | The Claude Android app | Google Play | Google Play's methods, by country | Anthropic's billing help says: "For subscriptions purchased on the web, we only accept credit or debit cards." Its pricing page lists credit card as the payment option for Pro, Max and Ultra. A Claude subscription bought inside the app goes through the store's own payment system instead. ChatGPT's App Store listing in Saudi Arabia shows Go, Plus and Pro as in-app purchases sold by OpenAI OpCo, LLC. So on iPhone you pay Apple, and Apple's methods apply. All six Gulf countries are on [Anthropic's list of supported regions](https://www.anthropic.com/supported-countries). This guide covers how to pay, not how much. Plan prices in riyals and dirhams, each with its source, are in [ChatGPT and Claude prices in Saudi Arabia and the UAE](https://5abeer.ai/en/guides/chatgpt-claude-gulf-price). ## Can I pay through the App Store in my country? Yes. Apple's page on the payment methods you can use with an Apple Account lists these options in the six Gulf countries: | Country | Apple Account balance | Apple Pay | Mobile phone billing | Cards | | --- | --- | --- | --- | --- | | Saudi Arabia | Yes, from gift cards or added funds | Not listed | Mobily, STC, Zain | Most credit and debit cards | | UAE | Yes, from a gift card or added funds | Yes | Du, Etisalat | Most credit and debit cards | | Kuwait | Not listed | Not listed | Ooredoo, stc, Zain | Most credit and debit cards | | Qatar | Yes, from added funds | Not listed | Ooredoo, Vodafone | Most credit and debit cards | | Bahrain | Not listed | Not listed | Beyon, stc, Zain Bahrain | Most credit and debit cards | | Oman | Not listed | Not listed | Omantel, Ooredoo, Vodafone | Most credit and debit cards | Apple adds: "Mobile billing is available only with supported carriers. This list is subject to change." The methods you can actually pick appear in the payment settings of your Apple account, so check there before you subscribe. When you pay in the app, you also manage and cancel the subscription from your Apple account, not from OpenAI or Anthropic. ## Can I pay through Google Play on Android? Yes for the Claude app, which bills through Google Play like any app store subscription. Google lists these methods on its page for each country: | Country | Cards | Mobile phone billing | Google Play balance | | --- | --- | --- | --- | | Saudi Arabia | American Express, Mastercard, Visa | Mobily, STC, Zain, Virgin | Yes, from gift cards, codes or cash at convenience stores | | UAE | American Express, Mastercard, Visa | du, Etisalat | Yes, from gift cards, codes or cash at convenience stores | | Kuwait | Visa, Mastercard, JCB | Ooredoo, STC, Zain | Not listed | | Qatar | Visa, Mastercard, JCB | Ooredoo, Vodafone | Not listed | | Bahrain | Visa, Mastercard, JCB | Batelco, stc BH, Zain | Not listed | | Oman | Visa, Mastercard, JCB | Omantel, Ooredoo, Vodafone | Not listed | On each of these pages, Google adds that mobile phone billing works only in the Google Play Store app, not on the Play website, that some carriers can't be used to pay for subscriptions, and that prepaid numbers may not be supported. On its UAE page it suggests adding a spending cap with your carrier. ## Can I pay by phone bill or store balance? In the app stores, you have two routes besides a bank card: - **Mobile phone billing.** The subscription is charged to your phone line. Every Gulf country has supported carriers on both Apple's and Google's lists, as in the tables above. Both say it works only with supported carriers, and Google adds that some carriers can't be used to pay for subscriptions. - **Store balance.** Apple lets you fund an Apple Account balance in Saudi Arabia and the UAE from gift cards or added funds, and in Qatar from added funds. Google lists Google Play balance in Saudi Arabia and the UAE. On Anthropic's website a card is the only route, because it takes credit or debit cards only. ## Does mada, Apple Pay or STC Pay work? Neither Apple's nor Google's payment pages name mada or STC Pay for any Gulf country. Apple speaks of "most credit and debit cards", and Google lists card brands. Among the six countries, Apple lists Apple Pay in the UAE only. Whether a particular card goes through depends on the card and the bank that issued it. Before you subscribe, ask your bank whether the card works for online payments to companies abroad. At 5abeer, you pay for a plan or a top-up by international card on Stripe's secure payment page, as in [Payment methods](https://5abeer.ai/en/docs/start/payment.md#card). You can also pay with any bank card, Apple Pay or Google Pay. ## Why was my card declined? A few checks solve most cases: - **Online and international payments.** Ask your bank whether the card is enabled for online payments and for payments to companies abroad. Some banks let you switch this on in their app. - **The store's payment method.** In the iPhone or Android app, the declined method is the one saved in your Apple account or Google Play. Update it there, or switch to mobile phone billing. - **A 5abeer payment.** The card must support international payments, as in [Payment methods](https://5abeer.ai/en/docs/start/payment.md#card). ## How does payment work at 5abeer? At 5abeer you pay for two things, both by card. Pay by international card on Stripe's secure payment page. The full card number never reaches us, and we don't store it. The first is a Bundle plan for the official apps on your computer. Subscribe to the official apps for less than their official price. Every Bundle plan runs every official app, from the smallest to the largest. It runs on your own official account and is activated within minutes in the [5abeer AI app](https://5abeer.ai/en/app) on Mac, Windows and Linux. It doesn't work inside the phone apps. These are our plans and their limits; prices are on the [pricing page](https://5abeer.ai/en/pricing): | 5abeer plan | Best for | Usage limits | Our price | | --- | --- | --- | --- | | Pro | For everyday use | A 5-hour limit and a weekly limit | Prices on the pricing page: https://5abeer.ai/en/pricing | | Max (formerly Max 5x) | For heavy daily work | 5× the Pro plan limits | Prices on the pricing page: https://5abeer.ai/en/pricing | | Ultra (formerly Max 20x) | If you work with it all day | 20× the Pro plan limits | Prices on the pricing page: https://5abeer.ai/en/pricing | > Plans are for the supported apps. To use the models from your own code, create an API key. The apps each plan runs are in [Apps one by one](https://5abeer.ai/en/docs/subscriptions/plan-apps.md#apps) and on the [apps page](https://5abeer.ai/en/apps). How one subscription covers several apps is in [One subscription for ChatGPT, Claude and Antigravity](https://5abeer.ai/en/guides/one-subscription-all-ai-apps). The second is an API balance that you top up and spend from your own code. Control every key: a spend limit, an expiry date and an IP allow-list. The details are on the [API page](https://5abeer.ai/en/api) and in [How to get an AI API key](https://5abeer.ai/en/guides/ai-api-key-guide). ## Which payment route suits you? | Your situation | Best route | | --- | --- | | You have a card that works online | The provider's website, or a 5abeer plan for the desktop apps | | You'd rather pay by phone bill or store balance | The iPhone or Android app, if your carrier or store supports it | | Your card was declined on the website | Mobile billing in the app, or a call to your bank | | You work in Claude Code, Codex or the desktop apps | A 5abeer Bundle plan, paid by card | | You call the models from your own code | A 5abeer API balance, topped up by card | ## Questions ### Can I pay for Claude with a mada card? Anthropic's website takes credit or debit cards and doesn't name card networks. Apple and Google don't name mada either. Ask your bank whether your card works for online payments to companies abroad. ### Can I pay for ChatGPT or Claude from my phone bill? Yes, in the app stores, if your carrier is supported. Apple and Google both list mobile phone billing in all six Gulf countries, with the carriers shown in the tables above. ### Does the App Store take Apple Pay in Saudi Arabia? Apple's payment methods page lists Apple Pay in the UAE but not in Saudi Arabia, Kuwait, Qatar, Bahrain or Oman. There, use a card, mobile phone billing or, where listed, an Apple Account balance. ### Can I use an Apple gift card? Apple lists gift cards as a way to fund an Apple Account balance in Saudi Arabia and the UAE. In Qatar it lists added funds. Its page shows no balance option for Kuwait, Bahrain or Oman. ### Is tax added at checkout? Anthropic's pricing page says: "Prices shown don't include applicable tax." Check the final amount on the payment page before you confirm. ### How do I pay for a 5abeer plan from the Gulf? By international card on Stripe's secure payment page. The full card number never reaches us, and we don't store it. ### Is 5abeer part of OpenAI or Anthropic? No. 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. ## Sources Checked on 2026-11-15: - Apple Support: [Payment methods that you can use with your Apple Account](https://support.apple.com/en-us/HT202631) - Google Play Help: [Accepted payment methods on Google Play](https://support.google.com/googleplay/answer/2651410), the pages for Saudi Arabia, the UAE, Kuwait, Qatar, Bahrain and Oman - Anthropic Help Center: [Paid plan billing FAQs](https://support.claude.com/en/articles/8325618-paid-plan-billing-faqs) - Anthropic: [Claude pricing](https://claude.com/pricing) and [Supported regions](https://www.anthropic.com/supported-countries) - App Store: [ChatGPT in the Saudi App Store](https://apps.apple.com/sa/app/chatgpt/id6448311069), its in-app purchases We could not open OpenAI's payment help pages on 2026-11-15, so this guide makes no claim about the methods on OpenAI's website. > 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. --- URL: https://5abeer.ai/en/guides/claude-pro-price-india # Claude Pro price in India (INR) and a cheaper option > Claude Pro, Max and Ultra prices in rupees on the India App Store and the website, how to pay with UPI or card, and a cheaper way to use Claude. Updated: 2026-11-15 In India, Anthropic sells Claude Pro in rupees, monthly or yearly, on its website and in the Claude app. The App Store price can differ from the website price, and the yearly plan costs less per month. Both price lists are in the tables below, each with its source and date. For coding, the API can cost less. ## How much is Claude Pro in India? Anthropic sells Pro, Max and Ultra in India in rupees. You can subscribe in the Claude app through the App Store, or directly on the Claude website, and the two price lists are not the same. These are the prices in the Claude app on the India App Store: Claude in the India App Store (official prices) | Service | Item | Value | Note | Source | | --- | --- | --- | --- | --- | | Claude | Pro, billed monthly | ₹1,999 a month | In-app purchase. You pay Apple. | https://apps.apple.com/in/app/claude-by-anthropic/id6473753684 | | Claude | Pro, billed yearly | ₹19,900 a year | In-app purchase. You pay Apple. | https://apps.apple.com/in/app/claude-by-anthropic/id6473753684 | | Claude | Max, billed monthly | ₹12,900 a month | In-app purchase. You pay Apple. | https://apps.apple.com/in/app/claude-by-anthropic/id6473753684 | | Claude | Ultra, billed monthly | ₹24,900 a month | In-app purchase. You pay Apple. | https://apps.apple.com/in/app/claude-by-anthropic/id6473753684 | Each row links to the page it comes from, checked November 15, 2026. These figures can change, so check the source before you buy. Pro is the only plan with a yearly option in the app. Max and Ultra are monthly only. The yearly Pro plan is paid once a year and costs less than twelve monthly payments. On the website, Anthropic shows rupee prices to visitors in India. Our checker reads the page from outside India and sees dollars, so the rupee prices below come from news reports at the India launch in July 2026, not from an Anthropic page: Claude on the website in India (from news reports) | Service | Item | Value | Note | Source | | --- | --- | --- | --- | --- | | Claude | Pro, billed monthly | ₹2,399 a month | Launch price, July 2026. Reported as including GST. | https://economictimes.com/news/new-updates/anthropic-claude-india-pricing-announced-check-what-users-will-have-to-pay-for-claude-services/articleshow/132386268.cms | | Claude | Pro, billed yearly | ₹2,000 a month | Per month, billed yearly. Launch price, July 2026. | https://economictimes.com/news/new-updates/anthropic-claude-india-pricing-announced-check-what-users-will-have-to-pay-for-claude-services/articleshow/132386268.cms | | Claude | Max | ₹11,999 a month | Launch price, July 2026. | https://economictimes.com/news/new-updates/anthropic-claude-india-pricing-announced-check-what-users-will-have-to-pay-for-claude-services/articleshow/132386268.cms | | Claude | Ultra | ₹23,999 a month | July 2026 launch price of the higher Max tier, before Anthropic renamed it Ultra in October 2026. | https://economictimes.com/news/new-updates/anthropic-claude-india-pricing-announced-check-what-users-will-have-to-pay-for-claude-services/articleshow/132386268.cms | Each row links to the page it comes from, checked November 15, 2026. These figures can change, so check the source before you buy. Anthropic's help center says to check `claude.ai/upgrade` or your phone's app store for the current price in your region. Do that before you pay, because prices can change after a news report is written. ## Max and Ultra prices in India In October 2026 Anthropic renamed its plans. Max 5x is now Max, and Max 20x is now Ultra. Pro keeps its name. The July launch reports use the old names, so read the higher Max tier in those reports as today's Ultra. Max and Ultra cost several times more than Pro and give you more usage. If you are not sure you need more than Pro, start with Pro and move up when you hit its limit often. What each plan includes and who it suits is in [Claude Pro vs Max](https://5abeer.ai/en/guides/claude-pro-vs-max). ## Does the rupee price include GST? Anthropic's help center says that in some regions the displayed price includes tax, and in others tax is added at checkout. The India launch reports say the website's rupee prices include GST. Anthropic's US price page says its dollar prices don't include tax. We could not confirm the GST treatment on an Anthropic page, so check the total on the last checkout screen before you confirm. If you subscribe for a business, check what the invoice shows before you pay. ## India price vs US price Outside India, Anthropic lists its plans in US dollars. These are the official US prices, before tax: | Plan | Market and channel | Official price | Billing | Source | Checked | | --- | --- | --- | --- | --- | --- | | Claude Pro | United States · Vendor website | $20 | per month | https://claude.com/pricing | 2026-11-15 | | Claude Pro | United States · Vendor website | $200 | per year | https://claude.com/pricing | 2026-11-15 | | Claude Max | United States · Vendor website | $100 | per month | https://claude.com/pricing | 2026-11-15 | | Claude Ultra | United States · Vendor website | $200 | per month | https://claude.com/pricing | 2026-11-15 | The vendors' own prices as published at the source on the date checked; they can change. These are the vendor's official prices; 5abeer's prices are on the pricing page. Tax: per Anthropic's pages, some countries include tax in the displayed price and others add it at checkout. A fair comparison needs some care. The dollar prices exclude tax, while the rupee prices are reported to include GST. If a card is charged in a foreign currency, your bank may also add a fee for international transactions, so ask your bank about that fee before you compare. ## How to pay for Claude in India On the website, Anthropic's billing help says it accepts only credit or debit cards for web subscriptions. UPI is not listed for the website. In the iPhone app, you pay Apple, not Anthropic. Apple's India support page lists UPI, Visa, Mastercard and your Apple Account balance. Net Banking works only for adding funds to your Apple Account balance, which you can then spend on the subscription. In the Android app you pay Google Play instead, and [Google Play's India page](https://support.google.com/googleplay/answer/2651410?co=GENIE.CountryCode%3DIN) says you can use UPI for subscriptions, including recurring payments through UPI Autopay. It lists RuPay cards for one-time purchases only. If your card is declined on the website, ask your bank to turn on online and recurring payments for that card. ## Website or App Store: which is cheaper? Compare the two tables above. At the launch prices, Pro, monthly or yearly, cost less in the App Store, while Max and Ultra cost less on the website. Prices can change, so compare again on the day you buy. Where you buy also decides who manages your subscription. An App Store subscription is billed by Apple and cancelled in your Apple settings. A website subscription is billed by Anthropic and managed from your Claude account. ## Is there a cheaper way to use Claude in India? Yes, if you mostly use Claude for coding or from your own tools. 5abeer, an independent service, offers two routes. ### Pay per use with an API key A 5abeer API key gives you the Claude models, and you pay only for what you use from a balance you top up. Our per-token prices cost less than the official price. These are the Claude models on the API: | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | Claude Sonnet 5.5 | `claude-sonnet-5.5` | $0.60 | $3 | 1M | | Claude Opus 5.5 | `claude-opus-5.5` | $1.20 | $6 | 1M | | Claude Fable 5.1 | `claude-fable-5.1` | $3 | $15 | — | This is the default model's price per million tokens: Claude Sonnet 5.5 (`claude-sonnet-5.5`) per 1M tokens: input $0.60 (official $2), output $3 (official $10). Official price checked November 21, 2026. The API is compatible with the Anthropic Messages API, so Claude Code and your own code work with a 5abeer key. You can control every key: a spend limit, an expiry date and an IP allow-list. This is the cost of a light month of coding, about two million input tokens and 400,000 output tokens: Example: 2,000,000 input tokens and 400,000 output tokens on Claude Sonnet 5.5 (`claude-sonnet-5.5`) cost $2.40 at our price against $8.00 at the official price (70% lower). Official price checked November 21, 2026. Setup steps are in [Claude Code](https://5abeer.ai/en/docs/apps/claude-code.md), and you create a key in [Create a key](https://5abeer.ai/en/docs/start/keys.md#create). To choose between a key and a plan, read [Claude API vs subscription](https://5abeer.ai/en/guides/claude-api-vs-subscription) and [the cheapest way to run Claude Code](https://5abeer.ai/en/guides/claude-code-cheapest-way). The details for Claude on our API are on [Claude API](https://5abeer.ai/en/api/claude). ### A 5abeer plan for the desktop apps Every Bundle plan runs every official app, from the smallest to the largest. The full list is in [Apps one by one](https://5abeer.ai/en/docs/subscriptions/plan-apps.md#apps). A plan runs on your own official account, and it is activated within minutes. Plans are for the supported apps. To use the models from your own code, create an API key. Our plans Max (formerly Max 5x) and Ultra (formerly Max 20x) are 5abeer plans. They are not Anthropic's Max and Ultra, and their limits are explained in [Plan limits](https://5abeer.ai/en/docs/subscriptions/limits.md). | 5abeer plan | Best for | Usage limits | Our price | | --- | --- | --- | --- | | Pro | For everyday use | A 5-hour limit and a weekly limit | Prices on the pricing page: https://5abeer.ai/en/pricing | | Max (formerly Max 5x) | For heavy daily work | 5× the Pro plan limits | Prices on the pricing page: https://5abeer.ai/en/pricing | | Ultra (formerly Max 20x) | If you work with it all day | 20× the Pro plan limits | Prices on the pricing page: https://5abeer.ai/en/pricing | Prices are on [Pricing](https://5abeer.ai/en/pricing), and the payment methods open to you are in [Payment](https://5abeer.ai/en/docs/start/payment.md). Check both before you choose. ## Which option fits you? | If you… | Choose | | --- | --- | | Use Claude on your phone and want to pay with UPI | Claude Pro in the App Store or Google Play | | Want Claude on the website and pay by card | Claude Pro on the website | | Hit the Pro limit every week | Max or Ultra, see [Claude Pro vs Max](https://5abeer.ai/en/guides/claude-pro-vs-max) | | Code with Claude Code or your own tools | A [5abeer API key](https://5abeer.ai/en/api/claude) | | Use several desktop apps | A [5abeer plan](https://5abeer.ai/en/pricing) | ## Questions ### Is Claude Pro cheaper in the App Store in India? At the launch prices, yes for Pro, monthly or yearly. Max and Ultra cost less on the website. Compare the two tables above on the day you buy. ### Can I pay for Claude with UPI? Yes, in the phone apps: Apple and Google Play both accept UPI in India. On the website, Anthropic accepts only credit or debit cards. ### Is the yearly Pro plan worth it? If you will use Claude every month, yes. Anthropic bills the yearly plan once a year at a discounted rate, so you pay for the full year up front. ### What happened to Claude Max 20x? In October 2026 Anthropic renamed Max 20x to Ultra, and Max 5x is now called Max. Prices reported before October use the old names. ### Does a 5abeer API key work with Claude Code? Yes. The API is compatible with the Anthropic Messages API. The steps are in [Claude Code](https://5abeer.ai/en/docs/apps/claude-code.md). ### Is a 5abeer plan on my own account? Yes, on your own official account in each app. What each app asks for at sign-in is in [Apps one by one](https://5abeer.ai/en/docs/subscriptions/plan-apps.md#apps). ### Is 5abeer part of Anthropic? No. 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. ## Sources Checked on 2026-11-15: - App Store India: [Claude by Anthropic](https://apps.apple.com/in/app/claude-by-anthropic/id6473753684) - Anthropic: [Claude pricing](https://claude.com/pricing) - Anthropic Help Center: [What is the Pro plan?](https://support.claude.com/en/articles/8325606-what-is-the-pro-plan) - Anthropic Help Center: [Paid plan billing FAQs](https://support.claude.com/en/articles/8325618-paid-plan-billing-faqs) - Apple Support India: [Payment methods you can use with your Apple Account](https://support.apple.com/en-in/HT202631) - Google Play Help: [Accepted payment methods on Google Play](https://support.google.com/googleplay/answer/2651410?co=GENIE.CountryCode%3DIN), the India page - The Economic Times, July 2026: [Anthropic Claude India pricing announced](https://economictimes.com/news/new-updates/anthropic-claude-india-pricing-announced-check-what-users-will-have-to-pay-for-claude-services/articleshow/132386268.cms) - TechCrunch, July 2026: [Anthropic starts localizing Claude pricing for India](https://techcrunch.com/2026/07/13/anthropic-starts-localizing-claude-pricing-for-india-its-biggest-market-after-the-us/) > 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. --- URL: https://5abeer.ai/en/guides/pay-chatgpt-pakistan # How to pay for ChatGPT Plus from Pakistan (2026) > Pay for ChatGPT Plus from Pakistan on chatgpt.com or in the app, check your bank card limits, and see another way to use OpenAI models. Updated: 2026-11-15 Yes, you can. Pakistan is on OpenAI's list of supported countries for ChatGPT. You can pay on chatgpt.com with a bank card, and Pakistani rupees are one of OpenAI's billing currencies there. Or you can subscribe inside the iPhone or Android app, where Apple or Google Play bills you. Before you pay, check that your card allows online international payments. ## Can you pay for ChatGPT Plus from Pakistan? Yes. OpenAI's help center lists Pakistan among the countries and territories where it supports access to ChatGPT on web and mobile. The same page warns that using or offering ChatGPT from outside the listed countries may get an account blocked or suspended. So the country you actually use it from matters, not only the card. There are two official ways to pay: - **On chatgpt.com.** You pay with a bank card. OpenAI's multicurrency billing page lists the Pakistani rupee as the billing currency for Pakistan on web subscriptions. - **In the app on iPhone or Android.** Apple or Google Play manages the subscription and charges you in your local currency. Both lead to the same ChatGPT account. Pick one channel and stay with it, because the subscription is managed wherever you bought it. ## How much is ChatGPT Plus in Pakistan? The table shows the ChatGPT plans in the Pakistan App Store, the web billing currency OpenAI names for Pakistan, and one bank's card limit. Every row links to the page it came from and the day we checked it. The App Store list does not show the billing period next to each price, so confirm it on the upgrade screen before you pay. ChatGPT in the Pakistan App Store and the card limit | Service | Item | Value | Note | Source | | --- | --- | --- | --- | --- | | OpenAI | ChatGPT Go, in the app | PKR 1,400 | The store list does not show the billing period. | https://apps.apple.com/pk/app/chatgpt/id6448311069 | | OpenAI | ChatGPT Plus, in the app | PKR 4,900 | The store list does not show the billing period. | https://apps.apple.com/pk/app/chatgpt/id6448311069 | | OpenAI | ChatGPT Pro 100, in the app | PKR 27,999 | The store list does not show the billing period. | https://apps.apple.com/pk/app/chatgpt/id6448311069 | | OpenAI | ChatGPT Pro 200, in the app | PKR 49,900 | The store list does not show the billing period. | https://apps.apple.com/pk/app/chatgpt/id6448311069 | | OpenAI | ChatGPT Pro 500, in the app | PKR 139,999 | The store list does not show the billing period. | https://apps.apple.com/pk/app/chatgpt/id6448311069 | | OpenAI | Billing currency on chatgpt.com in Pakistan | Pakistani rupee | Web subscriptions only. | https://help.openai.com/en/articles/10421635-multicurrency-billing | | HBL | Annual limit on card payments in foreign currency | $30,000 a year | Industry-wide since 8 November 2022, or the equivalent. Fees and taxes apply per the bank's schedule of charges. | https://www.hbl.com/personal/cards/foreign-transactions | Each row links to the page it comes from, checked November 1, 2026, November 15, 2026. These figures can change, so check the source before you buy. For comparison, these are OpenAI's published plans in the United States: | Plan | Market and channel | Official price | Billing | Source | Checked | | --- | --- | --- | --- | --- | --- | | ChatGPT Go | United States · Vendor website | $8 | per month | https://openai.com/index/introducing-chatgpt-go/ | 2026-11-15 | | ChatGPT Plus | United States · Vendor website | $20 | per month | https://help.openai.com/en/articles/6950777-what-is-chatgpt-plus | 2026-11-15 | | ChatGPT Pro 100 | United States · Vendor website | $100 | per month | https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers | 2026-11-15 | | ChatGPT Pro 200 | United States · Vendor website | $200 | per month | https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers | 2026-11-15 | | ChatGPT Pro 500 | United States · Vendor website | $500 | per month | https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers | 2026-11-15 | The vendors' own prices as published at the source on the date checked; they can change. These are the vendor's official prices; 5abeer's prices are on the pricing page. The amount you pay in the end is the one on the checkout screen. Your bank may add its own fees or taxes to a card payment in a foreign currency. ## How do you pay on chatgpt.com? ### 1. Open the upgrade page Sign in on chatgpt.com and open the plans page from your account menu. ### 2. Pick a plan and check the total Choose the plan you want. Read the price, the currency and the billing period before you continue. ### 3. Enter your card and approve it Type your card details. If your bank sends a one-time code or an approval request in its app, confirm it. ### 4. Check the plan on your account After the payment, your plan name should show in your account settings. Your bank will also show the charge. Before you start, ask your bank whether your card is enabled for online and international payments. Many cards need this turned on in the bank's app first. HBL, for example, says it charges foreign currency transaction fees and government taxes per its schedule of bank charges. It also says an industry-wide annual limit applies to card payments in foreign currency since 8 November 2022. That limit is in the table above. ## Can you pay in the iPhone or Android app? Yes. When you subscribe inside the ChatGPT app on iOS or Android, OpenAI says the subscription is managed by the Apple App Store or Google Play, and the charges appear in your local currency. This route suits you if your Apple or Google account already has a working payment method. In Pakistan, [Apple's payment methods page](https://support.apple.com/en-us/111741) lists an Apple Account balance from added funds and most credit and debit cards, and [Google Play's Pakistan page](https://support.google.com/googleplay/answer/2651410?co=GENIE.CountryCode%3DPK) lists Visa, Mastercard and JCB cards. Neither page lists mobile phone billing for Pakistan. To cancel or change a plan bought in the app, use the subscription settings on your phone, not chatgpt.com. Do not subscribe in both places at once, or you may pay twice for the same account. ## Why was my card declined? Most declines come from the bank side, not from ChatGPT. Common reasons: - The card is not enabled for online or international payments. - The payment goes over a daily or yearly limit on the card. - The one-time code or bank approval was not finished in time. - The billing details you typed do not match the card. If a card keeps failing, try the other official channel: the app store if you used the web, or the web if you used the app. If that fails too, call your bank and give it the time and amount of the failed payment. ## Is it safe to buy a ChatGPT login from a local seller? Some sellers offer one ChatGPT login to several buyers for less. Think about the risks before you buy: - The seller and other users of the same login may be able to read your chats and files. - The seller can change the password or cancel the plan at any time, and you lose access. - If someone uses the account from a country that is not supported, OpenAI may block or suspend it. A plan on your own account keeps your chats, files and settings under your control. ## Is there a cheaper way to use OpenAI models? It depends on how you use them. If you write code or use coding tools, an API key may fit better than a chat plan. With a key you pay for each request from your balance instead of a fixed plan. The [ai-subscription-vs-api guide](https://5abeer.ai/en/guides/ai-subscription-vs-api) explains the difference. With 5abeer you can use OpenAI models through our [OpenAI API](https://5abeer.ai/en/api/openai). It is OpenAI-compatible: change the base URL and keep your code. You can also control every key: a spend limit, an expiry date and an IP allow-list. These are some of the OpenAI models you can call: | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | GPT-6.2 Sol | `gpt-6.2-sol` | $0.60 | $3 | — | | GPT-6.2 Astra | `gpt-6.2-astra` | $2.40 | $12 | — | | GPT-6.1 Sol | `gpt-6.1-sol` | $0.60 | $3 | 922K | | GPT-6 Astra | `gpt-6-astra` | $3 | $15 | — | | GPT-6 Sol | `gpt-6-sol` | $0.60 | $3 | 922K | | GPT-6 Luna | `gpt-6-luna` | $0.03 | $0.15 | 922K | To use them with a coding tool, see the [Codex CLI with an API key guide](https://5abeer.ai/en/guides/codex-cli-api-key) or the [API overview](https://5abeer.ai/en/api). If you want the apps rather than code, 5abeer plans let you subscribe to the official apps for less than their official price. Plans cover the supported apps, such as ChatGPT Desktop and Codex. See [one subscription for all AI apps](https://5abeer.ai/en/guides/one-subscription-all-ai-apps) and the [apps page](https://5abeer.ai/en/apps). | 5abeer plan | Best for | Usage limits | Our price | | --- | --- | --- | --- | | Pro | For everyday use | A 5-hour limit and a weekly limit | Prices on the pricing page: https://5abeer.ai/en/pricing | | Max (formerly Max 5x) | For heavy daily work | 5× the Pro plan limits | Prices on the pricing page: https://5abeer.ai/en/pricing | | Ultra (formerly Max 20x) | If you work with it all day | 20× the Pro plan limits | Prices on the pricing page: https://5abeer.ai/en/pricing | Plans have a 5-hour limit and a weekly limit; see [plan limits](https://5abeer.ai/en/docs/subscriptions/limits.md). Check the payment options on the [pricing page](https://5abeer.ai/en/pricing) before you pay. ## Which option fits you? | What you need | Best fit | | --- | --- | | ChatGPT on the web and phone, paid with your own card | ChatGPT Plus on chatgpt.com | | Billing through your phone's store account | ChatGPT Plus in the iPhone or Android app | | OpenAI models from your own code or a coding tool | A 5abeer API key | | ChatGPT Desktop, Codex and other supported apps on one plan | A 5abeer plan | ## Questions ### Is ChatGPT available in Pakistan? Yes. OpenAI lists Pakistan among the countries and territories where it supports access to ChatGPT on web and mobile. ### Can I pay for ChatGPT in Pakistani rupees? On chatgpt.com, OpenAI lists the Pakistani rupee as the billing currency for Pakistan. In the app, Apple or Google Play charges you in your local currency. ### Why does my bank decline the payment? Usually the card is not enabled for international or online payments, or a card limit was reached. Ask your bank to enable it, then try again. ### Is it safe to buy a ChatGPT login from a seller? It carries risks. Others may see your chats, and the seller can take the account back at any time. A plan on your own account is safer. ### Does ChatGPT Plus include API access? No. A ChatGPT plan is for the chat apps. To call the models from code, you need an API key, which is billed separately. ### When was this guide checked? We checked the App Store, Apple and Google Play sources below on 2026-11-15, and the OpenAI and HBL pages on 2026-11-01. Prices and payment rules can change, so confirm on the official pages before you pay. ## Sources Checked on 2026-11-15: - Apple App Store Pakistan: [ChatGPT](https://apps.apple.com/pk/app/chatgpt/id6448311069) - Apple Support: [Payment methods that you can use with your Apple Account](https://support.apple.com/en-us/111741) - Google Play Help: [Accepted payment methods on Google Play](https://support.google.com/googleplay/answer/2651410?co=GENIE.CountryCode%3DPK), the Pakistan page Checked on 2026-11-01 (these pages refused our requests on 2026-11-15): - OpenAI Help Center: [ChatGPT supported countries](https://help.openai.com/en/articles/7947663-chatgpt-supported-countries) - OpenAI Help Center: [Multi-currency billing](https://help.openai.com/en/articles/10421635-multicurrency-billing) - HBL: [Foreign transactions on cards](https://www.hbl.com/personal/cards/foreign-transactions) > 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. --- URL: https://5abeer.ai/en/guides/stop-account-usage-measurement # How to stop account usage measurement on 5abeer > How to switch off Account usage measurement in Settings, what we record and what we never record under our privacy policy, with a short video. Updated: 2026-11-15 You can switch off Account usage measurement at any time: open Settings, then Sign-in & security, and turn off the Account usage measurement switch. Your choice is saved at once, and you can turn it back on whenever you like. ## What does Account usage measurement record? This is the setting's text as it appears in your account: > We record the pages you open, the buttons you press and how long you use your account, to improve 5abeer. We never record the content of your chats or your keys. And this is the notice shown on your account's home page until 6 December 2026, unless you press Got it: > From 23 November 2026 we record how you use your 5abeer account: the pages you open, the buttons you press and how long you use it, to improve the service and learn what helps you. We never record the text of your chats, your keys or passwords; we never sell it or share it with advertising platforms, and we may analyse it with AI tools after removing your email address and name. You can switch it off at any time in Settings. The full details are in our [privacy policy](https://5abeer.ai/en/privacy). ## How to switch it off ### 1. The notice on your home page Until 6 December 2026 you may see a notice about the privacy policy update on your home page; if you don't see it, go straight to Settings. ### 2. Open Settings On a phone, tap More, then Settings. On a computer, Settings is in the side menu. ### 3. Open Sign-in & security Open Sign-in & security. ### 4. Find the switch Scroll to Account usage measurement. A green switch means it is on. ### 5. Turn it off Tap the switch to turn it off. Your choice is saved at once. ### 6. Turn it back on any time You can turn it on again at any time. ## Watch the steps - [Video of the steps (30 seconds, no sound, Arabic captions)](https://5abeer.ai/e/tutorials/r72-usage-switch/usage-switch-ar.mp4) - [All six steps on one image (Arabic)](https://5abeer.ai/e/tutorials/r72-usage-switch/usage-switch-ar-steps.png) ## FAQ ### Does 5abeer record the text of my chats? No. We never record the text of your chats, your keys or passwords. ### When does the measurement start? From 23 November 2026. ### Does 5abeer sell this data or share it with advertising platforms? No. We never sell it or share it with advertising platforms. ### Can I turn it back on after switching it off? Yes, with the same switch in Settings, under Sign-in & security, at any time. ### Where can I read the details? In our [privacy policy](https://5abeer.ai/en/privacy). 5abeer plans and prices are on the [pricing page](https://5abeer.ai/en/pricing). --- URL: https://5abeer.ai/en/guides/n8n-ai-api # Cheap AI API for n8n: connect Claude and GPT, step by step > Run n8n AI workflows below official API prices: set OpenAI and Anthropic credentials, choose a low-cost model for busy steps and see what each run costs. Updated: 2026-11-13 n8n's OpenAI and Anthropic credentials both have a Base URL field. Put our base URL there, paste a key for that provider and set the model by its ID, and your workflows run on Claude and GPT below the official prices. You pay per token from your balance, starting with a small top-up. ## How does n8n connect to Claude and GPT? An AI workflow in n8n has a root node, such as **AI Agent**, and a chat model sub-node, such as **OpenAI Chat Model** or **Anthropic Chat Model**, that sends the requests. The chat model reads its address and key from a credential with a **Base URL** field, so you need no community node. 5abeer is OpenAI-compatible: change the base URL and keep your code. It is also compatible with the Anthropic Messages API, the format the Anthropic node sends. [What is a base URL?](https://5abeer.ai/en/guides/what-is-base-url) explains the term. Each key works with one provider's models, and all keys draw on one balance, as [One key per provider](https://5abeer.ai/en/docs/start/keys.md#per-provider) explains. ## What you need - A 5abeer balance, topped up with one of the [payment methods](https://5abeer.ai/en/docs/start/payment.md). - A key for each provider you will use, created as in [Create a key](https://5abeer.ai/en/docs/start/keys.md#create). - n8n Cloud or self-hosted n8n. The AI nodes are built into both. Every setting below matches n8n 2.45.7, the stable release when we checked on 2026-11-03. Labels can change in later releases. Each credential takes its own base URL: | n8n credential | n8n's default Base URL | Our base URL | | --- | --- | --- | | OpenAI | `https://api.openai.com/v1` | `https://api.5abeer.ai/v1` | | Anthropic | `https://api.anthropic.com` | `https://api.5abeer.ai` | The OpenAI URL keeps `/v1`. The Anthropic URL has none, because the node adds `/v1/messages` itself. ## How to set up your first AI agent ### 1. Add a Chat Trigger Add a **Chat Trigger** node to a new workflow. It appears as **When chat message received** and runs the workflow for each message you send in the chat panel. ### 2. Add an AI Agent Add an **AI Agent** node after the trigger and keep **Source for Prompt (User Message)** on **Connected Chat Trigger Node**. ### 3. Attach a chat model Click the agent's **Chat Model** connector and pick **OpenAI Chat Model** for GPT or **Anthropic Chat Model** for Claude. ### 4. Send a test message A reply means the credential, base URL and model ID all work. If a node turns red, open it, read the error and see the common errors below. ## How to connect GPT models The newest GPT models, at our price per million tokens: | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | GPT-6.2 Sol | `gpt-6.2-sol` | $0.60 | $3 | — | | GPT-6.2 Astra | `gpt-6.2-astra` | $2.40 | $12 | — | | GPT-6.1 Sol | `gpt-6.1-sol` | $0.60 | $3 | 922K | ### 1. Create a key for GPT models Create a key for the OpenAI provider, as in [Create a key](https://5abeer.ai/en/docs/start/keys.md#create). Name it after the workflow, such as `n8n-support`, to find its usage easily. ### 2. Create the OpenAI credential In the **OpenAI Chat Model** node, create a new **OpenAI** credential. Paste your key in **API Key**, leave **Organization ID (optional)** empty and set **Base URL** to `https://api.5abeer.ai/v1`. On save, n8n tests the credential by asking that address for the model list. ### 3. Set the model by ID In **Model**, switch from **From List** to **ID** and paste a model ID from the table above, exactly as written. The full catalog is on the [models page](https://5abeer.ai/en/models). ### 4. Check two switches Keep **Use Responses API** on, its default, since 5abeer serves GPT models in the Responses format. Leave **Built-in Tools** empty: its Web Search, File Search and Code Interpreter run on OpenAI's own platform, so give the agent tool nodes instead. ## How to connect Claude models The newest Claude models, at our price per million tokens: | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | Claude Sonnet 5.5 | `claude-sonnet-5.5` | $0.60 | $3 | 1M | | Claude Opus 5.5 | `claude-opus-5.5` | $1.20 | $6 | 1M | | Claude Fable 5.1 | `claude-fable-5.1` | $3 | $15 | — | ### 1. Create a key for Claude models Create a second key, this time for the Anthropic provider. It draws on the same balance as your GPT key. ### 2. Create the Anthropic credential In the **Anthropic Chat Model** node, create a new **Anthropic** credential. Paste your Claude key in **API Key** and set **Base URL** to `https://api.5abeer.ai`. A URL ending in `/v1` doubles the path, and every request fails. ### 3. Set the model by ID In **Model**, switch to **ID** and paste [`claude-sonnet-5.5`](https://5abeer.ai/en/models/claude-sonnet-5.5), the default model, for most workflows. Use [`claude-opus-5.5`](https://5abeer.ai/en/models/claude-opus-5.5) or [`claude-fable-5.1`](https://5abeer.ai/en/models/claude-fable-5.1) for the hardest steps. ### 4. Leave Options empty for the first run Add no options until your first test gets a reply; the next section covers them. ## Which node options matter on 5abeer? These entries in each node's **Options** list change what you get or pay on 5abeer: | Node | Option | What to do | | --- | --- | --- | | OpenAI Chat Model | **Sampling Temperature**, **Top P** | Skip them: our [Responses reference](https://5abeer.ai/en/docs/api/responses.md#params) lists both as ignored for GPT models. | | OpenAI Chat Model | **Conversation ID** | Leave it empty. Each request [stands alone](https://5abeer.ai/en/docs/api/responses.md#conversation) here, so keep the chat history with a memory node. | | OpenAI Chat Model | **Prompt Cache Key** | Set one fixed value per workflow, so its similar requests [hit the same cache](https://5abeer.ai/en/docs/api/caching.md#gpt). | | Anthropic Chat Model | **Sampling Temperature**, **Top K**, **Top P** | Skip them: n8n's hint says newer Claude models don't support them, so the node drops them. | | Anthropic Chat Model | **Thinking Mode** | Leave it unset, so each model uses its default. For harder steps, choose **Adaptive (Recommended)** with an **Effort** of Low, Medium or High, the levels our [Messages reference](https://5abeer.ai/en/docs/api/messages.md#params) lists. Skip the legacy **Manual (Deprecated)**. | Never set **Thinking Mode** to **Disabled** on [`claude-fable-5.1`](https://5abeer.ai/en/models/claude-fable-5.1): Anthropic's [migration guide](https://platform.claude.com/docs/en/models/fable-5-1/migration-guide), checked on 2026-11-03, says this model always thinks and rejects a request that turns thinking off. Thinking adds output tokens, so after you raise **Effort**, run one test and read its usage. ## How to add memory, tools and a fallback model - **Memory**: attach **Simple Memory** to the agent's **Memory** connector. Its **Context Window Length**, 5 by default, sets how many past exchanges go with each call, each billed again as input. - **Tools**: attach tool nodes, such as **HTTP Request Tool** or **Call n8n Sub-Workflow Tool**, to the **Tool** connector, and the agent calls them when needed. Claude and GPT both accept tools, as [What each family supports](https://5abeer.ai/en/docs/api/tools.md#support) shows. - **Fallback model**: turn on **Enable Fallback Model** in the agent and attach a chat model from the other provider, such as GPT behind Claude, to the new **Fallback Model** connector. The agent uses it when the main model fails. For one prompt per item, such as tagging rows, use **Basic LLM Chain** with the same chat model. ## What does an n8n agent cost? You pay per token from your balance. Input grows fastest in an agent: each call carries the system message, the remembered messages, the tool definitions and the new message, and one chat turn can take several calls when the agent uses tools. For example, a support agent that sends ten million tokens a month and gets one million back, on the default model: Example: 10,000,000 input tokens and 1,000,000 output tokens on Claude Sonnet 5.5 (`claude-sonnet-5.5`) cost $9.00 at our price against $30.00 at the official price (70% lower). Official price checked November 21, 2026. Short steps that run many times, such as sorting messages, pulling fields out of text or writing a one-line summary, cost far less on a low-cost model. A thousand such runs, each about 1,000 tokens in and 300 out, on [`gpt-6-luna`](https://5abeer.ai/en/models/gpt-6-luna): Example: 1,000,000 input tokens and 300,000 output tokens on GPT-6 Luna (`gpt-6-luna`) cost $0.08 at our price against $0.25 at the official price (70% lower). Official price checked November 21, 2026. To keep the bill down: - Keep the system message short, attach only the tools the agent needs and keep **Context Window Length** low. - Use a low-cost model such as [`gpt-6-luna`](https://5abeer.ai/en/models/gpt-6-luna) for simple steps, and keep the default model for the steps that need it. - Give each workflow its own key and read its usage, as in [Track your usage](https://5abeer.ai/en/docs/start/pricing.md#usage). [Prompt caching](https://5abeer.ai/en/docs/api/caching.md) and [Cut your LLM API bill](https://5abeer.ai/en/guides/cut-llm-api-costs) cover more ways to spend less. The official price of each model sits next to ours on the [Claude API page](https://5abeer.ai/en/api/claude) and the [OpenAI API page](https://5abeer.ai/en/api/openai). ## Common errors and fixes If the credential test fails on save, check the base URL first (`/v1` for OpenAI, none for Anthropic), then the key. During a run: - [`INVALID_API_KEY`](https://5abeer.ai/en/docs/help/errors.md#INVALID_API_KEY): the key is wrong or incomplete. Paste it again. - [`MODEL_PLATFORM_NOT_ALLOWED`](https://5abeer.ai/en/docs/help/errors.md#MODEL_PLATFORM_NOT_ALLOWED): the key belongs to another provider, such as a GPT key in the Anthropic credential. - `The model "…" was not found at …`: the Anthropic node shows this when the address answers that the model doesn't exist. Paste the exact ID from the [models page](https://5abeer.ai/en/models). - `does not support disabling thinking`: **Thinking Mode** is **Disabled** on a model that always thinks. Remove the option or choose **Adaptive (Recommended)**. - [`INSUFFICIENT_BALANCE`](https://5abeer.ai/en/docs/help/errors.md#INSUFFICIENT_BALANCE): your balance doesn't cover the request. Top up and retry. - [`API_KEY_QUOTA_EXHAUSTED`](https://5abeer.ai/en/docs/help/errors.md#API_KEY_QUOTA_EXHAUSTED): the key reached the spend limit you set on it. Every code is explained in [Errors and fixes](https://5abeer.ai/en/docs/help/errors.md). ## FAQ ### Does this work on n8n Cloud and on self-hosted n8n? Yes, the credentials and nodes are the same. On a self-hosted server with a fixed IP, you can also add that IP to the key's allow-list, as in [Control every key](https://5abeer.ai/en/docs/start/keys.md#controls). ### Can I use Gemini models in n8n? Yes, through the **OpenAI Chat Model** node. Use a key for Gemini models in an **OpenAI** credential with our OpenAI-format URL, set the model by ID and turn **Use Responses API** off: our [Responses format](https://5abeer.ai/en/docs/api/responses.md) serves Claude and GPT only. Gemini model IDs and prices are on the [Gemini API page](https://5abeer.ai/en/api/gemini). ### Which model should an n8n agent start with? [`claude-sonnet-5.5`](https://5abeer.ai/en/models/claude-sonnet-5.5), the default model, handles most agent work. Move a step to [`claude-opus-5.5`](https://5abeer.ai/en/models/claude-opus-5.5) only when your tests show the default model gets it wrong. ### What is the lowest-cost model for n8n? [`gpt-6-luna`](https://5abeer.ai/en/models/gpt-6-luna) is one of the lowest-cost models we serve. It suits short steps that run many times, such as sorting, extraction and short summaries. You top up from a small amount, as in [Payment methods](https://5abeer.ai/en/docs/start/payment.md#methods), and on this model a small balance covers thousands of short runs, as the example in [What does an n8n agent cost?](https://5abeer.ai/en/guides/n8n-ai-api#cost) shows. ### How do I stop one workflow from overspending? Give the workflow its own key with a spend limit and an expiry date, as in [Control every key](https://5abeer.ai/en/docs/start/keys.md#controls). At the limit, its calls return `API_KEY_QUOTA_EXHAUSTED`, while your other keys keep working. ### Who bills the model calls, n8n or 5abeer? With a 5abeer key, each model call is billed per token from your 5abeer balance, which you top up with any method in [Payment methods](https://5abeer.ai/en/docs/start/payment.md#methods). Running n8n itself, on n8n Cloud or on your own server, is a separate cost. ### Is 5abeer part of n8n, OpenAI or Anthropic? No. 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google, and not part of n8n. It works in n8n because our API accepts the formats these nodes send. ## Get started Top up your balance, create a key for each provider and paste it into the n8n credential. Every model and price is on the [API page](https://5abeer.ai/en/api). --- URL: https://5abeer.ai/en/guides/pay-ai-subscriptions-vodafone-cash # Pay for ChatGPT, Claude and Gemini with Vodafone Cash > Do OpenAI, Anthropic and Google accept Vodafone Cash? Official no-card routes, Vodafone phone billing, and 5abeer plans paid by any e-wallet or InstaPay. Updated: 2026-11-11 OpenAI, Anthropic and Google don't list Vodafone Cash or InstaPay on their official payment pages. The official no-card route is to subscribe in the phone app and pay through your Vodafone line, which is not the Vodafone Cash wallet. 5abeer plans for the desktop apps and API credit can be paid with any e-wallet or InstaPay. ## Do OpenAI, Anthropic and Google accept Vodafone Cash? None of them accepts it directly. This is what each company's pages say about payment methods, as we read them on 2026-11-11: | Company | Paying on the website | Paying inside the phone app | | --- | --- | --- | | OpenAI (ChatGPT) | Credit and debit cards in every country, plus local methods in specific countries, Egypt not among them | Handled by the App Store or Google Play, in local currency | | Anthropic (Claude) | Credit or debit card only | Handled by the App Store or Google Play, which set the payment options | | Google (Gemini) | Credit card or PayPal, and Google Play balance in selected countries only | On iPhone, handled by the App Store | The details from each source: - **OpenAI:** Its [multi-currency billing page](https://help.openai.com/en/articles/10421635-multicurrency-billing) lists the Egyptian pound among the billing currencies on chatgpt.com, and credit and debit cards as the method for all countries. It lists local methods only for specific countries, such as India, Indonesia, Brazil, Korea, the Philippines and Vietnam, and does not mention Egypt. - **Anthropic:** Its [paid plan billing FAQs](https://support.claude.com/en/articles/8325618-paid-plan-billing-faqs) say it only accepts credit or debit cards for subscriptions bought on the web, and its [card declined page](https://support.claude.com/en/articles/9402418-why-was-my-card-declined) says it does not accept third-party payment processors such as PayPal. - **Google:** The [Google One payment help page](https://support.google.com/drive/answer/6362993) lists credit cards, PayPal and, in selected countries only, Google Play balance. It doesn't say which of these are available in Egypt, and it doesn't mention e-wallets. None of these pages mentions Vodafone Cash, InstaPay or any Egyptian wallet. Egypt is on [the list of regions where Anthropic offers its services](https://www.anthropic.com/supported-countries), so the obstacle is the payment method, not the country. ## What is the official way to pay without a card? The official way to pay without a card is to subscribe inside the phone app, so you pay Apple or Google rather than the app's maker. Both accept Vodafone phone billing in Egypt: - **Apple:** [Apple's payment methods page](https://support.apple.com/en-us/111741) lists Apple Account balance after you add funds, mobile phone billing with Vodafone, and most credit and debit cards for Egypt. It says mobile billing is available only with supported carriers, and that the list can change. - **Google Play:** [Google Play's payment methods page for Egypt](https://support.google.com/googleplay/answer/2651410?hl=en&co=GENIE.CountryCode%3DEG) lists Visa, Mastercard and American Express cards, and carrier billing with Vodafone and e&. It says carrier billing works only in the Google Play Store app, not on the website. > Vodafone phone billing charges your phone line. It is not the Vodafone Cash wallet, and neither Apple's nor Google's page lists Vodafone Cash as a payment method. ### 1. Add phone billing On iPhone, open the payment methods in your Apple Account settings and choose mobile phone billing if it appears. On Android, choose carrier billing on the Google Play payment screen if your line is supported. ### 2. Subscribe in the app Open the ChatGPT, Claude or Gemini app, tap upgrade, then pick a plan. The price shows in pounds before you confirm. ### 3. Manage it in the store You manage and cancel the subscription in the subscriptions settings of your Apple account or Google Play, because the store handles the payment. We did not check the upgrade screen in the Gemini app on Android, so review the payment methods it shows before you confirm. Apple's [page on adding money to your Apple Account](https://support.apple.com/en-us/118297) says the balance pays for subscriptions, and that you need a valid payment method on your account to add funds. ## How much do you pay in pounds in the app? These are the official Egypt prices from the App Store and Google's Egypt page, each row with its source link and the date it was checked. On 2026-11-11 we opened the ChatGPT, Claude and Gemini listings on the Egypt App Store and found the same App Store prices: | Plan | Market and channel | Official price | Billing | Source | Checked | | --- | --- | --- | --- | --- | --- | | ChatGPT Go | Egypt · App Store | EGP 249.99 | per month | https://apps.apple.com/eg/app/chatgpt/id6448311069 | 2026-11-15 | | ChatGPT Plus | Egypt · App Store | EGP 999.99 | per month | https://apps.apple.com/eg/app/chatgpt/id6448311069 | 2026-11-15 | | ChatGPT Pro 100 | Egypt · App Store | EGP 5,399.99 | per month | https://apps.apple.com/eg/app/chatgpt/id6448311069 | 2026-11-15 | | ChatGPT Pro 200 | Egypt · App Store | EGP 9,999.99 | per month | https://apps.apple.com/eg/app/chatgpt/id6448311069 | 2026-11-15 | | ChatGPT Pro 500 | Egypt · App Store | EGP 26,999.99 | per month | https://apps.apple.com/eg/app/chatgpt/id6448311069 | 2026-11-15 | | Claude Pro | Egypt · App Store | EGP 999.99 | per month | https://apps.apple.com/eg/app/claude-by-anthropic/id6473753684 | 2026-11-15 | | Claude Pro | Egypt · App Store | EGP 9,999.99 | per year | https://apps.apple.com/eg/app/claude-by-anthropic/id6473753684 | 2026-11-15 | | Claude Max | Egypt · App Store | EGP 6,999.99 | per month | https://apps.apple.com/eg/app/claude-by-anthropic/id6473753684 | 2026-11-15 | | Claude Ultra | Egypt · App Store | EGP 12,999.99 | per month | https://apps.apple.com/eg/app/claude-by-anthropic/id6473753684 | 2026-11-15 | | Google AI Plus | Egypt · Vendor website | EGP 249.99 | per month | https://gemini.google/eg/subscriptions/?hl=ar | 2026-11-15 | | Google AI Pro | Egypt · Vendor website | EGP 939.99 | per month | https://gemini.google/eg/subscriptions/?hl=ar | 2026-11-15 | | Google AI Ultra (5x) | Egypt · Vendor website | EGP 2,199.99 | per month | https://gemini.google/eg/subscriptions/?hl=ar | 2026-11-15 | | Google AI Ultra (20x) | Egypt · Vendor website | EGP 8,799.99 | per month | https://gemini.google/eg/subscriptions/?hl=ar | 2026-11-15 | | Google AI Plus (400 GB) | Egypt · App Store | EGP 249.99 | per month | https://apps.apple.com/eg/app/google-gemini/id6477489729 | 2026-11-15 | | Google AI Pro (5 TB) | Egypt · App Store | EGP 939.99 | per month | https://apps.apple.com/eg/app/google-gemini/id6477489729 | 2026-11-15 | The vendors' own prices as published at the source on the date checked; they can change. These are the vendor's official prices; 5abeer's prices are on the pricing page. The price you actually pay is the one on the checkout screen before you confirm. Each plan is covered in more detail in [ChatGPT Plus price in Egypt](https://5abeer.ai/en/guides/chatgpt-plus-price-egypt), [Claude Pro and Max price in Egypt](https://5abeer.ai/en/guides/claude-pro-max-price-egypt) and [Google AI Pro price in Egypt](https://5abeer.ai/en/guides/gemini-pro-price-egypt). ## Does the Vodafone Cash online card work? Vodafone Egypt says on its [Vodafone Cash page](https://web.vodafone.com.eg/en/vodafone-cash) that you can shop online on any Egyptian or international website with your phone number. Its [page on paying online with Vodafone Cash](https://web.vodafone.com.eg/en/back-to-school) explains how: - You create an online payment card in the Ana Vodafone app or by dialing `*9*100#`, and its details appear right away. - The card is valid for 24 hours or two purchases, whichever comes first. - You can't make a purchase for more than the amount you issued the card with. That doesn't suit a monthly subscription. The subscription renews automatically each month from the saved card, and the Vodafone Cash card will no longer be valid at renewal, so you would need a new card and an updated payment method before every renewal. We did not test whether OpenAI, Anthropic or Google accept this card, and their pages don't mention it. ## Why do Egyptian cards get declined? If you tried a bank card and it was declined, these are reasons the official pages give: - **Restrictions on Egyptian cards on Google Play:** Google says your payment method may be declined for new purchases or subscription renewals because of new restrictions on the use of Egypt-issued cards. It suggests another payment method and contacting your bank. - **Billing address and country:** Anthropic says the billing address should match the card's country and your bank's records, and that a small mismatch in the address can cause a decline. - **Verification step:** Anthropic asks you to complete 3D Secure, the code your bank sends or the approval in its app. - **Funds:** The card must cover the full amount. Anthropic says it doesn't get detailed decline reasons from banks, so only your bank can tell you why. The full fixes are in [Fix card declines on ChatGPT and Claude](https://5abeer.ai/en/guides/card-declined-ai-payment). ## How do you pay 5abeer with Vodafone Cash or InstaPay? If you use ChatGPT or Claude on a computer, 5abeer Bundle plans run the official apps: ChatGPT Desktop and Codex, plus Claude Desktop, Cowork, Claude Code and Google Antigravity. Subscribe to the official apps for less than their official price. How you can pay: We accept every mobile wallet in Egypt: Vodafone Cash, Orange Cash, Etisalat Cash (e& money), WE Pay and bank wallets, plus InstaPay. Pay the way that suits you: e-wallets such as Vodafone Cash, InstaPay, or an international card. No bank card is needed if you pay by e-wallet or InstaPay. These are our plan prices, as on the [pricing page](https://5abeer.ai/en/pricing), in your currency: | 5abeer plan | Best for | Usage limits | Our price | | --- | --- | --- | --- | | Pro | For everyday use | A 5-hour limit and a weekly limit | EGP 797 / month | | Max (formerly Max 5x) | For heavy daily work | 5× the Pro plan limits | EGP 3,500 / month | | Ultra (formerly Max 20x) | If you work with it all day | 20× the Pro plan limits | EGP 6,970 / month | ### 1. Choose a plan Pick your plan on the [pricing page](https://5abeer.ai/en/pricing). Every Bundle plan runs every official app, from the smallest to the largest. ### 2. Transfer the amount Choose e-wallet or InstaPay, and transfer the exact amount shown to the number or address on screen. ### 3. Upload the receipt Upload a photo of the receipt and enter the number you paid from. The order then appears in your account with its own number. ### 4. Activate in 5abeer AI Download the [5abeer AI app](https://5abeer.ai/en/app) on Mac, Windows or Linux and sign in. Activated within minutes. Before you pay, be clear on the differences: - The subscription runs on your own official account in each app. What each app asks for at sign-in is in [Apps one by one](https://5abeer.ai/en/docs/subscriptions/plan-apps.md#apps). - It works in the desktop apps through the 5abeer AI app, not inside the phone apps. - Each plan has a 5-hour limit and a weekly limit, explained in [Usage limits](https://5abeer.ai/en/docs/subscriptions/limits.md). We don't promise limits matching OpenAI's or Anthropic's plans. - 5abeer doesn't sell Google AI plans or the paid features of the Gemini app. What a plan runs from Google is Google Antigravity, for coding. The apps the plans run are on the [official apps page](https://5abeer.ai/en/apps), and the payment details are in [Payment methods](https://5abeer.ai/en/docs/start/payment.md#transfer). From Egypt, start with [ChatGPT subscription in Egypt](https://5abeer.ai/en/apps/chatgpt/egypt) or [Claude subscription in Egypt](https://5abeer.ai/en/apps/claude/egypt). > Plans are for the supported apps. To use the models from your own code, create an API key. ### API credit in pounds If you call Claude, GPT or Gemini models from your own code, top up your API balance the same ways: The minimum API top-up is 10 EGP. After that, top up any amount. The API needs no subscription: your wallet balance pays only for what you use, and the monthly plans are a separate product for the official apps. Your balance is credited automatically once the payment completes. The details are on the [API in Egypt page](https://5abeer.ai/en/api/egypt) and in [Pay for AI APIs from Egypt](https://5abeer.ai/en/guides/pay-ai-api-from-egypt). ## Which route suits you? | Your situation | Best fit | | --- | --- | | You use ChatGPT, Claude or Gemini on iPhone and have a Vodafone line | Subscribe in the app and pay through your Vodafone line | | You use ChatGPT or Claude on Android and have a Vodafone or e& line | Subscribe in the app and pay through Google Play | | You have a card enabled for international online purchases | Subscribe on the official website | | You work on a computer and want to pay with Vodafone Cash or InstaPay | A 5abeer Bundle plan | | You call the models from your own code | 5abeer API credit in pounds | ## Frequently asked questions ### Can I pay for ChatGPT with Vodafone Cash? Not directly. OpenAI lists credit and debit cards as the way to pay from Egypt on chatgpt.com, and doesn't mention wallets. Without a card, subscribe in the ChatGPT iPhone app and pay through your Vodafone line. On a computer, ChatGPT Desktop and Codex run on a 5abeer plan you can pay with Vodafone Cash. ### Can I pay for Claude with Vodafone Cash? Not on Anthropic's website, which accepts only credit and debit cards. In the Claude phone app you pay with App Store or Google Play methods, including Vodafone phone billing. 5abeer plans run Claude Desktop and Claude Code and can be paid with Vodafone Cash. ### Can I pay for Gemini with Vodafone Cash? Google doesn't list wallets among its payment methods. On iPhone you subscribe in the Gemini app with your Apple account's payment methods, including Vodafone phone billing. 5abeer doesn't sell Google AI plans, but its plans run Google Antigravity, and API credit covers Gemini models. ### What is the difference between Vodafone phone billing and Vodafone Cash? Phone billing is a payment method Apple and Google Play list for Egypt, and the amount is charged to your phone line. Vodafone Cash is a separate e-wallet, and neither Apple's nor Google's page lists it as a payment method. ### Do ChatGPT or Claude accept InstaPay? OpenAI, Anthropic and Google don't mention InstaPay on their payment pages. 5abeer accepts InstaPay for its plans and for API credit. ### Is a 5abeer plan on my own account? Yes, on your own official account in each app, not an account shared with anyone else. That's why Codex asks for your own ChatGPT account and Google Antigravity asks for your own Google account. ### Is 5abeer part of OpenAI, Anthropic or Google? No. 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. ## Sources Checked on 2026-11-11: - OpenAI Help Center: [Multi-currency billing](https://help.openai.com/en/articles/10421635-multicurrency-billing) - Anthropic Help Center: [Paid plan billing FAQs](https://support.claude.com/en/articles/8325618-paid-plan-billing-faqs) - Anthropic Help Center: [Why was my card declined?](https://support.claude.com/en/articles/9402418-why-was-my-card-declined) - Anthropic: [Supported regions policy](https://www.anthropic.com/supported-countries) - Apple: [Payment methods that you can use with your Apple Account](https://support.apple.com/en-us/111741) - Apple: [Add money to your Apple Account balance](https://support.apple.com/en-us/118297) - Google Play: [Accepted payment methods on Google Play, Egypt](https://support.google.com/googleplay/answer/2651410?hl=en&co=GENIE.CountryCode%3DEG) - Google One: [Change your card & fix payment issues](https://support.google.com/drive/answer/6362993) - Vodafone Egypt: [Vodafone Cash](https://web.vodafone.com.eg/en/vodafone-cash) - Vodafone Egypt: [Pay online with Vodafone Cash](https://web.vodafone.com.eg/en/back-to-school) - Egypt App Store: [ChatGPT](https://apps.apple.com/eg/app/chatgpt/id6448311069), [Claude](https://apps.apple.com/eg/app/claude-by-anthropic/id6473753684) and [Google Gemini](https://apps.apple.com/eg/app/google-gemini/id6477489729) Every row in the official price table carries its own source and check date. --- URL: https://5abeer.ai/en/guides/cheap-ai-subscriptions-egypt # Cheapest AI subscriptions in Egypt: ChatGPT, Claude, Gemini > Official ChatGPT, Claude and Gemini prices in Egypt in pounds, the free and cheapest plans, and a cheaper way to run every official app. Updated: 2026-11-11 The cheapest paid AI plans in Egypt are ChatGPT Go and Google AI Plus, priced the same in pounds on the App Store, then Google AI Pro, then ChatGPT Plus and Claude Pro. Each company has a limited free plan. For several apps on a computer, one 5abeer Bundle plan runs every official app for less than its official price. ## How much do the official AI subscriptions cost in Egypt? OpenAI and Anthropic sell their plans in Egypt in pounds inside their iPhone apps through the App Store. Google publishes its Egyptian plan prices in pounds on its Egypt page and in the Gemini app. These are the official Egyptian prices, each row with a link to its source: | Plan | Market and channel | Official price | Billing | Source | Checked | | --- | --- | --- | --- | --- | --- | | ChatGPT Go | Egypt · App Store | EGP 249.99 | per month | https://apps.apple.com/eg/app/chatgpt/id6448311069 | 2026-11-15 | | ChatGPT Plus | Egypt · App Store | EGP 999.99 | per month | https://apps.apple.com/eg/app/chatgpt/id6448311069 | 2026-11-15 | | ChatGPT Pro 100 | Egypt · App Store | EGP 5,399.99 | per month | https://apps.apple.com/eg/app/chatgpt/id6448311069 | 2026-11-15 | | ChatGPT Pro 200 | Egypt · App Store | EGP 9,999.99 | per month | https://apps.apple.com/eg/app/chatgpt/id6448311069 | 2026-11-15 | | ChatGPT Pro 500 | Egypt · App Store | EGP 26,999.99 | per month | https://apps.apple.com/eg/app/chatgpt/id6448311069 | 2026-11-15 | | Claude Pro | Egypt · App Store | EGP 999.99 | per month | https://apps.apple.com/eg/app/claude-by-anthropic/id6473753684 | 2026-11-15 | | Claude Pro | Egypt · App Store | EGP 9,999.99 | per year | https://apps.apple.com/eg/app/claude-by-anthropic/id6473753684 | 2026-11-15 | | Claude Max | Egypt · App Store | EGP 6,999.99 | per month | https://apps.apple.com/eg/app/claude-by-anthropic/id6473753684 | 2026-11-15 | | Claude Ultra | Egypt · App Store | EGP 12,999.99 | per month | https://apps.apple.com/eg/app/claude-by-anthropic/id6473753684 | 2026-11-15 | | Google AI Plus | Egypt · Vendor website | EGP 249.99 | per month | https://gemini.google/eg/subscriptions/?hl=ar | 2026-11-15 | | Google AI Pro | Egypt · Vendor website | EGP 939.99 | per month | https://gemini.google/eg/subscriptions/?hl=ar | 2026-11-15 | | Google AI Ultra (5x) | Egypt · Vendor website | EGP 2,199.99 | per month | https://gemini.google/eg/subscriptions/?hl=ar | 2026-11-15 | | Google AI Ultra (20x) | Egypt · Vendor website | EGP 8,799.99 | per month | https://gemini.google/eg/subscriptions/?hl=ar | 2026-11-15 | | Google AI Plus (400 GB) | Egypt · App Store | EGP 249.99 | per month | https://apps.apple.com/eg/app/google-gemini/id6477489729 | 2026-11-15 | | Google AI Pro (5 TB) | Egypt · App Store | EGP 939.99 | per month | https://apps.apple.com/eg/app/google-gemini/id6477489729 | 2026-11-15 | The vendors' own prices as published at the source on the date checked; they can change. These are the vendor's official prices; 5abeer's prices are on the pricing page. OpenAI's and Anthropic's websites list their prices in US dollars. These are the prices as published: | Plan | Market and channel | Official price | Billing | Source | Checked | | --- | --- | --- | --- | --- | --- | | ChatGPT Go | United States · Vendor website | $8 | per month | https://openai.com/index/introducing-chatgpt-go/ | 2026-11-15 | | ChatGPT Plus | United States · Vendor website | $20 | per month | https://help.openai.com/en/articles/6950777-what-is-chatgpt-plus | 2026-11-15 | | ChatGPT Pro 100 | United States · Vendor website | $100 | per month | https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers | 2026-11-15 | | ChatGPT Pro 200 | United States · Vendor website | $200 | per month | https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers | 2026-11-15 | | ChatGPT Pro 500 | United States · Vendor website | $500 | per month | https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers | 2026-11-15 | | Claude Pro | United States · Vendor website | $20 | per month | https://claude.com/pricing | 2026-11-15 | | Claude Pro | United States · Vendor website | $200 | per year | https://claude.com/pricing | 2026-11-15 | | Claude Max | United States · Vendor website | $100 | per month | https://claude.com/pricing | 2026-11-15 | | Claude Ultra | United States · Vendor website | $200 | per month | https://claude.com/pricing | 2026-11-15 | The vendors' own prices as published at the source on the date checked; they can change. These are the vendor's official prices; 5abeer's prices are on the pricing page. Tax: per Anthropic's pages, some countries include tax in the displayed price and others add it at checkout. A few notes to help you read both tables: - **We checked the prices today.** Each row shows the date its data was last updated, and we opened every source again on 2026-11-11 and found the prices unchanged. - **Go is priced by country.** OpenAI says ChatGPT Go pricing is localized in some markets, so its Egyptian price differs from the website price. - **Check the billing period.** The Egyptian App Store lists a second purchase named ChatGPT Plus at a higher price without saying its period, and the Gemini app lists a larger Plus level with 2 TB of storage. Check the plan name and period on the checkout screen. - **Tax on Anthropic's website.** Anthropic says the prices on its website don't include applicable tax. - **We didn't check Google Play.** On Android, open the upgrade screen in the app to see your country's price before you confirm. ## Which plan is the cheapest for each app? - **ChatGPT:** Go is the lowest-priced paid plan. OpenAI says it gives you ten times the messages, file uploads and image creation of the free plan, and its pricing page says the plan may include ads and that Codex on it is limited. - **Claude:** Pro is the lowest paid plan, and Claude Code starts there. Paying for Pro yearly costs less than twelve monthly payments, both on the App Store and on Anthropic's website. - **Gemini:** Google AI Plus is the lowest-priced plan. Google lists agent rate limits in Google Antigravity starting from Google AI Pro. For the prices and details of each company on its own, read [ChatGPT Plus price in Egypt](https://5abeer.ai/en/guides/chatgpt-plus-price-egypt), [Claude Pro and Max price in Egypt](https://5abeer.ai/en/guides/claude-pro-max-price-egypt) and [Gemini price in Egypt](https://5abeer.ai/en/guides/gemini-pro-price-egypt). ## What does each plan include? This is what each plan includes as the companies' own pages describe it, including the coding apps Claude Code, Codex and Google Antigravity: | Plan | What it includes, as the company describes it | | --- | --- | | ChatGPT Free | Text chat, with limits on uploads, image creation, voice chats and deep research, and limited Codex access | | ChatGPT Go | Ten times the free plan's messages, uploads and image creation, longer memory, limited Codex access, and it may include ads | | ChatGPT Plus | Advanced reasoning models, expanded deep research and memory, projects and scheduled tasks, and expanded Codex usage | | ChatGPT Pro | Three usage levels, Pro reasoning, and longer Codex sessions | | Claude Free | Limited usage every 5 hours and weekly, chat on web, desktop and mobile, and no Claude Code | | Claude Pro | More usage than the free plan, and Claude Code included | | Claude Max | Five times Pro usage in both the 5-hour and weekly windows, and Claude Code included | | Claude Ultra | Ten times Pro usage weekly, no 5-hour limit for verified accounts, and Claude Code included | | Gemini free plan | The Flash-Lite model and 15 GB of storage | | Google AI Plus | Twice the free plan's usage limit, the Flash model, Gemini in Gmail, and 400 GB of storage | | Google AI Pro | Four times the free plan's usage limit, the Pro and Flash models, base agent rate limits in Google Antigravity, and 5 TB of storage | | Google AI Ultra | Five or twenty times Google AI Pro usage, higher limits in Google Antigravity, and storage from 20 TB | Each company sets its own limits, and features change over time, so check the company's page before you pay. ## How do you pay for an official plan without a card? Anthropic's website accepts credit and debit cards only. Inside the app, the store decides the payment methods. In Egypt, your Apple account accepts Apple Account balance and Vodafone phone billing, as well as most cards. So you can subscribe officially to ChatGPT, Claude or Gemini in the iPhone app without a card. Anything else goes through a third party, so check these points before you pay: - Don't buy a ready-made account shared with other people, and never give a seller the password to your account. - Ask whether the subscription runs on your own account or on an account the seller owns. - Keep your payment receipt and order number. ## What are the cheaper legitimate options? ### 1. Start with the free plan Every company has a free plan that covers light use. Claude's free plan doesn't include Claude Code, and ChatGPT's free plan has limited Codex access. ### 2. Pick the lowest paid plan that covers you ChatGPT Go costs less than ChatGPT Plus, and Google AI Plus costs less than Google AI Pro. Choose by what you use every day, not by the plan's name. ### 3. Pay yearly if you're sure Paying for Claude Pro yearly costs less than twelve monthly payments, both on the App Store and on Anthropic's website. ### 4. Pay per use through the API If you code and call the models from your own code, the API charges only for what you use. It is separate from the subscription: OpenAI says API usage is billed separately from ChatGPT Plus, and Anthropic says the same about Claude. Google says new accounts start on a free tier that gives access to some Gemini API models. 5abeer also has an API that you pay for from your balance as you use it: Use every model priced per token through the API for 70% less than its official price. Every model's price next to its official price is on the [API page](https://5abeer.ai/en/api). To compare a subscription with the API for coding, read [The cheapest way to use Claude Code](https://5abeer.ai/en/guides/claude-code-cheapest-way). ## How do you pay less and use every app? If you work on a computer with several apps, subscribing to each company separately means more than one plan every month. One 5abeer Bundle plan runs the official apps, ChatGPT Desktop, Codex, Claude Desktop, Claude Code and Google Antigravity, and you switch between them freely. Subscribe to the official apps for less than their official price. These are our plan prices, as on the [pricing page](https://5abeer.ai/en/pricing), in your currency: | 5abeer plan | Best for | Usage limits | Our price | | --- | --- | --- | --- | | Pro | For everyday use | A 5-hour limit and a weekly limit | EGP 797 / month | | Max (formerly Max 5x) | For heavy daily work | 5× the Pro plan limits | EGP 3,500 / month | | Ultra (formerly Max 20x) | If you work with it all day | 20× the Pro plan limits | EGP 6,970 / month | Every app a Bundle plan runs is listed on [AI subscriptions in Egypt](https://5abeer.ai/en/apps/egypt). Before you compare, be clear on the differences: - Every Bundle plan runs every official app, from the smallest to the largest. The plans differ in usage limits only. - On your own official account: Codex asks for your own ChatGPT account, and Google Antigravity asks for your own Google account. - Activated within minutes from the 5abeer AI app after you pay, as described in [How the subscription works](https://5abeer.ai/en/docs/subscriptions/how-it-works.md). - The subscription works in the desktop apps through the 5abeer AI app on Mac, Windows and Linux, not inside the phone apps. - Each plan has two limits, the 5-hour limit and the weekly limit, and your use in every app counts toward both. The details are in [Usage limits](https://5abeer.ai/en/docs/subscriptions/limits.md). - A 5abeer plan is not a Google One plan, so it doesn't include the Gemini app's paid features or storage. Our plans, Pro, Max (formerly Max 5x) and 5abeer's Ultra (formerly Max 20x), are 5abeer plans, not the OpenAI, Anthropic or Google plans of the same name. The full list of apps is on the [apps page](https://5abeer.ai/en/apps), and how to activate each app is in [One subscription for every AI app](https://5abeer.ai/en/guides/one-subscription-all-ai-apps). > Plans are for the supported apps. To use the models from your own code, create an API key. You pay for your plan from Egypt the way that suits you: We accept every mobile wallet in Egypt: Vodafone Cash, Orange Cash, Etisalat Cash (e& money), WE Pay and bank wallets, plus InstaPay. No bank card needed. You transfer the amount shown to you and then upload the receipt. The full steps are in [Payment methods](https://5abeer.ai/en/docs/start/payment.md). ## Which option suits you? | Your situation | Best value for you | | --- | --- | | You use AI lightly | The company's free plan | | You mostly use ChatGPT on your phone | ChatGPT Go or Plus from the App Store | | You only need Claude Code | Claude Pro, or a 5abeer plan | | You work with ChatGPT and Claude together on a computer | A 5abeer Bundle plan | | You code with Codex, Claude Code and Google Antigravity | A 5abeer Bundle plan | | You don't have an international card | The App Store with your Apple account, or a 5abeer plan paid by e-wallet | | You call the models from your own code | An API key | ## Frequently asked questions ### What is the cheapest ChatGPT subscription in Egypt? ChatGPT Go is the lowest-priced paid ChatGPT plan, and its Egyptian price in pounds is in the App Store table above. OpenAI says it may include ads and that Codex on it is limited. If you need ChatGPT and Codex on a computer, compare it with a 5abeer Bundle plan. ### What is the cheapest Claude subscription? Claude Pro is the lowest paid Claude plan, and it includes Claude Code. Paying for it yearly costs less than twelve monthly payments. Claude's free plan doesn't include Claude Code. ### Can you pay for AI subscriptions in Egyptian pounds? Yes. The Egyptian App Store lists ChatGPT, Claude and Gemini prices in pounds, and Google lists its Egyptian plan prices in pounds on its own page. OpenAI's and Anthropic's websites list prices in US dollars. 5abeer plans can be paid from Egypt by e-wallet or InstaPay. ### Do ChatGPT, Claude and Gemini have free plans? Yes. Each company has a free plan with lower limits than its paid plans. Claude's free plan doesn't include Claude Code, and ChatGPT's free plan has limited Codex access. ### Is a 5abeer plan better value than subscribing to each app separately? Subscribe to the official apps for less than their official price, with one Bundle plan running every app. Compare our plan prices with the official tables above. We don't promise limits that match the companies' plans: each 5abeer plan has a 5-hour limit and a weekly limit. ### Does a 5abeer subscription run on my own account? Yes, on your own official account: the subscription runs in each app under your own sign-in. ### Is 5abeer part of OpenAI, Anthropic or Google? No. 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. The apps our plans run are the official apps those companies publish. ## Sources Checked on 2026-11-11 - Apple: [ChatGPT on the App Store in Egypt](https://apps.apple.com/eg/app/chatgpt/id6448311069) - Apple: [Claude by Anthropic on the App Store in Egypt](https://apps.apple.com/eg/app/claude-by-anthropic/id6473753684) - Apple: [Google Gemini on the App Store in Egypt](https://apps.apple.com/eg/app/google-gemini/id6477489729) - Google: [Google AI plans in Egypt](https://gemini.google/eg/subscriptions/?hl=ar) - OpenAI: [ChatGPT pricing](https://chatgpt.com/pricing) - OpenAI: [What is ChatGPT Plus?](https://help.openai.com/en/articles/6950777-what-is-chatgpt-plus) - OpenAI: [Introducing ChatGPT Go](https://openai.com/index/introducing-chatgpt-go/) - OpenAI: [About ChatGPT Pro tiers](https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers) - Anthropic: [Claude pricing](https://claude.com/pricing) - Anthropic Help Center: [Payment methods for paid Claude plans](https://support.claude.com/en/articles/8325618) - Anthropic Help Center: [Why is Claude API usage billed separately from my paid Claude plan?](https://support.claude.com/en/articles/9876003-why-is-claude-api-usage-billed-separately-from-my-paid-claude-plan) - Google AI for Developers: [Billing](https://aistudio.google.com/docs/billing) - Apple: [Payment methods you can use with your Apple Account](https://support.apple.com/en-us/111741) --- URL: https://5abeer.ai/en/guides/claude-api-key-egypt # Claude API key in Egypt: how to get one and pay in EGP > Is the Claude API available in Egypt, how to create a key in the Claude Console, how prepaid credits work, why Egyptian cards fail, and how to pay in EGP. Updated: 2026-11-11 Yes. Egypt is on Anthropic's list of supported countries, so you can create a Claude API key in the Claude Console. But every request draws on prepaid credits bought by card in US dollars, and some Egyptian cards fail there. Or top up 5abeer in Egyptian pounds from any mobile wallet or InstaPay and call Claude below official prices. ## Is the Claude API available in Egypt? Yes. Egypt is on the list of countries and regions Anthropic supports access to the Claude API from, and on its Supported Regions Policy, which covers Claude.ai, the API and the developer platform. The policy goes by where you are when you use the service: Anthropic does not support use from inside an unsupported region. Official support doesn't mean the payment will always go through, though. For people paying from Egypt, the usual obstacle is the card, as we explain after the steps for creating a key. ## How to get a Claude API key from Anthropic Keys are created in the Claude Console, Anthropic's developer dashboard, where they are also called Anthropic API keys. These are Anthropic's own steps: ### 1. Sign in to the Claude Console Open the [Claude Console](https://platform.claude.com/) and sign in, or create an account if you don't have one. ### 2. Create the key Open the [API keys](https://platform.claude.com/settings/keys) page and choose Create key. Name the key, pick its expiration, and set the linked account to yourself. You can also scope it to a single workspace. ### 3. Copy and store the key The Console shows the full key, which starts with `sk-ant-`, only once, when you create it. Copy it somewhere safe. If you lose it, you can't view it again and will need to create a new one. ### 4. Buy credits On the [Billing](https://platform.claude.com/settings/billing) page, choose Buy credits, enter an amount and confirm the payment with your card. Only members with the Admin or Billing role can buy credits. Without credits, the key can't call the API. Anthropic's official SDKs read the key from the `ANTHROPIC_API_KEY` environment variable and set the request headers for you. A direct HTTP request sends the key in the `Authorization` header after the word `Bearer`, or in the `x-api-key` header, along with the `anthropic-version` header. Key types, expiry options and a test request are in [How to get a Claude API key](https://5abeer.ai/en/guides/claude-api-key). To keep the key safe once you have it, see [What an API key is and how to get one](https://5abeer.ai/en/guides/ai-api-key-guide). ## How paying for the Claude API works Anthropic doesn't sell the API as a monthly subscription. It sells prepaid credits. These are the rules as its help and documentation pages state them: - **Credits before usage:** You buy credits first, and each request is deducted from them at current prices. The same credits pay for Claude Code when you run it on a Console account. - **Card payment:** Anthropic accepts credit and debit cards, and does not accept third-party processors such as PayPal. All prices are in US dollars. - **Auto-reload:** You pick a balance; when your account falls to it, Anthropic buys credits to bring it back up to an amount you set. Each reload is a new charge on your card. - **How long credits last:** Credits expire one year after purchase, and that date can't be extended. - **Running out:** When credits run out, API calls stop until you add more. - **Monthly spend cap:** Every usage tier caps how much the organization can spend in a month. Once you reach the cap, usage pauses until the first of the next month unless you ask for a higher limit. New organizations may start with lower limits than usual, which rise automatically as usage history builds. ## How much does the Claude API cost per million tokens? Anthropic prices each model in US dollars per million tokens, with one price for input (what you send) and one for output (what the model writes). On these three models, output costs five times as much as input. These are the official prices, each next to ours: Claude Sonnet 5.5 (`claude-sonnet-5.5`) per 1M tokens: input $0.60 (official $2), output $3 (official $10). Official price checked November 21, 2026. Claude Opus 5.5 (`claude-opus-5.5`) per 1M tokens: input $1.20 (official $4), output $6 (official $20). Official price checked November 21, 2026. Claude Fable 5.1 (`claude-fable-5.1`) per 1M tokens: input $3 (official $10), output $15 (official $50). Official price checked November 21, 2026. Use every model priced per token through the API for 70% less than its official price. Every price shows the date it was last checked. Caching, the Batch API and how the bill adds up are covered in [Claude API pricing](https://5abeer.ai/en/guides/claude-api-pricing), and every Claude model's price is on the [Claude API page](https://5abeer.ai/en/api/claude). ## Why do Egyptian cards get declined for Claude credits? Banks don't tell Anthropic why they decline a card, so Anthropic's help page lists the likely causes. The ones that matter most when you pay from Egypt: - **The billing address doesn't match the bank's records.** Anthropic asks that the billing address match what your bank has on file and that the card's country be on the supported list, and says even small differences can cause a decline. - **Verification wasn't completed.** If your bank asks for a one-time code or a confirmation in its app, finish it before you close the payment page. - **The amount is more than what's available.** Make sure the card's balance or limit covers the full amount. - **The payment method isn't accepted.** Anthropic takes cards, not third-party processors such as PayPal. - **A temporary glitch.** A payment can fail because of a passing technical issue, so try again later or use another card. On the bank's side, international online purchases may be turned off on the card, or their monthly limit may be low. Here is a documented example from one bank; every bank sets its own limits: One Egyptian bank's example: credit card limits outside Egypt | Service | Item | Value | Note | Source | | --- | --- | --- | --- | --- | | Banque Misr | International use on a new credit card | Two months after issue | — | https://www.banquemisr.com/en/SMEs/Retail-Banking/Pages/Cards/Credit-Cards-Pages/Classic-Credit-Cards | | Banque Misr | Online purchases outside Egypt, no travel reported | EGP 10,000 a month | At most 8 a day, on the Classic card. | https://www.banquemisr.com/en/SMEs/Retail-Banking/Pages/Cards/Credit-Cards-Pages/Classic-Credit-Cards | Each row links to the page it comes from, checked October 31, 2026. These figures can change, so check the source before you buy. The same bank page lists a 3% commission on the transaction value for purchases outside Egypt on this card, so count it in. If a payment is declined, ask your bank for the exact reason before you try again. We cover what to check with your bank in [Fixing a declined card for ChatGPT, Claude and the API](https://5abeer.ai/en/guides/card-declined-ai-payment), and every way to pay from Egypt in [How to pay for the OpenAI or Claude API from Egypt](https://5abeer.ai/en/guides/pay-ai-api-from-egypt). ## Pay for the Claude API in Egyptian pounds without a card 5abeer is an independent service, not affiliated with Anthropic, OpenAI or Google. It serves Claude models through an API compatible with the Anthropic Messages API, plus GPT and Gemini models from the same balance, all below official prices. This is a 5abeer balance, not Anthropic credit, so you need neither a Claude Console account nor a card Anthropic accepts. Everything about paying for Claude from Egypt is on [Claude API in EGP](https://5abeer.ai/en/api/egypt/claude). The API needs no subscription: your wallet balance pays only for what you use, and the monthly plans are a separate product for the official apps. ### 1. Sign up and top up Sign up on the website with your email or Google account, choose top up in your dashboard, pay with a mobile wallet or InstaPay, and send the receipt. Every method and its steps are in [Payment methods](https://5abeer.ai/en/docs/start/payment.md). ### 2. Create a key for Claude models On the keys page, create a key for Claude models. Each key works with one provider's models, so if you need GPT or Gemini, create a key for each. All keys draw on the same balance, as explained in [Keys and authentication](https://5abeer.ai/en/docs/start/keys.md#per-provider). ### 3. Change the base URL Keep the Anthropic SDK as it is, and change only the base URL and the key: | Format | Base URL | Key header | | --- | --- | --- | | OpenAI | `https://api.5abeer.ai/v1` | `Authorization: Bearer ` | | Anthropic | `https://api.5abeer.ai` | `x-api-key: ` | | Gemini | `https://api.5abeer.ai/v1beta` | `x-goog-api-key: ` | The minimum API top-up is 10 EGP. After that, top up any amount. We accept every mobile wallet in Egypt: Vodafone Cash, Orange Cash, Etisalat Cash (e& money), WE Pay and bank wallets, plus InstaPay. No bank card needed. This is a full request in the Anthropic Messages format. It reads the key from the `KHABEER_API_KEY` environment variable: ```bash curl --request POST "https://api.5abeer.ai/v1/messages" \ --header "x-api-key: $KHABEER_API_KEY" \ --header "Content-Type: application/json" \ --header "anthropic-version: 2023-06-01" \ --data '{"model":"claude-sonnet-5.5","max_tokens":512,"messages":[{"role":"user","content":"Write a product idea in one sentence."}]}' ``` ```python import os import requests response = requests.post( "https://api.5abeer.ai/v1/messages", headers={ "x-api-key": os.environ['KHABEER_API_KEY'], "Content-Type": "application/json", "anthropic-version": "2023-06-01", }, json={ "model": "claude-sonnet-5.5", "max_tokens": 512, "messages": [ { "role": "user", "content": "Write a product idea in one sentence." } ] }, stream=False, timeout=60, ) response.raise_for_status() print(response.json()) ``` The same key runs Claude Code too; follow [Claude Code setup](https://5abeer.ai/en/docs/apps/claude-code.md). A 5abeer key doesn't work with Anthropic's official URL, so use it with our base URL only. Every key can have a spend limit, an expiry date and an IP allow-list, as shown in [Control every key](https://5abeer.ai/en/docs/start/keys.md#controls). ## What does Claude cost when you pay in EGP? Take a feature inside an app that sends five million tokens a month and gets one million back, on the default model, [`claude-sonnet-5.5`](https://5abeer.ai/en/models/claude-sonnet-5.5): Example: 5,000,000 input tokens and 1,000,000 output tokens on Claude Sonnet 5.5 (`claude-sonnet-5.5`) cost $6.00 at our price against $20.00 at the official price (70% lower). Official price checked November 21, 2026. These are Claude models you can call through the API now, with our price per million tokens: | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | Claude Sonnet 5.5 | `claude-sonnet-5.5` | $0.60 | $3 | 1M | | Claude Opus 5.5 | `claude-opus-5.5` | $1.20 | $6 | 1M | | Claude Fable 5.1 | `claude-fable-5.1` | $3 | $15 | — | How each request is charged to your balance is explained in [Pricing and balance](https://5abeer.ai/en/docs/start/pricing.md#cost). If you use GPT models too, their prices in pounds are in [OpenAI API price in Egyptian pounds](https://5abeer.ai/en/guides/openai-api-price-egypt). ## A direct Anthropic account or 5abeer credit? | | Direct Anthropic account | 5abeer credit | | --- | --- | --- | | How you pay | A credit or debit card, in US dollars | Any mobile wallet or InstaPay, in Egyptian pounds | | Price per token | The official price | Below the official price | | The key | Starts with `sk-ant-` and works with Anthropic's URL | Works with our Anthropic-compatible base URL | | Models | Claude models only | Claude, GPT and Gemini on one balance, with a key per provider | | Spending control | A monthly cap per tier, a limit you set, and workspaces | A spend limit, an expiry date and an IP allow-list on every key | | Best fit | Your card works and you need Anthropic platform features such as the Batch API | You want to pay in pounds and pay less per token | A direct account has its advantages. If your card works and you need a contract with Anthropic or features only its platform offers, going direct is the better fit. ## FAQ ### Can I create a Claude API key from Egypt? Yes. Egypt is on Anthropic's supported list for the API, so you create the account and the key in the Claude Console directly. Calling the models, though, needs credits bought with a credit or debit card that accepts international online purchases. ### How do I get a Claude API key? Sign in to the Claude Console, open the API keys page, choose Create key, and copy the key right away, because it is shown only once. Before the key works, your account needs credits from the Billing page. A 5abeer key, by contrast, is created in your dashboard after you top up in pounds. ### Is a Claude API key free? Anthropic charges for usage, not for the key: each request is deducted from prepaid credits by token count, and when the credits run out, API calls stop until you add more. ### Does the Vodafone Cash card work with the Claude Console? It depends on the card. Anthropic accepts credit and debit cards; the card must allow international online purchases, and the billing address must match the issuer's records, so ask the issuer before you try. If you want to pay from your wallet balance itself, top up 5abeer credit from the wallet directly. ### How long does Claude API credit last? Credit you buy from Anthropic expires one year after purchase, and that date can't be extended. That is why smaller, regular top-ups suit most projects. ### Does a Claude subscription include API credit? Anthropic's Max, Ultra and Team plans include monthly API credits once you link a Claude Console organization. Those credits are used before the credits you buy, expire at the end of each billing cycle, and can't be used in Claude Code or the Claude apps. ### Will my existing Anthropic code work with 5abeer? Yes, if it uses the Anthropic SDK or the Messages format. Change only the base URL and the key, as shown in [Base URLs](https://5abeer.ai/en/docs/start/base-urls.md). You can also call Claude models in the OpenAI format if your code is built on the OpenAI SDK. ### Is 5abeer part of Anthropic? No. 5abeer is an independent service, not affiliated with Anthropic, OpenAI or Google. We serve their models through our API below their official prices. ## Sources Checked on 2026-11-11 - [Anthropic's Supported Regions Policy](https://www.anthropic.com/supported-countries) - [Claude API supported regions](https://platform.claude.com/docs/en/api/supported-regions) - [Get your Claude API key](https://platform.claude.com/docs/en/get-api-key) - [Claude API overview: authentication and headers](https://platform.claude.com/docs/en/api/overview) - [How billing works for the Claude API in the Claude Console](https://support.claude.com/en/articles/8977456) - [Why was my card declined? (Claude Help Center)](https://support.claude.com/en/articles/9402418-why-was-my-card-declined) - [Claude API rate and spend limits](https://platform.claude.com/docs/en/api/rate-limits) - [Claude API pricing](https://platform.claude.com/docs/en/about-claude/pricing) - [Banque Misr Classic credit cards](https://www.banquemisr.com/en/SMEs/Retail-Banking/Pages/Cards/Credit-Cards-Pages/Classic-Credit-Cards) Our prices come from the live price list, and each row shows the date its official price was last checked. ## Get started Start on the [API in Egypt page](https://5abeer.ai/en/api/egypt), or compare Claude model prices on the [Claude API page](https://5abeer.ai/en/api/claude). --- URL: https://5abeer.ai/en/guides/ready-made-ai-account-risks # Ready-made ChatGPT Plus or Claude Pro account: the risks > A cheap ready-made ChatGPT Plus or Claude Pro account? What OpenAI's and Anthropic's terms say about sharing, the risks, and an option on your own account. Updated: 2026-11-11 A ready-made account means a seller hands you the email and password of a ChatGPT Plus or Claude Pro account, and often sells the same account to several people. OpenAI's and Anthropic's terms forbid sharing login details or making an account available to others, and let them suspend it. The seller can still sign in and read your chats. ## What is a ready-made account? Some online stores sell ChatGPT Plus or Claude Pro as a "ready-made account" for a low price in Egyptian pounds. It usually works the same way: the seller creates the account with their own email, pays for the subscription with their own payment method, then sends you the email and password to sign in with. The cheapest offers, sold as a "shared ChatGPT subscription", give the same account to several buyers at once. Each of them sees the others' chats, and they all draw from the same account's limits. So the real difference isn't the price. It's one question: whose account does the subscription run on? With a ready-made account, the account isn't yours, and you use it for as long as the seller lets you. ## What do OpenAI's terms say about sharing an account? [OpenAI's Terms of Use](https://openai.com/policies/row-terms-of-use/) took effect on 1 January 2026 and apply to individuals outside the European Economic Area, Switzerland and the UK, which includes users in Egypt. This is what they say about your account: - You may not share your account credentials or make your account available to anyone else. - You are responsible for all activity that happens under your account. - You must give accurate and complete information when you register the account. - OpenAI can suspend or end your access to its services, or delete your account, if it determines that you broke the terms or its usage policies, or that your use could cause harm to OpenAI, its users or anyone else. - An account holder who thinks a suspension was a mistake can appeal to OpenAI's support team. With a ready-made account, the account holder is the seller, not you. OpenAI's [Account Sharing Policy](https://help.openai.com/en/articles/10471989-openai-account-sharing-policy) explains why. An account is meant for the person who created it, and anyone else who needs OpenAI's services should create their own. It says sharing login credentials can expose personal data and payment information, and that several people on one account raises the risk of policy violations and misuse. Using your own account on more than one device is fine. ## What do Anthropic's terms say about a Claude account? [Anthropic's Consumer Terms](https://www.anthropic.com/legal/consumer-terms) took effect on 8 October 2025, and their rules are similar: - **Section 2:** You may not share your account login information or account credentials with anyone else, and you may not make your account available to anyone else. You are responsible for all activity under your account, and you must give correct, current and complete account information. - **Section 12:** Anthropic may suspend or terminate your access to the services, including any subscriptions, at any time without notice, if it believes you breached the terms or if it must do so to comply with law. In both cases a suspension hits the whole account. If a company suspends a ready-made account, everyone using it loses access to it and to the chats saved in it, whoever broke the rules. ## What are the practical risks of a ready-made account? Terms aside, these follow directly from the account not being yours: - **The seller can read your chats.** Anyone who knows the email and password can sign in at any time and read the chats and files saved in the account. On an account shared with other buyers, they can read them too. Don't put personal or work data in it. - **You can lose access at any moment.** The seller, or anyone else who knows the password, can change it or end your session. Anthropic, for example, lists the devices signed in to an account in its account settings, and the account holder can end any of those sessions, which makes that device sign in again. Because the email isn't yours, you can't recover the account yourself. - **The payment method isn't yours.** The subscription is paid with the seller's card or their App Store or Google Play account, so only they control renewal and cancellation. If their payment method fails at renewal, the subscription stops with it. - **Everyone splits the limits.** Anthropic says your use of every Claude surface, the website, Claude Code and Claude Desktop, counts toward one usage limit. When several people use the same account, they all draw from that same limit. ## How do you check an offer before you pay? Ask the seller these questions before paying anything: 1. Does the subscription run on my own account, with my own email? 2. Will you send me the login details of an account you own? 3. Will anyone other than me use this account? 4. Who owns the payment method that renews the subscription? 5. Will I get a receipt and an order number? If the account belongs to the seller, or you will use it alongside other people, it's a ready-made account with the risks above. And never give a seller the password to your own account. ## What is the official route from Egypt? The official route is to subscribe yourself, on your own account. OpenAI and Anthropic sell their plans inside the iPhone app through the App Store in Egyptian pounds, and on their websites in US dollars. These are the Egyptian App Store prices for ChatGPT and Claude plans, each row with its source and the date we checked it: | Plan | Market and channel | Official price | Billing | Source | Checked | | --- | --- | --- | --- | --- | --- | | ChatGPT Go | Egypt · App Store | EGP 249.99 | per month | https://apps.apple.com/eg/app/chatgpt/id6448311069 | 2026-11-15 | | ChatGPT Plus | Egypt · App Store | EGP 999.99 | per month | https://apps.apple.com/eg/app/chatgpt/id6448311069 | 2026-11-15 | | ChatGPT Pro 100 | Egypt · App Store | EGP 5,399.99 | per month | https://apps.apple.com/eg/app/chatgpt/id6448311069 | 2026-11-15 | | ChatGPT Pro 200 | Egypt · App Store | EGP 9,999.99 | per month | https://apps.apple.com/eg/app/chatgpt/id6448311069 | 2026-11-15 | | ChatGPT Pro 500 | Egypt · App Store | EGP 26,999.99 | per month | https://apps.apple.com/eg/app/chatgpt/id6448311069 | 2026-11-15 | | Claude Pro | Egypt · App Store | EGP 999.99 | per month | https://apps.apple.com/eg/app/claude-by-anthropic/id6473753684 | 2026-11-15 | | Claude Pro | Egypt · App Store | EGP 9,999.99 | per year | https://apps.apple.com/eg/app/claude-by-anthropic/id6473753684 | 2026-11-15 | | Claude Max | Egypt · App Store | EGP 6,999.99 | per month | https://apps.apple.com/eg/app/claude-by-anthropic/id6473753684 | 2026-11-15 | | Claude Ultra | Egypt · App Store | EGP 12,999.99 | per month | https://apps.apple.com/eg/app/claude-by-anthropic/id6473753684 | 2026-11-15 | The vendors' own prices as published at the source on the date checked; they can change. These are the vendor's official prices; 5abeer's prices are on the pricing page. - **In the iPhone app:** you pay with the payment method on your Apple account. In Egypt, an Apple account accepts Apple Account balance, Vodafone phone billing and most credit and debit cards, as listed on [Apple's payment methods page](https://support.apple.com/en-us/111741). - **On Anthropic's website:** Anthropic says it only accepts credit or debit cards for subscriptions bought on the web, and that the App Store or Google Play handles payment for subscriptions bought in the phone app. The steps for subscribing officially from Egypt are in [ChatGPT Plus price in Egypt](https://5abeer.ai/en/guides/chatgpt-plus-price-egypt) and [Claude Pro and Max price in Egypt](https://5abeer.ai/en/guides/claude-pro-max-price-egypt). ## The 5abeer option: the official apps on your own account If price or not having a card is what pushes you toward a ready-made account, 5abeer's plans run the official apps on your own official account, not on an account someone else owns. Subscribe to the official apps for less than their official price. These are our plan prices in your currency, as on the [pricing page](https://5abeer.ai/en/pricing): | 5abeer plan | Best for | Usage limits | Our price | | --- | --- | --- | --- | | Pro | For everyday use | A 5-hour limit and a weekly limit | EGP 797 / month | | Max (formerly Max 5x) | For heavy daily work | 5× the Pro plan limits | EGP 3,500 / month | | Ultra (formerly Max 20x) | If you work with it all day | 20× the Pro plan limits | EGP 6,970 / month | How this differs from a ready-made account: - **On your own official account.** You sign in to each app yourself: to ChatGPT Desktop with your ChatGPT account, and to Google Antigravity with your Google account. Your 5abeer account is separate, and you use it for the 5abeer AI app and the dashboard. What each app needs is in [App by app](https://5abeer.ai/en/docs/subscriptions/plan-apps.md#apps). - **Every official app.** Every Bundle plan runs every official app, from the smallest to the largest: ChatGPT Desktop, Codex, Claude Desktop, Claude Code and Google Antigravity. The details are on the [apps page](https://5abeer.ai/en/apps), including [ChatGPT](https://5abeer.ai/en/apps/chatgpt) and [Claude](https://5abeer.ai/en/apps/claude). - **Activated within minutes** from the 5abeer AI app after you pay, as described in [How the subscription works](https://5abeer.ai/en/docs/subscriptions/how-it-works.md#start). And you pay from Egypt in pounds: We accept every mobile wallet in Egypt: Vodafone Cash, Orange Cash, Etisalat Cash (e& money), WE Pay and bank wallets, plus InstaPay. No bank card needed. You transfer the amount shown to you and then upload the receipt. The steps are in [Payment methods](https://5abeer.ai/en/docs/start/payment.md#transfer). Before you decide, know what a plan doesn't include: - **No phone apps or websites.** A plan works in the desktop apps through 5abeer AI on Mac, Windows and Linux, not in the ChatGPT or Claude phone apps or on their websites. If you mostly use ChatGPT on your phone, the official subscription in the iPhone app suits you better. - **Its own limits.** Each plan has a 5-hour limit and a weekly limit, explained in [Usage limits](https://5abeer.ai/en/docs/subscriptions/limits.md). We don't promise limits matching the official plans. - **Not an OpenAI or Anthropic plan.** A 5abeer plan isn't ChatGPT Plus or Claude Pro. Our plan names, Pro, Max (formerly Max 5x) and Ultra (formerly Max 20x), are 5abeer's plan names. > Plans are for the supported apps. To use the models from your own code, create an API key. ## Which should you choose? | | Ready-made account from a seller | Official subscription on your account | 5abeer plan | | --- | --- | --- | --- | | Whose account | The seller's | Yours | Your own official account | | Who signs in | You, with details the seller sends, plus anyone else who has them | You | You, with your own account in each app | | Who pays the renewal | The seller | You, to OpenAI, Anthropic or Apple | You, to 5abeer in pounds | | Where it works | Wherever the account works, while you still have it | Phone, browser and computer | Desktop apps through 5abeer AI | | Limits | One account's limit, split among everyone on it | Set by OpenAI or Anthropic | 5abeer's 5-hour and weekly limits | For the full comparison between an official subscription and a 5abeer plan, read [5abeer vs an official subscription](https://5abeer.ai/en/guides/5abeer-vs-official). ## Frequently asked questions ### Is buying a ready-made ChatGPT Plus account allowed? OpenAI's Terms of Use forbid sharing account credentials or making an account available to anyone else, and a ready-made account is exactly that: the seller hands you the login details of their account. OpenAI can suspend or delete the account if it determines the terms were broken. ### Is a ready-made Claude Pro account any different? No. Anthropic's Consumer Terms forbid sharing your login information or making your account available to others, and let Anthropic suspend access, including subscriptions, at any time without notice if it believes the terms were breached. ### Can the seller read my chats? Yes, as long as it's their account. Anyone who knows the email and password can sign in and read the chats saved in the account, and so can everyone else using the same account. ### Is a cheap shared ChatGPT subscription a good idea? It's one account used by several people, which is what the terms forbid outright. OpenAI says an account is meant for the person who created it, and that anyone else should create their own. Everyone on it splits the limits and sees each other's chats. ### What should I do if I already bought a ready-made account? Don't put personal or work data in it, and keep anything important outside the account, because you could lose access at any time. When the period you paid for ends, subscribe on your own account, officially or with a 5abeer plan. ### Is a 5abeer plan a ready-made account? No. The subscription runs on your own official account: you sign in to each app yourself, and your 5abeer account is separate. A 5abeer plan isn't ChatGPT Plus or Claude Pro, and it works in desktop apps, not on your phone or the websites. ### How do I pay 5abeer from Egypt? We accept every mobile wallet in Egypt: Vodafone Cash, Orange Cash, Etisalat Cash (e& money), WE Pay and bank wallets, plus InstaPay. No bank card needed. The steps are in [Payment methods](https://5abeer.ai/en/docs/start/payment.md#transfer). ## Sources Checked on 2026-11-11. OpenAI's pages refuse automated fetches, so we read their text through the public reader r.jina.ai: - OpenAI: [Terms of Use](https://openai.com/policies/row-terms-of-use/) and [ChatGPT pricing](https://chatgpt.com/pricing) - OpenAI Help Center: [OpenAI Account Sharing Policy](https://help.openai.com/en/articles/10471989-openai-account-sharing-policy) - Anthropic: [Consumer Terms of Service](https://www.anthropic.com/legal/consumer-terms) and [Claude pricing](https://claude.com/pricing) - Anthropic Help Center: [Managing your active sessions](https://support.claude.com/en/articles/13124001-managing-your-active-sessions), [How do usage and length limits work?](https://support.claude.com/en/articles/11647753-how-do-usage-and-length-limits-work) and [Paid plan billing FAQs](https://support.claude.com/en/articles/8325618-paid-plan-billing-faqs) - App Store Egypt: [ChatGPT](https://apps.apple.com/eg/app/chatgpt/id6448311069) and [Claude](https://apps.apple.com/eg/app/claude-by-anthropic/id6473753684) - Apple: [Payment methods that you can use with your Apple Account](https://support.apple.com/en-us/111741) Each row in the App Store price table shows its own source and the date we checked it. > 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. --- URL: https://5abeer.ai/en/guides/arabic-token-cost # Arabic token cost: why Arabic uses more tokens and the fix > Why the same text costs more tokens in Arabic than in English, measured on a real tokenizer, with a cost example and ways to cut Arabic token use. Updated: 2026-11-04 Arabic usually costs more per message than English: the price per token is the same in every language, but the same meaning splits into more tokens. On o200k_base, OpenAI's tokenizer for its recent GPT models, our Arabic test texts used 1.2 to 1.5 times the tokens of their English originals. Diacritics and Arabic-Indic digits widen the gap. ## Why Arabic uses more tokens A model doesn't read words. A tokenizer first cuts the text into pieces from a fixed vocabulary, and the provider bills every piece the model reads and writes. Common English words are often one piece each. Many Arabic words split into two to four. Attached letters are not the main cause. «وسيكتبونها» is 4 tokens, while "and they will write it" is 5. «وبكتبهم» is 3, while "and with their books" is 4. The gap comes from ordinary words that split: | Text | Tokens | How it splits | | --- | --- | --- | | Your subscription renews automatically every month. | 8 | Your · subscription · renew · s · automatically · every · month · . | | يتجدد اشتراكك تلقائيًا كل شهر. | 12 | يت · ج · دد · اشت · راك · ك · تلق · ائي · ًا · كل · شهر · . | Across our four test texts, English used 1.13 tokens per word and Arabic used 1.91. The Arabic versions had fewer words (204 against 269), but not enough to close the gap. ## What we measured We wrote four English texts, translated each into Modern Standard Arabic and counted both with OpenAI's tiktoken library (version 0.14.0) on o200k_base, on 2026-11-01: | Text | English | Arabic | Arabic ÷ English | | --- | --- | --- | --- | | Support reply | 81 | 101 | 1.25 | | Product description | 70 | 104 | 1.49 | | Model instruction | 73 | 85 | 1.16 | | Short explainer | 80 | 100 | 1.25 | | All four | 304 | 390 | 1.28 | Three more results from the same test: - **Older tokenizers are much worse.** On cl100k_base, which OpenAI's library maps to its older GPT models, the English counts stayed the same and the four Arabic texts took 858 tokens: 2.82 times the English. - **Diacritics multiply the count.** The support reply with full diacritics took 345 tokens, against 101 without them: 3.4 times. - **Digits matter too.** A short order notice with dates and amounts took 39 tokens in English, 43 in Arabic with Western digits (0–9) and 53 with Arabic-Indic digits (٠–٩). We also counted the prose of 48 pages of our own documentation, which we publish in both languages. There, Arabic took 1.18 times the English tokens (median 1.20, range 1.06 to 1.34). Technical pages keep model names, commands and paths in Latin script, and those count the same in both languages, so the gap narrows. The ratio depends on the text, so count your own. ## Do Claude and Gemini count Arabic the same way? No. Each provider uses its own tokenizer, so the same Arabic text gives a different count on each one, and the ratios above hold for o200k_base only. | Models | Tokenizer | How to count | | --- | --- | --- | | GPT | o200k_base | Offline, with the tiktoken library | | Claude | Anthropic's own | The [count_tokens](https://5abeer.ai/en/docs/api/messages.md#count-tokens) endpoint | | Gemini | Google's own | The [countTokens](https://5abeer.ai/en/docs/api/gemini.md#auth) method | Anthropic describes its token count as an estimate, and notes that its newer Claude models use a newer tokenizer that produces more tokens for the same text, so recount your prompts after you switch models. Google's rule of thumb, about 4 characters per token or 60 to 80 English words per 100 tokens, is a general estimate; count Arabic text directly. Either way, the bill follows the `usage` field in each response. ## A cost example Say a support bot handles 3,000 chats a month. In English, each chat averages 1,500 input tokens (instructions, history and the customer's message) and 300 output tokens. That is 4.5 million input and 0.9 million output tokens a month on [`gpt-6.1-sol`](https://5abeer.ai/en/models/gpt-6.1-sol): GPT-6.1 Sol (`gpt-6.1-sol`) per 1M tokens: input $0.60 (official $2), output $3 (official $10). Official price checked November 21, 2026. Example: 4,500,000 input tokens and 900,000 output tokens on GPT-6.1 Sol (`gpt-6.1-sol`) cost $5.40 at our price against $18.00 at the official price (70% lower). Official price checked November 21, 2026. The same bot in Arabic, at about 1.3 times the tokens (the ratio across our four texts), uses 5.85 million input and 1.17 million output tokens: Example: 5,850,000 input tokens and 1,170,000 output tokens on GPT-6.1 Sol (`gpt-6.1-sol`) cost $7.02 at our price against $23.40 at the official price (70% lower). Official price checked November 21, 2026. The price per token is identical in both runs. Only the count changes, and the difference grows with your volume. One caveat for this model: we measured the 1.3 ratio on o200k_base, and OpenAI's tiktoken library does not list a tokenizer for the newest GPT models, this one included. Treat the ratio as an estimate here, and check it against `usage` on your own Arabic traffic. ## Six ways to cut Arabic tokens 1. **Keep fixed instructions in English.** The system prompt is sent with every request. Our model instruction took 73 tokens in English and 85 in Arabic, and the model can still reply in Arabic. 2. **Skip diacritics unless the meaning depends on them.** Full diacritics took 345 tokens against 101 for the same reply. 3. **Use Western digits in data.** Keep 0–9 in prompts and stored data, and convert to Arabic-Indic digits for display if you need them. 4. **Cap and shorten replies.** Output costs more than input on every chat model in our list. Ask for short answers and set a limit: `max_completion_tokens` in [Chat Completions](https://5abeer.ai/en/docs/api/chat-completions.md#params), `max_output_tokens` in [Responses](https://5abeer.ai/en/docs/api/responses.md#params) or `max_tokens` in [Messages](https://5abeer.ai/en/docs/api/messages.md#params). 5. **Cache long fixed parts.** Long instructions or reference text that repeat on every request can be cached, and cache reads are billed below normal input. Claude needs `cache_control`, and GPT caches long repeated prefixes automatically. The details are in [Prompt caching](https://5abeer.ai/en/docs/api/caching.md). 6. **Use a smaller model for simple tasks.** GPT models on the same tokenizer count the same text the same way, so a smaller model cuts the price per token, not the count. Compare prices on the [models page](https://5abeer.ai/en/models). ## Count tokens before you send For GPT models you can count offline. This script counts the two sentences from the table above: ```python import tiktoken enc = tiktoken.get_encoding("o200k_base") for text in ["Your subscription renews automatically every month.", "يتجدد اشتراكك تلقائيًا كل شهر."]: print(len(enc.encode(text)), text) ``` It prints 8 and 12. For Claude models, send the request body without `max_tokens` to `POST /v1/messages/count_tokens`. It returns `input_tokens` without running the model. If it returns 404, send one short real request and read its `usage`. For Gemini models, use countTokens. In production, log `usage` from every response: it holds the tokens you are billed for. ## How it works on 5abeer Each model on 5abeer has one price per million tokens for input and one for output, the same for Arabic and English text. A request costs the tokens in its `usage` times that model's price, and every API price is below the model's official price. ### 1. Create a key Create an API key in your dashboard. The steps are in [Create a key](https://5abeer.ai/en/docs/start/keys.md#create). ### 2. Add balance Top up your balance with one of the [payment methods](https://5abeer.ai/en/docs/start/payment.md#methods). Requests draw from it, as described in [Balance](https://5abeer.ai/en/docs/start/pricing.md#balance). ### 3. Measure your own text Send a few typical Arabic prompts and read `usage` in each response. That gives your real ratio and cost per request. ### 4. Watch usage Check spending by key and by model in [Usage](https://5abeer.ai/en/docs/start/pricing.md#usage). Prices for every model are on the [models page](https://5abeer.ai/en/models) and the [API page](https://5abeer.ai/en/api). ## Questions ### Is Arabic priced higher per token? No. A token costs the same in every language. An Arabic message costs more only because the same meaning takes more tokens. ### How many tokens is one Arabic word? On o200k_base, our four Arabic texts averaged about 1.9 tokens per word, counting words by spaces, against about 1.1 for the English texts. Arabic attaches small words such as "and" and "the" to the next word, so the same meaning takes fewer words, but each word splits into more tokens. ### Should I translate Arabic to English before sending? Usually not. The translation costs tokens of its own and can shift the meaning. Keep the fixed instructions in English and send the customer's text as it is. ### Do these ratios hold for Claude and Gemini? No. We measured o200k_base, the tokenizer of recent GPT models. Claude and Gemini use their own tokenizers, so count with count_tokens or countTokens. ### Are cached tokens billed at the full price? No. Cached tokens are billed at the lower cache read price shown on each model's page. ## Sources Checked on 2026-11-04: - OpenAI: [tiktoken](https://github.com/openai/tiktoken) and its [model-to-encoding table](https://github.com/openai/tiktoken/blob/main/tiktoken/model.py) - Anthropic: [Token counting](https://platform.claude.com/docs/en/build-with-claude/token-counting) - Google AI Studio docs: [Understand and count tokens](https://aistudio.google.com/docs/tokens) - 5abeer test: four English texts and their Arabic translations, plus the prose of 48 documentation pages, counted with tiktoken 0.14.0 on 2026-11-01 > 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. ## Get started Compare prices on the [API page](https://5abeer.ai/en/api), or create a key and measure your own Arabic text in `usage`. --- URL: https://5abeer.ai/en/guides/gpt-6-api-pricing # GPT API pricing: Astra, Sol, Terra and Luna per 1M tokens > Official GPT API prices per million tokens for Astra, Sol, Terra and Luna, how caching, batch and long prompts change the bill, and our lower prices. Updated: 2026-11-04 OpenAI's newest GPT models are priced per million tokens, and on all four of them output costs five times input. Luna is the cheapest, Terra costs ten times Luna, Sol twice Terra, and Astra five times Sol. Caching, batch and long prompts then change the bill. Below: the official rates, how a bill adds up, and our prices. ## What does the GPT API cost per million tokens? OpenAI prices each model per million tokens, with separate rates for input, cached input and output. These are the Standard list prices for the four newest models, Astra, Sol, Terra and Luna, with the modifiers that apply on top. Sol has two current versions, 6.0 and 6.1, at the same input and output price. Official OpenAI API prices per 1M tokens | Service | Item | Value | Note | Source | | --- | --- | --- | --- | --- | | OpenAI | gpt-6-astra: per 1M input tokens | $10 | — | https://developers.openai.com/api/docs/pricing | | OpenAI | gpt-6-astra: per 1M output tokens | $50 | Reasoning tokens are billed as output. | https://developers.openai.com/api/docs/pricing | | OpenAI | gpt-6-astra: per 1M cached input tokens | $1 | — | https://developers.openai.com/api/docs/pricing | | OpenAI | gpt-6.1-sol: per 1M input tokens | $2 | — | https://developers.openai.com/api/docs/pricing | | OpenAI | gpt-6.1-sol: per 1M output tokens | $10 | Reasoning tokens are billed as output. | https://developers.openai.com/api/docs/pricing | | OpenAI | gpt-6.1-sol: per 1M cached input tokens | $0.10 | Half the cached price of gpt-6-sol. | https://developers.openai.com/api/docs/pricing | | OpenAI | gpt-6-sol: per 1M input tokens | $2 | — | https://developers.openai.com/api/docs/pricing | | OpenAI | gpt-6-sol: per 1M output tokens | $10 | Reasoning tokens are billed as output. | https://developers.openai.com/api/docs/pricing | | OpenAI | gpt-6-sol: per 1M cached input tokens | $0.20 | — | https://developers.openai.com/api/docs/pricing | | OpenAI | gpt-6.1-terra: per 1M input tokens | $1 | — | https://developers.openai.com/api/docs/pricing | | OpenAI | gpt-6.1-terra: per 1M output tokens | $5 | Reasoning tokens are billed as output. | https://developers.openai.com/api/docs/pricing | | OpenAI | gpt-6.1-terra: per 1M cached input tokens | $0.05 | — | https://developers.openai.com/api/docs/pricing | | OpenAI | gpt-6-luna: per 1M input tokens | $0.10 | — | https://developers.openai.com/api/docs/pricing | | OpenAI | gpt-6-luna: per 1M output tokens | $0.50 | Reasoning tokens are billed as output. | https://developers.openai.com/api/docs/pricing | | OpenAI | gpt-6-luna: per 1M cached input tokens | $0.01 | — | https://developers.openai.com/api/docs/pricing | | OpenAI | Cache write, 30 minutes | 1.25x the input price | — | https://developers.openai.com/api/docs/pricing | | OpenAI | Cache write, 12 hours | 2.5x the input price | — | https://developers.openai.com/api/docs/pricing | | OpenAI | Long context: over 272K input tokens | 2x the input price, 1.5x the output price | Cache prices double as well. | https://developers.openai.com/api/docs/pricing | | OpenAI | Batch API discount | 50% | Off the Standard price, on input and output. | https://developers.openai.com/api/docs/pricing | | OpenAI | Flex processing discount | 50% | The same as the Batch discount. | https://developers.openai.com/api/docs/pricing | | OpenAI | Fast mode | 2x the Standard price | Called Priority processing until July 30, 2026. | https://developers.openai.com/api/docs/pricing | | OpenAI | Ultrafast mode | 6x the Standard price | Only on gpt-6-astra and gpt-6.1-sol. | https://developers.openai.com/api/docs/pricing | | OpenAI | Regional processing (data residency) uplift | 10% | For models released on or after March 5, 2026. | https://developers.openai.com/api/docs/pricing | | OpenAI | Web search tool, per 1,000 calls | $10 | Plus the search content tokens at the model's rates. | https://developers.openai.com/api/docs/pricing | Each row links to the page it comes from, checked November 1, 2026. These figures can change, so check the source before you buy. Three things on that page are easy to miss. First, cached input usually costs a tenth of the input price, but on Sol 6.1 and Terra it costs a twentieth. That makes Sol 6.1 the better buy of the two Sols: the token prices are equal and its cache costs half as much. Second, a request with more than 272K input tokens is billed at long-context rates: twice the input price and one and a half times the output price, and the cache prices double too. Third, on these models writing to the cache costs extra: 1.25 times the input price for the default 30-minute cache, or 2.5 times for the optional 12-hour cache. ## How is a GPT API bill calculated? Each request is the sum of up to five parts, each with its own rate: - **Input tokens:** everything you send that is not read from the cache, including the instructions, the conversation so far and the tool definitions. - **Cached input tokens:** when a request starts with the same prefix as a recent one, that part is billed at the cached-input rate. Caching is on by default for prompts of 1,024 tokens or more. The response shows the count in `usage.input_tokens_details.cached_tokens` in the Responses API, or in `usage.prompt_tokens_details.cached_tokens` in Chat Completions. - **Cache writes:** storing a new prefix costs 1.25 times the input rate for 30 minutes, or 2.5 times for 12 hours. - **Output tokens:** everything the model writes, including its hidden reasoning. In OpenAI's Responses API, the field `usage.output_tokens_details.reasoning_tokens` shows how many of the billed output tokens were reasoning. - **Tools:** web search is charged per call, plus the search content tokens it adds, billed at the model's rates. Then the processing tier changes the price of every token. Batch and Flex cost half the Standard price for work that can wait, and a batch finishes within 24 hours. Fast mode, called Priority processing until July 30, 2026, costs twice the Standard price. Ultrafast costs six times as much and is offered only on Astra and Sol 6.1. Regional processing (data residency) adds 10% on models released on or after March 5, 2026. Reasoning depth is the other lever you control. A lower reasoning effort usually means fewer reasoning tokens billed as output, at some cost in quality on hard tasks. Our [Responses reference](https://5abeer.ai/en/docs/api/responses.md#params) lists the effort values it accepts. ### A worked caching example Say an agent sends the same 100,000-token set of instructions ten times within 30 minutes on Sol 6.1. Without caching, you pay for 1,000,000 input tokens at the full input rate. With caching, you pay for one write at 1.25 times the input rate and nine cached reads at a twentieth of it. In input-rate units that is 125,000 plus 45,000, or 170,000 instead of 1,000,000: about 83% less on that part of the bill. On Sol 6.0, where cached input costs a tenth, the reads come to 90,000 and the saving is about 79%. Output does not change, and a cache hit is likely but not certain, so check the cached-token field on real traffic. [Prompt caching](https://5abeer.ai/en/docs/api/caching.md#gpt) explains how caching works with GPT models here. ## Is the newest generation cheaper than the last one? Mostly, yes. At the prices OpenAI lists today: - [Sol 6.1](https://5abeer.ai/en/models/gpt-6.1-sol) and [Sol 6.0](https://5abeer.ai/en/models/gpt-6-sol) cost half as much as `gpt-5.6-sol` on input and output. On cached input, Sol 6.1 costs a quarter as much and Sol 6.0 half as much. OpenAI notes that the current price of the older Sol is promotional and available until November 30, 2026. - Terra costs half as much as `gpt-5.6-terra` on input, less than half on output, and a quarter on cached input. - [Luna](https://5abeer.ai/en/models/gpt-6-luna) costs half as much as `gpt-5.6-luna` on input and cached input, and less than half on output. - [Astra](https://5abeer.ai/en/models/gpt-6-astra) is the exception. It is OpenAI's most capable model, and it costs twice as much as `gpt-5.5` on input and two-thirds more on output. Moving to the newer generation cuts the token price, but test quality on your own tasks before you switch a workload. ## What do the same models cost through 5abeer? 5abeer sells GPT models through an OpenAI-compatible API, paid from your balance, below the official list price. The list below reads our current prices from the live catalog, so it stays correct when they change. The OpenAI models we offer on the API today: | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | GPT-6.2 Sol | `gpt-6.2-sol` | $0.60 | $3 | — | | GPT-6.2 Astra | `gpt-6.2-astra` | $2.40 | $12 | — | | GPT-6.1 Sol | `gpt-6.1-sol` | $0.60 | $3 | 922K | | GPT-6 Astra | `gpt-6-astra` | $3 | $15 | — | | GPT-6 Sol | `gpt-6-sol` | $0.60 | $3 | 922K | Every model, with its prices, is on [the models page](https://5abeer.ai/en/models), and each model's own page lists our cache prices. [The caching guide](https://5abeer.ai/en/docs/api/caching.md#usage) shows where each response reports cached tokens. ## Which GPT model should you pick? Price per token is only half the decision. A cheaper model that needs three attempts can cost more than a stronger one that gets it right the first time. OpenAI's own advice is to start with Astra if you are not sure. From there: - **Astra** is OpenAI's most capable model, for the most demanding work. At five times Sol's token price, use it where you have measured a quality gap. - **Sol 6.1** comes close to Astra on complex work at a fifth of the price. Prefer it to Sol 6.0: the token prices are the same and its cache costs half as much. - **Terra** is OpenAI's fast, efficient model for visual reasoning, computer use and clear writing, at half of Sol's price. - **Luna** is the cheapest, built for focused, high-volume tasks such as short classification or extraction jobs. A common pattern is to split work by task: the cheap model for the bulk of simple requests, and the strong one for the steps that need it. Because every model is billed per token from the same balance, switching costs nothing beyond the tokens. For coding agents, see [Codex with 5abeer](https://5abeer.ai/en/apps/codex), the [Codex setup docs](https://5abeer.ai/en/docs/apps/codex.md) and [how to run Codex CLI with an API key](https://5abeer.ai/en/guides/codex-cli-api-key). ## How do you buy GPT API access through 5abeer? 1. **Create a key** in your dashboard. [API keys](https://5abeer.ai/en/docs/start/keys.md) explains the spend limit, expiry date and IP allow-list you can set on each key. 2. **Add balance.** API usage is deducted from your balance, token by token. 3. **Point your client** at our OpenAI-compatible base URL and use a model id from the list above. [The OpenAI API page](https://5abeer.ai/en/api/openai) lists the base URL and current prices, and [Base URLs](https://5abeer.ai/en/docs/start/base-urls.md) gives the address for each API format. Batch, Flex, Fast and Ultrafast are OpenAI's processing tiers. Our docs do not list them, so plan your costs with us on regular requests. To compare GPT with the Claude and Gemini models on the same balance, see [the API page](https://5abeer.ai/en/api). For the app plans, see [the apps](https://5abeer.ai/en/apps) and [pricing](https://5abeer.ai/en/pricing). ## Questions ### Are reasoning tokens billed as output? Yes, even though the response does not show them. In OpenAI's Responses API, the usage field `output_tokens_details.reasoning_tokens` counts them, and a lower reasoning effort usually means fewer. ### Does a long prompt cost more per token? Yes, past 272K input tokens. Such a request pays twice the input price, one and a half times the output price and double the cache prices. Shorter requests pay the Standard rates. ### Is caching automatic? Yes, for prompts of 1,024 tokens or more. The request that stores a prefix pays 1.25 times the input price, so caching pays off only when the prefix is read again before it expires. Put the stable part of the prompt first to raise the hit rate. ### Is the Batch API worth it? If your requests can wait up to 24 hours, it halves the input and output prices at OpenAI. Flex processing gives the same discount on regular requests that may run more slowly. Our docs do not list either option. ### Do Responses and Chat Completions cost the same? Yes. OpenAI does not price the Responses, Chat Completions, Realtime, Batch or Assistants APIs separately: you pay the model's token rates. Both are available with us, in the [Responses](https://5abeer.ai/en/docs/api/responses.md) and [Chat Completions](https://5abeer.ai/en/docs/api/chat-completions.md) references. ### How is web search charged? Per call, at the price per 1,000 calls in the table above, plus the search content tokens it adds, billed at the model's rates. ### Is a ChatGPT subscription cheaper than the API? It depends on how much you use and where. A subscription works inside the apps, while the API is paid per token from your balance. [AI subscription vs API](https://5abeer.ai/en/guides/ai-subscription-vs-api) explains the difference and which one you need. ## Sources Checked on 2026-11-01: - [Pricing](https://developers.openai.com/api/docs/pricing), OpenAI API docs - [Models](https://developers.openai.com/api/docs/models), OpenAI API docs - [Prompt caching](https://developers.openai.com/api/docs/guides/prompt-caching), OpenAI API docs - [Reasoning models](https://developers.openai.com/api/docs/guides/reasoning), OpenAI API docs - [Batch API](https://developers.openai.com/api/docs/guides/batch), OpenAI API docs > 5abeer is an independent service, not affiliated with OpenAI. --- URL: https://5abeer.ai/en/guides/gemini-openai-sdk # Use Gemini with the OpenAI SDK: base URL, code and limits > How to call Gemini models with the OpenAI Python and JavaScript SDKs: the base URL, the key, the model ids, which options work, the limits and the errors. Updated: 2026-11-04 Yes. The OpenAI SDK can call Gemini models: point its base URL at an OpenAI-compatible endpoint, use a key that endpoint accepts, and pass a Gemini model id. Google runs one with a Gemini API key, and 5abeer runs `https://api.5abeer.ai/v1` with a 5abeer key for Gemini models. On 5abeer, call Chat Completions, not Responses. ## How does the OpenAI SDK call Gemini? The OpenAI SDK doesn't check who runs the server. It joins the base URL with a path such as `/chat/completions`, sends the key in the `Authorization` header, and reads a reply in OpenAI's shape. Any service that answers in that shape works with it. So calling Gemini comes down to three settings: | Setting | Google's OpenAI endpoint | 5abeer | | --- | --- | --- | | Base URL | `https://generativelanguage.googleapis.com/v1beta/openai/` | `https://api.5abeer.ai/v1` | | Key | A Gemini API key from Google AI Studio | A 5abeer key for Gemini models | | Model | A Gemini model id | A Gemini model id, such as `gemini-4-argon` | The rest of your code stays the same: the client, the `messages` list and the way you read the reply. If the base URL is new to you, [What is a base URL](https://5abeer.ai/en/guides/what-is-base-url) explains how the SDK builds each address. ## Call Gemini from Python Install the library with `pip install openai`, put your key in the `KHABEER_API_KEY` environment variable, and pass the 5abeer base URL to the client: ```python import os from openai import OpenAI client = OpenAI( base_url="https://api.5abeer.ai/v1", api_key=os.environ["KHABEER_API_KEY"], timeout=900, # seconds: a hard prompt can take several minutes ) response = client.chat.completions.create( model="gemini-4-argon", messages=[ {"role": "system", "content": "Answer in two sentences."}, {"role": "user", "content": "What is a context window?"}, ], ) print(response.choices[0].message.content) ``` To use another Gemini model, change `model` and nothing else. The key must be one created for Gemini models: each 5abeer key works with one provider's models. The `timeout` gives a long thinking reply time to finish; for long tasks, stream the reply instead, as the limits below explain. ## Call Gemini from JavaScript The Node.js library works the same way. Install it with `npm install openai`; the option is called `baseURL`, and `timeout` is in milliseconds: ```javascript import OpenAI from "openai"; const client = new OpenAI({ baseURL: "https://api.5abeer.ai/v1", apiKey: process.env.KHABEER_API_KEY, timeout: 15 * 60 * 1000, }); const response = await client.chat.completions.create({ model: "gemini-4-argon", messages: [{ role: "user", content: "What is a context window?" }], }); console.log(response.choices[0].message.content); ``` Both libraries also read the base URL from `OPENAI_BASE_URL` and the key from `OPENAI_API_KEY` when you don't pass them in code. A project that already calls Chat Completions can move to Gemini by setting those two variables and changing the model id. ## Which Gemini models can I use? The Gemini models you can call now, from the live catalog: | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | Gemini 4 Argon | `gemini-4-argon` | $0.60 | $3 | — | | Gemini 2.5 Pro | `gemini-2.5-pro` | $0.38 | $3 | 1M | | Gemini 3.8 Flash | `gemini-3.8-flash` | $0.23 | $1.13 | — | | Gemini 3 Flash | `gemini-3-flash` | $0.15 | $0.90 | 1M | | Gemini 3.1 Pro | `gemini-3.1-pro` | $0.60 | $3.60 | 1M | Each model's page, such as [`gemini-4-argon`](https://5abeer.ai/en/models/gemini-4-argon), shows its context window, the inputs it reads and its prices. Google describes it as its flagship reasoning model. For quick, lighter calls, [`gemini-3.8-flash`](https://5abeer.ai/en/models/gemini-3.8-flash) is its most capable Flash model. The full [models list](https://5abeer.ai/en/models) has every provider. In code, `client.models.list()` returns the models your key can use, as in [List models](https://5abeer.ai/en/docs/api/models.md#ex-list). ## Why Chat Completions and not Responses? The OpenAI SDK has two ways to ask for a reply: `client.chat.completions.create` and the newer `client.responses.create`. On 5abeer, Gemini models are served on Chat Completions and not on Responses. Claude and GPT models work on both, so a project that mixes providers should send its Gemini calls through Chat Completions. The full reference is in [Chat Completions](https://5abeer.ai/en/docs/api/chat-completions.md). ## Which OpenAI options work with Gemini? 5abeer's [Chat Completions reference](https://5abeer.ai/en/docs/api/chat-completions.md#params) lists what each option does with Gemini models, as measured against 5abeer itself. An ignored option doesn't cause an error: the request goes through, and the option has no effect. Where Google documents a change for its newer models, the table says so. | Option | With Gemini models on 5abeer | | --- | --- | | `messages` with the `system`, `user`, `assistant` and `tool` roles | Supported, images included | | `max_completion_tokens` or `max_tokens` | Supported; the model's thinking counts toward the limit | | `temperature` and `top_p` | Passed on, but Google ignores them on newer models such as `gemini-4-argon` and `gemini-3.8-flash` | | `stream` and `stream_options` | Supported | | `tools` | Supported | | `tool_choice` and `parallel_tool_calls` | Ignored: the model decides when to call a tool | | `response_format` | Ignored: use a tool with a schema | | `reasoning_effort` | Ignored: set the thinking level in Gemini's own format | | `stop` | Ignored: use `stop_sequences` in [Messages](https://5abeer.ai/en/docs/api/messages.md#params) | | `n`, `seed`, the penalties, `logprobs`, `logit_bias` and `user` | Ignored | Images go in the `content` list of a `user` message, as a `data:` URL in Base64 or a public `https` URL, as in [Images in the request](https://5abeer.ai/en/docs/api/chat-completions.md#vision). The OpenAI [Embeddings](https://5abeer.ai/en/docs/api/embeddings.md) and [Images](https://5abeer.ai/en/docs/api/images.md) endpoints serve GPT models only, so a Gemini key gets [`not_found_error`](https://5abeer.ai/en/docs/help/errors.md#not_found_error) there. The Gemini image models generate images through [generateContent](https://5abeer.ai/en/docs/api/gemini.md#image). ## What limits should I plan for? Google documents these limits for `gemini-4-argon` and `gemini-3.8-flash`. On 5abeer, each model's page shows the context window you can use there. - **Context:** `gemini-4-argon` has one window of 1,048,576 tokens that holds the input, the thinking and the reply together. `gemini-3.8-flash` reads up to 1,048,576 input tokens. - **Reply length:** both models write up to 65,536 tokens in one reply, thinking included. Longer replies from `gemini-4-argon` are documented for Google's own APIs, not for the OpenAI format. - **Token limit:** if `max_completion_tokens` is too low, the model can use it all on thinking and return a short or empty reply. For `gemini-4-argon`, Google advises at least 32,768 when you set a limit. To spend fewer tokens, lower the thinking level instead. - **Thinking levels:** both models think at `medium` by default and accept `low`, `medium` and `high`. - **Time:** a hard prompt on `gemini-4-argon` can take several minutes, and Google advises client timeouts of at least 15 minutes. Both OpenAI libraries stop waiting after 10 minutes by default, which is why the examples above raise `timeout`. On 5abeer, a reply that takes too long ends with `504` and `UPSTREAM_TIMEOUT`, as in [Codes while serving the request](https://5abeer.ai/en/docs/api/limits.md#model-errors). Streaming, below, is the fix for long tasks. ## How do I get JSON from Gemini? `response_format` has no effect with Gemini models here, so ask for JSON through a tool. Describe a function whose parameters are the fields you want, and read them from the tool call: ```python import json tools = [{ "type": "function", "function": { "name": "save_city", "description": "Save facts about a city.", "parameters": { "type": "object", "properties": { "city": {"type": "string"}, "country": {"type": "string"}, "population": {"type": "integer"}, }, "required": ["city", "country", "population"], }, }, }] response = client.chat.completions.create( model="gemini-3.8-flash", messages=[{"role": "user", "content": "Call save_city with the facts about Tokyo."}], tools=tools, ) calls = response.choices[0].message.tool_calls if calls: data = json.loads(calls[0].function.arguments) print(data["city"], data["population"]) else: print("No tool call:", response.choices[0].message.content) ``` Because `tool_choice` is ignored, the model can still answer in text. Name the tool in your prompt, and keep the check for an empty `tool_calls`. The full loop, including how to send a tool's result back, is in [Tool calling](https://5abeer.ai/en/docs/api/tools.md#loop). ## Does streaming work? Yes. Add `stream=True`, and the reply arrives in parts as it is written. With `stream_options={"include_usage": True}`, the token counts come in a last part whose `choices` list is empty, so check it before you read the text: ```python stream = client.chat.completions.create( model="gemini-3.8-flash", messages=[{"role": "user", "content": "Write a short poem about the sea."}], stream=True, stream_options={"include_usage": True}, ) for chunk in stream: if chunk.choices and chunk.choices[0].delta.content: print(chunk.choices[0].delta.content, end="", flush=True) if chunk.usage: print("\nTokens:", chunk.usage.prompt_tokens, chunk.usage.completion_tokens) ``` The same loop works with `gemini-4-argon`, and it is the better choice for long tasks, since text keeps arriving while the model works. The event format is in [Streaming](https://5abeer.ai/en/docs/api/chat-completions.md#streaming). ## Google's OpenAI endpoint or 5abeer's? The same OpenAI code runs on both. They differ in the key, the bill and a few options. Checked on 2026-11-04 in Google's docs and ours: | | Google's OpenAI endpoint | 5abeer | | --- | --- | --- | | Key | A Gemini API key from Google AI Studio | A 5abeer key for Gemini models | | `reasoning_effort` | Mapped to Gemini's thinking levels or budgets | Ignored | | Gemini settings in `extra_body`, such as `thinking_config` | Documented | Not in the reference; use Gemini's own format | | Structured JSON with `response_format` | Documented in this format | Through a tool with a schema | | Image generation with `client.images.generate` | Documented for Gemini image models | Through generateContent | | Embeddings | Documented in this format | Not served to a Gemini key | For `gemini-4-argon`, Google maps `reasoning_effort` values `minimal` and `low` to the `low` thinking level, `medium` to `medium` and `high` to `high`. Without it, the model uses its default level. Google also says `reasoning_effort` and a thinking setting in `extra_body` can't be sent together. Its support for the OpenAI libraries "is still in beta while we extend feature support", in Google's words. On 5abeer, the bill is per token from your balance, below the official price. When you need Gemini's own settings, such as `thinkingConfig` with its `thinkingLevel`, `responseSchema` or image output, use Gemini's format on 5abeer instead. It sits under `/v1beta`, takes the key in `x-goog-api-key`, and accepts these fields in `generationConfig`, as in [Gemini generateContent](https://5abeer.ai/en/docs/api/gemini.md#params). ## Common errors | What you see | Likely cause | Fix | | --- | --- | --- | | `403` with `MODEL_PLATFORM_NOT_ALLOWED` | The key is for Claude or GPT models, and the model is Gemini | Use a key for Gemini models, as in [One key per provider](https://5abeer.ai/en/docs/start/keys.md#per-provider) | | `401` with `INVALID_API_KEY` | The key is mistyped, or it isn't a 5abeer key | Copy your 5abeer key again | | `404` Not Found | `/v1` is missing from the base URL, or doubled | Use `https://api.5abeer.ai/v1` as the base URL | | `not_found_error` on embeddings or images | Those OpenAI endpoints serve GPT models only | Use generateContent for Gemini images | | The call fails on `client.responses.create` | Gemini models aren't served on Responses | Use `client.chat.completions.create` | | Plain text when you asked for JSON | `response_format` is ignored for Gemini | Use a tool with a schema, as above | | A short or empty reply | `max_completion_tokens` is too low, and thinking used it up | Raise the limit, or leave it unset | | `504` with `UPSTREAM_TIMEOUT` | The model took too long to answer | Stream the reply, as in the streaming example | Each code and its fix is in [Errors and fixes](https://5abeer.ai/en/docs/help/errors.md#codes), for example [`INVALID_API_KEY`](https://5abeer.ai/en/docs/help/errors.md#INVALID_API_KEY). ## Test it with one request Before you change a large project, send one request with your Gemini key. If a reply comes back, the base URL, the key and the model id are right: ```bash curl --request POST "https://api.5abeer.ai/v1/chat/completions" \ --header "Authorization: Bearer $KHABEER_API_KEY" \ --header "Content-Type: application/json" \ --data '{"model":"gemini-4-argon","messages":[{"role":"user","content":"Write a product idea in one sentence."}]}' ``` ```python import os import requests response = requests.post( "https://api.5abeer.ai/v1/chat/completions", headers={ "Authorization": f"Bearer {os.environ['KHABEER_API_KEY']}", "Content-Type": "application/json", }, json={ "model": "gemini-4-argon", "messages": [ { "role": "user", "content": "Write a product idea in one sentence." } ] }, stream=False, timeout=60, ) response.raise_for_status() print(response.json()) ``` ## What does a Gemini request cost? A 5abeer API key pays per token from your balance, and every model priced per token costs less than its official price. As an example, 3,000 requests to `gemini-4-argon`, each with about 2,000 input tokens and 500 output tokens: Example: 6,000,000 input tokens and 1,500,000 output tokens on Gemini 4 Argon (`gemini-4-argon`) cost $8.10 at our price against $27.00 at the official price (70% lower). Official price checked November 21, 2026. Gemini bills the model's thinking as output tokens, so a request that thinks a lot costs more than its visible reply suggests. Google lists introductory official prices for `gemini-4-argon` until November 30, 2026 and for `gemini-3.8-flash` until December 31, 2026, so check the live price again before you budget. The live price of each Gemini model is on [Gemini API](https://5abeer.ai/en/api/gemini), and every provider is on the [API page](https://5abeer.ai/en/api). Each key can have a spend limit, an expiry date and an IP allow-list, as in [Control every key](https://5abeer.ai/en/docs/start/keys.md#controls). To see how a request turns into tokens, read [What is a token](https://5abeer.ai/en/guides/what-is-a-token). Plans are for the supported apps; to use the models from your own code, create an API key. The apps are on [5abeer apps](https://5abeer.ai/en/apps) and the plans on the [pricing page](https://5abeer.ai/en/pricing). For Gemini in the terminal rather than in your code, see [Gemini CLI](https://5abeer.ai/en/docs/apps/gemini-cli.md). ## FAQ ### Does the OpenAI SDK work with Gemini? Yes, through an OpenAI-compatible endpoint. Set the base URL, use a key that endpoint accepts and pass a Gemini model id. On 5abeer, call `client.chat.completions.create`. ### Do I need a Gemini API key from Google? Not on 5abeer. A Google key works only with Google's endpoint, and a 5abeer key only with 5abeer. On 5abeer, create a key for Gemini models and pay from your balance. ### Does response_format work with Gemini? Not through 5abeer's Chat Completions: the option is ignored for Gemini models. Use a tool with a schema, or `responseSchema` in Gemini's own format. Google's own OpenAI endpoint documents `response_format` for Gemini. ### Can one key call Gemini, Claude and GPT? No. Each 5abeer key works with one provider's models. Create a key for each provider you need; they all draw on the same balance. Switching between Gemini models only means changing `model`. ### Does reasoning_effort change Gemini's thinking? Not on 5abeer's Chat Completions, where it is ignored for Gemini models. Set `thinkingLevel` in `thinkingConfig` in Gemini's own format. Google's OpenAI endpoint maps `reasoning_effort` to Gemini's thinking levels, which are `low`, `medium` and `high` for `gemini-4-argon`. ### Should I use the OpenAI SDK or Gemini's own format? Use the OpenAI SDK when your code already uses it, or when one code path calls several providers. Use Gemini's own format when you need settings Chat Completions ignores, such as thinking settings, a response schema or image output. ## Sources Checked on 2026-11-04: - Google AI Studio: [OpenAI compatibility](https://aistudio.google.com/docs/openai) - Google AI Studio: [`gemini-4-argon` model page](https://aistudio.google.com/docs/models/gemini-4-argon) and [what's new in it](https://aistudio.google.com/docs/latest-model) - Google AI Studio: [`gemini-3.8-flash` model page](https://aistudio.google.com/docs/models/gemini-3.8-flash) - Google AI Studio: [Gemini thinking](https://aistudio.google.com/docs/thinking) - Google AI Studio: [Generating content](https://aistudio.google.com/api-reference/generate-content) - Google AI Studio: [Gemini Developer API pricing](https://aistudio.google.com/docs/pricing) - OpenAI: [openai-python library](https://github.com/openai/openai-python) - OpenAI: [openai-node library](https://github.com/openai/openai-node) > 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. ## Get started Create a key for Gemini models, set it as `KHABEER_API_KEY`, and run the Python example above. If this is your first API key, [What an API key is](https://5abeer.ai/en/guides/ai-api-key-guide) walks through the steps. --- URL: https://5abeer.ai/en/guides/openai-api-price-egypt # OpenAI API price in EGP and how to pay > OpenAI API prices per 1M tokens next to ours, what Batch, Flex and cached input change, how a dollar price turns into pounds, and paying in EGP. Updated: 2026-11-04 OpenAI prices its API in dollars per million tokens, with separate rates for input, cached input and output. On an Egyptian card, the pound amount depends on your bank's exchange rate and fees. Through 5abeer you top up in Egyptian pounds by wallet or InstaPay and pay less than the official price for GPT models. ## How much does the OpenAI API cost per million tokens? OpenAI does not sell the API by the month. Every request is billed by tokens, the small pieces of text the model reads and writes, and each model has three rates: - **Input:** everything you send in the request, from instructions and chat history to files and tool results. - **Cached input:** the part of your input that matches the start of a recent request. OpenAI turns caching on by default for supported models and bills that part at a lower rate. - **Output:** what the model writes back, including the hidden reasoning it does before it answers. On every model below, output costs five times input. Built-in tools such as web search add a fee per call on top of the tokens. Here are three of OpenAI's newest GPT models, from the top tier to the lightest, with our price per million tokens next to OpenAI's: GPT-6 Astra (`gpt-6-astra`) per 1M tokens: input $3 (official $10), output $15 (official $50). Official price checked November 21, 2026. GPT-6.1 Sol (`gpt-6.1-sol`) per 1M tokens: input $0.60 (official $2), output $3 (official $10). Official price checked November 21, 2026. GPT-6 Luna (`gpt-6-luna`) per 1M tokens: input $0.03 (official $0.10), output $0.15 (official $0.50). Official price checked November 21, 2026. [`gpt-6-astra`](https://5abeer.ai/en/models/gpt-6-astra) is OpenAI's most capable model and the most expensive of the three. [`gpt-6.1-sol`](https://5abeer.ai/en/models/gpt-6.1-sol) costs a fifth as much on input and output, and OpenAI describes it as close to the top model on complex work, so it is the sensible default for most projects. [`gpt-6-luna`](https://5abeer.ai/en/models/gpt-6-luna) is the lightest: it costs a twentieth as much as [`gpt-6.1-sol`](https://5abeer.ai/en/models/gpt-6.1-sol) on input and output, and fits focused, high-volume work such as classification and short replies. Every GPT model with its price is on [OpenAI API](https://5abeer.ai/en/api/openai) and the [models page](https://5abeer.ai/en/models). Our prices sit below OpenAI's published prices, and each one shows the date it was last checked. Use every model priced per token through the API for 70% less than its official price. ## What does a real monthly bill look like? A request costs its input tokens times the input rate, plus its output tokens times the output rate. Here are three realistic monthly sizes. A support assistant on the lightest model, [`gpt-6-luna`](https://5abeer.ai/en/models/gpt-6-luna), that reads twenty million tokens a month and writes four million: Example: 20,000,000 input tokens and 4,000,000 output tokens on GPT-6 Luna (`gpt-6-luna`) cost $1.20 at our price against $4.00 at the official price (70% lower). Official price checked November 21, 2026. A feature inside an app, such as summaries or drafts, on [`gpt-6.1-sol`](https://5abeer.ai/en/models/gpt-6.1-sol), with five million tokens in and one million out: Example: 5,000,000 input tokens and 1,000,000 output tokens on GPT-6.1 Sol (`gpt-6.1-sol`) cost $6.00 at our price against $20.00 at the official price (70% lower). Official price checked November 21, 2026. A coding agent that rereads a code base often, also on [`gpt-6.1-sol`](https://5abeer.ai/en/models/gpt-6.1-sol), with thirty million tokens in and two million out: Example: 30,000,000 input tokens and 2,000,000 output tokens on GPT-6.1 Sol (`gpt-6.1-sol`) cost $24.00 at our price against $80.00 at the official price (70% lower). Official price checked November 21, 2026. For the two [`gpt-6.1-sol`](https://5abeer.ai/en/models/gpt-6.1-sol) examples, the same tokens on [`gpt-6-astra`](https://5abeer.ai/en/models/gpt-6-astra) cost five times as much, and cached input on it costs ten times as much, so keep the top tier for the tasks where you have measured a quality gap. These examples bill every input token at the full rate. In real use, a coding agent or a chatbot repeats the same long start in many requests, so much of the input is read from the cache at the lower rate. On OpenAI's platform, writing that start to the cache in the Responses API costs a quarter more than ordinary input on the three models above, but once it is read back even once the total is lower, so the real bill usually comes out below these figures. A single request with more than 272K input tokens is billed at OpenAI's long-context rates: twice the input rate and one and a half times the output rate. To size a bill from the number of requests and conversations, see [How much does an AI API cost per month? Worked examples](https://5abeer.ai/en/guides/ai-api-monthly-cost). ## Does OpenAI offer cheaper ways to use the API? Yes. OpenAI publishes several options that change the price per token on its own platform. These are its terms, from its pricing and docs pages: OpenAI's own ways to change the API price | Service | Item | Value | Note | Source | | --- | --- | --- | --- | --- | | OpenAI | Batch API | 50% | Off synchronous API prices; each batch completes within 24 hours. | https://developers.openai.com/api/docs/guides/batch | | OpenAI | Flex processing | Batch API rates | Slower responses and occasional resource unavailability; limited models. | https://developers.openai.com/api/docs/guides/flex-processing | | OpenAI | Cached input | Up to 95% off | On by default for supported models; the shortest cacheable prompt is 1,024 tokens on GPT-5.6 and later. | https://developers.openai.com/api/docs/guides/prompt-caching | | OpenAI | Fast mode (formerly Priority processing) | 2× standard rates | Renamed on July 30, 2026. | https://developers.openai.com/api/docs/pricing | | OpenAI | Regional processing (data residency) | 10% | Uplift for models released on or after March 5, 2026. | https://developers.openai.com/api/docs/pricing | Each row links to the page it comes from, checked November 4, 2026. These figures can change, so check the source before you buy. - **Batch API** suits work that can wait, such as tagging a large file or scoring a set of documents. You send the requests together and collect the results within 24 hours. - **Flex processing** gives Batch rates on normal requests in exchange for slower answers and an occasional resource-unavailable error. It is in beta and only some models support it, the three above among them. - **Cached input** needs no setting on supported models. Put the fixed part of the request first and the changing question last, so more of every request is read from the cache. On the three models above, a cache read costs a tenth of the input rate, or a twentieth on [`gpt-6.1-sol`](https://5abeer.ai/en/models/gpt-6.1-sol). In the Responses API, on the three models above, writing to the cache costs a quarter more than ordinary input for the default 30-minute cache, or two and a half times the input rate for the optional 12-hour cache. Our [prompt caching guide](https://5abeer.ai/en/docs/api/caching.md#gpt) shows how this works for GPT models. - **Fast mode**, called Priority processing until July 30, 2026, costs twice the standard rate on the three models above. **Ultrafast mode**, offered only on [`gpt-6-astra`](https://5abeer.ai/en/models/gpt-6-astra) and [`gpt-6.1-sol`](https://5abeer.ai/en/models/gpt-6.1-sol), costs six times the standard rate. - **Regional processing** on OpenAI's data-residency endpoints adds 10% for eligible models released on or after March 5, 2026. These terms apply to accounts on OpenAI's own platform. On 5abeer, the price you pay is the one in the price rows above. ## What does the OpenAI API cost in Egyptian pounds on an Egyptian card? You buy OpenAI API credit in US dollars. So when you pay with an Egyptian card, two things decide the amount in pounds, and neither comes from OpenAI: - **Your bank's exchange rate** on the day the purchase is settled, which can differ from the rate you saw when you paid. - **Your bank's fees** on foreign or currency-conversion transactions, which some banks add on top of the amount. The pound amount is the dollar amount at your bank's rate, plus its fee. Both change, which is why this guide shows no fixed pound figure for OpenAI's price. Your bank's fee schedule and the transaction in your banking app show the real number. Your card's monthly limit for online purchases outside Egypt matters too, because it caps how much credit you can buy in a month. Here is one bank's published example: One Egyptian bank's example: credit card limits outside Egypt | Service | Item | Value | Note | Source | | --- | --- | --- | --- | --- | | Banque Misr | International use on a new credit card | Two months after issue | — | https://www.banquemisr.com/en/SMEs/Retail-Banking/Pages/Cards/Credit-Cards-Pages/Classic-Credit-Cards | | Banque Misr | Online purchases outside Egypt, no travel reported | EGP 10,000 a month | At most 8 a day, on the Classic card. | https://www.banquemisr.com/en/SMEs/Retail-Banking/Pages/Cards/Credit-Cards-Pages/Classic-Credit-Cards | Each row links to the page it comes from, checked October 31, 2026. These figures can change, so check the source before you buy. Paying for API credit with an Egyptian card, what to do when the payment is declined, and the other ways to pay are in [Paying for an AI API from Egypt](https://5abeer.ai/en/guides/pay-ai-api-from-egypt). ## How do I pay for the OpenAI API in Egyptian pounds? 5abeer is an independent service, not affiliated with OpenAI. It serves GPT models through an API compatible with the OpenAI format, below the official price. You top up in Egyptian pounds from a mobile wallet or InstaPay, with no bank card, and each request is deducted from your balance by model and token count. Everything about paying for OpenAI from Egypt is on [OpenAI API in EGP](https://5abeer.ai/en/api/egypt/openai), and the other models are on the [API in Egypt page](https://5abeer.ai/en/api/egypt). ### 1. Top up your balance In your dashboard choose top up, and pay with a mobile wallet such as Vodafone Cash or with InstaPay. Every method and its steps are in [Payment methods](https://5abeer.ai/en/docs/start/payment.md). ### 2. Create a key for GPT models Each key works with one provider's models, so create a key for GPT models. All your keys draw on the same balance, as explained in [Keys and authentication](https://5abeer.ai/en/docs/start/keys.md#per-provider). ### 3. Change the base URL Keep the OpenAI library you already use, and change only the base URL and the key, as shown in [Base URLs](https://5abeer.ai/en/docs/start/base-urls.md). How each request is priced against your balance is explained in [Pricing and balance](https://5abeer.ai/en/docs/start/pricing.md#cost). ## How do I keep the bill low? - **Start with the lightest model** that does the job, and move up only for the tasks that need it. - **Keep the fixed part first:** instructions and reference text at the start, the changing question at the end, so more input is read from the cache. - **Cap the answer length** with the output token limit, since output is the most expensive part. - **Trim long histories:** a chat that resends its whole history pays for it again on every turn. - **Set a spend limit on every key**, with an expiry date and an IP allow-list, so one project cannot run past its budget. ## Questions ### What is the OpenAI API price in Egyptian pounds? OpenAI publishes its prices in US dollars. On an Egyptian card, the pound amount is the dollar price at your bank's exchange rate, plus its fees. On 5abeer you pay from a balance topped up in pounds, at our prices in the rows above. ### Why does output cost more than input? That is how OpenAI prices its models: on each model above, the output rate is five times the input rate, and the model's hidden reasoning is billed as output too. So a long answer costs more than a long question, and the quickest saving is to ask for short, focused answers. ### Do I need to turn on prompt caching? No. OpenAI enables prompt caching by default for supported models, and the reused part of a request is billed at the cached input rate. The request must be long enough: on the three models above, the shortest cacheable prompt is 1,024 tokens. On OpenAI's platform, writing to the cache on these models costs a quarter more than ordinary input in the Responses API, so caching pays off when the same start comes back in later requests. Caching is automatic for GPT models on 5abeer too, as shown in [Prompt caching](https://5abeer.ai/en/docs/api/caching.md#gpt). ### Is the Batch API cheaper? Yes. OpenAI's Batch API costs half the synchronous price, and each batch completes within 24 hours. It suits work that does not need an immediate answer. ### What is the smallest amount I can start with? OpenAI's smallest credit purchase is in the official payment table in [Paying for an AI API from Egypt](https://5abeer.ai/en/guides/pay-ai-api-from-egypt#card-declined). On 5abeer you pay only for what you use, with no monthly plan, and before you pay you see the amount you pay and the balance added to your account. ### Will my OpenAI code work with 5abeer? Yes, if it uses the OpenAI library or follows its format. Change only the base URL and the key; the addresses are listed in [Base URLs](https://5abeer.ai/en/docs/start/base-urls.md). ### Is 5abeer part of OpenAI? No. 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. We serve their models through the API below their official prices. ## Sources Checked on 2026-11-04: - [OpenAI API pricing](https://developers.openai.com/api/docs/pricing) - [OpenAI models](https://developers.openai.com/api/docs/models) - [OpenAI Batch API guide](https://developers.openai.com/api/docs/guides/batch) - [OpenAI Flex processing guide](https://developers.openai.com/api/docs/guides/flex-processing) - [OpenAI prompt caching guide](https://developers.openai.com/api/docs/guides/prompt-caching) - [OpenAI Fast mode guide](https://developers.openai.com/api/docs/guides/fast-mode) - [OpenAI Ultrafast mode guide](https://developers.openai.com/api/docs/guides/ultrafast-mode) - [OpenAI reasoning guide](https://developers.openai.com/api/docs/guides/reasoning) - [OpenAI data controls and data residency](https://developers.openai.com/api/docs/guides/your-data) - [OpenAI rate limits and usage tiers](https://developers.openai.com/api/docs/guides/rate-limits) - [Banque Misr Classic credit cards](https://www.banquemisr.com/en/SMEs/Retail-Banking/Pages/Cards/Credit-Cards-Pages/Classic-Credit-Cards), checked on 2026-10-31 Our prices come from the live price list, and each row shows the date its official price was last checked. ## Get started Start on the [API page](https://5abeer.ai/en/api), or compare every price on the [pricing page](https://5abeer.ai/en/pricing). --- URL: https://5abeer.ai/en/guides/top-up-openai-from-egypt # Topping up OpenAI credit from Egypt (2026): every way to pay > How to buy OpenAI API credit from Egypt, why Egyptian cards get declined, the minimum and auto recharge, and topping up in EGP by wallet or InstaPay. Updated: 2026-11-04 Egypt is on OpenAI's list of supported countries, so the obstacle is usually the card, not the country. To top up directly, buy credit in advance on the OpenAI platform with a standard card that allows international purchases. Without one, top up 5abeer in Egyptian pounds by wallet or InstaPay and call GPT models below official prices. ## Can you buy OpenAI API credit from Egypt? Yes. Egypt is on the list of countries OpenAI supports for its API. New API accounts pay in advance: you buy credit, and each request is deducted from it. These are OpenAI's own terms for topping up: Topping up OpenAI API credit: the official terms | Service | Item | Value | Note | Source | | --- | --- | --- | --- | --- | | OpenAI | Countries supported for the API | Egypt is on the list | — | https://developers.openai.com/api/docs/supported-countries | | OpenAI | Smallest credit purchase | $5 | Prepaid credit that usage is deducted from. Read from a search result for the page, because the page itself didn't open for us. | https://help.openai.com/en/articles/8264778-what-is-prepaid-billing | | OpenAI | Default amount on the purchase form | $10 | You can change it before you pay. Read from a search result for the page, because the page itself didn't open for us. | https://help.openai.com/en/articles/8264778-what-is-prepaid-billing | | OpenAI | Auto recharge | Optional: buys credit when your balance falls below a level you set | Its smallest amount is the smallest purchase, and its ceiling follows your usage tier. Read from a search result for the page, because the page itself didn't open for us. | https://help.openai.com/en/articles/8264778-what-is-prepaid-billing | | OpenAI | How long bought credit lasts | One year from purchase, and it can't be extended | Read from a search result for the page, because the page itself didn't open for us. | https://help.openai.com/en/articles/8264644-setting-up-and-managing-prepaid-api-billing | | OpenAI | Cards accepted for API credit | A standard credit or debit card. Prepaid cards are not accepted | Read from a search result for the page, because the page itself didn't open for us. | https://help.openai.com/en/articles/7232916-why-was-my-credit-card-declined | | OpenAI | When the credit runs out | API access stops | Usage that slips through before it stops shows as a negative balance, taken from your next purchase. Read from a search result for the page, because the page itself didn't open for us. | https://help.openai.com/en/articles/8264644-setting-up-and-managing-prepaid-api-billing | | OpenAI | ChatGPT subscription and API credit | Two separate billing systems | API usage is billed apart from your ChatGPT subscription. Read from a search result for the page, because the page itself didn't open for us. | https://help.openai.com/en/articles/9039756-managing-billing-for-chatgpt-and-the-api-platform | Each row links to the page it comes from, checked November 1, 2026. These figures can change, so check the source before you buy. Two rows matter most when you pay from Egypt. OpenAI does not accept prepaid cards for API credit, so check your card type before you start. And bought credit expires a year after purchase, so a large top-up only makes sense if you will use it within that year. ## How to top up OpenAI credit, step by step ### 1. Sign in to the OpenAI platform Use the account and the organization where you created your API keys. Credit belongs to the organization, so every project and every key in it draws on the same balance. ### 2. Open the billing settings Open Settings, then Billing under your organization. This is where you add a card and buy credit. ### 3. Add a card that allows international purchases Use a standard credit or debit card with online purchases from outside Egypt turned on. Make sure this month's limit covers the amount plus your bank's currency conversion fee. ### 4. Choose the amount and pay Enter how much credit you want, at least the smallest purchase in the table above, then confirm the payment. The credit shows in your balance once the payment goes through. ### 5. Decide on auto recharge Auto recharge buys credit for you when your balance falls below a level you set, so a live app doesn't stop. Each recharge is a new international charge on your card, so set the amount within what your card allows. If the first payment fails, OpenAI shows an error and adds no credit. Ask your bank for the exact reason before you try again, because the checkout page rarely says why. ## Why does OpenAI decline Egyptian cards? Since Egypt is supported, a declined payment usually comes from the card itself. The most common reasons: - **The card is prepaid.** OpenAI does not accept prepaid cards for API credit, and some cards issued by banks and wallets are prepaid. - **International online purchases are off.** Some banks leave them disabled until you turn them on in the app or through customer service. - **The limit is too low.** The monthly limit for international online purchases may not cover the amount and fees, or the number of purchases a day may be capped. - **The card is new.** Some banks only turn on international use a while after the card is issued. We cover every way to pay from Egypt, with one bank's published limits, in [How to pay for the OpenAI or Claude API from Egypt](https://5abeer.ai/en/guides/pay-ai-api-from-egypt). ## How much credit should you buy? Two rules shape the answer. First, bought credit expires one year after purchase, and OpenAI can't extend it, so unused credit is lost. Second, your total purchases set your account's usage tier, and each tier caps how much you can spend in a month: OpenAI API usage tiers and their monthly limits | Service | Item | Value | Note | Source | | --- | --- | --- | --- | --- | | OpenAI | Build tier: starts at total purchases of | $5 | — | https://developers.openai.com/api/docs/guides/rate-limits | | OpenAI | Build tier: usage limit | $500 a month | — | https://developers.openai.com/api/docs/guides/rate-limits | | OpenAI | Launch tier: starts at total purchases of | $100 | — | https://developers.openai.com/api/docs/guides/rate-limits | | OpenAI | Launch tier: usage limit | $5,000 a month | — | https://developers.openai.com/api/docs/guides/rate-limits | | OpenAI | Grow tier: starts at total purchases of | $500 | — | https://developers.openai.com/api/docs/guides/rate-limits | | OpenAI | Grow tier: usage limit | $200,000 a month | — | https://developers.openai.com/api/docs/guides/rate-limits | | OpenAI | Moving between tiers | Automatic once your total purchases reach the next tier | Your limits show under Settings, then Organization, then Limits. | https://developers.openai.com/api/docs/guides/rate-limits | Each row links to the page it comes from, checked November 1, 2026. These figures can change, so check the source before you buy. So buy what you expect to use in the coming months, not a year's stock. If you plan a launch that will raise usage quickly, check your limits under your organization settings before it goes live. ## Top up in Egyptian pounds without a card 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. It serves GPT, Claude and Gemini models through an API compatible with the OpenAI format. You top up in Egyptian pounds, and each request is deducted from your balance by model and token count. This is not OpenAI credit: it is a 5abeer balance that you spend through our API, so you don't need an OpenAI billing account. Topping up for GPT models from Egypt is covered on [OpenAI API in EGP](https://5abeer.ai/en/api/egypt/openai), and the other models are on the [API in Egypt page](https://5abeer.ai/en/api/egypt). ### 1. Create an account and top up In your dashboard choose top up, then pay with a mobile wallet such as Vodafone Cash or with InstaPay, and send the receipt. Every method and its steps are in [Payment methods](https://5abeer.ai/en/docs/start/payment.md). ### 2. Create a key for GPT models Each key works with one provider's models, so create a key for GPT models, and another for Claude or Gemini if you need them. All keys draw on the same balance, as explained in [Keys and authentication](https://5abeer.ai/en/docs/start/keys.md#per-provider). ### 3. Point your OpenAI code at our base URL Keep the OpenAI library you already use, and change only the base URL and the key: | Format | Base URL | Key header | | --- | --- | --- | | OpenAI | `https://api.5abeer.ai/v1` | `Authorization: Bearer ` | | Anthropic | `https://api.5abeer.ai` | `x-api-key: ` | | Gemini | `https://api.5abeer.ai/v1beta` | `x-goog-api-key: ` | The same key also runs coding tools and automations. For Codex, follow [Codex CLI setup](https://5abeer.ai/en/docs/apps/codex.md), and for n8n, [Connect n8n to Claude and GPT](https://5abeer.ai/en/guides/n8n-ai-api). These are GPT models you can call now: | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | GPT-6.2 Sol | `gpt-6.2-sol` | $0.60 | $3 | — | | GPT-6.2 Astra | `gpt-6.2-astra` | $2.40 | $12 | — | | GPT-6.1 Sol | `gpt-6.1-sol` | $0.60 | $3 | 922K | | GPT-6 Astra | `gpt-6-astra` | $3 | $15 | — | ## What does GPT cost when you pay in EGP? API usage is priced per million tokens, with one price for input (what you send) and one for output (what the model writes). Take a feature inside an app that sends five million tokens a month and gets one million back, on [`gpt-6.1-sol`](https://5abeer.ai/en/models/gpt-6.1-sol), the newest version of OpenAI's Sol model, for example: Example: 5,000,000 input tokens and 1,000,000 output tokens on GPT-6.1 Sol (`gpt-6.1-sol`) cost $6.00 at our price against $20.00 at the official price (70% lower). Official price checked November 21, 2026. And this is that model's price per million tokens, ours next to the official one: GPT-6.1 Sol (`gpt-6.1-sol`) per 1M tokens: input $0.60 (official $2), output $3 (official $10). Official price checked November 21, 2026. Our prices follow OpenAI's published prices, and every price shows the date it was last checked. Every GPT model and its price is on [OpenAI API](https://5abeer.ai/en/api/openai), and the full list is on the [models page](https://5abeer.ai/en/models). ## A direct OpenAI account or 5abeer credit? | | Direct OpenAI account | 5abeer credit | | --- | --- | --- | | How you pay | A standard card that allows international purchases, in US dollars | Mobile wallet or InstaPay in Egyptian pounds, or an international card | | Price per token | OpenAI's official price | Below the official price | | Models | OpenAI models only | GPT, Claude and Gemini on one balance, with a key per provider | | Spending control | Usage tiers and limits in your organization settings | A spend limit, an expiry date and an IP allow-list on every key | | Best fit | Your card works and you need a direct contract or platform-only features | You want to pay in pounds and pay less per token | A direct account has its own advantages. If your card works and you need a contract with OpenAI, or a feature only its platform offers, paying OpenAI directly is the better fit. ## FAQ ### Does the Vodafone Cash virtual card work for OpenAI credit? It depends on the card. OpenAI does not accept prepaid cards for API credit, so ask the issuer whether the card is prepaid and whether it allows international online purchases. If you want to pay from your wallet balance, you can top up 5abeer credit from the wallet directly. ### Does a ChatGPT Plus subscription include API credit? No. ChatGPT and the API platform have separate billing, and API usage is not part of your ChatGPT subscription. If you are weighing the subscription itself, see [ChatGPT Plus price in Egypt](https://5abeer.ai/en/guides/chatgpt-plus-price-egypt). ### What happens when my OpenAI credit runs out? API requests stop until you buy more credit. Usage that slips through before the stop shows as a negative balance and is taken from your next purchase. Auto recharge prevents the stop, as long as the card payment succeeds. ### How long does OpenAI credit last? One year from the date you buy it, and OpenAI can't extend it. That is why smaller, regular top-ups suit most projects better than one large purchase. ### Can I pay OpenAI with InstaPay or a mobile wallet? Not directly: OpenAI takes cards for API credit. You can top up 5abeer in Egyptian pounds from InstaPay or a mobile wallet, then call GPT models through our API with your key. ### Will my existing OpenAI code work with 5abeer? Yes, if it uses the OpenAI library or follows its format. Change only the base URL and the key, as shown in [Base URLs](https://5abeer.ai/en/docs/start/base-urls.md). ### Is 5abeer part of OpenAI? No. 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. We serve their models through the API below their official prices. ## Get started Start on the [API page](https://5abeer.ai/en/api), compare prices on the [pricing page](https://5abeer.ai/en/pricing), or read [how to get an API key](https://5abeer.ai/en/guides/ai-api-key-guide) first. If you use Gemini too, see [Gemini API in Egypt](https://5abeer.ai/en/guides/gemini-api-egypt). --- URL: https://5abeer.ai/en/guides/gemini-api-egypt # Gemini API in Egypt (2026): the price and how to pay > Is the Gemini API available in Egypt, what Google charges per million tokens, why Egyptian cards get declined, and how to pay in EGP by wallet or InstaPay. Updated: 2026-11-04 Egypt is on Google's list of regions for the Gemini API, and new accounts start on the Free Tier. Paid use needs a Google Cloud billing account and a card Google accepts, which is where Egyptian cards often fail. Without one, top up 5abeer in Egyptian pounds by wallet or InstaPay and call Gemini models below official prices. ## Is the Gemini API available in Egypt? Yes. Egypt is on Google's list of available regions for Google AI Studio and the Gemini API. Paid use runs through a Google Cloud billing account that you fund in advance. These are Google's terms for paying: Paying for the Gemini API: Google's official terms | Service | Item | Value | Note | Source | | --- | --- | --- | --- | --- | | Google | Countries where the Gemini API is available | Egypt is on the list | — | https://aistudio.google.com/docs/available-regions | | Google | Free Tier | Certain models only, with lower rate limits | Google may use what you send on the Free Tier to improve its products. It does not on the paid tier. | https://aistudio.google.com/docs/pricing | | Google | Paid tier: smallest credit purchase | $5 | Needs a linked Google Cloud billing account. Usage is deducted from the credit as you go. | https://aistudio.google.com/docs/billing | | Google | Most credit you can prepay | $5,000 | — | https://aistudio.google.com/docs/billing | | Google | How long bought credit lasts | Unused credit expires after 12 months | — | https://aistudio.google.com/docs/billing | | Google | When the credit runs out | Every key in every project on the billing account stops at once, with error 402 | Usage that slips through before it stops shows as a negative balance, taken from your next purchase. | https://aistudio.google.com/docs/billing | | Google | Auto-reload | Optional: tops up your credit when it falls below a level you set | You set the payment method, the amount and the level that triggers it. | https://aistudio.google.com/docs/billing | | Google | Cards accepted | Visa, Mastercard and American Express, and debit cards with the Visa or Mastercard logo | Prepaid cards are not accepted, nor debit cards that ask for a one-time code on every payment. Methods vary by country and currency. | https://cloud.google.com/billing/docs/how-to/payment-methods | Each row links to the page it comes from, checked November 1, 2026. These figures can change, so check the source before you buy. Two rows matter most when you pay from Egypt. Google does not accept prepaid cards, or debit cards that ask for a one-time code on every payment. And when credit runs out, every key on the account stops at once, so a live app needs auto-reload or a close eye on the balance. ## How much does the Gemini API cost? Google charges per million tokens, with one price for input (what you send) and one for output (what the model writes). The output price includes the model's thinking tokens. These are the official paid-tier prices for current Gemini models: Official Gemini model prices per million tokens (paid tier) | Service | Item | Value | Note | Source | | --- | --- | --- | --- | --- | | Google | Gemini 4 Argon: input, per million tokens | $2 | Doubles from December 1, 2026. Not on the Free Tier. | https://aistudio.google.com/docs/pricing | | Google | Gemini 4 Argon: output, per million tokens | $10 | Includes thinking tokens. Doubles from December 1, 2026. | https://aistudio.google.com/docs/pricing | | Google | Gemini 3.8 Flash: input, per million tokens | $0.75 | Doubles from January 1, 2027. Available on the Free Tier. | https://aistudio.google.com/docs/pricing | | Google | Gemini 3.8 Flash: output, per million tokens | $3.75 | Includes thinking tokens. Doubles from January 1, 2027. | https://aistudio.google.com/docs/pricing | | Google | Gemini 3.1 Pro Preview: input, per million tokens | $2 | For prompts up to 200k tokens, higher above. Not on the Free Tier. | https://aistudio.google.com/docs/pricing | | Google | Gemini 3.1 Pro Preview: output, per million tokens | $12 | Includes thinking tokens, for prompts up to 200k tokens. | https://aistudio.google.com/docs/pricing | Each row links to the page it comes from, checked November 1, 2026. These figures can change, so check the source before you buy. Google has announced that the prices of two of these models will double on the dates given in the notes, so check again before you budget around them. Some models also charge more per token when a request is very long. ## Is there a free Gemini API tier? Yes, for certain models only. The Free Tier needs no billing account, but its rate limits are lower, and some models are not on it at all, as the price table above shows. Rate limits apply per project, and the daily request count resets at midnight Pacific time. Data use differs too. On the Free Tier, Google may use what you send to improve its products; on the paid tier it does not. If your app handles your customers' data, that alone is a reason to move to the paid tier. ## How to pay for the Gemini API, step by step ### 1. Sign in to Google AI Studio Use the Google account that owns the project behind your API key. Billing is set per project. ### 2. Set up billing From the API keys page or the Projects page, choose Set up billing. Google asks you to link a Cloud Billing account to the project, or to create one. ### 3. Add a card Google accepts Use a Visa, Mastercard or American Express credit card, or a Visa or Mastercard debit card, with online purchases from outside Egypt turned on. Make sure this month's limit covers the amount plus any fees your bank adds. ### 4. Buy credit On the Billing page in AI Studio, choose Buy credits and enter at least the smallest purchase in the table above. Some accounts are offered postpay billing instead of prepaid credit. ### 5. Decide on auto-reload Auto-reload buys credit for you when your balance falls below a level you set, so a live app doesn't stop. Each reload is a new international charge on your card, and that is where cards that ask for a one-time code fail. ## Why does Google decline Egyptian cards? Since Egypt is supported, a declined payment usually comes from the card itself. The most common reasons: - **The card is prepaid.** Google does not accept prepaid cards for this billing, and some cards issued by banks and wallets are prepaid. - **The card asks for a code on every payment.** Debit cards that need an SMS code each time can't be charged while you are away, so Google rejects them for recurring payments. - **International online purchases are off.** Some banks leave them disabled until you turn them on in the app or through customer service. - **The limit is too low.** The monthly limit for international online purchases may not cover the amount and fees. Google's own advice for a declined card is to try another payment method, or to buy through a local reseller or invoiced billing. We cover every way to pay from Egypt in [How to pay for the OpenAI or Claude API from Egypt](https://5abeer.ai/en/guides/pay-ai-api-from-egypt). ## How do Gemini API spending tiers work? Your payment history sets your billing account's usage tier, and each tier caps how much the whole account can spend in a month, across all its projects: Gemini API usage tiers and their monthly caps | Service | Item | Value | Note | Source | | --- | --- | --- | --- | --- | | Google | Tier 1: how you qualify | Link an active billing account | — | https://aistudio.google.com/docs/billing | | Google | Tier 1: spending cap | $250 a month | — | https://aistudio.google.com/docs/billing | | Google | Tier 2: starts at total payments of | $100 | And 3 days after your first successful payment. | https://aistudio.google.com/docs/billing | | Google | Tier 2: spending cap | $2,000 a month | — | https://aistudio.google.com/docs/billing | | Google | Tier 3: starts at total payments of | $1,000 | And 30 days after your first successful payment. | https://aistudio.google.com/docs/billing | | Google | Tier 3: spending cap starts at | $20,000 a month | You can ask for more. Google lists caps up to 100,000 dollars. | https://aistudio.google.com/docs/billing | | Google | When you reach the cap | Service pauses for every linked project until the 1st of next month | The cap counts the whole billing account, adding up all its projects. | https://aistudio.google.com/docs/billing | | Google | Moving between tiers | Automatic once you meet the next tier's criteria | — | https://aistudio.google.com/docs/billing | Each row links to the page it comes from, checked November 1, 2026. These figures can change, so check the source before you buy. When you reach the cap, service pauses for every linked project until the first of the next month, which can stop a launch halfway through. You can ask Google for a higher cap, or set a lower monthly spend cap per project yourself from the Spend page in AI Studio. ## Pay for Gemini in Egyptian pounds without a card 5abeer is an independent service, not affiliated with Google, OpenAI or Anthropic. It serves Gemini, Claude and GPT models through our API, including Google's generateContent format for the models that support it. You top up in Egyptian pounds, and each request is deducted from your balance by model and token count. This is not Google credit: it is a 5abeer balance, so you don't need a Google Cloud billing account. Everything about paying for Gemini from Egypt is on [Gemini API in EGP](https://5abeer.ai/en/api/egypt/gemini), and the other models are on the [API in Egypt page](https://5abeer.ai/en/api/egypt). ### 1. Create an account and top up In your dashboard choose top up, then pay with a mobile wallet such as Vodafone Cash or with InstaPay, and send the receipt. Every method and its steps are in [Payment methods](https://5abeer.ai/en/docs/start/payment.md). ### 2. Create a key for Gemini models Each key works with one provider's models, so create a key for Gemini models. Claude and GPT keys don't work with the Gemini base URL, but all keys draw on the same balance, as explained in [Keys and authentication](https://5abeer.ai/en/docs/start/keys.md#per-provider). ### 3. Point your Gemini code at our base URL Send the key in the `x-goog-api-key` header, and keep the model id in the request path, as with Google's API: | Format | Base URL | Key header | | --- | --- | --- | | OpenAI | `https://api.5abeer.ai/v1` | `Authorization: Bearer ` | | Anthropic | `https://api.5abeer.ai` | `x-api-key: ` | | Gemini | `https://api.5abeer.ai/v1beta` | `x-goog-api-key: ` | This is a full generateContent request. Parameters, streaming and error handling are in [Gemini generateContent](https://5abeer.ai/en/docs/api/gemini.md): ```bash curl --request POST "https://api.5abeer.ai/v1beta/models/gemini-4-argon:generateContent" \ --header "x-goog-api-key: $KHABEER_API_KEY" \ --header "Content-Type: application/json" \ --data '{"contents":[{"role":"user","parts":[{"text":"Write a product idea in one sentence."}]}]}' ``` ```python import os import requests response = requests.post( "https://api.5abeer.ai/v1beta/models/gemini-4-argon:generateContent", headers={ "x-goog-api-key": os.environ['KHABEER_API_KEY'], "Content-Type": "application/json", }, json={ "contents": [ { "role": "user", "parts": [ { "text": "Write a product idea in one sentence." } ] } ] }, stream=False, timeout=60, ) response.raise_for_status() print(response.json()) ``` The same key also runs Gemini CLI. Follow [Gemini CLI setup](https://5abeer.ai/en/docs/apps/gemini-cli.md), and see how it compares with Claude Code in [Gemini CLI vs Claude Code](https://5abeer.ai/en/guides/gemini-cli-vs-claude-code). These are Gemini models you can call now: | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | Gemini 4 Argon | `gemini-4-argon` | $0.60 | $3 | — | | Gemini 2.5 Pro | `gemini-2.5-pro` | $0.38 | $3 | 1M | | Gemini 3.8 Flash | `gemini-3.8-flash` | $0.23 | $1.13 | — | | Gemini 3 Flash | `gemini-3-flash` | $0.15 | $0.90 | 1M | ## What does Gemini cost when you pay in EGP? Take a feature inside an app that sends five million tokens a month and gets one million back, on [`gemini-4-argon`](https://5abeer.ai/en/models/gemini-4-argon), Google's flagship reasoning model, for example. Its official price is promotional for now, as the notes in the price table above say, so the figures below are read from our live catalog and stay correct when the price changes: Example: 5,000,000 input tokens and 1,000,000 output tokens on Gemini 4 Argon (`gemini-4-argon`) cost $6.00 at our price against $20.00 at the official price (70% lower). Official price checked November 21, 2026. And this is that model's price per million tokens, ours next to the official one: Gemini 4 Argon (`gemini-4-argon`) per 1M tokens: input $0.60 (official $2), output $3 (official $10). Official price checked November 21, 2026. Our prices follow Google's published prices, and every price shows the date it was last checked. Every Gemini model and its price is on [Gemini API](https://5abeer.ai/en/api/gemini), and the full list is on the [models page](https://5abeer.ai/en/models). ## A direct Google account or 5abeer credit? | | Direct Google account | 5abeer credit | | --- | --- | --- | | How you pay | A credit or debit card Google accepts | Mobile wallet or InstaPay in Egyptian pounds, or an international card | | Price per token | Google's official price | Below the official price | | Free use | A Free Tier on certain models | Every request is deducted from your balance | | Models | Gemini models only | Gemini, Claude and GPT on one balance, with a key per provider | | Spending control | Tier caps and a monthly spend cap per project | A spend limit, an expiry date and an IP allow-list on every key | | Best fit | Your card works and you need a direct contract or AI Studio features | You want to pay in pounds and pay less per token | If you only need the Free Tier, or your card works and you need a contract with Google, going direct is the better fit. ## FAQ ### Can I use the Gemini API for free from Egypt? Yes, within the Free Tier. It covers certain models only, with lower rate limits, and Google may use what you send to improve its products. For models outside the Free Tier, or for higher limits, you need the paid tier. ### Does the Vodafone Cash virtual card work for Gemini API billing? It depends on the card. Google does not accept prepaid cards, or debit cards that ask for a code on every payment, so ask the issuer about both before you add it. If you want to pay from your wallet balance, you can top up 5abeer credit from the wallet directly. ### What does "Your card does not support automatic recurring payments" mean? Google charges your card while you are not there, for example on auto-reload. A card that needs a one-time code on every payment can't be charged that way, so Google rejects it. Use another card, or a way to pay that needs no card. ### What happens when my Gemini API credit runs out? Every key in every project on the billing account stops at once, with error 402, until you add credit. Usage that slips through before the stop shows as a negative balance and is taken from your next purchase. ### How long does Gemini API credit last? Unused credit expires 12 months after you buy it. That is why smaller, regular purchases suit most projects better than one large one. ### Will my existing Gemini code work with 5abeer? Yes, if it sends requests in Google's generateContent format. Change the base URL and the key, and keep the model id in the path, as shown in [Base URLs](https://5abeer.ai/en/docs/start/base-urls.md). ### Is 5abeer part of Google? No. 5abeer is an independent service, not affiliated with Google, OpenAI or Anthropic. We serve their models through our API below their official prices. ## Get started Start on the [API page](https://5abeer.ai/en/api), compare prices on the [pricing page](https://5abeer.ai/en/pricing), or read [how to top up OpenAI credit from Egypt](https://5abeer.ai/en/guides/top-up-openai-from-egypt) if you use GPT too. --- URL: https://5abeer.ai/en/guides/claude-pro-vs-max # Claude Pro vs Max vs Ultra: which plan do you need? > Claude Pro, Max and Ultra compared from Anthropic's own pages: usage, 5-hour and weekly limits, Fable, Claude Code, and when the API costs less. Updated: 2026-11-03 Claude Pro fits most people who use Claude daily for writing, study or light coding. Claude Max gives five times Pro's usage every five hours and every week, for long sessions and heavy Claude Code use. Anthropic's top plan is now Ultra. All three include Claude Code and differ in usage. Their official prices are in the table below. ## How much do Claude Pro, Max and Ultra cost? These are the prices on Anthropic's website, each row with its source and the date we checked it: | Plan | Market and channel | Official price | Billing | Source | Checked | | --- | --- | --- | --- | --- | --- | | Claude Pro | United States · Vendor website | $20 | per month | https://claude.com/pricing | 2026-11-15 | | Claude Pro | United States · Vendor website | $200 | per year | https://claude.com/pricing | 2026-11-15 | | Claude Max | United States · Vendor website | $100 | per month | https://claude.com/pricing | 2026-11-15 | | Claude Ultra | United States · Vendor website | $200 | per month | https://claude.com/pricing | 2026-11-15 | The vendors' own prices as published at the source on the date checked; they can change. These are the vendor's official prices; 5abeer's prices are on the pricing page. Tax: per Anthropic's pages, some countries include tax in the displayed price and others add it at checkout. Anthropic says the prices shown on its site don't include applicable tax, and what you actually pay is the amount on the checkout page. For the App Store prices in local currency, read [Claude Pro and Max price in Egypt](https://5abeer.ai/en/guides/claude-pro-max-price-egypt) or [Prices in Saudi Arabia and the UAE](https://5abeer.ai/en/guides/chatgpt-claude-gulf-price). ## What is the difference between Claude Pro and Max? This is how Anthropic describes each plan on its [pricing page](https://claude.com/pricing) and support pages, as we read them on 2026-11-03: | | Claude Pro | Claude Max | Claude Ultra | | --- | --- | --- | --- | | Anthropic's label | For everyday work | For all-day work | For your longest tasks | | Usage | More usage than the Free plan, every 5 hours and every week | Five times Pro's usage every 5 hours and every week | Ten times Pro's usage every week | | 5-hour limit | Yes | Yes | No 5-hour limit on verified accounts | | Weekly limit | Yes | Yes | Yes | | Claude Code | Included | Included | Included | | Fable | Paid with usage credits | Included, up to half your weekly limit | Included, up to half your weekly limit | | Monthly Claude API credits | Not included | Included | Included, a larger amount than Max | | Priority access at high traffic times | No | Yes | Yes | | Early access to advanced Claude features | No | Yes | Yes | | Billing | Monthly or yearly | Monthly | Monthly | The Max wording comes from Anthropic's [Max plan page](https://support.claude.com/en/articles/11049741), and the Ultra wording from its [Ultra plan page](https://support.claude.com/en/articles/17728952-what-is-the-ultra-plan). Anthropic updates these pages from time to time, so check the date above and the source before you decide. ## What happened to Max 5x and Max 20x? In October 2026 Anthropic renamed its plans. Max 5x is now simply called Max, and Max 20x is now called Ultra. Anthropic says existing Max 20x subscribers move to Ultra automatically, with no price change. Older articles and videos may still use the old names, so this is how they map: | Old name | New name | | --- | --- | | Claude Max 5x | Claude Max | | Claude Max 20x | Claude Ultra | ## How do the 5-hour and weekly limits work? Anthropic gives most paid plans two limits: - **The 5-hour limit** starts with the first message you send and resets in full five hours later, according to [Anthropic's usage limits page](https://support.claude.com/en/articles/11647753-how-do-usage-and-length-limits-work). - **The weekly limit** caps your total use over the week, even if you never reach the 5-hour limit. It resets at a fixed time each week that Anthropic assigns to your account. Both limits count your use in claude.ai, Claude Code and Claude Desktop together, so a long chat in the browser leaves less for coding. On Max and Ultra, Anthropic also sets a separate weekly limit for Fable, as its [usage credits page](https://support.claude.com/en/articles/12429409) explains. Ultra removes the 5-hour limit for verified accounts, but the weekly limit stays. Anthropic's usage limits page also says it may limit usage in other ways, such as monthly caps or limits on certain models and features, and that it doesn't promise uninterrupted service. ## Is Claude Pro enough for Claude Code? Anthropic includes Claude Code in all three plans, so the question is how much you use it, not whether you can. A practical way to decide: - Start with Pro if you use Claude Code for a few tasks a day. - If you reach the 5-hour limit often in the middle of your work, Max gives you five times the usage in the same windows. - If you work in Claude Code most of the day and the 5-hour limit keeps stopping you, Ultra removes it on verified accounts, with a weekly limit still in place. You can follow what is left of your limits inside Claude, so watch them for a week or two before you move up. ## Claude Max or Ultra: what changes when you move up? The real difference is how your usage is counted. Max counts it in 5-hour windows and per week. A verified Ultra account counts only the week, with ten times Pro's weekly usage against Max's five, so you can spend it at your own pace. Before you upgrade: - **Verification is automatic.** Anthropic verifies Ultra accounts itself, "using factors like your account and payment history". Until then a temporary limit applies. Verifying your phone number at checkout is a separate step and doesn't remove it. To check, open `Settings > Usage` in Claude: if you don't see a Current session bar, your account is verified. - **The upgrade is prorated.** Anthropic's [Max plan page](https://support.claude.com/en/articles/11049741) says you pay a prorated amount for the rest of your billing cycle, and its usage limits page says the new limits apply right away. If you've claimed monthly API credits, you get prorated credits at once, then the higher amount each cycle. ## Which Claude plan suits you? | How you use Claude | Plan to consider | | --- | --- | | Questions, writing and study a few times a day | Claude Pro | | Daily work with long chats and files | Claude Pro, then Max if you hit the limit often | | Claude Code for several hours a day | Claude Max | | You reach Max's weekly limit, not the 5-hour one | Claude Ultra, with ten times Pro's weekly usage against Max's five | | You go over Max's limit only a few days a month | Claude Max with usage credits and a monthly spending cap | | Claude Code most of the day, every day | Claude Ultra | | Fable often | Claude Max or Ultra, since Pro pays for it with usage credits | ## Is Claude Max or Ultra cheaper than the API? For one person who works in Claude Code for hours every day, a plan usually costs less than the same work on the API at the official price. Anthropic's own average Claude Code cost per developer is in [the Claude Code cost table](https://5abeer.ai/en/guides/claude-code-cheapest-way#plan-cost). The API fits better for automation, products that serve other people, and use that comes and goes. Anthropic's Max and Ultra also come with monthly credits for the Claude API. When we checked, each plan's credits matched its own monthly price: Monthly API credits on Claude Max and Ultra | Service | Item | Value | Note | Source | | --- | --- | --- | --- | --- | | Anthropic | Monthly API credits with Claude Max | $100 a month | For building on the Claude Platform; separate from usage credits | https://claude.com/pricing | | Anthropic | Monthly API credits with Claude Ultra | $200 a month | Up from the Max amount, per the pricing page | https://claude.com/pricing | Each row links to the page it comes from, checked November 1, 2026. These figures can change, so check the source before you buy. These credits are for building on the Claude Platform, and they don't pay for usage credits. Usage credits let you keep working in Claude after a limit, billed at standard API rates up to a monthly spending cap you set, according to Anthropic's [usage credits page](https://support.claude.com/en/articles/12429409). So if you buy them every month, each extra hour costs what the API costs at the official price. Two example months of Claude Code, at the official price and at ours, to compare with the plan prices above. On the default model: Example: 40,000,000 input tokens and 2,000,000 output tokens on Claude Sonnet 5.5 (`claude-sonnet-5.5`) cost $30.00 at our price against $100.00 at the official price (70% lower). Official price checked November 21, 2026. The same month on [`claude-opus-5.5`](https://5abeer.ai/en/models/claude-opus-5.5): Example: 40,000,000 input tokens and 2,000,000 output tokens on Claude Opus 5.5 (`claude-opus-5.5`) cost $60.00 at our price against $200.00 at the official price (70% lower). Official price checked November 21, 2026. Both examples count every input token at the full input price. Long Claude Code sessions re-read their history at the cached rate, which is far lower, so a real month usually costs less. To find your own break-even point, follow the [three steps in Claude subscription vs API](https://5abeer.ai/en/guides/claude-api-vs-subscription#decide). Products need a key either way: Anthropic's [Claude Code legal page](https://code.claude.com/docs/en/legal-and-compliance) says the advertised limits on Pro, Max and Ultra assume ordinary, individual use, and developers building products or services should use an API key. On 5abeer, a key is paid per token from your balance, below the official price; prices are on [the Claude API page](https://5abeer.ai/en/api/claude). ## Is there an option for Claude and ChatGPT together? If you use Claude on a computer, 5abeer's Bundle plans run the official apps: Claude Desktop, Cowork and Claude Code, plus ChatGPT Desktop, Codex and Google Antigravity. Subscribe to the official apps for less than their official price. Before you compare with Anthropic's plans: - Our plan names, Pro, Max (formerly Max 5x) and Ultra (formerly Max 20x), are 5abeer's plan names, not Anthropic plans, even where the names match: 5abeer's Max is not Anthropic's Max plan, and 5abeer's Ultra is not Anthropic's Ultra plan. 5abeer's Ultra has 20 times the limits of 5abeer's Pro. - Every Bundle plan runs every official app, from the smallest to the largest. The plans differ in usage limits only. - Each 5abeer plan has a 5-hour limit and a weekly limit, explained in [Usage limits](https://5abeer.ai/en/docs/subscriptions/limits.md). We don't promise limits matching Anthropic's plans. - It runs on your own official account and is activated within minutes in the 5abeer AI app on Mac, Windows and Linux, not inside the phone app. These are 5abeer's own plans and their limits, not Anthropic's plans of the same name; prices are on the [pricing page](https://5abeer.ai/en/pricing): | 5abeer plan | Best for | Usage limits | Our price | | --- | --- | --- | --- | | Pro | For everyday use | A 5-hour limit and a weekly limit | Prices on the pricing page: https://5abeer.ai/en/pricing | | Max (formerly Max 5x) | For heavy daily work | 5× the Pro plan limits | Prices on the pricing page: https://5abeer.ai/en/pricing | | Ultra (formerly Max 20x) | If you work with it all day | 20× the Pro plan limits | Prices on the pricing page: https://5abeer.ai/en/pricing | > Plans are for the supported apps. To use the models from your own code, create an API key. How one subscription runs several apps is explained in [One subscription for all AI apps](https://5abeer.ai/en/guides/one-subscription-all-ai-apps). ## Frequently asked questions ### Is Claude Max worth it over Pro? It is if you reach Pro's 5-hour limit often. Max gives five times Pro's usage in the same 5-hour and weekly windows. If you rarely reach the limit, Pro is enough. ### Is Claude Ultra worth it over Max? It is if Max's 5-hour limit stops you several times a day, or you reach Max's weekly limit. Ultra gives ten times Pro's weekly usage against Max's five, with no 5-hour limit on verified accounts. If you go over only a few days a month, Max with usage credits may be enough. ### Is Claude Max the same as Max 5x? Yes, for Anthropic's plans: after the October 2026 rename, Max 5x is called Max and Max 20x is called Ultra. 5abeer renamed its plans the same way, Max (formerly Max 5x) and Ultra (formerly Max 20x); they are 5abeer plans with their own limits. ### Does Claude Ultra have a usage limit? Yes. Anthropic says Ultra has no 5-hour limit on verified accounts, but it still has a weekly limit, plus a separate weekly limit for Fable. If you still see a 5-hour limit, your account isn't verified yet and a temporary limit applies. 5abeer's Ultra (formerly Max 20x) is a different plan, with a 5-hour limit and a weekly limit. ### Does Claude Pro include Claude Code? Yes. Anthropic lists Claude Code in Pro, Max and Ultra. ### Can I use Fable on Claude Pro? Anthropic says Pro pays for Fable with usage credits, while Max and Ultra include it up to half your weekly limit. ### Is 5abeer part of Anthropic? No. 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. --- URL: https://5abeer.ai/en/guides/claude-code-cheapest-way # The cheapest way to use Claude Code: a plan or an API key? > Claude Code pricing on Pro, Max, Ultra, Team seats and an API key, how usage is counted, and which route is cheapest for light and heavy use. Updated: 2026-11-03 Claude Code runs in two ways: on a Claude plan with a fixed monthly price and usage limits, or on an API key that charges per token. For light use, an API key is usually the cheapest route. For hours of coding every day, a fixed plan usually costs less than the same tokens at the official API price. ## What are the ways to pay for Claude Code? Claude Code is Anthropic's coding agent for the terminal. It has two sign-in modes: you log in with a Claude plan account, or you give it an API key and pay for every request. Including 5abeer, that makes four routes: | Route | How you pay | What limits your use | Who it suits | | --- | --- | --- | --- | | An official Claude plan | A fixed monthly price | The plan's usage limits | Daily users who can pay Anthropic by card | | An official Anthropic API key | Per token, at the official price | Your Console balance | Teams that need a direct contract with Anthropic | | A 5abeer API key | Per token, below the official price | Your balance, and a spend limit if you set one | Light or irregular use, automation, several projects | | A 5abeer plan | A fixed monthly price, below the official price | A 5-hour limit and a weekly limit | Daily users of Claude Code and the other official apps | Anthropic's docs sum it up in one line: Claude Code charges by API token consumption. A plan includes that consumption up to its limits, and a key bills every token. ## How much does Claude Code cost on a plan? Claude Code is included in Anthropic's Pro, Max and Ultra plans, but not in the Free plan. Your Claude Code usage counts against the same limits as your chats in the Claude apps: Claude individual plans (official prices) | Service | Item | Value | Note | Source | | --- | --- | --- | --- | --- | | Claude | Pro, billed monthly | $20 a month | Includes Claude Code. | https://claude.com/pricing | | Claude | Pro, billed yearly up front | $200 a year | Includes Claude Code. | https://claude.com/pricing | | Claude | Max | $100 a month | 5x Pro usage every 5 hours and every week; includes Claude Code. | https://claude.com/pricing | | Claude | Ultra | $200 a month | 10x Pro usage every week, no 5-hour limit for verified accounts; includes Claude Code. | https://claude.com/pricing | | Anthropic | API usage with a paid plan | Billed separately from the plan | Max and Ultra include monthly API credits. | https://support.claude.com/en/articles/9876003 | Each row links to the page it comes from, checked October 31, 2026, November 1, 2026. These figures can change, so check the source before you buy. When you reach the limit, you wait for it to reset or turn on usage credits. Anthropic bills usage credits at standard API rates, the same per-token prices as an official API key, and they cover both Claude chat and Claude Code. You can cap them with a monthly spend limit. In Claude Code, `/usage-credits` opens those settings when you sign in with your plan; it isn't available when you sign in with an API key. These are Anthropic's own figures for Claude Code: Claude Code costs, as Anthropic publishes them | Service | Item | Value | Note | Source | | --- | --- | --- | --- | --- | | Anthropic | Average cost per developer per active day | $13 a day | An approximate average across enterprise deployments. | https://code.claude.com/docs/en/costs | | Anthropic | Average cost per developer per month | $150–250 | An approximate average across enterprise deployments. | https://code.claude.com/docs/en/costs | | Anthropic | What 90% of users stay below per active day | $30 a day | Across enterprise deployments. | https://code.claude.com/docs/en/costs | | Anthropic | Claude Code on a Pro, Max or Ultra plan | Within the plan's usage limits | Usage credits, paid separately, let you continue past the limit. | https://code.claude.com/docs/en/costs | Each row links to the page it comes from, checked October 31, 2026, November 1, 2026. These figures can change, so check the source before you buy. ## How much are Team and Enterprise seats? Teams buy seats instead of personal plans. A Standard seat includes Claude Code, a Premium seat gives five times a Standard seat's usage, and Enterprise is priced as a seat plus usage at API rates. Each member's Claude Code use draws on their seat's allowance, which resets every five hours and every week and also covers Claude chat and Cowork: Claude Code on the Free plan and Team and Enterprise seats (official prices) | Service | Item | Value | Note | Source | | --- | --- | --- | --- | --- | | Anthropic | Free plan | Claude Code not included | — | https://claude.com/pricing | | Anthropic | Team Standard seat, billed yearly | $20 a month | Per seat. Includes Claude Code. | https://claude.com/pricing | | Anthropic | Team Standard seat, billed monthly | $25 a month | Per seat. Includes Claude Code. | https://claude.com/pricing | | Anthropic | Team Premium seat, billed yearly | $100 a month | Five times a Standard seat's usage. | https://claude.com/pricing | | Anthropic | Team Premium seat, billed monthly | $125 a month | Five times a Standard seat's usage. | https://claude.com/pricing | | Anthropic | Enterprise | Seat price plus usage at API rates | Includes Claude Code. | https://claude.com/pricing | Each row links to the page it comes from, checked November 1, 2026. These figures can change, so check the source before you buy. ## How much does Claude Code cost on an API key? On a key, Claude Code is billed by the tokens it sends and receives. Every turn carries the conversation so far, the files it reads and the results of the commands it runs, so a long session sends far more tokens than the messages you type. Its replies, the code it writes and its thinking are all billed as output. Anthropic's per-developer averages above come from companies using it at work, and your cost depends on the model, the size of your codebase and how long your sessions run. These are the newest Claude models in Claude Code, at our price per million tokens: | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | Claude Sonnet 5.5 | `claude-sonnet-5.5` | $0.60 | $3 | 1M | | Claude Opus 5.5 | `claude-opus-5.5` | $1.20 | $6 | 1M | | Claude Fable 5.1 | `claude-fable-5.1` | $3 | $15 | — | And this is the default model's price, ours next to the official one: Claude Sonnet 5.5 (`claude-sonnet-5.5`) per 1M tokens: input $0.60 (official $2), output $3 (official $10). Official price checked November 21, 2026. Anthropic's list rates for every Claude model, with cache and batch prices, are in [Claude API pricing](https://5abeer.ai/en/guides/claude-api-pricing). With an official key, your first Claude Code sign-in with a Claude Console account creates a workspace called "Claude Code", where you see what it has cost and set a spend limit for it. ## How is a plan login counted differently from a key? The same Claude Code is billed differently depending on what it signs in with: - **A plan login:** usage counts against your plan's limits and nothing is charged per request, unless you turn on usage credits. The dollar figure in the Session block of `/usage` is meant for API users, so check the plan usage bars on the same screen instead. - **An API key:** every request is billed per token. The cost in `/usage` is an estimate that Claude Code computes on your machine at Anthropic's list price. The real bill is in the Claude Console, or, on a 5abeer key, what is deducted from your balance at our price. - **Both on one machine:** a key in your environment or in Claude Code's settings takes priority over a saved claude.ai login (an `ANTHROPIC_API_KEY` only after you approve it once). Those requests are billed per token and don't use your plan's limits. Run `/status` to see which one is active. The full order and the setup are in [Claude Code API key](https://5abeer.ai/en/guides/claude-code-api-key). - **Teams and cloud accounts:** in a team that mixes both, each developer is metered by the method they signed in with. On Amazon Bedrock, Google Cloud's Agent Platform and Microsoft Foundry, Claude Code is billed per token to your cloud account. ## Which is cheaper for your usage? Light use first: a few short sessions a week that send five million tokens a month and get half a million back, on the default model: Example: 5,000,000 input tokens and 500,000 output tokens on Claude Sonnet 5.5 (`claude-sonnet-5.5`) cost $4.50 at our price against $15.00 at the official price (70% lower). Official price checked November 21, 2026. Even at the official price, that month costs less than the Pro plan in the table above. If your use looks like this, a key is the cheaper route, and you also pay nothing in the weeks you don't code. Then heavy use: hours of work every day that send forty million tokens a month and get four million back: Example: 40,000,000 input tokens and 4,000,000 output tokens on Claude Sonnet 5.5 (`claude-sonnet-5.5`) cost $36.00 at our price against $120.00 at the official price (70% lower). Official price checked November 21, 2026. Before caching, at the official price, that month costs more than Anthropic's Max plan in the table above. That is why people who code all day usually pick a plan. At our API price the same month still costs less than the official Max, but for coding every day a 5abeer plan is usually cheaper still; compare on the [pricing page](https://5abeer.ai/en/pricing). > Claude Code caches repeated context automatically, and cached input is billed at a lower rate, so a long session usually costs less than a plain token count suggests. Even so, Anthropic's own average cost per developer per month, in the table above, is above the official Max price. The details are in [Prompt caching](https://5abeer.ai/en/docs/api/caching.md). ## How to use less on any route These habits come from Anthropic's own advice, and they lower your bill on a key and stretch your limits on a plan: - **Clear between tasks:** run `/clear` when you move to unrelated work, so old context isn't sent with every message. - **Compact long sessions:** `/compact` summarizes the conversation, and you can say what to keep. - **Match the model to the task:** the default model handles most coding tasks for less. Keep Opus for hard design decisions and multi-step reasoning, and switch with `/model`. - **Lower the effort:** for simple tasks, `/effort` reduces thinking, which is billed as output. - **Turn off servers you don't use:** `/mcp` lists your MCP servers, and each one adds to the context. - **Ask specific questions:** "add validation to the login function" reads far fewer files than "improve this codebase". To see where your usage goes, run `/usage` inside Claude Code. ## Claude Code through 5abeer 5abeer is an independent service, not affiliated with Anthropic. Its API follows the Anthropic Messages format, so Claude Code works with it as it ships, and both routes cost less than the official price. **With an API key:** create a key for Claude models, then set the base URL and key in Claude Code's settings, as below. Full per-OS setup is in the [Claude Code guide](https://5abeer.ai/en/docs/apps/claude-code.md). `~/.claude/settings.json` ```json { "env": { "ANTHROPIC_BASE_URL": "https://api.5abeer.ai", "ANTHROPIC_AUTH_TOKEN": "YOUR_5ABEER_API_KEY", "ANTHROPIC_MODEL": "claude-sonnet-5.5" } } ``` Every request is deducted from your balance by model and token count, and you control each key with a spend limit, an expiry date and an IP allow-list. Prices are on [Claude API](https://5abeer.ai/en/api/claude). **With a plan:** the 5abeer AI app turns Claude Code on for your plan, with no key and no files to edit. The plan runs with a 5-hour limit and a weekly limit, as in [Subscription limits](https://5abeer.ai/en/docs/subscriptions/limits.md). Plans are for the supported apps, and to use the models from your own code you need an API key. See [What each plan runs](https://5abeer.ai/en/docs/subscriptions/plan-apps.md#claude-code). These are our plans and their limits; prices are on the [pricing page](https://5abeer.ai/en/pricing). 5abeer's Max (formerly Max 5x) and Ultra (formerly Max 20x) are our own plans, not the Anthropic plans of the same name: | 5abeer plan | Best for | Usage limits | Our price | | --- | --- | --- | --- | | Pro | For everyday use | A 5-hour limit and a weekly limit | Prices on the pricing page: https://5abeer.ai/en/pricing | | Max (formerly Max 5x) | For heavy daily work | 5× the Pro plan limits | Prices on the pricing page: https://5abeer.ai/en/pricing | | Ultra (formerly Max 20x) | If you work with it all day | 20× the Pro plan limits | Prices on the pricing page: https://5abeer.ai/en/pricing | ## FAQ ### Do I need a paid plan to use Claude Code? You need either a plan that includes Claude Code, which starts at Pro because the Free plan doesn't include it, or an API key with a balance. On a key, you pay only for the requests you send. ### Can I use a plan and an API key together? Yes. Many developers keep a plan for daily work and a key for automation or for when the plan's limit runs out. On 5abeer, API key usage never counts against your plan's limits. ### What happens when I hit my plan's limit in Claude Code? Claude Code tells you when the limit resets. On 5abeer you can wait, buy a weekly limit reset, move to a higher plan or turn on Continue from the wallet, as explained in [When you reach a limit](https://5abeer.ai/en/docs/subscriptions/limits.md#at-limit). ### Which model should I use in Claude Code? Start with the default model, [`claude-sonnet-5.5`](https://5abeer.ai/en/models/claude-sonnet-5.5), which handles most coding tasks. Move to [`claude-opus-5.5`](https://5abeer.ai/en/models/claude-opus-5.5) or [`claude-fable-5.1`](https://5abeer.ai/en/models/claude-fable-5.1) for the hardest problems. The full list with prices is on the [models page](https://5abeer.ai/en/models). ### Does Claude Code behave differently on a 5abeer key? No. Claude Code runs exactly as Anthropic ships it, with its commands and settings. Only the base URL and the key change, and `/status` shows the base URL in use. ### Can I pay from Egypt? Yes. The ways to pay from Egypt and the steps are in [How to pay for the OpenAI or Claude API from Egypt](https://5abeer.ai/en/guides/pay-ai-api-from-egypt), and the details are on the [API in Egypt page](https://5abeer.ai/en/api/egypt). For a plan paid from Egypt, see [Claude Code subscription in Egypt](https://5abeer.ai/en/apps/claude-code/egypt). ## Sources Checked on 2026-11-03: - Anthropic: [Claude pricing](https://claude.com/pricing) - Claude Code docs: [Manage costs effectively](https://code.claude.com/docs/en/costs) - Claude Code docs: [Authentication](https://code.claude.com/docs/en/authentication) - Claude Code docs: [Connect Claude Code to an LLM gateway](https://code.claude.com/docs/en/llm-gateway-connect) - Anthropic Help Center: [Manage usage credits for paid Claude plans](https://support.claude.com/en/articles/12429409-extra-usage-for-paid-claude-plans) - Anthropic Help Center: [Use Claude Code with your Pro, Max, or Ultra plan](https://support.claude.com/en/articles/11145838-using-claude-code-with-your-pro-or-max-plan) Each row in the official price tables shows its own source and the date we checked it. ## Get started Compare the two routes for Claude in [Claude subscription vs API](https://5abeer.ai/en/guides/claude-api-vs-subscription), or create a key and set up Claude Code. --- URL: https://5abeer.ai/en/guides/vibe-coding-arabic # Vibe coding in Arabic: a guide with Claude Code and Codex > How to vibe code in Arabic with Claude Code or Codex: Arabic prompts and replies, a loop that keeps the app working, where it gets risky, and the cost. Updated: 2026-11-03 Vibe coding means describing what you want in plain words and letting an AI agent such as Claude Code or Codex write, run and fix the code. You can work this way in Arabic: write your prompts in Arabic letters, keep code and commands in English, and check each step before you build on it. ## What is vibe coding? Andrej Karpathy coined the term in February 2025 for a way of working where you "fully give in to the vibes, embrace exponentials, and forget that the code even exists". In March 2025, Simon Willison drew the line: if you reviewed and tested the code an AI wrote and can explain how it works, that is software development, not vibe coding. This guide sits between the two: plain words, plus just enough checks to keep the app working. That suits prototypes, internal tools and personal projects; logins, payments and other people's data need more care. ## How do you vibe code in Arabic? Claude and GPT models both read and write Arabic, so you can describe your app in Arabic from the first prompt. Five habits help: - **Arabic letters, not Franco (Arabizi).** Anthropic recommends text in its native script rather than transliteration, so write «صفحة تسجيل الدخول», not the same words in Latin letters and numbers. - **Exact strings as they are.** Keep file names, commands and error messages as written, inside backticks: the agent searches for them letter by letter. - **One reply language.** In Claude Code, add `"language": "arabic"` to `~/.claude/settings.json` and Claude answers in Arabic by default. In both tools, this line in `CLAUDE.md` or `AGENTS.md` asks for Arabic replies and keeps the code in English: ```text Reply to me in Arabic. Keep code, file names, identifiers, comments and commit messages in English. ``` - **The rest of that file in English.** It loads at the start of every session, and [Arabic uses more tokens](https://5abeer.ai/en/guides/arabic-token-cost) for the same meaning. - **Typing, not dictation.** As of 3 November 2026, Claude Code's voice dictation doesn't list Arabic, so with `language` set to Arabic, dictation falls back to English while replies stay in Arabic. Arabic pasted from documents or chats can carry invisible direction marks. Claude Code strips them when you press Enter and sends on the second Enter. The tools show their words in English: | In the tool | In Arabic | What it means | | --- | --- | --- | | plan mode | وضع الخطة | The agent proposes a plan before it starts | | permissions | الأذونات | What the agent may do without asking | | diff | الفروق | The lines a change adds or removes | | commit | إيداع | A saved point in your git history | | context | السياق | What the agent holds from the current conversation | ## How does a vibe coding session work? You need a coding agent that reads your project, edits files and runs commands, such as Anthropic's [Claude Code](https://5abeer.ai/en/apps/claude-code) or OpenAI's [Codex](https://5abeer.ai/en/apps/codex). Both follow the same loop: describe, plan, build one step, check it, commit. [How to build a website with Claude Code](https://5abeer.ai/en/guides/build-website-claude-code) walks through it on a real site. **Start a git repository** with `git init`. Claude Code's checkpoints cover only the files Claude edits with its own tools, and the Codex docs recommend Git checkpoints before and after each task. **Describe the outcome.** Say who the app is for and what done looks like, or let the agent interview you first: أريد تطبيق ويب صغيرًا يسجّل فيه فريقي المبيعات اليومية ويرى مجموعها كل أسبوع. اسألني حتى تستطيع كتابة المواصفات، ثم اكتبها في الملف `SPEC.md`. لا تكتب أي كود الآن In English: a small web app where the team logs daily sales and sees a weekly total; interview me until you can write the spec, save it to `SPEC.md`, and write no code yet. **Read the plan.** Type `/plan` in either tool, or press `Shift+Tab` in Claude Code until the status bar shows `⏸ plan mode on`. Claude Code makes no edits in plan mode until you approve. **Build one feature per prompt, with a check:** a test that passes, a command and its output, or a page that loads. Ask for that evidence, not for "it works". **Show the problem.** Paste the exact error, or a screenshot: `Ctrl+V` in Claude Code (`Alt+V` on Windows), `codex --image` or a paste in Codex. **Commit each step that works,** so a bad next step costs one undo. ## How do you keep a vibe-coded app from falling apart? Trouble starts when the app outgrows one conversation and each fix breaks something else: - **An instructions file.** `/init` writes a starting `CLAUDE.md` or `AGENTS.md`. Keep it to build and test commands, rules the code doesn't show and your language line ([CLAUDE.md guide](https://5abeer.ai/en/guides/claude-md-guide)). - **Tests that grow with the app,** all passing before a step counts as done. - **A review before each commit.** Claude Code's `/code-review` checks the diff in a fresh subagent. Codex's `/review` reports prioritized findings without changing your working tree. - **A way back.** In Claude Code, `/rewind`, or `Esc` twice on an empty prompt, returns the code, the conversation or both to an earlier prompt. In either tool, git restores your last commit. - **A fresh start.** After two failed corrections, Anthropic advises `/clear` and one better prompt. Codex has `/clear` too. ## Where does vibe coding stop being safe? Working code isn't necessarily safe: - **Secrets** stay out of front-end code, since a browser shows everything it downloads, and out of git. - **Logins, payments and personal data** need review by someone who reads code before real users arrive. - **New packages:** ask why each is needed and check the exact name, since lookalike names exist. - **Deploys, database changes and anything that sends messages or money** stay in your hands. Claude Code can start in auto mode, where a classifier checks risky actions; `Shift+Tab` to Manual makes it ask before most edits, shell commands and network access. In Codex, `/permissions` sets the same boundary. - **Code you can't explain:** ask the agent to explain it, in Arabic, before you build on it. ## How much does vibe coding cost? On a 5abeer plan you pay the plan price and work within its limits. On an API key you pay for tokens, and every request carries the whole conversation, so long sessions cost more per prompt. Arabic matters less than you'd expect: most of each request is code, files and command output, and only your prompts and the replies are Arabic. As an example, not a measurement, a weekend prototype that sends four million tokens and gets three hundred thousand back, on the default model: Example: 4,000,000 input tokens and 300,000 output tokens on Claude Sonnet 5.5 (`claude-sonnet-5.5`) cost $3.30 at our price against $11.00 at the official price (70% lower). Official price checked November 21, 2026. To spend less, clear the conversation between tasks, plan big changes and ask for short replies. On a key, see what was deducted on [Track your usage](https://5abeer.ai/en/docs/start/pricing.md#usage). ## Vibe coding through 5abeer 5abeer is an independent service, not affiliated with Anthropic or OpenAI. Its API follows the Anthropic Messages format that Claude Code uses and the Responses format that Codex uses. Everything above runs on your machine, so only how the tool connects changes: through an API key or a plan, and both cost less than the official price ([plans](https://5abeer.ai/en/pricing), [API prices](https://5abeer.ai/en/api)). **With an API key:** create a key for Claude models (Claude Code) or GPT models (Codex), then point the tool at 5abeer: | Format | Base URL | Key header | | --- | --- | --- | | OpenAI | `https://api.5abeer.ai/v1` | `Authorization: Bearer ` | | Anthropic | `https://api.5abeer.ai` | `x-api-key: ` | | Gemini | `https://api.5abeer.ai/v1beta` | `x-goog-api-key: ` | `~/.claude/settings.json` ```json { "env": { "ANTHROPIC_BASE_URL": "https://api.5abeer.ai", "ANTHROPIC_AUTH_TOKEN": "YOUR_5ABEER_API_KEY", "ANTHROPIC_MODEL": "claude-sonnet-5.5" } } ``` `~/.codex/config.toml` ```toml model = "gpt-6.2-sol" model_provider = "khabeer" [model_providers.khabeer] name = "5abeer" base_url = "https://api.5abeer.ai/v1" env_key = "KHABEER_API_KEY" wire_api = "responses" ``` Requests are deducted from your balance by model and tokens, and each key takes a spend limit, an expiry date and an IP allow-list. Full setup: [Claude Code](https://5abeer.ai/en/docs/apps/claude-code.md) and [Codex CLI](https://5abeer.ai/en/docs/apps/codex.md). **With a plan:** the 5abeer AI app turns Claude Code or Codex on for your plan, with no key and no files to edit. Every Bundle plan runs both, the Claude plan runs Claude Code, and the GPT plan runs Codex, with a 5-hour and a weekly limit ([Subscription limits](https://5abeer.ai/en/docs/subscriptions/limits.md)). Plans are for the supported apps, and to use the models from your own code you need an API key. See [What each plan runs](https://5abeer.ai/en/docs/subscriptions/plan-apps.md#apps). ## FAQ ### Is vibe coding real programming? The result is real code that runs like any other. The agent types it; you decide what to build and check that it works. ### Can I vibe code if I have never written code? Yes, for small projects. Ask the agent to explain each new file in Arabic, and learn early to read a diff and an error message. ### Should I start with Claude Code or Codex? Either: both plan first, edit, run commands and take Arabic prompts. Start with the one your plan includes, or see [Claude Code vs Codex](https://5abeer.ai/en/guides/claude-code-vs-codex). ### Will the agent name my variables in Arabic? It may follow your prompt's language. The instructions line above keeps names, comments and commits in English. ### Does this work on a 5abeer plan or only on a key? Both: a plan through the 5abeer AI app, a key through each tool's settings. If your app calls a model itself, that code needs a key. ## Sources Checked on 2026-11-03: - Claude Code docs: [Best practices](https://code.claude.com/docs/en/best-practices), [Common workflows](https://code.claude.com/docs/en/common-workflows), [Permission modes](https://code.claude.com/docs/en/permission-modes), [Commands](https://code.claude.com/docs/en/commands), [Settings reference](https://code.claude.com/docs/en/settings-reference), [Voice dictation](https://code.claude.com/docs/en/voice-dictation), [Interactive mode](https://code.claude.com/docs/en/interactive-mode) - Claude docs: [Multilingual support](https://platform.claude.com/docs/en/build-with-claude/multilingual-support) - ChatGPT Learn: [Codex CLI](https://learn.chatgpt.com/docs/codex/cli), [Slash commands](https://learn.chatgpt.com/docs/cli/slash-commands/) - Simon Willison: [Not all AI-assisted programming is vibe coding](https://simonwillison.net/2025/Mar/19/vibe-coding/) - Wikipedia: [Vibe coding](https://en.wikipedia.org/wiki/Vibe_coding) ## Get started For a worked example from spec to deploy, read [How to build a website with Claude Code](https://5abeer.ai/en/guides/build-website-claude-code), or choose the plan that runs your tools. --- URL: https://5abeer.ai/en/guides/gemini-cli-vs-claude-code # Gemini CLI vs Claude Code: plans, models and which fits you > How Gemini CLI and Claude Code compare on access, models and setup, what changed in Gemini CLI in June 2026, and which tool fits your situation. Updated: 2026-11-03 Claude Code and Gemini CLI are both terminal coding agents. Claude Code runs Claude models on a Claude plan or an API key. Gemini CLI is Google's open-source agent for Gemini models. Since June 18, 2026, Google offers it to Gemini Code Assist licenses and paid API keys; free and Google AI plan users moved to Antigravity CLI. ## How do they compare? | | Claude Code | Gemini CLI | | --- | --- | --- | | Made by | Anthropic | Google | | License | Proprietary, under Anthropic's Commercial Terms of Service | Open source, Apache 2.0 | | Models | Claude models | Gemini models | | Who can use it | Claude plan subscribers, Anthropic API accounts and cloud providers | Organizations with a Gemini Code Assist Standard or Enterprise license or Code Assist for GitHub on Google Cloud, and paid Gemini API or Vertex AI keys | | Where it runs | Terminal, VS Code and Cursor, JetBrains, a desktop app and the web | Terminal, VS Code and editors built on it, plus JetBrains IDEs and Zed through the Agent Client Protocol | | Install | Native installer, Homebrew, WinGet, apt, dnf, apk or npm | npm, Homebrew, MacPorts or conda | | Project instructions | `CLAUDE.md`, or `AGENTS.md` when there is no `CLAUDE.md` | `GEMINI.md`, or other names set in `settings.json` | | Extending it | MCP, skills, hooks and subagents | MCP, extensions, custom commands, Agent Skills, hooks and experimental subagents | | Scripted runs | `claude -p` | `gemini -p`, with `--output-format json` | Both read your project, edit files and run commands after you approve them. The real differences are which models you want and who may use the tool. ## What changed in Gemini CLI in June 2026? On May 19, 2026, Google announced on its Developers Blog that from June 18, 2026, Gemini CLI and the Gemini Code Assist IDE extensions would stop serving requests from Google AI Pro and Ultra subscribers and from people using them at no charge. Access stayed the same for: - organizations with a Gemini Code Assist Standard or Enterprise license, or Code Assist for GitHub through Google Cloud; - paid Gemini API keys, and keys for Google Cloud's Gemini Enterprise Agent Platform, which Gemini CLI's docs still call Vertex AI. The Gemini API has its own free tier, but Google's notice names paid keys only. Gemini CLI's sign-in page, updated on September 18, 2026, says unpaid-tier users moved to Antigravity CLI, while its quota page, last updated on June 18, 2026, still lists an unpaid key tier, so Google's pages disagree on this point. Google also says Gemini CLI is not tuned for its newest Gemini generation and should not be used to benchmark Gemini models. Google now publishes three CLIs with similar names: | Command | What Google says it is for | | --- | --- | | `agy` (Antigravity CLI) | Google's interactive coding agent for the terminal, for free and Google AI Pro and Ultra accounts, for Google Cloud and for the newest Gemini models. See [Google Antigravity explained](https://5abeer.ai/en/guides/google-antigravity-guide). | | `gemini-api` (Gemini API CLI) | Not a coding agent. It gives agents such as Claude Code, and your scripts, shell commands for Gemini models, media generation and file analysis, with a Gemini API key. | | `gemini` (Gemini CLI) | Organizations on Gemini Code Assist, plus paid Gemini API and Vertex AI keys. | ## How do the plans compare? Claude Code is included in Anthropic's Pro, Max and Ultra plans and in Team and Enterprise seats, and its use counts toward the same plan limits as your chats in the Claude apps. Without a plan, it runs on an Anthropic API key billed per token, or through a cloud provider: Claude individual plans (official prices) | Service | Item | Value | Note | Source | | --- | --- | --- | --- | --- | | Claude | Pro, billed monthly | $20 a month | Includes Claude Code. | https://claude.com/pricing | | Claude | Pro, billed yearly up front | $200 a year | Includes Claude Code. | https://claude.com/pricing | | Claude | Max | $100 a month | 5x Pro usage every 5 hours and every week; includes Claude Code. | https://claude.com/pricing | | Claude | Ultra | $200 a month | 10x Pro usage every week, no 5-hour limit for verified accounts; includes Claude Code. | https://claude.com/pricing | | Anthropic | API usage with a paid plan | Billed separately from the plan | Max and Ultra include monthly API credits. | https://support.claude.com/en/articles/9876003 | Each row links to the page it comes from, checked October 31, 2026, November 1, 2026. These figures can change, so check the source before you buy. Gemini CLI no longer comes with Google's plans for individuals (Google AI Pro, Ultra or free Code Assist). Installing it is free: you pay for your organization's Code Assist license or for the tokens it uses on a paid Gemini API key. ## Which models does each one run? Claude Code is made for Claude models, and Gemini CLI speaks only the Gemini format. So on 5abeer, Claude Code runs Claude models and Gemini CLI runs Gemini models. These are the models Claude Code runs on 5abeer, at our price per million tokens: | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | Claude Sonnet 5.5 | `claude-sonnet-5.5` | $0.60 | $3 | 1M | | Claude Opus 5.5 | `claude-opus-5.5` | $1.20 | $6 | 1M | | Claude Fable 5.1 | `claude-fable-5.1` | $3 | $15 | — | | Claude Fable 5 | `claude-fable-5` | $3 | $15 | 1M | | Claude Opus 4.6 | `claude-opus-4.6` | $1.50 | $7.50 | 1M | | Claude Opus 5 | `claude-opus-5` | $1.50 | $7.50 | 1M | | Claude Sonnet 5 | `claude-sonnet-5` | $0.60 | $3 | 1M | | Claude Sonnet 4.6 | `claude-sonnet-4.6` | $0.90 | $4.50 | 1M | | Claude Haiku 5.5 | `claude-haiku-5.5` | $0.03 | $0.15 | 1M | | Claude Haiku 4.5 | `claude-haiku-4.5` | $0.30 | $1.50 | 200K | In Claude Code, `/model` switches models during a session. The default model on 5abeer is [`claude-sonnet-5.5`](https://5abeer.ai/en/models/claude-sonnet-5.5), and [`claude-opus-5.5`](https://5abeer.ai/en/models/claude-opus-5.5) or [`claude-fable-5.1`](https://5abeer.ai/en/models/claude-fable-5.1) take the hardest problems. And these are the Gemini models on 5abeer, which Gemini CLI runs in the Gemini format: | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | Gemini 4 Argon | `gemini-4-argon` | $0.60 | $3 | — | | Gemini 2.5 Pro | `gemini-2.5-pro` | $0.38 | $3 | 1M | | Gemini 3.8 Flash | `gemini-3.8-flash` | $0.23 | $1.13 | — | | Gemini 3 Flash | `gemini-3-flash` | $0.15 | $0.90 | 1M | | Gemini 3.1 Pro | `gemini-3.1-pro` | $0.60 | $3.60 | 1M | ## Which one fits your situation? | Your situation | The tool that fits | | --- | --- | | Your company gives you a Gemini Code Assist license | Gemini CLI, signed in with Google and your Google Cloud project | | You used Gemini CLI at no charge or with Google AI Pro or Ultra | Antigravity CLI, where Google moved that access | | You want Gemini models on a paid API key | Gemini CLI with API key sign-in | | You want Claude models | Claude Code, on a Claude plan or an API key | | You want Claude and Gemini models side by side | Both, with separate settings in `~/.claude` and `~/.gemini` | ## Using both with 5abeer 5abeer is an independent service. It serves Claude models in the Anthropic Messages format and Gemini models in the Gemini format, so both tools work with it as they ship. Each key works with one provider's models, and both keys draw on the same balance. Every API price is below the model's official price. ### 1. Create two keys Create a key for Claude models and a key for Gemini models, as in [Create a key](https://5abeer.ai/en/docs/start/keys.md#create). ### 2. Set up Claude Code Put these settings in `~/.claude/settings.json`, with your Claude key in place of `YOUR_5ABEER_API_KEY`: `~/.claude/settings.json` ```json { "env": { "ANTHROPIC_BASE_URL": "https://api.5abeer.ai", "ANTHROPIC_AUTH_TOKEN": "YOUR_5ABEER_API_KEY", "ANTHROPIC_MODEL": "claude-sonnet-5.5" } } ``` Run `claude` in your project. `/status` shows the base URL in use. The full steps are in [Claude Code setup](https://5abeer.ai/en/docs/apps/claude-code.md). ### 3. Set up Gemini CLI Put these values in `~/.gemini/.env`, with your Gemini key in place of `YOUR_5ABEER_API_KEY`, then choose API key sign-in as in [Gemini CLI setup](https://5abeer.ai/en/docs/apps/gemini-cli.md#auth): `~/.gemini/.env` ```bash GEMINI_API_KEY=YOUR_5ABEER_API_KEY GEMINI_MODEL=gemini-4-argon GOOGLE_GEMINI_BASE_URL=https://api.5abeer.ai ``` Run `gemini` in your project. With a 5abeer plan, the 5abeer AI app turns Claude Code on in one click, with no key and no files to edit. 5abeer's Pro, Max (formerly Max 5x) and Ultra (formerly Max 20x) are 5abeer's plans, not Anthropic's or Google's plans with the same names. They cost less than the official plans, and the apps each one runs are in [What each plan runs](https://5abeer.ai/en/docs/subscriptions/plan-apps.md#claude-code). The details are on the [Claude Code page](https://5abeer.ai/en/apps/claude-code). | 5abeer plan | Best for | Usage limits | Our price | | --- | --- | --- | --- | | Pro | For everyday use | A 5-hour limit and a weekly limit | Prices on the pricing page: https://5abeer.ai/en/pricing | | Max (formerly Max 5x) | For heavy daily work | 5× the Pro plan limits | Prices on the pricing page: https://5abeer.ai/en/pricing | | Ultra (formerly Max 20x) | If you work with it all day | 20× the Pro plan limits | Prices on the pricing page: https://5abeer.ai/en/pricing | ## Questions ### Is Gemini CLI still free? The tool is free to install and open source. Google says free use ended on June 18, 2026: it now names a Gemini Code Assist license from your organization, or a paid Gemini API or Vertex AI key. The Gemini API's free tier is not on that list, and free individual use moved to Antigravity CLI. ### Can each tool run the other's models? Not as 5abeer sets them up. Gemini CLI speaks only the Gemini format, which 5abeer serves for Gemini models only, and Claude Code on 5abeer runs the Claude models listed above. Google's `gemini-api` CLI lets Claude Code call Gemini as a shell command, with a key from Google AI Studio, while Claude stays the agent's model. To switch one terminal agent between Claude and Gemini models, see [OpenCode](https://5abeer.ai/en/apps/opencode). ### Do they read the same project instructions? Not by default. Claude Code reads `CLAUDE.md`, or `AGENTS.md` when the project has no `CLAUDE.md` (from version 2.1.277). Gemini CLI reads `GEMINI.md`, and you can add other names, such as `AGENTS.md`, with the `context.fileName` setting in its `settings.json`. With that setting and no `CLAUDE.md`, one `AGENTS.md` serves both tools. ### I used Gemini CLI at no charge. What carries over if I switch? To Antigravity CLI, most of it. Google's migration guide says it reads the same `GEMINI.md` and `AGENTS.md` files, and `agy plugin import gemini` turns your extensions into Antigravity plugins. Project skills move to `.agents/skills/`, and MCP servers move to their own `mcp_config.json`. Claude Code does not read `GEMINI.md`, so put your instructions in `AGENTS.md` or `CLAUDE.md` and add your MCP servers again, as in [MCP in Claude Code](https://5abeer.ai/en/guides/claude-code-mcp). ### Is Claude Code open source? No. Its license reserves all rights to Anthropic, and its use falls under Anthropic's Commercial Terms of Service. Gemini CLI is open source under Apache 2.0. ## Sources Checked on 2026-11-03: - Anthropic: [Claude Code overview](https://code.claude.com/docs/en/overview), [Advanced setup](https://code.claude.com/docs/en/setup), [Manage costs](https://code.claude.com/docs/en/costs), [How Claude remembers your project](https://code.claude.com/docs/en/memory), [Use Claude Code with your Pro, Max or Ultra plan](https://support.claude.com/en/articles/11145838-using-claude-code-with-your-pro-or-max-plan) and the [Claude Code license](https://github.com/anthropics/claude-code/blob/main/LICENSE.md) - Google: [Transitioning Gemini CLI to Antigravity CLI](https://developers.googleblog.com/an-important-update-transitioning-gemini-cli-to-antigravity-cli/) (May 19, 2026), the [Gemini CLI README](https://github.com/google-gemini/gemini-cli), [Gemini CLI authentication](https://geminicli.com/docs/get-started/authentication) (updated September 18, 2026), [Gemini CLI quotas and pricing](https://geminicli.com/docs/resources/quota-and-pricing) (updated June 18, 2026), [IDE integration](https://geminicli.com/docs/ide-integration/), [Provide context with GEMINI.md files](https://geminicli.com/docs/cli/gemini-md), the [Gemini API CLI README](https://github.com/google-gemini/gemini-api-cli), [Antigravity CLI migration](https://antigravity.google/docs/cli/gcli-migration), [Gemini Developer API pricing](https://aistudio.google.com/docs/pricing) and the [Agent Platform release notes](https://docs.cloud.google.com/gemini-enterprise-agent-platform/release-notes) (the Vertex AI name change of April 22, 2026) > 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. ## Get started See every tool 5abeer works with on the [apps page](https://5abeer.ai/en/apps) and every model's price on the [API page](https://5abeer.ai/en/api), or create a key and set up either tool. --- URL: https://5abeer.ai/en/guides/chatgpt-plus-vs-claude-pro # ChatGPT Plus vs Claude Pro: price, limits and apps > ChatGPT Plus or Claude Pro? Same list price, different usage meters. How each counts usage, its coding agent, models, apps and billing, with sources. Updated: 2026-11-03 ChatGPT Plus and Claude Pro have the same monthly list price on the official US websites, and each includes its company's coding agent: Codex with Plus, Claude Code with Pro. They differ in how each plan meters usage, how you can pay, how much text a model reads at once, and the next plan up. ## How do ChatGPT Plus and Claude Pro compare? As OpenAI and Anthropic describe them on their own pages, checked on 2026-11-03: | | ChatGPT Plus | Claude Pro | | --- | --- | --- | | Billing | Monthly only | Monthly, or yearly at a lower monthly rate | | Coding agent | Codex, which ChatGPT's no-cost plan and Go also include in limited form | Claude Code, from Pro up | | Models | OpenAI's GPT models for Plus; the newest run in Codex and ChatGPT Work, not in Chat | Opus, Sonnet and Haiku; Fable paid with usage credits | | Context window | 256K tokens in reasoning mode, 54K in Instant | Up to 1M tokens, depending on the model | | Priority access at busy times | Included | From Max up | | Next plan up | ChatGPT Pro, in three tiers | Max, then Ultra | ## How much do ChatGPT Plus and Claude Pro cost? The official US website prices, each row with its source and check date: | Plan | Market and channel | Official price | Billing | Source | Checked | | --- | --- | --- | --- | --- | --- | | ChatGPT Go | United States · Vendor website | $8 | per month | https://openai.com/index/introducing-chatgpt-go/ | 2026-11-15 | | ChatGPT Plus | United States · Vendor website | $20 | per month | https://help.openai.com/en/articles/6950777-what-is-chatgpt-plus | 2026-11-15 | | ChatGPT Pro 100 | United States · Vendor website | $100 | per month | https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers | 2026-11-15 | | ChatGPT Pro 200 | United States · Vendor website | $200 | per month | https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers | 2026-11-15 | | ChatGPT Pro 500 | United States · Vendor website | $500 | per month | https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers | 2026-11-15 | | Claude Pro | United States · Vendor website | $20 | per month | https://claude.com/pricing | 2026-11-15 | | Claude Pro | United States · Vendor website | $200 | per year | https://claude.com/pricing | 2026-11-15 | | Claude Max | United States · Vendor website | $100 | per month | https://claude.com/pricing | 2026-11-15 | | Claude Ultra | United States · Vendor website | $200 | per month | https://claude.com/pricing | 2026-11-15 | The vendors' own prices as published at the source on the date checked; they can change. These are the vendor's official prices; 5abeer's prices are on the pricing page. Tax: per Anthropic's pages, some countries include tax in the displayed price and others add it at checkout. Only Claude Pro can be paid by the year: Anthropic sells it yearly at a lower monthly rate billed up front, and says the prices on its [pricing page](https://claude.com/pricing) don't include applicable tax. OpenAI [says](https://help.openai.com/en/articles/6950777-what-is-chatgpt-plus) Plus can't be paid yearly or several months in advance. Below Plus, OpenAI also sells ChatGPT Go. In a phone app, the App Store or Google Play handles the payment, and the store price in your country can differ from the website. For local prices, read [ChatGPT Plus price in Egypt](https://5abeer.ai/en/guides/chatgpt-plus-price-egypt), [Claude Pro and Max price in Egypt](https://5abeer.ai/en/guides/claude-pro-max-price-egypt) or [Prices in Saudi Arabia and the UAE](https://5abeer.ai/en/guides/chatgpt-claude-gulf-price). ## Same price, two different usage meters The biggest day-to-day difference is how each plan counts usage. Checked on 2026-11-03: | | ChatGPT Plus | Claude Pro | | --- | --- | --- | | Chat | May have message caps at busy times, which vary with system conditions | Counts toward the 5-hour and weekly limits | | Coding agent | Codex and ChatGPT Work draw on one allowance, separate from Chat | Claude Code and Claude on the web and desktop count toward one set of limits | | Time windows | Codex estimates per five hours; weekly limits may also apply | The 5-hour limit starts with your first message and resets in full five hours later; the weekly limit resets at a set time each week | | What uses more | The model, the task size, and cloud tasks over local ones | The model, chat length and complexity, the features you use and the effort level | | Where to check | The Codex usage dashboard, or `/status` in Codex CLI | Settings > Usage, or `/usage` in Claude Code | **OpenAI gives ranges; Anthropic doesn't.** For Plus, OpenAI estimates Codex use per five hours, from 5–45 local messages on its heaviest model to 350–3,000 on its lightest. These are estimates, not fixed limits, and cloud tasks can use more. Anthropic publishes no message count for Pro, so watch Settings > Usage for a week. **OpenAI's meter changes in December.** OpenAI's [help center](https://help.openai.com/en/articles/20001625-understanding-chatgpt-and-codex-usage-limits) says that, starting in December, Plus usage will draw on one allowance across ChatGPT and Codex, measured in tokens, and Instant chat won't count toward it. Claude Pro already meters chat and Claude Code together, so after the change both plans work this way. **Pick the model to stretch your plan.** On both plans a lighter model goes further, so keep the larger models for the hard steps. Past a limit, you can wait for the reset, buy ChatGPT credits on Plus, or turn on usage credits, billed at standard API rates, on Pro. For Claude Code in particular, read [Claude Code usage limits](https://5abeer.ai/en/guides/claude-code-limits). ## Which models does each plan include? Pro adds Opus to the Sonnet and Haiku of Claude's no-cost plan. Fable is paid with usage credits on Pro, while Max includes it up to half your weekly limit. Plus includes OpenAI's GPT models with advanced reasoning, and its newest models run in Codex and ChatGPT Work, not in Chat. To choose a model, read [Which Claude model to use](https://5abeer.ai/en/guides/which-claude-model) or [Which GPT model to use](https://5abeer.ai/en/guides/which-gpt-model). ## Which apps and tools come with each plan? ChatGPT Plus covers: - ChatGPT on the web, phone and desktop, with deep research, projects, scheduled tasks, custom GPTs, image creation, and extensions for Excel, Word, PowerPoint and Google Sheets. - Codex on the web, in the CLI, in the IDE extension, on iOS and in the ChatGPT desktop app. - Codex cloud on eligible Plus accounts as OpenAI rolls it out, plus GitHub code review and Slack. Claude Pro covers: - Claude on the web, iOS, Android and desktop, with web search, files, code execution, memory, connected apps and Artifacts. - Claude Code, also on the web and in Slack, plus Research, Claude in Chrome and Claude for Microsoft 365. - Handing off and scheduling tasks, Claude Dashboards (beta), Claude Science, and projects without the no-cost plan's limit of five. How each app works with 5abeer is on its page: [ChatGPT](https://5abeer.ai/en/apps/chatgpt), [Codex](https://5abeer.ai/en/apps/codex), [Claude](https://5abeer.ai/en/apps/claude) and [Claude Code](https://5abeer.ai/en/apps/claude-code). ## Which plan fits how you work? ChatGPT Plus may fit if: - You already work in ChatGPT and want Codex and ChatGPT Work on the same plan. - You want Codex's automatic code review on GitHub with a personal plan. Anthropic's Code Review is for Team and Enterprise. - You want priority access at busy times without moving to a higher plan. Claude Pro may fit if: - You work in Claude Code or Claude Desktop and want one set of limits for both. - You work with long documents or large codebases, where a context window of up to 1M tokens helps. - You want to pay by the year at a lower monthly rate. ChatGPT's no-cost plan includes Codex in limited form; Claude Code starts at Pro. Using both officially means two subscriptions and two bills. ## Can one plan run both ChatGPT and Claude? Not with the official plans: OpenAI and Anthropic each sell a plan for their own apps only. A 5abeer Bundle plan runs ChatGPT Desktop, Codex, Claude Desktop and Claude Code, plus Google Antigravity, through 5abeer AI on Mac, Windows and Linux. Subscribe to the official apps for less than their official price. Our prices are on the [pricing page](https://5abeer.ai/en/pricing). These are our plans and their limits: | 5abeer plan | Best for | Usage limits | Our price | | --- | --- | --- | --- | | Pro | For everyday use | A 5-hour limit and a weekly limit | Prices on the pricing page: https://5abeer.ai/en/pricing | | Max (formerly Max 5x) | For heavy daily work | 5× the Pro plan limits | Prices on the pricing page: https://5abeer.ai/en/pricing | | Ultra (formerly Max 20x) | If you work with it all day | 20× the Pro plan limits | Prices on the pricing page: https://5abeer.ai/en/pricing | Before you compare: - 5abeer's plans are Pro, Max (formerly Max 5x) and Ultra (formerly Max 20x). 5abeer's Pro is not ChatGPT Pro or Claude Pro, and 5abeer's Max and Ultra are not Anthropic's plans with the same names. - Every Bundle plan runs every official app, from the smallest to the largest. The plans differ in usage limits only. - Each 5abeer plan has its own 5-hour and weekly limits, explained in [Usage limits](https://5abeer.ai/en/docs/subscriptions/limits.md). We don't promise limits matching the official plans. - On your own official account: you sign in to each app as usual. Activated within minutes, in desktop apps through 5abeer AI, not in the ChatGPT or Claude phone apps or on their websites. > Plans are for the supported apps. To use the models from your own code, create an API key. Read more in [5abeer vs an official subscription](https://5abeer.ai/en/guides/5abeer-vs-official). ## Frequently asked questions ### Is ChatGPT Plus or Claude Pro cheaper? On the official US websites the monthly list price is the same. Only Claude Pro has a yearly option at a lower monthly rate, and phone app prices can differ by country. ### Which is better for coding, Codex on Plus or Claude Code on Pro? It depends on how you work. Both agents work in the terminal, an IDE, the web and Slack. Pro puts Claude Code and Claude chat on one set of limits, with a context window of up to 1M tokens. If you code daily, run the same task in both and compare how much allowance it uses. ### Does either coding agent come with a no-cost plan? Codex, yes, in limited form: OpenAI includes it across ChatGPT plans, including the no-cost plan and Go. Claude Code, no: Anthropic includes it from Pro up. ### What changes in ChatGPT Plus usage in December? OpenAI says Plus usage will be counted in tokens on one allowance across ChatGPT and Codex, Instant chat won't count, and Settings → Usage will show the combined usage and reset times. It expects most users won't wait for a reset more often than they do now. ### What comes after Plus or Pro? OpenAI's next plan is ChatGPT Pro, in three tiers, and its Codex page says Pro plans currently have no five-hour limit. Anthropic's are Max, with five times Pro's usage, and Ultra, with ten times Pro's weekly usage and no 5-hour limit on verified accounts. Each step up is compared in [ChatGPT Plus vs Pro](https://5abeer.ai/en/guides/chatgpt-plus-vs-pro) and [Claude Pro vs Max](https://5abeer.ai/en/guides/claude-pro-vs-max). ### Can one subscription cover ChatGPT and Claude? Not with the official plans. A 5abeer Bundle plan runs the official desktop apps of both companies through 5abeer AI, as explained in [One subscription for all AI apps](https://5abeer.ai/en/guides/one-subscription-all-ai-apps). ## Sources Checked on 2026-11-03: - OpenAI: [ChatGPT pricing](https://chatgpt.com/pricing) and [Codex pricing](https://learn.chatgpt.com/docs/pricing) - OpenAI Help Center: [What is ChatGPT Plus?](https://help.openai.com/en/articles/6950777-what-is-chatgpt-plus), [Using Codex with your ChatGPT plan](https://help.openai.com/en/articles/11369540-using-codex-with-your-chatgpt-plan) and [Understanding ChatGPT and Codex usage limits](https://help.openai.com/en/articles/20001625-understanding-chatgpt-and-codex-usage-limits) - Anthropic: [Claude pricing](https://claude.com/pricing) - Claude Code docs: [Commands](https://code.claude.com/docs/en/commands), [Claude Code on the web](https://code.claude.com/docs/en/claude-code-on-the-web), [Claude Code in Slack](https://code.claude.com/docs/en/slack) and [Code Review](https://code.claude.com/docs/en/code-review) - Anthropic Help Center: [How do usage and length limits work?](https://support.claude.com/en/articles/11647753-how-do-usage-and-length-limits-work), [Use Claude Code with your Pro, Max, or Ultra plan](https://support.claude.com/en/articles/11145838-using-claude-code-with-your-pro-or-max-plan), [Manage usage credits for paid Claude plans](https://support.claude.com/en/articles/12429409-extra-usage-for-paid-claude-plans) and [Paid plan billing FAQs](https://support.claude.com/en/articles/8325618-paid-plan-billing-faqs) > 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. --- URL: https://5abeer.ai/en/guides/claude-code-vs-codex # Claude Code vs Codex vs Antigravity: which fits your work? > Claude Code, Codex and Google Antigravity compared on plans, models and daily workflow, plus how to run Claude Code and Codex on one repository. Updated: 2026-11-03 Claude Code, Codex and Google Antigravity are coding agents from Anthropic, OpenAI and Google. Each is built around its maker's models, so the right one follows the models you prefer and the plan you pay for, not a single winner. One 5abeer Bundle plan runs all three, so you can test each yourself. ## How do Claude Code, Codex and Antigravity compare? All three read and change your code to finish a task you describe. This table follows each maker's own docs, checked on 2026-11-03: | | Claude Code | Codex | Google Antigravity | | --- | --- | --- | --- | | Made by | Anthropic | OpenAI | Google | | Models with 5abeer | Claude | GPT | Gemini | | Where it runs | Terminal, IDE extensions, desktop app, browser | Terminal, IDE extension, ChatGPT desktop app, Codex cloud | Desktop app, terminal (`agy`), IDE extensions | | Official sign-in | A paid Claude plan or an Anthropic Console account | Any ChatGPT plan, or an OpenAI API key | A Google Account, Gemini Enterprise or a Gemini API key | Claude Code also accepts another API endpoint through `ANTHROPIC_BASE_URL`, and Codex another model provider in `config.toml`. That is how both run on a 5abeer key. ## Which plan does each one need? On the makers' own plans, as their pages read on 2026-11-03: - **Claude Code:** Anthropic includes it in Claude Pro, Max and Ultra, not in its no-cost plan. An Anthropic Console account works too. - **Codex:** OpenAI includes it in every ChatGPT plan, the no-cost one too. Usage depends on the model, the task and whether it runs locally or in the cloud. Extra local chats can run on an API key, at standard API rates. - **Google Antigravity:** Google lists an Individual level at no charge, and its Google AI Pro and Ultra plans raise the limits. The official OpenAI and Anthropic prices, each row with its source and the date we checked it: | Plan | Market and channel | Official price | Billing | Source | Checked | | --- | --- | --- | --- | --- | --- | | ChatGPT Go | United States · Vendor website | $8 | per month | https://openai.com/index/introducing-chatgpt-go/ | 2026-11-15 | | ChatGPT Plus | United States · Vendor website | $20 | per month | https://help.openai.com/en/articles/6950777-what-is-chatgpt-plus | 2026-11-15 | | ChatGPT Pro 100 | United States · Vendor website | $100 | per month | https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers | 2026-11-15 | | ChatGPT Pro 200 | United States · Vendor website | $200 | per month | https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers | 2026-11-15 | | ChatGPT Pro 500 | United States · Vendor website | $500 | per month | https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers | 2026-11-15 | | Claude Pro | United States · Vendor website | $20 | per month | https://claude.com/pricing | 2026-11-15 | | Claude Pro | United States · Vendor website | $200 | per year | https://claude.com/pricing | 2026-11-15 | | Claude Max | United States · Vendor website | $100 | per month | https://claude.com/pricing | 2026-11-15 | | Claude Ultra | United States · Vendor website | $200 | per month | https://claude.com/pricing | 2026-11-15 | The vendors' own prices as published at the source on the date checked; they can change. These are the vendor's official prices; 5abeer's prices are on the pricing page. Tax: per Anthropic's pages, some countries include tax in the displayed price and others add it at checkout. Google's prices are in [Google Antigravity explained](https://5abeer.ai/en/guides/google-antigravity-guide#price). For paid limits in more than one tool, you pay each maker separately. ## Which models does each one run? Claude Code runs Claude models and Codex runs GPT models. Antigravity is built on Gemini, though Google's own picker also offers some Claude models and OpenAI's GPT-OSS. In Claude Code and in Codex, you switch models during a session with `/model`, or when you start the tool with `--model`. These are the newest models in each, at our price per million tokens: | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | Claude Sonnet 5.5 | `claude-sonnet-5.5` | $0.60 | $3 | 1M | | Claude Opus 5.5 | `claude-opus-5.5` | $1.20 | $6 | 1M | | Claude Fable 5.1 | `claude-fable-5.1` | $3 | $15 | — | | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | GPT-6.2 Sol | `gpt-6.2-sol` | $0.60 | $3 | — | | GPT-6.2 Astra | `gpt-6.2-astra` | $2.40 | $12 | — | | GPT-6.1 Sol | `gpt-6.1-sol` | $0.60 | $3 | 922K | With 5abeer, Google Antigravity runs Gemini models, listed on [Models that run in Google Antigravity](https://5abeer.ai/en/models?app=antigravity). To choose within a family, read [Which Claude model to use](https://5abeer.ai/en/guides/which-claude-model) and [Which GPT model to use](https://5abeer.ai/en/guides/which-gpt-model). ## How do Claude Code and Codex differ day to day? Most differences are in file names and commands: | | Claude Code | Codex | | --- | --- | --- | | Settings file | `~/.claude/settings.json`, or `.claude/settings.json` in a project | `~/.codex/config.toml`, or `.codex/config.toml` in a trusted project | | Project instructions | `CLAUDE.md`, or `AGENTS.md` when there is no `CLAUDE.md` | `AGENTS.md` | | Add an MCP server | `claude mcp add` | `codex mcp add` | | Run one task without the interactive session | `claude -p ""` | `codex exec ""` | | Split work across agents | Subagents | Subagents | | Work away from your computer | Web sessions, GitHub Actions, GitLab CI/CD | Codex cloud, GitHub Actions | ## How do you run both on one repository? To keep one set of rules for both tools: - **One instructions file.** Keep your project rules in `AGENTS.md`. Codex reads it in each folder from the Git root down to your working folder, and closer files take priority. Claude Code, from v2.1.277, reads it only when there is no `CLAUDE.md`, `.claude/CLAUDE.md` or `CLAUDE.local.md` in your working folder or above it. If you also keep a `CLAUDE.md`, start it with an `@AGENTS.md` line so Claude Code reads both. - **Two files that break it.** Adding a personal `CLAUDE.local.md` is enough to make Claude Code skip `AGENTS.md`; the `claude-md-and-agents-md` value of **Project instructions** in `/config` loads both. And in any folder that has an `AGENTS.override.md`, Codex reads that file instead of the folder's `AGENTS.md`, while Claude Code never reads it, so put rules for both tools in `AGENTS.md`, not in an override. - **Or let Codex read your `CLAUDE.md`.** Add `project_doc_fallback_filenames = ["CLAUDE.md"]` to Codex's `config.toml`, and Codex reads `CLAUDE.md` in folders that have no `AGENTS.md`. By default it stops adding instruction files after 32 KiB in total. - **MCP servers go in two files.** Claude Code writes project servers to `.mcp.json` when you add them with `--scope project`; without it, a server is yours alone. Codex reads project servers from `.codex/config.toml`, only in a trusted project. Both files sit in the repository, so you can commit them. - **Moving from Codex.** Claude Code's `/import codex` copies the Codex instruction files, MCP servers, commands, subagents and skills on your computer into Claude Code. Add `--dry-run` to see the list first. It isn't available when telemetry or feature-flag fetching is off. ## Which one fits your work? Each fits a different starting point: - You prefer Claude's answers, or your team already keeps `CLAUDE.md` files: start with Claude Code. - You use ChatGPT every day and want the same account in the terminal and the ChatGPT desktop app: start with Codex. - You build on Gemini, or already pay for Google AI Pro or Ultra: start with Google Antigravity. To decide, give the same real task to two of them and compare the result, the time and how much of your limit or balance it used. ## What does each one cost to run? Claude Code and Codex run on a plan or on an API key billed per token. Antigravity runs on a plan, and only its CLI can also run on a Gemini API key. On a plan, your work counts against the plan's usage limits, and long agent sessions reach them sooner. On a key, every request is billed by its model and token count, and a coding agent sends far more tokens than you type, because each turn carries the conversation, the files it read and its command output. Per Anthropic's docs, when `ANTHROPIC_API_KEY` is set, Claude Code uses that key instead of your Claude plan, even when you are signed in. An interactive session asks you to approve it once. Use every model priced per token through the API for 70% less than its official price. For real numbers, read [The cheapest way to run Claude Code](https://5abeer.ai/en/guides/claude-code-cheapest-way) and [Codex CLI with an API key](https://5abeer.ai/en/guides/codex-cli-api-key). ## Can one 5abeer plan run all three? Yes. Every Bundle plan runs every official app, from the smallest to the largest. 5abeer's Bundle plans are Pro, Max (formerly Max 5x) and Ultra (formerly Max 20x). Each runs Claude Code, Codex and Google Antigravity on your own official account, through the 5abeer AI app on Mac, Windows or Linux. They are not the Anthropic or OpenAI plans with the same names. These are our plans and their limits; prices are on the [pricing page](https://5abeer.ai/en/pricing): | 5abeer plan | Best for | Usage limits | Our price | | --- | --- | --- | --- | | Pro | For everyday use | A 5-hour limit and a weekly limit | Prices on the pricing page: https://5abeer.ai/en/pricing | | Max (formerly Max 5x) | For heavy daily work | 5× the Pro plan limits | Prices on the pricing page: https://5abeer.ai/en/pricing | | Ultra (formerly Max 20x) | If you work with it all day | 20× the Pro plan limits | Prices on the pricing page: https://5abeer.ai/en/pricing | 5abeer's Max has 5 times the limits of 5abeer's Pro, and 5abeer's Ultra has 20 times. Each plan has one 5-hour limit and one weekly limit that cover all your apps, as in [Usage limits](https://5abeer.ai/en/docs/subscriptions/limits.md). We don't promise limits matching Anthropic's or OpenAI's plans. The [Claude Code](https://5abeer.ai/en/apps/claude-code), [Codex](https://5abeer.ai/en/apps/codex) and [Google Antigravity](https://5abeer.ai/en/apps/antigravity) pages show what you get in each. Plans are for the supported apps. To use the models from your own code, create an API key. ## How do you use them with 5abeer keys? To pay per token instead, give each tool its own key. A 5abeer key works with one provider's models, so Claude Code needs a Claude key and Codex a GPT key, and both draw on the same balance, as in [One key per provider](https://5abeer.ai/en/docs/start/keys.md#per-provider). Claude Code uses our Anthropic base URL, and Codex our OpenAI one: | Format | Base URL | Key header | | --- | --- | --- | | OpenAI | `https://api.5abeer.ai/v1` | `Authorization: Bearer ` | | Anthropic | `https://api.5abeer.ai` | `x-api-key: ` | | Gemini | `https://api.5abeer.ai/v1beta` | `x-goog-api-key: ` | The steps are in [Claude Code setup](https://5abeer.ai/en/docs/apps/claude-code.md#manual) and [Codex CLI setup](https://5abeer.ai/en/docs/apps/codex.md#manual). On a plan, the 5abeer AI app sets up each tool for you, with no key and no files to edit. ## FAQ ### Is Claude Code better than Codex? Neither wins every task. The better choice depends on which maker's models do better on your own work, and only a test on a real task shows that. ### Can I use them without a paid plan? Two of them, on their makers' terms. OpenAI includes Codex in its no-cost ChatGPT plan, and Google lists an Individual level of Antigravity at no charge. Claude Code needs a paid Claude plan or an Anthropic Console account. ### Can I use Claude Code and Codex on the same project? Yes. Both can read one `AGENTS.md`, while each tool keeps its own settings and MCP servers. The details are in [How do you run both on one repository?](https://5abeer.ai/en/guides/claude-code-vs-codex#one-repo) ### Does time in Codex count against my Claude Code limits on a 5abeer plan? Yes. Every app you turn on with one subscription counts against its 5-hour and weekly limits, so a long Claude Code session leaves less for Codex, and the other way round. ### Can I pay for only Claude Code or only Codex? Yes. 5abeer's Claude plan runs Claude Code and the other Claude apps, its GPT plan runs ChatGPT Desktop and Codex, and its Gemini plan runs Google Antigravity. On an API key, you pay only for the requests you send. ### Does a 5abeer plan work in Claude Code on the web or on my phone? No. A 5abeer plan works in the desktop and terminal apps through 5abeer AI on Mac, Windows or Linux, not in the phone apps or on the websites. ## Get started [One subscription for every AI app](https://5abeer.ai/en/guides/one-subscription-all-ai-apps) shows how to turn on each app. Or pick a Bundle plan and give Claude Code and Codex the same task. ## Sources Checked on 2026-11-03: - Anthropic: Claude Code [overview](https://code.claude.com/docs/en/overview), [settings](https://code.claude.com/docs/en/settings), [environment variables](https://code.claude.com/docs/en/env-vars), [CLAUDE.md and AGENTS.md](https://code.claude.com/docs/en/memory), [MCP](https://code.claude.com/docs/en/mcp), [commands](https://code.claude.com/docs/en/commands) and [Claude plans](https://claude.com/pricing) - OpenAI: Codex [CLI](https://learn.chatgpt.com/docs/codex/cli), [configuration reference](https://learn.chatgpt.com/docs/config-file/config-reference), [AGENTS.md](https://learn.chatgpt.com/docs/agent-configuration/agents-md), [MCP](https://learn.chatgpt.com/docs/extend/mcp), [subagents](https://learn.chatgpt.com/docs/agent-configuration/subagents), [GitHub Action](https://learn.chatgpt.com/docs/github-action) and [pricing](https://learn.chatgpt.com/docs/pricing) - Google: Antigravity [getting started](https://antigravity.google/docs/getting-started), [models](https://antigravity.google/docs/models), [plans](https://antigravity.google/docs/plans) and [pricing](https://antigravity.google/pricing) > 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. --- URL: https://5abeer.ai/en/guides/google-sheets-ai-api # Google Sheets AI API: call an AI model from a cell > How to call an AI model from Google Sheets with Apps Script, as a formula or from a menu, what it costs and how to keep your API key safe. Updated: 2026-11-03 To call an AI model from Google Sheets, add a short Apps Script that sends a cell's text to an AI API with UrlFetchApp and writes the answer back. Use it as a formula, such as `=ASK_AI(A2)`, or from a menu that fills a whole column. Keep the API key in Script Properties, never in a cell. ## How does it work? Apps Script is the code editor built into Google Sheets, under Extensions > Apps Script. Its `UrlFetchApp.fetch` sends web requests, so a script can send a prompt to an AI API and read the reply. The script below calls Chat Completions in the OpenAI format: our base URL `https://api.5abeer.ai/v1` followed by `/chat/completions`, as explained in [What is a base URL?](https://5abeer.ai/en/guides/what-is-base-url). OpenAI-compatible: change the base URL and keep your code. Each answer is one request like this one: ```bash curl --request POST "https://api.5abeer.ai/v1/chat/completions" \ --header "Authorization: Bearer $KHABEER_API_KEY" \ --header "Content-Type: application/json" \ --data '{"model":"claude-sonnet-5.5","messages":[{"role":"user","content":"Write a product idea in one sentence."}]}' ``` ```python import os import requests response = requests.post( "https://api.5abeer.ai/v1/chat/completions", headers={ "Authorization": f"Bearer {os.environ['KHABEER_API_KEY']}", "Content-Type": "application/json", }, json={ "model": "claude-sonnet-5.5", "messages": [ { "role": "user", "content": "Write a product idea in one sentence." } ] }, stream=False, timeout=60, ) response.raise_for_status() print(response.json()) ``` The script gives you two ways to run it: | | Formula | Menu | | --- | --- | --- | | How you run it | Type `=ASK_AI(A2)` in a cell | Select the prompt cells, then 5abeer > Answer the selected cells | | Time limit | 30 seconds per cell | 6 minutes per run | | When it sends a request | Whenever the cell recalculates, such as when you edit the formula or change a cell it refers to | Only when you click | | What stays in the sheet | A live formula | Plain values in the next column | | Best for | A few cells | Many rows, over one run or more | ## Before you start You need a 5abeer API key for the provider of the model the script calls. Each key works with one provider's models, and the script calls [`claude-sonnet-5.5`](https://5abeer.ai/en/models/claude-sonnet-5.5), so create a key for Claude models as in [Create a key](https://5abeer.ai/en/docs/start/keys.md#create). Control every key: a spend limit, an expiry date and an IP allow-list. Give this spreadsheet its own key with a spend limit and an expiry date, as in [Control every key](https://5abeer.ai/en/docs/start/keys.md#controls), so a mistake in the sheet costs little. Do not restrict this key to your own IP address: Apps Script sends its requests from Google's servers, not from your computer, so such a key would refuse every request from the sheet. ## Add the script ### 1. Open Apps Script In your spreadsheet, choose Extensions > Apps Script. This opens a script project tied to the spreadsheet, with a file named `Code.gs`. ### 2. Save the key In the Apps Script editor, open Project Settings, then under Script Properties add a property named `KHABEER_API_KEY` with your 5abeer key as its value, and save. The key stays out of the code and out of the cells. ### 3. Paste the code Replace everything in `Code.gs` with this code, then save: ```javascript // The key lives in Project Settings > Script Properties as KHABEER_API_KEY, never in this code or in a cell. const BASE_URL = "https://api.5abeer.ai/v1"; // 5abeer's OpenAI-format base URL const MODEL = "claude-sonnet-5.5"; /** * Sends a prompt to an AI model and returns its answer. * @param {string} prompt The question or instruction. * @return The model's answer. * @customfunction */ function ASK_AI(prompt) { if (prompt === "" || prompt == null) return ""; return askModel_(prompt); } function onOpen() { SpreadsheetApp.getUi() .createMenu("5abeer") .addItem("Test the key", "testKey") .addItem("Answer the selected cells", "answerSelection") .addToUi(); } function testKey() { SpreadsheetApp.getUi().alert(askModel_("Reply with the word OK.")); } function answerSelection() { const range = SpreadsheetApp.getActiveRange(); const prompts = range.getValues(); const out = range.offset(0, 1, prompts.length, 1); // the next column holds the answers const answers = out.getValues(); for (let i = 0; i < prompts.length; i++) { const prompt = prompts[i][0]; if (prompt === "" || answers[i][0] !== "") continue; // skip empty and answered rows let answer = askModel_(prompt); if (/^[=+\-@]/.test(answer)) answer = "'" + answer; // keep the reply as text, never a formula out.getCell(i + 1, 1).setValue(answer); SpreadsheetApp.flush(); // keep each answer if the 6-minute limit stops the run } } function askModel_(prompt) { const key = PropertiesService.getScriptProperties().getProperty("KHABEER_API_KEY"); if (!key) throw new Error("Add KHABEER_API_KEY in Project Settings > Script Properties."); const response = UrlFetchApp.fetch(BASE_URL + "/chat/completions", { method: "post", contentType: "application/json", headers: { Authorization: "Bearer " + key }, payload: JSON.stringify({ model: MODEL, messages: [{ role: "user", content: String(prompt) }] }), muteHttpExceptions: true, }); const status = response.getResponseCode(); const text = response.getContentText(); if (status !== 200) throw new Error("5abeer API error " + status + ": " + text.slice(0, 200)); return JSON.parse(text).choices[0].message.content; } ``` To use another model, change `MODEL` to its id from the [models page](https://5abeer.ai/en/models) and save a key for that model's provider. You can rename the menu labels in `onOpen`, for example into Arabic. ### 4. Test the key Reload the spreadsheet. A 5abeer menu appears in the menu bar. Choose 5abeer > Test the key, and approve the permissions Google asks for on the first run. A box with the model's reply means the setup works. This test sends one small paid request. ## Use it in a cell Type the formula in a cell, with your instruction and a cell reference: ```text =ASK_AI("Summarize in one sentence: " & A2) ``` You can write the instruction in Arabic too. Do the Test the key step first: a formula never asks for permissions, so you approve them once from the menu. Fill the formula down to run it for each row. Each cell is its own paid request, and it sends a new one whenever it recalculates. To keep the answers and stop new requests, copy the cells and paste them back as values only. A cell must get its answer within 30 seconds, otherwise it shows `#ERROR!`. Sheets also makes a separate call for every cell that uses the formula, which gets slow over hundreds of rows. For long answers or many rows, use the menu. ## Fill a column with the menu Select the cells that hold your prompts, in one column, then choose 5abeer > Answer the selected cells. The answers go into the next column as plain values, so they never send a request again. The script skips empty prompts and rows that already have an answer, and it saves each answer as it arrives. Google stops a run after 6 minutes, so for a long column run the menu again and it continues from the first row without an answer. A reply that starts with `=`, `+`, `-` or `@` is kept as text, so it never becomes a formula. ## Keep the key safe A script tied to a spreadsheet uses the spreadsheet's access list, and Script Properties are the same for everyone who runs the script: - Anyone who can edit the spreadsheet can open the script and its Script Properties, read the key and run the script on your balance. - Anyone who can only view the spreadsheet can still view the script and run it, and a run uses your key. - Anyone who copies the spreadsheet gets their own copy of the script, which they can edit and run. So keep the script in a spreadsheet that only you can open, and do not give anyone access to that file, not even view access. To share results, copy the answers into another spreadsheet as values only, and share that one. If you think the key has leaked, follow [If a key leaks](https://5abeer.ai/en/docs/account/security.md#leaked). ## What does it cost? Each answer is billed by the tokens in your prompt and in the model's reply. As an example, 1,000 rows with about 300 input tokens and 100 output tokens each come to 300,000 input tokens and 100,000 output tokens on the default model: Example: 300,000 input tokens and 100,000 output tokens on Claude Sonnet 5.5 (`claude-sonnet-5.5`) cost $0.48 at our price against $1.60 at the official price (70% lower). Official price checked November 21, 2026. Your real numbers depend on your prompts and replies. Arabic text often uses more tokens than English for the same meaning, as in [Arabic token cost](https://5abeer.ai/en/guides/arabic-token-cost), so asking for short answers keeps the cost down. Every per-token API price is below the model's official price, and the [API page](https://5abeer.ai/en/api) shows both side by side. ## When it shows an error In a cell, an error shows as `#ERROR!`; point at the cell to read the message. From the menu, Google shows the message on screen. For an API error, the message holds the status code and the start of 5abeer's reply, which names the error code: | You see | What it means | Fix | | --- | --- | --- | | `Add KHABEER_API_KEY in Project Settings > Script Properties` | The key property is missing | Add the property as in the Save the key step | | `You do not have permission to call …` | The script is missing a permission it needs | Run 5abeer > Test the key once and approve the permissions | | [`INVALID_API_KEY`](https://5abeer.ai/en/docs/help/errors.md#INVALID_API_KEY) | The key is wrong or was copied with extra spaces | Copy the key again into Script Properties | | [`MODEL_PLATFORM_NOT_ALLOWED`](https://5abeer.ai/en/docs/help/errors.md#MODEL_PLATFORM_NOT_ALLOWED) | The key is for another provider's models | Save a key for the provider of `MODEL` | | [`INSUFFICIENT_BALANCE`](https://5abeer.ai/en/docs/help/errors.md#INSUFFICIENT_BALANCE) | Your balance is too low | Top up your balance | | [`API_KEY_QUOTA_EXHAUSTED`](https://5abeer.ai/en/docs/help/errors.md#API_KEY_QUOTA_EXHAUSTED) | The key reached its spend limit | Raise the limit in the key settings | | [`API_KEY_EXPIRED`](https://5abeer.ai/en/docs/help/errors.md#API_KEY_EXPIRED) | The key passed its expiry date | Create a new key and save it | | [`RATE_LIMITED`](https://5abeer.ai/en/docs/help/errors.md#RATE_LIMITED) | Too many requests at once | Wait a little, then run the menu again | | `Exceeded maximum execution time` in a formula cell | The answer took longer than 30 seconds | Use the menu, or ask for a shorter answer | Every code and its fix is in [Errors and fixes](https://5abeer.ai/en/docs/help/errors.md). ## Questions ### Which models can the sheet call? Claude, GPT and Gemini models, because 5abeer serves all three in the OpenAI format, so the request stays the same. Change `MODEL` to the model's id from the [models page](https://5abeer.ai/en/models), and save a key for that model's provider in `KHABEER_API_KEY`. One key covers one provider, so one sheet runs one provider's models at a time. ### When does the formula send a new request? Whenever the cell recalculates, such as when you edit the formula or change a cell it refers to. Each new request is paid. To stop it, paste the answers back as values only, or use the menu, which writes plain values. ### How many rows can one menu run answer? As many as finish within Google's 6-minute limit per run, which depends on the model and the length of each answer. Run the menu again to continue. Google also limits URL Fetch calls to 20,000 a day on a personal Google account and 100,000 a day on Google Workspace, and says its quotas can change at any time without notice. ### Do I pay for empty or skipped rows? No request is sent for them: the formula returns nothing for an empty cell, and the menu skips empty prompts and rows that already have an answer. Each request the script does send is paid from your balance by the tokens it uses, at the model's 5abeer price, as in [Pricing and balance](https://5abeer.ai/en/docs/start/pricing.md). ### Is it safe to share the spreadsheet? Not the spreadsheet that holds the key. Its editors can read the key in Script Properties, and even its viewers can run the script on your key. Copy the answers into another spreadsheet as values only, and share that one. ## Sources Checked on 2026-11-03, in the Google Apps Script docs: - [UrlFetchApp](https://developers.google.com/apps-script/reference/url-fetch/url-fetch-app), [URL Fetch Service](https://developers.google.com/apps-script/reference/url-fetch) and [HTTPResponse](https://developers.google.com/apps-script/reference/url-fetch/http-response) - [Custom functions in Google Sheets](https://developers.google.com/apps-script/guides/sheets/functions) and [Custom menus](https://developers.google.com/apps-script/guides/menus) - [Properties Service](https://developers.google.com/apps-script/guides/properties), [Container-bound scripts](https://developers.google.com/apps-script/guides/bound) and [Authorization for Google services](https://developers.google.com/apps-script/guides/services/authorization) - [Quotas for Google services](https://developers.google.com/apps-script/guides/services/quotas) and the [Range reference](https://developers.google.com/apps-script/reference/spreadsheet/range) > 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. ## Get started See every model's price on the [API page](https://5abeer.ai/en/api), then create a key with a spend limit for your spreadsheet. --- URL: https://5abeer.ai/en/guides/migrate-openai-to-claude # Migrate from the OpenAI API to Claude: what changes in code > Move OpenAI API code to Claude: keep the OpenAI SDK and change three settings, or switch to the Anthropic SDK. Field map, 400 errors to avoid, cost. Updated: 2026-11-03 To move from OpenAI to Claude, you can keep the OpenAI SDK and change three settings: the base URL `https://api.5abeer.ai/v1`, a 5abeer key for Claude models, and a Claude model id such as `claude-sonnet-5.5`. For Claude's own settings, such as prompt caching, switch to the Anthropic SDK at `https://api.5abeer.ai`. Both routes take the same key. ## What changes when you move from OpenAI to Claude? 5abeer is OpenAI-compatible: change the base URL and keep your code. Three settings change: | Setting | Before, on OpenAI | After, Claude on 5abeer | | --- | --- | --- | | Base URL | `https://api.openai.com/v1` | `https://api.5abeer.ai/v1` | | Key | An OpenAI API key | A 5abeer key for Claude models | | Model | A GPT model id | A Claude model id, such as `claude-sonnet-5.5` | Then pick a route: keep the OpenAI SDK, the smallest change, or move to the Anthropic SDK, which reaches every Claude setting. How an SDK builds each address is in [What is a base URL](https://5abeer.ai/en/guides/what-is-base-url). ## Route 1: keep the OpenAI SDK Put your key in the `KHABEER_API_KEY` environment variable, then change the client and the model id: ```python import os from openai import OpenAI client = OpenAI( base_url="https://api.5abeer.ai/v1", api_key=os.environ["KHABEER_API_KEY"], ) response = client.chat.completions.create( model="claude-sonnet-5.5", messages=[ {"role": "system", "content": "Answer in two sentences."}, {"role": "user", "content": "What is a context window?"}, ], ) print(response.choices[0].message.content) ``` In the Node.js library the option is called `baseURL`: ```javascript import OpenAI from "openai"; const client = new OpenAI({ baseURL: "https://api.5abeer.ai/v1", apiKey: process.env.KHABEER_API_KEY, }); const response = await client.chat.completions.create({ model: "claude-sonnet-5.5", messages: [{ role: "user", content: "What is a context window?" }], }); console.log(response.choices[0].message.content); ``` Both libraries also read `OPENAI_BASE_URL` and `OPENAI_API_KEY` when you don't pass them in code, so a project can switch by setting two variables and changing the model id. Code that calls `client.responses.create` keeps working too: Claude models are served on [Responses](https://5abeer.ai/en/docs/api/responses.md) as well. ## Which Claude model should I pick? The Claude models you can call now: | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | Claude Sonnet 5.5 | `claude-sonnet-5.5` | $0.60 | $3 | 1M | | Claude Opus 5.5 | `claude-opus-5.5` | $1.20 | $6 | 1M | | Claude Fable 5.1 | `claude-fable-5.1` | $3 | $15 | — | | Claude Fable 5 | `claude-fable-5` | $3 | $15 | 1M | | Claude Opus 4.6 | `claude-opus-4.6` | $1.50 | $7.50 | 1M | | Claude Opus 4.7 | `claude-opus-4.7` | $1.50 | $7.50 | 1M | Start with [`claude-sonnet-5.5`](https://5abeer.ai/en/models/claude-sonnet-5.5), the default on 5abeer, and try [`claude-opus-5.5`](https://5abeer.ai/en/models/claude-opus-5.5) or [`claude-fable-5.1`](https://5abeer.ai/en/models/claude-fable-5.1) on your hardest prompts; [Which Claude model to use](https://5abeer.ai/en/guides/which-claude-model) compares them. Copy each id as our catalog writes it, with a dot in the version, even where Anthropic's docs use a hyphen. `client.models.list()` returns the models your key can use, as in [List models](https://5abeer.ai/en/docs/api/models.md#ex-list). ## Route 2: move to the Anthropic SDK Claude's own settings, such as `cache_control`, thinking settings and `output_config`, live in Anthropic's format. 5abeer is compatible with the Anthropic Messages API, so the official SDK works with it. Install it with `pip install anthropic`: ```python import os from anthropic import Anthropic client = Anthropic( base_url="https://api.5abeer.ai", api_key=os.environ["KHABEER_API_KEY"], ) message = client.messages.create( model="claude-sonnet-5.5", max_tokens=4096, system="Answer in two sentences.", messages=[{"role": "user", "content": "What is a context window?"}], ) print("".join(block.text for block in message.content if block.type == "text")) ``` Four things differ from the OpenAI code: - The base URL has no `/v1`. The Anthropic SDK adds the path itself. - `max_tokens` is required, and the instructions go in the top-level `system` field. - Thinking is on by default on Claude 5 models. Anthropic counts thinking tokens toward `max_tokens` and bills them as output, so leave room: these samples use 4096. - The reply is a list of blocks, and a `thinking` block can come before the text. Read the `text` blocks, not the first block. The SDK also reads `ANTHROPIC_BASE_URL` and `ANTHROPIC_API_KEY` from the environment, as in [Base URLs](https://5abeer.ai/en/docs/start/base-urls.md#anthropic). ## How do Chat Completions and Messages differ? The same conversation sits in different fields. Moving to Messages means renaming these: | In Chat Completions | In Messages | | --- | --- | | Base URL `https://api.5abeer.ai/v1` | Base URL `https://api.5abeer.ai`, with no `/v1` | | The `Authorization: Bearer` header | The `x-api-key` and `anthropic-version: 2023-06-01` headers; Bearer works too | | A message with the `system` role | The top-level `system` field | | `max_tokens` is optional | `max_tokens` is required | | `choices[0].message.content` | The `text` blocks in `content` | | `stop` | `stop_sequences` | | `parameters` in a function | `input_schema` in a tool | | A message with the `tool` role | A `tool_result` block in a `user` message | | `reasoning_effort` | `effort` in `output_config` | | `response_format` | A tool with a schema | | `prompt_tokens` and `completion_tokens` | `input_tokens` and `output_tokens` | | Chunks with a `delta` | Named events such as `content_block_delta` | Each field is in the [Messages reference](https://5abeer.ai/en/docs/api/messages.md#params), and the same tool in each format is in [Tool calling](https://5abeer.ai/en/docs/api/tools.md#formats). ## Which OpenAI options work with Claude on 5abeer? From our [Chat Completions reference](https://5abeer.ai/en/docs/api/chat-completions.md#params). An ignored option causes no error; it just has no effect. | Option | With Claude models on 5abeer | | --- | --- | | `messages` with the `system`, `user`, `assistant` and `tool` roles | Supported, images included | | `max_completion_tokens` or `max_tokens` | Supported | | `stream` and `stream_options` | Supported | | `tools` and `tool_choice` | Supported; keep `tool_choice` at `auto` (see below) | | `reasoning_effort` | Supported | | `temperature` and `top_p` | Passed to the model (see below) | | `response_format` | Ignored: use a tool with a schema | | `stop` | Ignored: use `stop_sequences` in [Messages](https://5abeer.ai/en/docs/api/messages.md#params) | | `parallel_tool_calls`, `n`, `seed`, the penalties, `logprobs`, `logit_bias` and `user` | Ignored | Anthropic's docs, checked on 2026-11-03, add two limits. On Claude 4.7 and later models, a non-default `temperature` or `top_p` returns a `400` error. On `claude-opus-5.5`, `claude-sonnet-5.5` and `claude-fable-5.1`, so does a forced tool call through `tool_choice`. Leave the sampling settings out, keep `tool_choice` at `auto`, and name the tool you want in the prompt. ## How do I get JSON from Claude? `response_format` has no effect with Claude models on our Chat Completions, so ask for JSON through a tool. With the Anthropic SDK, describe a tool whose `input_schema` holds the fields you want, and read them from the `tool_use` block: ```python tools = [{ "name": "save_city", "description": "Save facts about a city.", "input_schema": { "type": "object", "properties": { "city": {"type": "string"}, "country": {"type": "string"}, "population": {"type": "integer"}, }, "required": ["city", "country", "population"], }, }] message = client.messages.create( model="claude-sonnet-5.5", max_tokens=4096, tools=tools, messages=[{"role": "user", "content": "Call save_city with the facts about Tokyo."}], ) calls = [block for block in message.content if block.type == "tool_use"] if calls: print(calls[0].input["city"], calls[0].input["population"]) else: print("No tool call, stop_reason:", message.stop_reason) ``` With `tool_choice` at `auto`, the model decides whether to call the tool, so keep the check for a missing `tool_use` block. How to send a tool's result back is in [Tool calling](https://5abeer.ai/en/docs/api/tools.md#loop). ## Does prompt caching carry over? Not on its own. With Claude models, you mark what to cache by adding `cache_control` to a content block, and that field exists only in Messages. If your prompts repeat long instructions or documents, that alone is a reason to take route 2; see [Prompt caching](https://5abeer.ai/en/docs/api/caching.md#claude). ## Does streaming work? Yes, on both routes. With the OpenAI SDK, `stream=True` works as before. With the Anthropic SDK, the `messages.stream` helper yields the text as it is written: ```python with client.messages.stream( model="claude-sonnet-5.5", max_tokens=4096, messages=[{"role": "user", "content": "Write a short poem about the sea."}], ) as stream: for text in stream.text_stream: print(text, end="", flush=True) ``` The events behind it are in [Streaming](https://5abeer.ai/en/docs/api/messages.md#streaming). ## Common errors | What you see | Likely cause | Fix | | --- | --- | --- | | `403` with `MODEL_PLATFORM_NOT_ALLOWED` | The key is for GPT or Gemini models | Create a key for Claude models, as in [One key per provider](https://5abeer.ai/en/docs/start/keys.md#per-provider) | | `401` with `INVALID_API_KEY` | The code still sends an OpenAI key | Put your 5abeer key in the variable your code reads | | `404` Not Found | `/v1` added to the Anthropic SDK's base URL | Use `https://api.5abeer.ai` | | `400` on a request that worked with GPT | A non-default `temperature` or `top_p`, or a forced tool call | Leave sampling settings out; set `tool_choice` to `auto` | | `stop_reason` is `max_tokens`, with little or no text | `max_tokens` ran out, often on thinking | Raise `max_tokens` | | `AttributeError` on `choices` | Chat Completions code reads a Messages reply | Read the `text` blocks in `content` | Every code is in [Errors and fixes](https://5abeer.ai/en/docs/help/errors.md#codes) and [Limits](https://5abeer.ai/en/docs/api/limits.md#model-errors). ## Test it with one request Before you change a large project, send one request with your Claude key. A reply means the base URL, the key and the model id are right: ```bash curl --request POST "https://api.5abeer.ai/v1/messages" \ --header "x-api-key: $KHABEER_API_KEY" \ --header "Content-Type: application/json" \ --header "anthropic-version: 2023-06-01" \ --data '{"model":"claude-sonnet-5.5","max_tokens":512,"messages":[{"role":"user","content":"Write a product idea in one sentence."}]}' ``` ```python import os import requests response = requests.post( "https://api.5abeer.ai/v1/messages", headers={ "x-api-key": os.environ['KHABEER_API_KEY'], "Content-Type": "application/json", "anthropic-version": "2023-06-01", }, json={ "model": "claude-sonnet-5.5", "max_tokens": 512, "messages": [ { "role": "user", "content": "Write a product idea in one sentence." } ] }, stream=False, timeout=60, ) response.raise_for_status() print(response.json()) ``` ## Anthropic's OpenAI endpoint or 5abeer's? Anthropic runs its own OpenAI-compatible endpoint. Checked on 2026-11-03 in Anthropic's docs and ours: | | Anthropic's OpenAI endpoint | 5abeer | | --- | --- | --- | | Base URL | `https://api.anthropic.com/v1/` | `https://api.5abeer.ai/v1` | | Key | An Anthropic API key | A 5abeer key for Claude models | | Model id | Anthropic's ids, with a hyphen in the version | Our catalog's ids, such as `claude-sonnet-5.5` | | `response_format` | Only `json_schema` with `strict: true` | Ignored: use a tool with a schema | | `reasoning_effort` | Ignored | Supported | | `stop` | Works for non-whitespace text | Ignored: use `stop_sequences` in Messages | | Prompt caching | Not in this format | Not in this format; use `cache_control` in Messages | Anthropic calls its layer "primarily intended to test and compare model capabilities" and points to its native API for the full feature set. The same holds here: the OpenAI SDK is the quick way in, and Messages is where Claude's own settings live. ## What does the move cost? A 5abeer API key pays per token from your balance, and every model priced per token costs less than its official price. As an example, 3,000 requests to `claude-sonnet-5.5`, each with about 2,000 input tokens and 500 output tokens, thinking included: Example: 6,000,000 input tokens and 1,500,000 output tokens on Claude Sonnet 5.5 (`claude-sonnet-5.5`) cost $8.10 at our price against $27.00 at the official price (70% lower). Official price checked November 21, 2026. Live prices are on [Claude API](https://5abeer.ai/en/api/claude), and [What is a token](https://5abeer.ai/en/guides/what-is-a-token) shows how a request turns into tokens. Each key can have a spend limit, an expiry date and an IP allow-list, as in [Control every key](https://5abeer.ai/en/docs/start/keys.md#controls). Plans are for the supported apps; to use the models from your own code, create an API key. For Claude in the terminal rather than in your code, see [Claude Code](https://5abeer.ai/en/docs/apps/claude-code.md). ## FAQ ### Can I keep my OpenAI code and call Claude? Yes. Point the OpenAI SDK at `https://api.5abeer.ai/v1`, use a key for Claude models and pass a Claude model id. Chat Completions and Responses both work. ### When is the Anthropic SDK worth the rewrite? When you need `cache_control`, thinking settings or `output_config`. For plain chat and tool calls, the three settings are enough, and one code path can still call several providers. ### Why does Claude return 400 for a request that worked on GPT? The usual cause is a sampling setting or a forced tool call. Anthropic's newest models reject a non-default `temperature` or `top_p`, and a `tool_choice` that forces a tool. Remove them and try again. ### Do I need a new key for Claude? Yes. A 5abeer key works with one provider's models, so a key for GPT models can't call Claude. Create one for Claude models; all your keys draw on the same balance. ### Should I rewrite my prompts? Anthropic suggests reviewing them: a prompt tuned closely for GPT models may need changes to get the best from Claude. Try your main prompts with the test request above before you move the rest. ## Sources Checked on 2026-11-03: - Anthropic: [OpenAI SDK compatibility](https://platform.claude.com/docs/en/cli-sdks-libraries/libraries/openai-sdk) - Anthropic: [Using the Messages API](https://platform.claude.com/docs/en/build-with-claude/working-with-messages) - Anthropic: [Define tools](https://platform.claude.com/docs/en/agents-and-tools/tool-use/define-tools) - Anthropic: [Thinking](https://platform.claude.com/docs/en/build-with-claude/thinking) - Anthropic: [anthropic-sdk-python library](https://github.com/anthropics/anthropic-sdk-python) - OpenAI: [openai-python library](https://github.com/openai/openai-python) and [openai-node library](https://github.com/openai/openai-node) > 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. ## Get started Create a key for Claude models, set it as `KHABEER_API_KEY`, run the test request above, then change the base URL and the model id across your project. --- URL: https://5abeer.ai/en/guides/ai-api-monthly-cost # How much does an AI API cost per month? Worked examples > AI API monthly cost: the token formula, three priced scenarios from a small shop bot to a busy team assistant, and five ways to cut the bill. Updated: 2026-11-03 An AI API's monthly bill is requests per month × tokens per request, priced at the model's input and output rates. In a chat, each request re-sends the system prompt and the whole conversation so far, and output tokens cost more than input, so long chats and long replies push the bill up fastest. ## How do you calculate an AI API's monthly cost? An API charges per token, a small piece of text the model reads or writes ([what a token is](https://5abeer.ai/en/guides/what-is-a-token)). Each request has two parts: - **Input tokens**: your system prompt, the chat history and the user's new message. - **Output tokens**: the model's reply. They cost several times more per token than input. For a chatbot, requests per month are conversations × messages per conversation. So the bill comes down to four numbers: conversations per month, messages per conversation, tokens per message and the model's price per million input and output tokens. You don't have to guess the token counts. Every API reply carries a `usage` field with the exact input and output tokens, so run twenty real test chats and take the average. ## Why does every message cost more than the last? The model keeps no memory between requests. To answer the fourth message, your code sends the system prompt, the first three messages, the first three replies and then the new message. OpenAI's own guide says it plainly: all previous input tokens in the chain are billed as input again. Two things follow from this: - A long conversation costs far more than several short ones with the same number of messages. - The system prompt's length matters a lot. A 2,000-token prompt in an eight-message chat is billed eight times. ## What does each model cost per token? The scenarios below use the default model, [`claude-sonnet-5.5`](https://5abeer.ai/en/models/claude-sonnet-5.5), and [`claude-opus-5.5`](https://5abeer.ai/en/models/claude-opus-5.5) for harder work. Our price and the official price for each: Claude Sonnet 5.5 (`claude-sonnet-5.5`) per 1M tokens: input $0.60 (official $2), output $3 (official $10). Official price checked November 21, 2026. Claude Opus 5.5 (`claude-opus-5.5`) per 1M tokens: input $1.20 (official $4), output $6 (official $20). Official price checked November 21, 2026. For the most demanding reasoning, [`claude-fable-5.1`](https://5abeer.ai/en/models/claude-fable-5.1) costs two and a half times Opus's input and output price. OpenAI and Google release new GPT and Gemini models often, so we don't fix one of them in these examples. The [OpenAI API](https://5abeer.ai/en/api/openai) and [Gemini API](https://5abeer.ai/en/api/gemini) pages list each model's official price next to ours. To price a scenario on one of them, multiply its token totals by that model's rates. ## What does a small shop bot cost? A shop answering questions about products, sizes and delivery: 1,000 conversations a month, four customer messages each. The system prompt is 1,000 tokens, a customer message 100 and a reply 150. With the history re-sent, input grows from 1,100 tokens on the first turn to 1,850 on the fourth. One conversation totals 5,900 input and 600 output tokens, so the month is 5.9 million input and 600,000 output tokens: Example: 5,900,000 input tokens and 600,000 output tokens on Claude Sonnet 5.5 (`claude-sonnet-5.5`) cost $5.34 at our price against $17.80 at the official price (70% lower). Official price checked November 21, 2026. Short, repeated shop questions often hold up on a smaller, cheaper model. Test one from the [models page](https://5abeer.ai/en/models) on real questions before you settle on the default. ## What does a busy support bot cost? A support bot for a service company: 10,000 conversations a month, eight customer messages each. The system prompt carries the policies and common answers, so it's 2,000 tokens. A message is 150 tokens and a reply 250. One conversation reaches 28,400 input and 2,000 output tokens. More than half of that input is the system prompt alone, sent eight times. The month is 284 million input and 20 million output tokens: Example: 284,000,000 input tokens and 20,000,000 output tokens on Claude Sonnet 5.5 (`claude-sonnet-5.5`) cost $230.40 at our price against $768.00 at the official price (70% lower). Official price checked November 21, 2026. Because the same long prompt opens every request, this bot gains the most from caching, covered below. ## What does a heavy assistant cost? An internal assistant for a team: 2,000 conversations a month, twenty messages each. Every request opens with 8,000 tokens of instructions and document excerpts. A message is 200 tokens and a reply 500. One conversation reaches 297,000 input and 10,000 output tokens. With twenty messages, the history alone is nearly half the input, so trimming it pays off most here. The month is 594 million input and 20 million output tokens: Example: 594,000,000 input tokens and 20,000,000 output tokens on Claude Sonnet 5.5 (`claude-sonnet-5.5`) cost $416.40 at our price against $1,388.00 at the official price (70% lower). Official price checked November 21, 2026. If the team runs every turn on Opus instead, the same month costs: Example: 594,000,000 input tokens and 20,000,000 output tokens on Claude Opus 5.5 (`claude-opus-5.5`) cost $832.80 at our price against $2,776.00 at the official price (70% lower). Official price checked November 21, 2026. These figures assume no caching, so treat them as a ceiling. ## How do you cut the bill? Five levers, each from the vendors' own docs: 1. **Cache the fixed part.** Put the system prompt, tools and documents first and the new message last. Cached input reads are billed at a fraction of the normal input price: a tenth on most Claude models, a twentieth on the newest Opus and Sonnet, and a fortieth on the newest Fable. On Claude you mark what to cache with `cache_control` in the Messages format; OpenAI caches prompts of 1,024 tokens or more automatically on recent GPT models; recent Gemini models cache implicitly. Our [caching guide](https://5abeer.ai/en/docs/api/caching.md) shows the fields that report cached tokens. 2. **Trim the history.** Send the last few turns plus a short summary instead of the full transcript. This is the cost that grows fastest in long sessions. 3. **Use a smaller model for easy turns.** Anthropic's own advice is Haiku for simple tasks, Sonnet for most production work and Opus for the most complex reasoning. Send greetings and short questions to the smaller model yourself. 4. **Batch what can wait.** Classifying last month's chats or writing summaries doesn't need an instant answer. Anthropic, OpenAI and Google each offer a Batch API at half price, with OpenAI and Google aiming for 24 hours. Batch is a feature of each vendor's own API. 5. **Cap the reply length.** Set `max_tokens` on Claude as a hard ceiling (each API has an equivalent setting). The model may stop before it, and a reply that reaches it is cut off, so also ask for short answers in the prompt. The official numbers behind these levers: Official caching and batch discounts | Service | Item | Value | Note | Source | | --- | --- | --- | --- | --- | | Anthropic | Cached input read | A tenth of the input price or less | Half of that on the newest Sonnet and Opus models. | https://platform.claude.com/docs/en/about-claude/pricing | | Anthropic | Five-minute cache write | 1.25 times the input price | Paid once, when the content is stored. | https://platform.claude.com/docs/en/about-claude/pricing | | Anthropic | Batch API discount | 50% | On both input and output tokens. | https://platform.claude.com/docs/en/about-claude/pricing | | OpenAI | Prompt caching | On by default for supported models | From 1,024 tokens on GPT-5.6 and later; cached input discounted up to 95%. | https://developers.openai.com/api/docs/guides/prompt-caching | | OpenAI | Batch API discount | 50% | Each batch completes within 24 hours. | https://developers.openai.com/api/docs/guides/batch | | Google | Implicit caching | On by default for recent Gemini models | Savings apply automatically; the page states no fixed rate. | https://aistudio.google.com/docs/caching | | Google | Batch Mode price | 50% | Of the standard price; target turnaround 24 hours. | https://aistudio.google.com/docs/batch-api | Each row links to the page it comes from, checked November 1, 2026. These figures can change, so check the source before you buy. Each lever is covered in more depth in [Cut your LLM API bill](https://5abeer.ai/en/guides/cut-llm-api-costs). On 5abeer, you can also give the bot its own key with a spend limit, an expiry date and an IP allow-list ([key controls](https://5abeer.ai/en/docs/start/keys.md#controls)). If a loop or a spike drives the bot past its limit, requests on that key stop with `API_KEY_QUOTA_EXHAUSTED` instead of draining your balance. ## What costs are there besides tokens? Tokens are usually not the only bill: - **Hosting**: the server, serverless function or automation tool that runs the bot. - **The channel**: WhatsApp, Messenger and website chat widgets each have their own pricing and rules. - **People's time**: writing and testing the prompt, reviewing conversations and keeping the knowledge base current. ## Can a ChatGPT or Claude subscription pay for API use? No. A ChatGPT or Claude subscription signs you in to the vendor's apps. Your own code calls the model through the API, and that needs an API key, billed per token and separate from any subscription. The full comparison is in [AI subscription vs API](https://5abeer.ai/en/guides/ai-subscription-vs-api). The same applies on 5abeer: plans are for the supported apps, and to use the models from your own code you create an API key. ## Running it through 5abeer The 5abeer [API](https://5abeer.ai/en/api) speaks the OpenAI, Anthropic and Gemini formats, so moving a bot means changing the base URL and the key while the code stays the same. Our per-token prices sit below the official ones, and every price block above shows the date it was checked. See the pages for [Claude](https://5abeer.ai/en/api/claude), [OpenAI](https://5abeer.ai/en/api/openai) and [Gemini](https://5abeer.ai/en/api/gemini), or the full [pricing](https://5abeer.ai/en/pricing). How you top up your balance depends on your country: see [payment methods](https://5abeer.ai/en/docs/start/payment.md). Readers in Egypt have the [API page for Egypt](https://5abeer.ai/en/api/egypt) and [how to pay for the API from Egypt](https://5abeer.ai/en/guides/pay-ai-api-from-egypt). ## Questions ### How many tokens does a chatbot message use? It depends on the language, the tokenizer and the message length, so no fixed number holds for every bot. Read the `usage` field on a sample of real chats and use the average in the formula. ### Do I pay anything in a quiet month? API billing is per request, so a month with few chats costs few tokens. Hosting and channel fees may still apply. ### How do I stop the bot from going over budget? Give the bot its own API key with a spend limit. When it reaches the limit, requests on that key stop with `API_KEY_QUOTA_EXHAUSTED`. ### Does prompt caching need code changes? On Claude, a small one: you add `cache_control` in the Messages format. GPT models cache long prompts automatically. Either way, the `usage` field shows how many input tokens came from the cache. ### Which model should a chatbot start with? Start with [`claude-sonnet-5.5`](https://5abeer.ai/en/models/claude-sonnet-5.5) and measure a week of real use. Then test a smaller model from the [models page](https://5abeer.ai/en/models) on the simple turns, and keep [`claude-opus-5.5`](https://5abeer.ai/en/models/claude-opus-5.5) for harder questions. ### Why is my bill higher than my estimate? Usually a long chat history, a long system prompt or long replies. Compare the real `usage` numbers with your estimate, then trim whichever part is largest. ## Sources Checked on 2026-11-03: - [Anthropic pricing](https://platform.claude.com/docs/en/about-claude/pricing): cache reads and writes, Batch discount, model guidance. - [Anthropic models overview](https://platform.claude.com/docs/en/models/overview): Fable for demanding reasoning. - [Anthropic Messages API](https://platform.claude.com/docs/en/api/messages) and [stop reasons](https://platform.claude.com/docs/en/build-with-claude/handling-stop-reasons): `max_tokens` and replies cut off at the limit. - [OpenAI prompt caching](https://developers.openai.com/api/docs/guides/prompt-caching) and [Batch API](https://developers.openai.com/api/docs/guides/batch). - [OpenAI conversation state](https://developers.openai.com/api/docs/guides/conversation-state): previous input billed again. - [Gemini caching](https://aistudio.google.com/docs/caching) and [Gemini Batch API](https://aistudio.google.com/docs/batch-api). > 5abeer is an independent service and is not affiliated with OpenAI, Anthropic or Google. ## Start Create a key for the bot, set a spend limit and measure a week of real use before you settle on a model. --- URL: https://5abeer.ai/en/guides/cherry-studio-api-key # Cherry Studio API key: use Claude and GPT with 5abeer > Connect Cherry Studio to 5abeer with a custom provider, sync your models, and set the Quick Model and context options that decide what each chat costs. Updated: 2026-11-03 To use Cherry Studio with a 5abeer API key, open Settings, then Model Provider, and add a custom provider. Paste your key in API Key and enter `https://api.5abeer.ai` in the Anthropic field for a Claude key, or the OpenAI field for a GPT key. Then sync and add the models, switch the provider on and pick a model. ## What do you need before you start? - **Cherry Studio**, the desktop app, on Windows, macOS or Linux. Download it from the [official download page](https://cherryai.com.cn/download/v2) for your system and chip. On 2026-11-03, the latest release was 2.1.10, published on 2026-10-31. - **A 5abeer API key** for the provider of the models you want. A key works with one provider's models only ([Create a key](https://5abeer.ai/en/docs/start/keys.md#create)). New to keys? See [How to get an API key](https://5abeer.ai/en/guides/ai-api-key-guide). - **Some balance** on your account ([Payment methods](https://5abeer.ai/en/docs/start/payment.md)). The names below are from Cherry Studio's English interface; version 2.1.10 has no Arabic one. A 5abeer plan won't work here. Plans are for the supported apps, and Cherry Studio is not one of them, so it runs on an API key paid from your balance. ## Which endpoint should you choose? A custom provider asks which API format, or endpoint, to use. The window shows **OpenAI** and **Anthropic**, and **More options** adds **OpenAI Responses** and **Gemini**. Pick the one that matches your key: - **Anthropic**, for a Claude key. 5abeer is compatible with the Anthropic Messages API. - **OpenAI**, for a GPT key. 5abeer is OpenAI-compatible. - **Gemini**, under **More options**, for a Gemini key. Enter the same root address in any of them: `https://api.5abeer.ai`. Cherry Studio adds `/v1` for OpenAI and Anthropic and `/v1beta` for Gemini, and shows the final **Request path** under the field before you save. These are our base URLs: | Format | Base URL | Key header | | --- | --- | --- | | OpenAI | `https://api.5abeer.ai/v1` | `Authorization: Bearer ` | | Anthropic | `https://api.5abeer.ai` | `x-api-key: ` | | Gemini | `https://api.5abeer.ai/v1beta` | `x-goog-api-key: ` | ## How do you set up Cherry Studio step by step? ### 1. Create a 5abeer API key In your dashboard, open **API → Keys**, press **New key** and pick Claude. Copy the key when it appears. ### 2. Add a custom provider In Cherry Studio, open **Settings** with the gear icon, then **Model Provider**, and press **Add Provider**. The **Add Custom Provider** window opens. ### 3. Fill in the fields - **Provider Name**: a name you will recognise, such as `5abeer Claude`. - **API Key**: your 5abeer key. - **Endpoint settings**: enter `https://api.5abeer.ai` in **Anthropic** and leave **OpenAI** empty. The **Request path** should end in `/v1/messages`. Press **Add**. ### 4. Sync the models On the provider's page, press **Sync models**. Cherry Studio asks 5abeer for the models your key can use and lists them under **Model management**. Add the ones you want with **+**: only added models appear in a chat's model picker. If one is missing, press the **+** next to **Sync models** (**Add model manually**) and type its **Model ID** exactly as on the [models list](https://5abeer.ai/en/models). ### 5. Check the connection Next to **API Key**, press **Model Check**, pick one model under **Select Model** and press **Start**. Cherry Studio sends a short real request with your key. If it fails, look in the provider's list for a mistyped model or one your key doesn't support. ### 6. Switch the provider on Turn on the switch at the top right of the provider's page. Its models appear in chats only while it is on. ### 7. Send a test message Open a new chat, choose [`claude-sonnet-5.5`](https://5abeer.ai/en/models/claude-sonnet-5.5) and send a short message. If a reply comes back, the setup works. ## Which model should you use in Cherry Studio? Start with [`claude-sonnet-5.5`](https://5abeer.ai/en/models/claude-sonnet-5.5) for everyday chat, writing and coding questions. Move to [`claude-opus-5.5`](https://5abeer.ai/en/models/claude-opus-5.5) for long, hard tasks where the extra cost pays off. Set `claude-sonnet-5.5` as the **Default Assistant Model** in **Settings → Default Model**, and give only your hard-task assistant its own model, `claude-opus-5.5`. An assistant's own model overrides the default. These are the current Claude models: | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | Claude Sonnet 5.5 | `claude-sonnet-5.5` | $0.60 | $3 | 1M | | Claude Opus 5.5 | `claude-opus-5.5` | $1.20 | $6 | 1M | | Claude Fable 5.1 | `claude-fable-5.1` | $3 | $15 | — | The official price next to ours, with the date it was read: Claude Sonnet 5.5 (`claude-sonnet-5.5`) per 1M tokens: input $0.60 (official $2), output $3 (official $10). Official price checked November 21, 2026. GPT and Gemini models need a key for their own provider. Their current chat models: | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | GPT-6.2 Sol | `gpt-6.2-sol` | $0.60 | $3 | — | | GPT-6.2 Astra | `gpt-6.2-astra` | $2.40 | $12 | — | | GPT-6.1 Sol | `gpt-6.1-sol` | $0.60 | $3 | 922K | | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | Gemini 4 Argon | `gemini-4-argon` | $0.60 | $3 | — | | Gemini 2.5 Pro | `gemini-2.5-pro` | $0.38 | $3 | 1M | Our prices next to the official ones: [Claude API](https://5abeer.ai/en/api/claude) and [OpenAI API](https://5abeer.ai/en/api/openai). ## Which Cherry Studio settings decide what you pay? Each request is paid from your balance by the tokens it uses, at the model's 5abeer price ([Pricing and balance](https://5abeer.ai/en/docs/start/pricing.md)). Through the API, you use every model priced per token for less than its official price. Three settings decide how big your chat requests are and which model runs the requests Cherry Studio sends on its own. We checked them against version 2.1.10 on 2026-11-03: - **Quick Model**, in **Settings → Default Model**. Cherry Studio uses it for small tasks such as naming conversations and extracting search keywords. While it is empty, it follows the Default Assistant Model, and a default you pick while it is empty is copied into it. So look at what it shows: if it is `claude-opus-5.5`, that model writes every conversation title. Set it to `claude-sonnet-5.5`. To stop naming requests, press the gear next to Quick Model and turn off **Conversation Auto Naming**. Translate Model follows the same rule. - **Recent messages kept**, in **Settings → General → Context Management**. It is empty by default, so each new message carries the whole chat with it. A number such as 20 sends only the latest 20 messages, though too small a number makes the model forget earlier instructions. Each assistant can set its own value. - **Auto compress**, on the same page, is on by default. When a chat nears the model's context limit, Cherry Studio summarises the older turns with the chat's own model. Pick `claude-sonnet-5.5` as the **Compression model**, so long chats on `claude-opus-5.5` are summarised at the lower price. Two more habits: - **Check one model, not all.** Each check is a real, paid request, and Cherry Studio warns that **Check all models** can cost a lot in a short time. - **Give Cherry Studio its own key**, with a spend limit, an expiry date and an IP allow-list ([Key controls](https://5abeer.ai/en/docs/start/keys.md#controls)). ## Can you use Claude and GPT in the same app? Yes, with one Cherry Studio provider per key. A 5abeer key works with one provider's models, and a GPT model called with a Claude key returns [`MODEL_PLATFORM_NOT_ALLOWED`](https://5abeer.ai/en/docs/help/errors.md#MODEL_PLATFORM_NOT_ALLOWED). To add GPT, create a GPT key, then add a second custom provider, such as `5abeer GPT`, with `https://api.5abeer.ai` in **OpenAI** and the GPT key in **API Key**. Sync, add, check and switch it on as above. Both providers draw on the same balance. Don't put keys for two providers in one Cherry Studio provider. Cherry Studio can hold several keys per provider and uses them in turn, so some requests would go out with the wrong key. ## Common errors and fixes - [`INVALID_API_KEY`](https://5abeer.ai/en/docs/help/errors.md#INVALID_API_KEY) or a 401: the key has a typo or an extra space, or was revoked. Paste it again on the provider's page. - [`MODEL_PLATFORM_NOT_ALLOWED`](https://5abeer.ai/en/docs/help/errors.md#MODEL_PLATFORM_NOT_ALLOWED): the model belongs to another provider than the key. Pick it under the Cherry Studio provider that holds that model's key. - **Not found, or a wrong path:** the address holds a full path such as `/v1/chat/completions`, or ends in `#`, which stops Cherry Studio from adding the version. Enter only `https://api.5abeer.ai` and check the **Request path**. - **No 5abeer models in a chat:** the provider is off, or you synced without adding models. - **Model not found:** the Model ID you typed doesn't match ours. Copy it from the [models list](https://5abeer.ai/en/models). - [`INSUFFICIENT_BALANCE`](https://5abeer.ai/en/docs/help/errors.md#INSUFFICIENT_BALANCE): top up, then retry. Every code is explained in [Errors and fixes](https://5abeer.ai/en/docs/help/errors.md). ## Questions ### Should the address end in /v1? It doesn't need to. Cherry Studio adds `/v1` itself, and if you enter `https://api.5abeer.ai/v1`, it sees the version and doesn't add it twice. ### Why does Sync models show only Claude models? Because the list comes from your key, and a key works with one provider's models. To see GPT models, add a second provider with a GPT key. ### Why does my usage show requests I didn't type? Those are Cherry Studio's own small tasks, such as naming a conversation or extracting search keywords. They run on the Quick Model and are paid like any request. Summaries of long chats also run in the background, on the Compression model. Point Quick Model at a lighter model, or turn off Conversation Auto Naming, as in [the cost settings](https://5abeer.ai/en/guides/cherry-studio-api-key#costs). ### Can I use my key in Cherry Studio's agent? Yes. In version 2.1.10, an agent's **Runtime mode** is **Claude Agent**, which uses the Anthropic format of your Claude provider, or **Pi**, which also works with OpenAI-format providers such as one holding a GPT key. The agent's requests are paid from your balance, so set a spend limit on that key. > Running a chat app on your own server for a team instead? See [Open WebUI](https://5abeer.ai/en/guides/open-webui-api-key) or [LibreChat](https://5abeer.ai/en/guides/librechat-api-key). What the base URL field means in any app is in [What is a base URL?](https://5abeer.ai/en/guides/what-is-base-url) ## Sources Checked on 2026-11-03: - Cherry Studio docs, in Chinese: [Model provider settings](https://docs.cherryai.com.cn/pre-basic/providers/providers), [Custom provider](https://docs.cherryai.com.cn/pre-basic/providers/zi-ding-yi-fu-wu-shang), [Anthropic](https://docs.cherryai.com.cn/pre-basic/providers/anthropic), [Default models](https://docs.cherryai.com.cn/pre-basic/settings/default-models), [Long chats and context](https://docs.cherryai.com.cn/advanced-basic/chat/context-queue) and [Installation](https://docs.cherryai.com.cn/cherry-studio/installation) - Cherry Studio on GitHub: [release v2.1.10](https://github.com/CherryHQ/cherry-studio/releases/tag/v2.1.10), and the source at that tag for the [interface languages](https://github.com/CherryHQ/cherry-studio/blob/v2.1.10/src/renderer/i18n/languages.ts), [English labels](https://github.com/CherryHQ/cherry-studio/blob/v2.1.10/src/renderer/i18n/locales/en-us.json), [Model Check](https://github.com/CherryHQ/cherry-studio/blob/v2.1.10/src/renderer/pages/settings/ProviderSettings/ModelList/ModelCheckDialog.tsx), [Quick Model fallback](https://github.com/CherryHQ/cherry-studio/blob/v2.1.10/src/renderer/hooks/useModel.ts) and [agent run modes](https://github.com/CherryHQ/cherry-studio/blob/v2.1.10/src/renderer/components/AgentRuntimeOption.tsx) - 5abeer docs: [API keys](https://5abeer.ai/en/docs/start/keys.md), [Base URLs](https://5abeer.ai/en/docs/start/base-urls.md), [List models](https://5abeer.ai/en/docs/api/models.md) and [Errors and fixes](https://5abeer.ai/en/docs/help/errors.md) > 5abeer is an independent service, not affiliated with Cherry Studio, OpenAI, Anthropic or Google. --- URL: https://5abeer.ai/en/guides/best-ai-for-coding # Best AI for coding in 2026: Claude, GPT or Gemini? > The newest coding models from Anthropic, OpenAI and Google side by side, the agent that runs each, what a month costs, and how to test them on your code. Updated: 2026-11-03 No single AI wins every coding task. Anthropic, OpenAI and Google each offer a top model for long, hard coding work, a cheaper model for everyday edits, and a coding agent: Claude Code, Codex or Google Antigravity. Pick the family by the agent you like and the model by the task, then test on your own code. ## Which AI is best for coding right now? New models arrive every few months, so any ranking goes stale fast. What holds longer is how each vendor sorts its own lineup. This is how their model pages and coding docs describe the newest models, checked on 2026-11-03: | Job | Anthropic (Claude) | OpenAI (GPT) | Google (Gemini) | | --- | --- | --- | --- | | The hardest coding work | Opus, "for long-running agentic coding", or Fable, "for demanding reasoning and long-horizon agentic work" | Astra, "our flagship model for complex reasoning and coding" | Argon, built for "real-world software engineering and knowledge work tasks" | | Everyday coding | Sonnet: it "handles most coding tasks well and costs less than Opus" | Sol: "near-Astra performance for complex work at a lower cost" | The newest Flash, "engineered for long-horizon software engineering" | | Fast, repeated steps | Haiku, for "high-volume, latency-sensitive tasks" | Luna, for "focused, high-volume tasks" | Flash-Lite, for "high-throughput execution" | | The vendor's coding agent | Claude Code | Codex | Google Antigravity | The top models of all three vendors aim at the same work: hard, multi-step coding. So the step from an everyday model to a top one often matters more than the step between families. Not every model in the table runs on 5abeer. These are the ones that do, from each family, at our price per million tokens: | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | Claude Sonnet 5.5 | `claude-sonnet-5.5` | $0.60 | $3 | 1M | | Claude Opus 5.5 | `claude-opus-5.5` | $1.20 | $6 | 1M | | Claude Fable 5.1 | `claude-fable-5.1` | $3 | $15 | — | | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | GPT-6.2 Sol | `gpt-6.2-sol` | $0.60 | $3 | — | | GPT-6.2 Astra | `gpt-6.2-astra` | $2.40 | $12 | — | | GPT-6.1 Sol | `gpt-6.1-sol` | $0.60 | $3 | 922K | | GPT-6 Astra | `gpt-6-astra` | $3 | $15 | — | | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | Gemini 4 Argon | `gemini-4-argon` | $0.60 | $3 | — | | Gemini 2.5 Pro | `gemini-2.5-pro` | $0.38 | $3 | 1M | If two versions of one model appear, the higher number is the newer one. On 5abeer the default model is [`claude-sonnet-5.5`](https://5abeer.ai/en/models/claude-sonnet-5.5), and [`claude-opus-5.5`](https://5abeer.ai/en/models/claude-opus-5.5) and [`claude-fable-5.1`](https://5abeer.ai/en/models/claude-fable-5.1) are there for the hardest problems. To choose within one family, see [Which Claude model to use](https://5abeer.ai/en/guides/which-claude-model) and [Which GPT model to use](https://5abeer.ai/en/guides/which-gpt-model). ## Which coding agent should you use? The model does the thinking, and the agent decides what it can reach: your files, terminal and git history. | Agent | Made by | Models on 5abeer | Where it runs | | --- | --- | --- | --- | | [Claude Code](https://5abeer.ai/en/apps/claude-code) | Anthropic | Claude | Terminal, IDE, desktop app and web | | [Codex](https://5abeer.ai/en/apps/codex) | OpenAI | GPT | Terminal (Codex CLI), IDE extension, ChatGPT desktop app and cloud | | [Google Antigravity](https://5abeer.ai/en/apps/antigravity) | Google | Gemini | Its own app, a CLI and editor extensions | | [OpenCode](https://5abeer.ai/en/apps/opencode) | Open source | Claude, GPT or Gemini, set in its config | Terminal, desktop app and IDE extension | So choosing the agent mostly chooses the family. Anthropic says it doesn't support routing Claude Code to non-Claude models through any gateway, and Codex runs GPT models here. OpenCode is the exception: an open-source agent that works with any provider you give it a key for. If you pay for Cursor now, [A cheaper Cursor alternative](https://5abeer.ai/en/guides/cursor-alternative) compares it with these agents. ## How do you test two of them on your own code? An afternoon on your own repository tells you more than any ranking: 1. **Pick three real tasks** from your backlog: a small bug, a feature that touches several files, and a refactor. Write down what "done" means for each, such as the tests that must pass. 2. **Create one key per provider.** Each 5abeer key covers one provider, and your dashboard shows usage and cost per key ([Track your usage](https://5abeer.ai/en/docs/start/pricing.md#usage)), so each agent's bill stays separate. Give each key a spend limit, so a test can't overrun ([Control every key](https://5abeer.ai/en/docs/start/keys.md#controls)). 3. **Run each task in two agents** with the family's everyday model: Sonnet in Claude Code and Sol in Codex, for example. Start each run from the same commit on a fresh branch, with the same prompt. 4. **Compare three things:** whether the tests passed on the first try, how many follow-up prompts it took, and what the finished task cost on its key. 5. **Rerun only the failures on the top model** (Opus, Astra or Argon). If it fixes them, keep it for that kind of task, and leave everyday work on the cheaper model. ## What does a month of AI coding cost? You pay in one of two ways: a plan with a fixed monthly price and usage limits, or an API key billed per token. These are the vendors' own monthly plans: | Plan | Market and channel | Official price | Billing | Source | Checked | | --- | --- | --- | --- | --- | --- | | ChatGPT Go | United States · Vendor website | $8 | per month | https://openai.com/index/introducing-chatgpt-go/ | 2026-11-15 | | ChatGPT Plus | United States · Vendor website | $20 | per month | https://help.openai.com/en/articles/6950777-what-is-chatgpt-plus | 2026-11-15 | | ChatGPT Pro 100 | United States · Vendor website | $100 | per month | https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers | 2026-11-15 | | ChatGPT Pro 200 | United States · Vendor website | $200 | per month | https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers | 2026-11-15 | | ChatGPT Pro 500 | United States · Vendor website | $500 | per month | https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers | 2026-11-15 | | Claude Pro | United States · Vendor website | $20 | per month | https://claude.com/pricing | 2026-11-15 | | Claude Pro | United States · Vendor website | $200 | per year | https://claude.com/pricing | 2026-11-15 | | Claude Max | United States · Vendor website | $100 | per month | https://claude.com/pricing | 2026-11-15 | | Claude Ultra | United States · Vendor website | $200 | per month | https://claude.com/pricing | 2026-11-15 | The vendors' own prices as published at the source on the date checked; they can change. These are the vendor's official prices; 5abeer's prices are on the pricing page. Tax: per Anthropic's pages, some countries include tax in the displayed price and others add it at checkout. Claude Code comes with Anthropic's Pro, Max and Ultra plans, not with Free. OpenAI includes Codex in every ChatGPT plan, Free included, and Google lets personal accounts use Antigravity on any plan, including the free tier. On a key you pay per token, and every agent turn resends the conversation, the files it reads and the output of its commands. Here is a month of steady work, twenty million tokens in and two million out, on the default model: Example: 20,000,000 input tokens and 2,000,000 output tokens on Claude Sonnet 5.5 (`claude-sonnet-5.5`) cost $18.00 at our price against $60.00 at the official price (70% lower). Official price checked November 21, 2026. And the same month on [`claude-opus-5.5`](https://5abeer.ai/en/models/claude-opus-5.5): Example: 20,000,000 input tokens and 2,000,000 output tokens on Claude Opus 5.5 (`claude-opus-5.5`) cost $36.00 at our price against $120.00 at the official price (70% lower). Official price checked November 21, 2026. The gap between the two is why the test starts on the everyday model. Cached input is billed at a lower rate, and Claude Code caches repeated context on its own, so real sessions usually cost less ([Prompt caching](https://5abeer.ai/en/docs/api/caching.md)). Through 5abeer, every model priced per token costs less on the API than its official price, as both lines show. For when a plan beats a key, see [The cheapest way to use Claude Code](https://5abeer.ai/en/guides/claude-code-cheapest-way). 5abeer's Bundle plans are Pro, Max (formerly Max 5x) and Ultra (formerly Max 20x), and every one of them runs Claude Code, Codex, Google Antigravity and OpenCode. 5abeer's Max has 5 times the limits of 5abeer's Pro, and 5abeer's Ultra has 20 times, with a 5-hour limit and a weekly limit ([Subscription limits](https://5abeer.ai/en/docs/subscriptions/limits.md)). These are 5abeer's plans, not Anthropic's or OpenAI's plans with the same names: 5abeer's Pro is not Claude Pro or ChatGPT Pro, and 5abeer's Max and Ultra are not Anthropic's Max and Ultra. They cost less than the official price, and the prices are on the [pricing page](https://5abeer.ai/en/pricing). These are the plans and their limits: | 5abeer plan | Best for | Usage limits | Our price | | --- | --- | --- | --- | | Pro | For everyday use | A 5-hour limit and a weekly limit | Prices on the pricing page: https://5abeer.ai/en/pricing | | Max (formerly Max 5x) | For heavy daily work | 5× the Pro plan limits | Prices on the pricing page: https://5abeer.ai/en/pricing | | Ultra (formerly Max 20x) | If you work with it all day | 20× the Pro plan limits | Prices on the pricing page: https://5abeer.ai/en/pricing | ## How do you run these agents through 5abeer? 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. Its API follows the OpenAI, Anthropic Messages and Gemini formats, so Claude Code, Codex and OpenCode work with a 5abeer key as they ship, and Google Antigravity runs on a plan: | Format | Base URL | Key header | | --- | --- | --- | | OpenAI | `https://api.5abeer.ai/v1` | `Authorization: Bearer ` | | Anthropic | `https://api.5abeer.ai` | `x-api-key: ` | | Gemini | `https://api.5abeer.ai/v1beta` | `x-goog-api-key: ` | **On a plan:** you turn your plan on for each agent in the 5abeer AI app, as in [What each plan runs](https://5abeer.ai/en/docs/subscriptions/plan-apps.md#apps). Plans are for the supported apps, and to use the models from your own code you need an API key. **With a key:** Claude Code reads the base URL and the key from the `env` section of `~/.claude/settings.json`. Keep them in that user file, not in a project's `.claude/settings.json`, which usually goes into the repository: `~/.claude/settings.json` ```json { "env": { "ANTHROPIC_BASE_URL": "https://api.5abeer.ai", "ANTHROPIC_AUTH_TOKEN": "YOUR_5ABEER_API_KEY", "ANTHROPIC_MODEL": "claude-sonnet-5.5" } } ``` Codex reads a custom provider from `~/.codex/config.toml` and takes the key from the environment variable that `env_key` names: `~/.codex/config.toml` ```toml model = "gpt-6.2-sol" model_provider = "khabeer" [model_providers.khabeer] name = "5abeer" base_url = "https://api.5abeer.ai/v1" env_key = "KHABEER_API_KEY" wire_api = "responses" ``` Full steps are in [Claude Code setup](https://5abeer.ai/en/docs/apps/claude-code.md), [Codex CLI setup](https://5abeer.ai/en/docs/apps/codex.md) and [OpenCode setup](https://5abeer.ai/en/docs/apps/opencode.md). ## FAQ ### Is one AI best at every coding task? No. Even within one vendor, the top model can be wasted on a one-line fix, and the everyday model can stall on a change across many files. Match the model to the task, and keep the top one for the tasks the cheaper one fails. ### Is Claude or GPT better for coding? Both vendors build their top model for complex coding, so it depends on your code and the agent you prefer. On a Bundle plan you can run Claude Code and Codex on the same project and compare. ### Which model should I start coding with? The everyday model: Sonnet in Claude Code, Sol in Codex. Move up to Opus or Astra for a problem across many files or when the first answer falls short, then move back. Anthropic's and OpenAI's model pages point unsure users to a top model (Opus or Astra); starting lower is about cost. ### Can Claude Code run GPT or Gemini models? Not with Anthropic's support. For GPT models use Codex, for Gemini models use Google Antigravity or [Gemini CLI](https://5abeer.ai/en/docs/apps/gemini-cli.md) with a key, and for all three in one agent use OpenCode. ### Do scripts and CI need a 5abeer API key? Yes. 5abeer plans are for the supported apps, so a script or a CI job needs a 5abeer API key. The GitHub setup is in [Claude Code in GitHub Actions](https://5abeer.ai/en/guides/claude-code-github-actions). ### Can I change the model in the middle of a task? Yes. In Claude Code, `/model` switches the model during a session, and a switch to Opus also applies to the subagents that inherit the session's model. In Codex, `/model` changes the model too. ## Sources Checked on 2026-11-03: - Anthropic: [Models overview](https://platform.claude.com/docs/en/models/overview), [Claude pricing](https://claude.com/pricing), and the Claude Code docs: [Overview](https://code.claude.com/docs/en/overview), [Costs](https://code.claude.com/docs/en/costs), [Settings](https://code.claude.com/docs/en/settings), [GitHub Actions](https://code.claude.com/docs/en/github-actions) and [LLM gateways](https://code.claude.com/docs/en/llm-gateway) - OpenAI: [Models](https://developers.openai.com/api/docs/models), [ChatGPT desktop app](https://learn.chatgpt.com/docs/app), [Codex CLI](https://learn.chatgpt.com/docs/codex/cli), [Codex pricing](https://learn.chatgpt.com/docs/pricing) and [Advanced configuration](https://learn.chatgpt.com/docs/config-file/config-advanced) - Google: [Gemini models](https://aistudio.google.com/docs/models), [Latest model](https://aistudio.google.com/docs/latest-model), the [Antigravity FAQ](https://antigravity.google/docs/faq) and [Gemini CLI](https://github.com/google-gemini/gemini-cli) - OpenCode: [Docs](https://opencode.ai/docs) ## Get started Compare paying by plan and by token in [AI subscription vs API](https://5abeer.ai/en/guides/ai-subscription-vs-api), or set up Codex on a key with [Codex CLI with an API key](https://5abeer.ai/en/guides/codex-cli-api-key). --- URL: https://5abeer.ai/en/guides/build-website-claude-code # How to build a website with Claude Code, step by step > Build a small website with Claude Code: write the spec, plan it, check each page, make the Arabic pages right-to-left, deploy, and see the cost on a key. Updated: 2026-11-02 To build a website with Claude Code, describe the site in plain words, let Claude turn that into a plan, approve the plan, then build one page at a time and check each page before moving on. When it works, you deploy it with your host's own tools, and Claude can run those for you too. ## What do you need before you start? Three things: Claude Code on your machine, an empty folder, and the content only you know. Claude can't guess your prices, opening hours, phone number or tone, so write them down and put your logo, photos and colours in the folder before the first prompt. Start a git repository too. Claude Code's checkpoints cover only the files Claude edits with its own tools and don't replace git, so commit after each working page: ```bash mkdir my-site && cd my-site git init claude ``` ## How do you describe the site to Claude? Not sure what you want yet? Let Claude interview you and write the answers to a spec, as Anthropic's best-practices page suggests: ```text I want a small website for my bakery: home, menu, about and contact pages, in Arabic and English. Interview me until you could write the spec, then write it to SPEC.md. ``` Claude asks multiple-choice questions until the answers add up to a spec. Then run `/clear` and build from `SPEC.md` in a fresh session, with a clean context and a written definition of done. If you have a design you like, paste a screenshot with `Ctrl+V` (`Alt+V` on Windows and WSL), drag the image into the window, or give Claude its path, and ask it to match the layout. If you want more than the bare minimum, say `be ambitious` and list what you mean, such as the mobile layout, empty states and keyboard navigation; otherwise Claude tends to build the smallest thing that satisfies the request. ## How do you plan the build in plan mode? Plan mode lets Claude read, explore and propose a plan without editing your files. Press `Shift+Tab` until the status bar shows `⏸ plan mode on`, start with `claude --permission-mode plan`, or put `/plan` in front of a single prompt: ```text /plan Read SPEC.md and plan the build: the stack, the folder layout, one header and footer for every page, and how you will check each page. No new libraries unless the spec needs them. ``` When the plan is ready, **Yes, and use auto mode** approves it and lets a classifier check risky actions instead of asking you (where auto mode isn't available, it reads **Yes, auto-accept edits**). **Yes, manually approve edits** shows you each change, and `Ctrl+G` opens the plan in your text editor. Read the plan before you approve it: it is the cheapest moment to change your mind, which is why Anthropic's cost guide recommends plan mode for complex tasks. ## How do you build and check each page? Give each page its own prompt, name the files involved, and say what done looks like: ```text Build the menu page from SPEC.md, using the same header and footer as index.html. Mobile first, no new libraries. Tell me the command you ran to check it and its output. ``` Claude stops when the work looks done, so give it a check that passes or fails, such as a build's exit code, a linter or a screenshot next to the mockup, and ask for the command and its output rather than "it works". When Claude says a page is done, `/verify` has it build and run the site and look at the result, and `/run` launches the site so you see the change. Both work without setup. With the Claude in Chrome extension and `claude --chrome`, Claude can open your local site, read console errors and compare a page with the mockup. That needs a direct Anthropic plan signed in with `/login`; on an API key it stays off even with `--chrome`, so paste the screenshot in yourself. If Claude drifts, press `Esc`, and `/rewind` rolls the code, the conversation or both back to an earlier prompt. [Claude Code commands](https://5abeer.ai/en/guides/claude-code-commands) covers the rest. Once the stack is settled, run `/init` for a starting `CLAUDE.md` and cut it down to the build and check commands and the rules Claude can't see in the code ([CLAUDE.md guide](https://5abeer.ai/en/guides/claude-md-guide)). ## How do you make the Arabic pages right-to-left? Ask for this once, early in the build: ```text Set lang="ar" or lang="en" on every page's tag, and dir="rtl" on the Arabic ones. Don't set direction in CSS; use logical properties such as margin-inline-start instead of left and right. Give every page hreflang links to itself and to its twin in the other language. ``` The W3C recommends setting direction with `dir` on the `html` tag rather than in CSS, and declaring `lang` too, since one doesn't imply the other. Google ignores `hreflang` tags unless the two pages point to each other. Put both rules in `CLAUDE.md` so new pages follow them, and check each Arabic page at phone width before you commit. ## How do you deploy the site? A site made of HTML, CSS and JavaScript is a folder of static files any static host can serve; a framework adds a build step that writes them to an output folder. Settle the host in the plan and put its deploy command in `CLAUDE.md`. Claude Code runs your host's command-line tool once it is installed and signed in, and for a tool it hasn't seen, pointing it at `--help` is enough. Keep the deploy in your hands. Auto mode's classifier blocks production deploys by default, and Manual mode asks before most edits and shell commands. To make the deploy a step only you start, save it as a skill with `disable-model-invocation: true`, which runs only when you type `/deploy`, as the [skills guide](https://5abeer.ai/en/guides/claude-code-skills) explains: ```text --- name: deploy description: Deploy the site to production. disable-model-invocation: true --- 1. Check that the working tree is clean and on main. If not, stop and ask. 2. Run the build and stop if it fails. 3. Run the deploy command from CLAUDE.md, then open the live URL and report what you see. ``` Keep keys and passwords out of the front-end code: everything a browser downloads is public. ## How much does it cost to build a site with Claude Code? On an API key, you pay for the tokens each request sends and receives. Every request carries the whole conversation, and the repeated part is cached at a lower rate, but on a key the cache lasts about five minutes, so the first prompt after a longer break pays full price again. As an example, not a measurement, a month of evening sessions on a small site that sends ten million tokens and gets six hundred thousand back, on [`claude-sonnet-5.5`](https://5abeer.ai/en/models/claude-sonnet-5.5): Example: 10,000,000 input tokens and 600,000 output tokens on Claude Sonnet 5.5 (`claude-sonnet-5.5`) cost $7.80 at our price against $26.00 at the official price (70% lower). Official price checked November 21, 2026. Your numbers depend on the site and how long your sessions run. `/usage` estimates the session's cost at Anthropic's list price, so on a 5abeer key check what was deducted on [Track your usage](https://5abeer.ai/en/docs/start/pricing.md#usage). To keep the bill down: `/clear` between unrelated tasks, plan mode before big changes, Sonnet for routine pages with a switch to [`claude-opus-5.5`](https://5abeer.ai/en/models/claude-opus-5.5) through `/model` only for hard problems, and a lower `/effort` for quick back-and-forth changes. ## Build your site with Claude Code through 5abeer 5abeer is an independent service, not affiliated with Anthropic. Its API follows the Anthropic Messages format, so Claude Code works with it as it ships, and both routes cost less than the official price. Plan mode, `/verify`, skills and `CLAUDE.md` all run inside Claude Code on your machine, so they work the same on a 5abeer key; only the base URL and key change. **With an API key:** create a key for Claude models, then set the base URL and key in Claude Code's settings: | Format | Base URL | Key header | | --- | --- | --- | | OpenAI | `https://api.5abeer.ai/v1` | `Authorization: Bearer ` | | Anthropic | `https://api.5abeer.ai` | `x-api-key: ` | | Gemini | `https://api.5abeer.ai/v1beta` | `x-goog-api-key: ` | `~/.claude/settings.json` ```json { "env": { "ANTHROPIC_BASE_URL": "https://api.5abeer.ai", "ANTHROPIC_AUTH_TOKEN": "YOUR_5ABEER_API_KEY", "ANTHROPIC_MODEL": "claude-sonnet-5.5" } } ``` Every request is deducted from your balance by model and token count, and you control each key with a spend limit, an expiry date and an IP allow-list. The full setup is in [Claude Code setup](https://5abeer.ai/en/docs/apps/claude-code.md), and prices are on [Claude API](https://5abeer.ai/en/api/claude). If the site itself calls a model, for example a chat box on the contact page, send that request from your server, never from the browser, with a separate key and its own spend limit. [Add an AI chatbot to your website](https://5abeer.ai/en/guides/website-chatbot-api) walks through the server code. **With a plan:** the 5abeer AI app turns Claude Code on for your plan in one click, with no key and no files to edit. The plan runs with a 5-hour limit and a weekly limit, as in [Subscription limits](https://5abeer.ai/en/docs/subscriptions/limits.md). Plans are for the supported apps, and to use the models from your own code you need an API key. See [What each plan runs](https://5abeer.ai/en/docs/subscriptions/plan-apps.md#claude-code) and the [pricing page](https://5abeer.ai/en/pricing). ## FAQ ### Can Claude Code build a whole website on its own? It can write every file, run the site and fix what breaks, but it can't know your content, your brand or what you count as done. Give it a spec and a check it can run, and it does most of the rest. ### Can I build a site this way without knowing how to code? Yes, for a small site. You supply the content, read the plan and look at each page in the browser. Before you approve the deploy, ask Claude to explain any file you don't understand. ### Which framework should I use? For a small site with no preference, ask for plain HTML, CSS and JavaScript: no build step, and any static host can serve it. If you want a particular framework, say so in the first prompt. ### Can I give Claude a design to copy? Yes. Paste, drag in or give the path of as many screenshots as you need, and ask Claude to match the layout and colours. ### Does the site keep working if I stop using Claude Code? Yes. The site is ordinary files in your folder and git history, served by your host. You need Claude Code, on a plan or a key, only to keep changing it, unless the site calls a model itself: that code needs an API key with balance. ## Sources Checked on 2 November 2026. - [Claude Code docs: Best practices for Claude Code](https://code.claude.com/docs/en/best-practices) - [Claude Code docs: Common workflows](https://code.claude.com/docs/en/common-workflows) - [Claude Code docs: Choose a permission mode](https://code.claude.com/docs/en/permission-modes) - [Claude Code docs: Use Claude Code with Chrome](https://code.claude.com/docs/en/chrome) - [Claude Code docs: Manage costs effectively](https://code.claude.com/docs/en/costs) - [Claude Code docs: Extend Claude with skills](https://code.claude.com/docs/en/skills) - [W3C: Structural markup and right-to-left text in HTML](https://www.w3.org/International/questions/qa-html-dir) - [Google Search Central: Tell Google about localized versions of your page](https://developers.google.com/search/docs/specialty/international/localized-versions) ## Get started To compare what Claude Code costs on a plan and on an API key, read [The cheapest way to use Claude Code](https://5abeer.ai/en/guides/claude-code-cheapest-way), or set up Claude Code now. --- URL: https://5abeer.ai/en/guides/claude-md-guide # CLAUDE.md guide: how to write one Claude follows > What CLAUDE.md is, where it goes, what to put in it, a short template, how it works with AGENTS.md, and how to run Claude Code with it on an API key. Updated: 2026-11-02 CLAUDE.md is a Markdown file of instructions that Claude Code reads at the start of every session. Put it at the root of your repository and keep it short: the exact commands, conventions and corrections Claude can't work out from the code. Run `/init` to generate a first draft, then cut every line Claude doesn't need. ## What is CLAUDE.md? Every Claude Code session starts with a fresh context window, and `CLAUDE.md` carries what Claude should know about your project from one session to the next. Claude treats it as context, not enforced configuration, so the more specific and concise the file, the more consistently Claude follows it. ## Where does CLAUDE.md go? The location decides who gets the instructions: | Scope | Location | Who gets it | | --- | --- | --- | | Project | `./CLAUDE.md` or `./.claude/CLAUDE.md` | Your whole team, through source control | | Local | `./CLAUDE.local.md`, added to `.gitignore` | Only you, in this project | | User | `~/.claude/CLAUDE.md` | Only you, in all your projects | | Managed | A system folder your IT team controls, such as `/etc/claude-code/CLAUDE.md` on Linux | Everyone in your organization | Claude Code loads `CLAUDE.md` and `CLAUDE.local.md` from the directory where you start it and every directory above it, and joins them rather than letting one override another. A file in a subfolder, such as `packages/api/CLAUDE.md`, loads once Claude works on a file in that folder. Run `/context` and look under **Memory files** to see what loaded. ## How do you create a CLAUDE.md? Run `/init` in your project. Claude reads the codebase and writes a first `CLAUDE.md` with build commands, test instructions and the conventions it finds, or suggests improvements to an existing one. It also carries over rules you wrote for other tools, such as `.cursorrules`. From there the work is mostly removing lines. For a guided version, start Claude Code with `CLAUDE_CODE_NEW_INIT=1 claude` and run `/init`: it asks follow-up questions and shows a proposal before it writes anything. ## What should go in CLAUDE.md? Every line takes a little of Claude's attention on every task, so keep only what Claude can't work out from the code: - **How to check work:** the exact test, typecheck and lint commands, and how to run one test file. - **Where the code misleads:** an old pattern that new code must not copy, or a folder that looks unused but isn't. - **Decisions that aren't in the repository:** which error helper the team chose, how deploys work, what needs a migration review. - **Corrections you've made twice.** Leave out directory layouts and dependency lists, which Claude reads from the repository. Some lines belong somewhere else: | If the line is | Move it to | | --- | --- | | A multi-step procedure, such as cutting a release | A [skill](https://5abeer.ai/en/guides/claude-code-skills), whose full text loads only when used | | A rule for one part of the codebase | `.claude/rules/`, with a `paths` field | | Something that must happen every time, such as running the formatter | A [hook](https://5abeer.ai/en/guides/claude-code-hooks), which runs on every matching event | | Your personal preference | `CLAUDE.local.md` or `~/.claude/CLAUDE.md` | ## A CLAUDE.md template Anthropic's best-practices guide gives this short file as an example. Replace the commands and rules with your own: ```text # Commands - Install: pnpm install - Run one test file: pnpm vitest run path/to/file.test.ts - Typecheck: pnpm tsc --noEmit # Conventions - Use the error helpers in src/lib/errors.ts, never throw raw strings - src/legacy/ is still live but don't copy its patterns into new code # Gotchas - Integration tests need DATABASE_URL set, see .env.example ``` The typecheck line is only the command, so Claude can check its own work. "Always typecheck before you finish" works most of the time, not every time; to enforce it, use a `Stop` hook. Write each line so you could verify it: | Vague | Concrete | | --- | --- | | Format code properly | Use 2-space indentation | | Test your changes | Run `npm test` before committing | | Keep files organized | API handlers live in `src/api/handlers/` | Keep the file under about 200 lines, grouped under headers and bullets, and run `/doctor prompt-audit` now and then to find stale or conflicting instructions. ## Imports and path rules A `CLAUDE.md` can pull in another file with an `@path` line, such as `- Git workflow: @docs/git-instructions.md`. Relative paths resolve from the file that holds the import, and a path inside backticks stays plain text instead of an import. Imports organize a long file but don't lower its context cost, because the imported text loads with it. To load a rule only where it applies, put it in `.claude/rules/` with a `paths` field. Without `paths`, a rule loads at launch like `CLAUDE.md`: ```text --- paths: - "src/api/**/*.ts" --- - Validate request bodies with the zod schemas in src/api/schemas/, don't hand-roll checks - Every new endpoint needs an entry in openapi.yaml, CI fails without it ``` ## Does Claude Code read AGENTS.md? Yes, from version 2.1.277, so a repository set up for other coding agents works without a `CLAUDE.md`. By default: | Your repository has | Claude Code reads | | --- | --- | | `AGENTS.md`, and no `CLAUDE.md`, `.claude/CLAUDE.md` or `CLAUDE.local.md` in your working directory or above it | `AGENTS.md` | | `AGENTS.md` and one of those three files | The `CLAUDE.md` files only | | A `CLAUDE.md` that imports `@AGENTS.md` | Both | Your `~/.claude/CLAUDE.md` and `.claude/rules/` don't count for that check. A `CLAUDE.local.md` does, so adding one for your own notes stops Claude from reading the team's `AGENTS.md`. To have Claude read both, type `/config` and set **Project instructions** to `claude-md-and-agents-md`. With a custom base URL, as on a 5abeer key, this needs version 2.1.281 or later, the release that brought `AGENTS.md` support to LLM gateways. On older versions, or to add lines only Claude needs, start a `CLAUDE.md` with an import: ```text @AGENTS.md ## Claude Code Use plan mode for changes under src/billing/. ``` ## Common CLAUDE.md mistakes - **A long file.** Past about 200 lines, single lines get lost. Move procedures into skills and folder rules into `.claude/rules/`. - **Contradictions.** When two lines disagree, Claude may pick either one, so read all your instruction files together. - **Emphasis instead of a fix.** IMPORTANT or capital letters rarely help current models and mostly make Claude over-apply the rule. - **Rules that must never bend.** "Never read .env" works almost every time, not every time. Use a deny rule or a hook for those. ## CLAUDE.md or auto memory? You write `CLAUDE.md`. Auto memory is the notes Claude writes for itself, such as corrections you gave, in `~/.claude/projects//memory/`. Claude Code loads your `CLAUDE.md` in full, but only the first 200 lines or 25KB of the memory index, `MEMORY.md`. Auto memory stays on your machine, so your team never sees it. Say "remember that the API tests need a local Redis" and Claude saves it to auto memory; say "add this to CLAUDE.md" to put it in the file. `/memory` opens both and turns auto memory on or off. For skills, hooks and subagents side by side, see [Claude Code skills](https://5abeer.ai/en/guides/claude-code-skills#vs-claude-md). ## Does CLAUDE.md add to the cost? A little. On an API key, its text is ordinary input on every task, billed per token at the model's price. Block-level HTML comments are removed before the file reaches Claude, so notes you leave there cost nothing. The current price of the default model: Claude Sonnet 5.5 (`claude-sonnet-5.5`) per 1M tokens: input $0.60 (official $2), output $3 (official $10). Official price checked November 21, 2026. ## CLAUDE.md through 5abeer 5abeer is an independent service, not affiliated with Anthropic. Its API follows the Anthropic Messages format, so Claude Code works with it as it ships, and both routes cost less than the official price. `CLAUDE.md` is a file on your machine, so it works the same on a 5abeer key; only the base URL and key change. **With an API key:** create a key for Claude models, then set the base URL and key in Claude Code's settings: | Format | Base URL | Key header | | --- | --- | --- | | OpenAI | `https://api.5abeer.ai/v1` | `Authorization: Bearer ` | | Anthropic | `https://api.5abeer.ai` | `x-api-key: ` | | Gemini | `https://api.5abeer.ai/v1beta` | `x-goog-api-key: ` | `~/.claude/settings.json` ```json { "env": { "ANTHROPIC_BASE_URL": "https://api.5abeer.ai", "ANTHROPIC_AUTH_TOKEN": "YOUR_5ABEER_API_KEY", "ANTHROPIC_MODEL": "claude-sonnet-5.5" } } ``` Every request is deducted from your balance by model and token count, and you control each key with a spend limit, an expiry date and an IP allow-list. The full setup is in [Claude Code setup](https://5abeer.ai/en/docs/apps/claude-code.md), and prices are on [Claude API](https://5abeer.ai/en/api/claude). The Messages API doesn't read `CLAUDE.md`, so from your own code, send the same rules in the request's `system` field, as in [Anthropic Messages](https://5abeer.ai/en/docs/api/messages.md#params). **With a plan:** the 5abeer AI app turns Claude Code on for your plan in one click, with no key and no files to edit. The plan runs with a 5-hour limit and a weekly limit, as in [Subscription limits](https://5abeer.ai/en/docs/subscriptions/limits.md). Plans are for the supported apps, and to use the models from your own code you need an API key. See [What each plan runs](https://5abeer.ai/en/docs/subscriptions/plan-apps.md#claude-code) and the [pricing page](https://5abeer.ai/en/pricing). ## FAQ ### Does the file have to be called CLAUDE.md? Yes, or `CLAUDE.local.md` for your own notes. Claude Code also reads `AGENTS.md` when there is no `CLAUDE.md`. Any other file loads only through an `@path` import or from `.claude/rules/`. ### Should CLAUDE.md go in git? The project file, yes: committing it gives your team the same instructions. Keep personal notes in `CLAUDE.local.md`, listed in `.gitignore`. That file exists only in the worktree where you made it, so across worktrees, import one from your home folder, such as `@~/.claude/my-project-instructions.md`. ### How long should CLAUDE.md be? Under about 200 lines, as Anthropic recommends; Claude Code warns at startup and in `/status` when a file runs longer. Subfolder files and path rules, which load on demand, are cut at 40,000 characters on a 200K context window. ### Why does Claude ignore my CLAUDE.md? Run `/context`. If a file that should load at launch isn't under **Memory files**, check its name and location. If it loaded, make the line more specific, remove anything that contradicts it, and shorten the file. A rule that must hold every time belongs in a hook. ### Does CLAUDE.md survive /compact? The project-root `CLAUDE.md` does: Claude Code reads it again from disk after `/compact`. Subfolder files and path rules return when Claude next works on a matching file. Instructions you gave only in the chat can be lost, so put the ones you want kept in the file. ## Sources Checked on 2 November 2026. - [Claude Code docs: How Claude remembers your project](https://code.claude.com/docs/en/memory) - [Claude Code docs: Best practices for Claude Code](https://code.claude.com/docs/en/best-practices) - [Claude Code changelog](https://code.claude.com/docs/en/changelog), versions 2.1.277 and 2.1.281 ## Get started To compare plans and keys for Claude Code, read [The cheapest way to use Claude Code](https://5abeer.ai/en/guides/claude-code-cheapest-way), or set up Claude Code now. --- URL: https://5abeer.ai/en/guides/codex-cli-commands # Codex CLI commands: the ones that matter, with examples > The Codex CLI commands, flags and slash commands you will use, checked against version 0.166.0, and which of them spend tokens on a 5abeer key. Updated: 2026-11-02 Codex CLI has three kinds of commands: subcommands such as `codex exec`, flags such as `--model`, and slash commands such as `/review` that you type inside a session. This guide covers the ones you will use most, checked against Codex CLI 0.166.0, with examples that run on a 5abeer key. ## Which Codex CLI commands do you need first? Most work in Codex comes down to eight commands. Add `--help` to any of them for the full options: ```bash codex # open the interactive terminal UI codex "explain this repository" # open it with a first prompt codex exec "run the tests and fix any failure" # run one task without the UI codex resume --last # reopen the latest session in this folder codex review --uncommitted # review the changes you haven't committed codex mcp list # list the MCP servers you added codex doctor # check the install, config and sign-in codex update # update Codex to the latest release ``` OpenAI released 0.166.0 on 29 October 2026, and it was still the latest stable release when we checked on 2 November 2026. Flags change between releases, so when one below doesn't match your copy, trust `codex --help`. ## What does each codex command do? ### Run Codex - **`codex`:** opens the terminal UI, with an optional first prompt in quotes. - **`codex exec`, or `codex e`:** runs one task without the UI and exits, for scripts and CI. Pass `-` to read the prompt from standard input. - **`codex review`:** reviews your `--uncommitted` changes, the diff against a `--base` branch or one `--commit` without the UI, or follows review instructions you pass as a prompt. ### Pick up past work - **`codex resume`:** reopens a saved session by id or name. `--last` picks the latest one in this folder, and `--all` searches every folder. - **`codex fork`:** copies a past session into a new chat, keeping the original. - **`codex exec resume`:** continues a `codex exec` session, optionally with a follow-up prompt. - **`codex archive`, `codex unarchive` and `codex delete`:** archive, restore or permanently delete a saved session. ### Connect tools - **`codex mcp`:** manages the MCP servers in `~/.codex/config.toml`: `add`, `list`, `get` and `remove`, plus `login` and `logout` for servers that use OAuth. - **`codex plugin`:** installs and manages Codex plugins. - **`codex features`:** lists feature flags and turns them on or off in `config.toml`. ### Sign-in and upkeep - **`codex login` and `codex logout`:** sign in with a ChatGPT account or an OpenAI key, or sign out. A 5abeer key needs neither. - **`codex doctor`:** checks the install, config, sign-in and runtime. Add `--json` for a report a script can read. - **`codex update`:** updates Codex when your installed release supports self-update. Otherwise, install it again as on the [setup page](https://5abeer.ai/en/docs/apps/codex.md#install). - **`codex cloud` and `codex apply`:** run Codex cloud tasks, which OpenAI marks experimental, and apply their diffs locally. Codex cloud needs a ChatGPT sign-in, so neither works on an API key alone; see [Codex CLI with an API key](https://5abeer.ai/en/guides/codex-cli-api-key#plan-or-key). ## Which flags change how Codex works? These are the global flags you will use most: - **`--model`, `-m`:** the model for this run. Use any id from the GPT table further down. - **`--sandbox`, `-s`:** what the commands Codex runs may touch: `read-only`, `workspace-write` or `danger-full-access`. - **`--ask-for-approval`, `-a`:** when Codex stops to ask you: `on-request`, or `never`. - **`--cd`, `-C`:** the folder Codex treats as the project. - **`--add-dir`:** one more folder Codex may write to. - **`--config`, `-c`:** overrides one `config.toml` key for this run, written as `key=value`. - **`--profile`, `-p`:** layers `~/.codex/profile-name.config.toml` on top of your main config. - **`--search`:** switches web search from the default cached index to live search. - **`--worktree`:** starts in a new managed Git worktree, away from your current checkout. `--dangerously-bypass-approvals-and-sandbox`, or `--yolo`, removes the sandbox and the approval prompts. Use it only in a container or virtual machine you can throw away. `codex exec` accepts `-m`, `-s`, `-C`, `-c` and `-p` too, plus flags of its own: - **`--json`:** prints events as newline-delimited JSON. - **`-o`, `--output-last-message`:** writes the final message to a file. - **`--output-schema`:** a JSON Schema file that the final answer must follow. - **`--ephemeral`:** runs without saving session files. - **`--skip-git-repo-check`:** lets it run outside a Git repository. ## Which slash commands work inside a session? Type `/` in the terminal UI to open the list. These are the ones you will reach for most: - **`/model`:** choose the model and the reasoning effort. - **`/permissions`:** choose what Codex may do without asking, such as the Auto or Read Only preset. - **`/status`:** shows the session's configuration and token usage. - **`/review`:** reviews the changes in your working tree, focusing on behavior changes and missing tests. - **`/diff`:** shows the Git diff, including untracked files. - **`/plan`:** switches to Plan mode, where Codex proposes a plan before it changes code. - **`/init`:** writes an `AGENTS.md` file with instructions for Codex. - **`/compact`:** summarizes the conversation so it doesn't hit the context limit. - **`/new`, `/resume` and `/fork`:** start a new chat, resume a saved one, or fork the current one. - **`/side`, or `/btw`:** opens a side chat in a temporary fork, away from the main thread. - **`/mcp`:** lists MCP tools. `/mcp login` with a server name signs in to it. - **`/import`:** brings in your setup, the current project and recent chats from Claude Code. - **`/quit` or `/exit`:** exits Codex. ## Which commands spend tokens on a key? On a key you pay per token, so it helps to know which commands call the model: | Calls the model | Doesn't call the model | | --- | --- | | Your messages, `codex` with a prompt, `codex exec` | `/status`, `/diff`, `/model`, `/permissions` | | `codex review` and `/review` | `codex mcp list`, `codex features list` | | `/init`, which asks the model to write `AGENTS.md` | `--help` on any command | | `/compact`, which asks the model to summarize the chat | | `/review` uses the session's model unless you set `review_model` in `config.toml`. Every turn also resends the conversation so far, with the files and command output Codex read, so a long session costs more per turn. `/status` shows the running total, and `/new` starts a clean chat when a task is done. Give scripts that run `codex exec` on every commit a key with its own spend limit, as in [Control every key](https://5abeer.ai/en/docs/start/keys.md#controls). A worked monthly cost is in [Codex CLI with an API key](https://5abeer.ai/en/guides/codex-cli-api-key#cost). ## How do you set defaults in config.toml? Codex reads `~/.codex/config.toml` on every start. A project can add its own `.codex/config.toml`, which Codex loads only when you trust the project. These keys set the defaults that the flags above override: ```toml model_reasoning_effort = "high" approval_policy = "on-request" sandbox_mode = "workspace-write" web_search = "cached" ``` - **`model_reasoning_effort`:** how much the model reasons, such as `medium` or `high`. The levels on offer depend on the model. - **`approval_policy`:** the default for `-a`. - **`sandbox_mode`:** the default for `-s`. - **`web_search`:** `disabled`, `cached`, `indexed` or `live`. The default is `cached`. Keep these lines above the first header in square brackets. In TOML, a key written under `[model_providers.khabeer]` belongs to that block, not to your settings. ## How to run these commands on a 5abeer key On a 5abeer key, only the provider in `config.toml` changes. You don't need `codex login`, and `codex cloud` and `codex apply` still need a ChatGPT sign-in. Top up with one of the [payment methods](https://5abeer.ai/en/docs/start/payment.md), create a key for the OpenAI provider as in [Create a key](https://5abeer.ai/en/docs/start/keys.md#create), and save it in the `KHABEER_API_KEY` environment variable. Then put the `model` and `model_provider` lines above the first header in square brackets, and the provider block at the end of `~/.codex/config.toml`: `~/.codex/config.toml` ```toml model = "gpt-6.2-sol" model_provider = "khabeer" [model_providers.khabeer] name = "5abeer" base_url = "https://api.5abeer.ai/v1" env_key = "KHABEER_API_KEY" wire_api = "responses" ``` Run `codex exec "summarize this repository"` in a project folder. A reply means the key and the base URL work. The full setup, with profiles that keep your ChatGPT sign-in, is in [Codex CLI with an API key](https://5abeer.ai/en/guides/codex-cli-api-key#switch). These are the newest GPT models, at our price per million tokens. Use any of these ids with `-m` or on the `model` line: | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | GPT-6.2 Sol | `gpt-6.2-sol` | $0.60 | $3 | — | | GPT-6.2 Astra | `gpt-6.2-astra` | $2.40 | $12 | — | | GPT-6.1 Sol | `gpt-6.1-sol` | $0.60 | $3 | 922K | Every model that runs in Codex is on the [Codex CLI setup page](https://5abeer.ai/en/docs/apps/codex.md#models), and the [OpenAI API page](https://5abeer.ai/en/api/openai) puts our price next to the official one. ## What do real examples look like? Run each one from your project folder: ```bash codex exec -s read-only "where is the login flow handled?" ``` ```bash codex exec -s workspace-write "run the tests and fix the first failure" ``` ```bash codex exec -o summary.md "list the TODO comments in src/" ``` ```bash codex review --uncommitted codex review --base main ``` ```bash codex resume --last ``` ```bash codex mcp add docs --url https://mcp.example.com/mcp --bearer-token-env-var DOCS_MCP_TOKEN codex mcp add files -- npx -y @modelcontextprotocol/server-filesystem . ``` ```bash codex -c 'model_reasoning_effort="high"' "plan the database migration" ``` In CI, give the runner the same `config.toml` and set `KHABEER_API_KEY` from a secret, as in [Claude Code GitHub Actions](https://5abeer.ai/en/guides/claude-code-github-actions#secrets). ## Common errors and fixes - **Codex says the key is missing:** `KHABEER_API_KEY` isn't set in the shell or CI job that runs it. - **`codex exec` won't run outside a Git repository:** add `--skip-git-repo-check`. - **A spend limit stops a script:** the key returns [`API_KEY_QUOTA_EXHAUSTED`](https://5abeer.ai/en/docs/help/errors.md#API_KEY_QUOTA_EXHAUSTED) until you raise its limit. - **Anything else in the setup:** run `codex doctor`. Our other error codes are in [Errors and fixes](https://5abeer.ai/en/docs/help/errors.md). ## FAQ ### Which Codex version does this guide cover? Codex CLI 0.166.0, released on 29 October 2026. Run `codex --version` to see yours, and `codex update` to move to the latest release. ### What is the difference between codex and codex exec? `codex` opens the interactive terminal UI, where slash commands work. `codex exec` runs one task without it and exits. ### Why doesn't /approvals work? Codex 0.166.0 has no `/approvals` command, though older guides may still show it. Use `/permissions` inside a session, or set `-a` and `-s` when you start Codex. ### Do these commands work in ChatGPT? Not on the web: OpenAI notes that they don't apply to ChatGPT on the web. The ChatGPT desktop app has its own slash command list. ### Can I use these commands on a 5abeer plan instead of a key? Yes for the local commands, if your plan includes Codex, as the Bundle plans and the GPT plan do. The 5abeer AI app sets Codex up on your plan with no key; see [What each plan runs](https://5abeer.ai/en/docs/subscriptions/plan-apps.md#codex). Plans are for the supported apps. For your own code, create an API key. ## Sources Checked on 2026-11-02: - OpenAI: [Developer commands, Codex CLI](https://learn.chatgpt.com/docs/developer-commands?surface=cli) - OpenAI: [Configuration reference](https://learn.chatgpt.com/docs/config-file/config-reference) - OpenAI: [Model Context Protocol](https://learn.chatgpt.com/docs/extend/mcp?surface=cli) - OpenAI: [Authentication](https://learn.chatgpt.com/docs/auth) - OpenAI: [Slash commands in the ChatGPT desktop app](https://learn.chatgpt.com/docs/reference/slash-commands) - GitHub: [openai/codex release rust-v0.166.0](https://github.com/openai/codex/releases/tag/rust-v0.166.0) - GitHub: [openai/codex, slash_command.rs at rust-v0.166.0](https://github.com/openai/codex/blob/rust-v0.166.0/codex-rs/tui/src/slash_command.rs) > 5abeer is an independent service, not affiliated with OpenAI. ## Get started If your plan includes Codex, the 5abeer AI app sets it up with no key. With a key, add the provider block above and run `codex exec`. --- URL: https://5abeer.ai/en/guides/ai-subscription-vs-api # AI subscription vs API: the difference and which you need > An AI subscription runs the provider's own apps for a fixed price. An API bills your own code by usage. How they differ and how to choose. Updated: 2026-11-01 An AI subscription is a fixed-price plan for using a provider's own apps, such as a chat app or a coding app, within usage limits. An API is pay-as-you-go access for your own code, billed by usage. OpenAI, Anthropic and Google bill the two separately, so paying for one does not set up the other. ## What an AI subscription is A subscription is a plan you pay for at a fixed price per period. It unlocks more use of the provider's own apps: the chat app on the web, desktop and phone, and coding apps such as Claude Code or Codex. You sign in with your account and use the app as it is. The plan sets how much you can use it, through usage limits that reset over time. A subscription does not give you a key to call the models from your own code. Anthropic says it directly: "Claude paid plans and the Claude Console are separate products designed for different purposes." ## What an API is An API lets your own code, scripts and tools call a model directly. You create an account on the provider's developer platform, add a payment method or credit, and create an API key. Each request is billed by what it uses, mostly the tokens it reads and writes. Google, for example, prices the Gemini API on input, output and cached tokens. The API is what you need to build something: a website feature, a bot, an automation, or a tool that asks for an API key. ## The difference at a glance | Compare | AI subscription | API | | --- | --- | --- | | Who it is for | People who use the provider's apps | Developers, and tools that call models from code | | Where you use it | The provider's own apps | Your code, scripts, and tools that accept an API key | | How you pay | A fixed price per period | By usage, mostly per token | | What limits your use | The plan's usage limits | Your credit and spend, and the provider's rate limits | | Where you sign up | The plan page in the app | The provider's developer platform | ## Does a subscription include the API? No, not as one product. All three providers bill them apart: - OpenAI: "ChatGPT and the API platform have separate billing systems," and "API usage is billed separately from your ChatGPT subscription." - Anthropic: "A paid Claude subscription enhances your chat experience, and the Claude API is billed separately." If you want both, you sign up for a plan and set up the Console separately. - Google: "Direct use of the Gemini API (such as using API keys or external applications) is billed and managed separately." Some higher plans now add a monthly API credit as a benefit. Anthropic, for example, says "Claude Max, Ultra, and Team plans include monthly credits for the Claude API." Even then, API use is set up and billed in the provider's developer platform, apart from the chat plan. These are Anthropic's own plans, not 5abeer's plans of the same name. For Claude's plans against its API, with current prices, read [Claude subscription vs API](https://5abeer.ai/en/guides/claude-api-vs-subscription). ## Which one you need - You chat, write or code inside the official apps: a subscription. A fixed price is easier to plan for when you use the apps every day. - You build something that calls a model from code: the API. You pay only for what your code uses. - You do both: you need both, and you pay for each one separately. ## How it works at 5abeer 5abeer offers both, and keeps them apart the same way. A Bundle subscription runs the official apps, such as ChatGPT, Codex, Claude Code and Google Antigravity, through the 5abeer AI app for less than their official price, with a 5-hour limit and a weekly limit. The API gives you every model priced per token at about 70% below its official price, paid as you use it from your balance, with an API key per provider. Details in [Subscription or API](https://5abeer.ai/en/docs/subscriptions/how-it-works.md#vs-api), and plan prices are on the [pricing page](https://5abeer.ai/en/pricing). This is the default model's price per million tokens, ours next to the official one: Claude Sonnet 5.5 (`claude-sonnet-5.5`) per 1M tokens: input $0.60 (official $2), output $3 (official $10). Official price checked November 21, 2026. Each model's API price sits next to its official price on the [API page](https://5abeer.ai/en/api). > Plans are for the supported apps. To use the models from your own code, create an API key. Your subscription and your balance are separate: API key usage never counts against your plan's limits, and the subscription never draws on your balance unless you turn on [Continue from the wallet](https://5abeer.ai/en/docs/subscriptions/limits.md#wallet). To call the models from code, start with the [Quickstart](https://5abeer.ai/en/docs/start/quickstart.md). ## Questions ### Can I use my chat subscription as an API key? No. A subscription signs you in to the provider's apps. An API key comes from the provider's developer platform, and its usage is billed separately from the subscription. ### Is the API cheaper than a subscription? It depends on how much you use. With the API you pay for each request, so light use costs little and heavy use can cost more than a plan. A subscription costs the same each period within its limits. For a worked example with current Claude prices, read [when the API is cheaper](https://5abeer.ai/en/guides/claude-api-vs-subscription#example). ### Do I need to code to use the API? Mostly yes. The API is called from code. Some coding tools ask for an API key and call the API for you, so you can use it without writing the calls yourself. ### Does my 5abeer API usage count against my plan? No. API key usage is paid from your balance and never counts against your plan's limits. A 5abeer subscription key is not an API key: for code and automation, create an [API key](https://5abeer.ai/en/docs/start/keys.md). ## Sources Checked on 2026-11-01 (the OpenAI page on 2026-10-31): - OpenAI Help Center: [Managing billing for ChatGPT and the API platform](https://help.openai.com/en/articles/9039756-managing-billing-for-chatgpt-and-the-api-platform) - Anthropic Help Center: [Why is Claude API usage billed separately from my paid Claude plan?](https://support.claude.com/en/articles/9876003-why-is-claude-api-usage-billed-separately-from-my-paid-claude-plan) - Google AI for Developers: [Google AI plans and the Gemini API](https://aistudio.google.com/docs/google-ai-plans) and [Billing](https://aistudio.google.com/docs/billing) > 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. --- URL: https://5abeer.ai/en/guides/cursor-alternative # A cheaper Cursor alternative for coding with Claude and GPT > What Cursor's plans cost and include now, what is billed on top, and a cheaper way to code with the official Claude Code, Codex and Antigravity agents. Updated: 2026-11-01 Cursor is an AI code editor, and its plans are sold as part of The X Subscription, with Grok and X. Claude, GPT and Gemini sit outside every plan's included usage: from Premium up, Cursor bills them at API list price on top. If you code mostly with them, their makers' official agents on one plan can cost less. ## How much does Cursor cost now? Cursor's pricing page sells Cursor as part of The X Subscription, which it calls one subscription for Grok, Cursor and X. Older plans such as Pro and Pro+ keep working as they are for existing customers. These are the current individual plans, each with its source and check date: | Plan | Market and channel | Official price | Billing | Source | Checked | | --- | --- | --- | --- | --- | --- | | Cursor Plus | United States · Vendor website | $8 | per month | https://cursor.com/pricing | 2026-11-15 | | Cursor Premium | United States · Vendor website | $30 | per month | https://cursor.com/pricing | 2026-11-15 | | Cursor Super | United States · Vendor website | $100 | per month | https://cursor.com/pricing | 2026-11-15 | | Cursor Ultra | United States · Vendor website | $200 | per month | https://cursor.com/pricing | 2026-11-15 | The vendors' own prices as published at the source on the date checked; they can change. These are the vendor's official prices; 5abeer's prices are on the pricing page. A few notes on the table: - **Prices exclude tax.** Cursor's page says the prices shown don't include applicable taxes or fees, such as VAT. - **Third-party models cost extra.** Usage of models such as Claude, GPT and Gemini isn't part of the monthly price and is bought separately. - **Free, Teams and Enterprise aren't in the table.** Free has limited agent and chat requests, Teams is priced per seat, and Enterprise has custom pricing. - **Self-serve plans take cards.** Cursor lists all major credit and debit cards, and keeps invoices and wire transfers for Enterprise. ## What does each Cursor plan include? Every paid plan includes one weekly pool of usage for Cursor's own models, such as Grok and Composer. The pool is shared across Agent in the editor, the CLI, Cloud Agents, Grok Bot and the Grok apps, and each model draws from it at its own rate. Here is what each plan adds: | Plan | What it adds, as Cursor describes it | | --- | --- | | Free | Limited agent and chat requests | | Plus | Agent with Cursor's own models at fixed settings, plus Grok Chat, Voice, Imagine, Build and Grok API access. No Auto, Cloud Agents, Bugbot, third-party models or your own API keys | | Premium | Four times the usage of Plus, Cloud Agents and Automations, code hosting on Origin, code review with Bugbot, and third-party models at API list price | | Super | Fifteen times the usage of Plus, and priority model access at peak times | | Ultra | Fifty times the usage of Plus, and earliest access to new products and models | Cursor recommends Premium for new AI users, Super for daily agent users and Ultra for power users. It suggests Plus for social creators with limited AI usage. Plus runs Cursor's own models only, so Claude, GPT and Gemini need Premium or higher. ## When does Cursor cost more than the plan price? Two kinds of usage are paid from prepaid credit, on top of the plan: - **Third-party models.** On Premium and above, Claude, GPT and Gemini cost their API list price from the first request. - **Usage past the weekly pool.** When the pool runs out, Cursor's own models keep working at per-model rates, or you wait for the weekly reset. You add credit when you choose, or turn on Auto Top-up, and a monthly cap limits how much extra usage you can consume. On Teams and Enterprise, eligible third-party requests also carry a per-token Cursor Token Rate, even with your own key. Individual plans don't pay it. Your own API key is the other route. From Cursor's Premium plan up, you can add an OpenAI, Anthropic, Google, Azure OpenAI or AWS Bedrock key, and the provider bills you directly. Those requests don't draw from your included usage. Keys work for chat models only, and Tab completion stays on Cursor's built-in models. The requests still pass through Cursor's servers, and Cursor's Zero Data Retention policy doesn't apply to them. ## Which official agents can replace Cursor? Anthropic, OpenAI and Google each publish a coding agent that runs on its maker's subscription plans instead of per-request prices. These agents read your project, edit files and run commands: | Agent | Made by | Where it runs | | --- | --- | --- | | Claude Code | Anthropic | The terminal, IDE extensions such as VS Code and JetBrains, a desktop app and the browser | | Codex | OpenAI | ChatGPT Desktop, the terminal, an extension for VS Code and compatible editors, and integrations for Xcode and JetBrains | | Google Antigravity | Google | A desktop app, the `agy` CLI, editor extensions and a Python SDK | | OpenCode | An open-source project | A terminal interface, a desktop app and an IDE extension | Anthropic and OpenAI both list Cursor among the editors their extensions install in, so you can keep Cursor as your editor and run their agents inside it. Cursor also has features of its own, such as Tab completion, Cloud Agents and Bugbot reviews. If your work relies on them, a Cursor plan stays the better fit. To choose between the models behind these agents, read [Best AI for coding](https://5abeer.ai/en/guides/best-ai-for-coding). ## How do you run them on one 5abeer plan? 5abeer's Bundle plans run the official Claude Code, Codex and Google Antigravity, along with OpenCode, Claude Desktop and ChatGPT Desktop. Subscribe to the official apps for less than their official price. These are our plans and their limits; prices are on the [pricing page](https://5abeer.ai/en/pricing): | 5abeer plan | Best for | Usage limits | Our price | | --- | --- | --- | --- | | Pro | For everyday use | A 5-hour limit and a weekly limit | Prices on the pricing page: https://5abeer.ai/en/pricing | | Max (formerly Max 5x) | For heavy daily work | 5× the Pro plan limits | Prices on the pricing page: https://5abeer.ai/en/pricing | | Ultra (formerly Max 20x) | If you work with it all day | 20× the Pro plan limits | Prices on the pricing page: https://5abeer.ai/en/pricing | Before you compare, know the difference: - **A 5abeer plan doesn't include Cursor.** It runs the makers' own agents, not Cursor's editor, Tab completion or Grok. - Every Bundle plan runs every official app, from the smallest to the largest. The plans differ in usage limits only. - On your own official account: Codex asks for your own ChatGPT account, and Google Antigravity asks for your own Google account. - Each plan has a 5-hour limit and a weekly limit, explained in [Usage limits](https://5abeer.ai/en/docs/subscriptions/limits.md). - The subscription runs in desktop apps through the 5abeer AI app on Mac, Windows and Linux, not inside a phone app. 5abeer's Pro, Max (formerly Max 5x) and Ultra (formerly Max 20x) are 5abeer plans, not Cursor plans. Each agent has its own page: [Claude Code](https://5abeer.ai/en/apps/claude-code), [Codex](https://5abeer.ai/en/apps/codex), [Google Antigravity](https://5abeer.ai/en/apps/antigravity) and [OpenCode](https://5abeer.ai/en/apps/opencode). The models each agent runs are on the [models page](https://5abeer.ai/en/models). > Plans are for the supported apps. To use the models from your own code, create an API key. If you call Claude or GPT from your own code, per-token prices are on the [Claude API page](https://5abeer.ai/en/api/claude) and the [OpenAI API page](https://5abeer.ai/en/api/openai). ## How do you start? ### 1. Pick a plan and pay Pick your plan on the [pricing page](https://5abeer.ai/en/pricing) and pay the way that suits you. An international card works, and the other methods depend on your country: the steps are in [Payment methods](https://5abeer.ai/en/docs/start/payment.md). ### 2. Install 5abeer AI and sign in Download the 5abeer AI app for your computer, then sign in with your 5abeer email and password. ### 3. Turn it on for your agents Press **Use 5abeer with** next to Claude Code, Codex or Google Antigravity, then sign in to the agent with your own account if it asks. For Claude Code, open a new terminal session afterwards. ### 4. Work as usual Activated within minutes. Open the agent in your project and work as you normally do. What each app asks for is in [What each plan runs](https://5abeer.ai/en/docs/subscriptions/plan-apps.md), and the full steps are in [How the subscription works](https://5abeer.ai/en/docs/subscriptions/how-it-works.md). ## Cursor or a 5abeer plan: which suits you? | Your situation | Best fit | | --- | --- | | You rely on Tab completion, Cloud Agents or Bugbot | A Cursor plan | | You also use Grok and X every day | A Cursor plan | | You code daily in Claude Code, Codex or Google Antigravity | A 5abeer Bundle plan | | You want Claude and GPT without paying list price per request | A 5abeer Bundle plan | | You call the models from your own code | An API key | For a closer look at each agent, read [The cheapest way to use Claude Code](https://5abeer.ai/en/guides/claude-code-cheapest-way), [the Codex page](https://5abeer.ai/en/apps/codex) and [Google Antigravity explained](https://5abeer.ai/en/guides/google-antigravity-guide). To compare them side by side, read [Claude Code vs Codex vs Antigravity](https://5abeer.ai/en/guides/claude-code-vs-codex) and [OpenCode vs Claude Code](https://5abeer.ai/en/guides/opencode-vs-claude-code). ## Frequently asked questions ### Can I use my own API key in Cursor? Yes, from the Premium plan up. Add an OpenAI, Anthropic, Google, Azure OpenAI or AWS Bedrock key under Cursor Settings > Models, and the provider bills you for those requests. Keys work for chat models only, and the Plus plan doesn't accept your own keys. ### Does a 5abeer API key work in Cursor? Cursor's documentation lists the providers above and doesn't document a custom base URL, so we don't promise that it works. 5abeer keys are documented for agents such as [Claude Code](https://5abeer.ai/en/docs/apps/claude-code.md), [Codex CLI](https://5abeer.ai/en/docs/apps/codex.md) and [OpenCode](https://5abeer.ai/en/docs/apps/opencode.md). ### Can I run Claude Code or Codex inside Cursor? Yes. The makers' docs list Cursor among the editors that the Claude Code and Codex extensions install in. On a 5abeer plan, Claude Code runs in the terminal, and Codex runs in ChatGPT Desktop and the terminal, as in [What each plan runs](https://5abeer.ai/en/docs/subscriptions/plan-apps.md). ### Does 5abeer sell Cursor plans? No. Cursor says its subscriptions are sold only directly through X Subscription Corp, that it authorizes no resellers, and that accounts bought elsewhere may be suspended or terminated. Buy Cursor from its own website. A 5abeer plan runs other makers' official agents. ### Is Cursor's Free plan enough? It is enough to look around. Cursor lists limited agent and chat requests on Free, and Claude, GPT and Gemini need the Premium plan or higher. ### Is 5abeer part of Cursor? No. 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google, and not affiliated with Cursor or X either. Claude Code, Codex and Google Antigravity are the official apps their makers publish. ### When is this table updated? Every row in the official price table carries the date we checked it and a link to its source. 5abeer's plan prices come from the same data as the pricing page. ## Sources Checked on 2026-11-01: - Cursor: [Pricing](https://cursor.com/pricing) - Cursor: [Models and pricing](https://cursor.com/docs/models-and-pricing) - Cursor: [Bring your own API key](https://cursor.com/help/models-and-usage/api-keys) - Anthropic: [Claude Code overview](https://code.claude.com/docs/en/overview) - Anthropic: [Claude Code in VS Code](https://code.claude.com/docs/en/vs-code) - OpenAI: [Codex IDE extension](https://learn.chatgpt.com/docs/codex/ide) - Google: [Google Antigravity overview](https://antigravity.google/docs/overview/) - OpenCode: [Docs](https://opencode.ai/docs/) --- URL: https://5abeer.ai/en/guides/gemini-pro-price-egypt # Google AI Pro (Gemini) price in Egypt 2026 and a cheaper way > Official Google AI Plus, Pro and Ultra prices in Egypt from Google's page and the App Store, with sources and dates, how to pay, and a cheaper option. Updated: 2026-11-01 Google AI Pro is one of Google's paid Gemini plans, and Google's Egypt page lists its price in Egyptian pounds per month. The Gemini app on the iPhone shows the same price. The table below lists it with Plus, Ultra and US prices, each sourced and dated, then a cheaper way to run Google Antigravity. Google AI's official prices on Google AI's website: Google AI Plus EGP 249.99 a month, Google AI Pro EGP 939.99 a month, Google AI Ultra (5x) EGP 2,199.99 a month, Google AI Ultra (20x) EGP 8,799.99 a month, checked 2026-11-15. ## How much is Google AI Pro in Egypt? Google publishes its Egypt prices in two places: its Google AI plans page for Egypt, and the subscription list of the Gemini app on the App Store. On the day we checked, Pro had the same price in both. | Plan | Market and channel | Official price | Billing | Source | Checked | | --- | --- | --- | --- | --- | --- | | Google AI Plus | Egypt · Vendor website | EGP 249.99 | per month | https://gemini.google/eg/subscriptions/?hl=ar | 2026-11-15 | | Google AI Pro | Egypt · Vendor website | EGP 939.99 | per month | https://gemini.google/eg/subscriptions/?hl=ar | 2026-11-15 | | Google AI Ultra (5x) | Egypt · Vendor website | EGP 2,199.99 | per month | https://gemini.google/eg/subscriptions/?hl=ar | 2026-11-15 | | Google AI Ultra (20x) | Egypt · Vendor website | EGP 8,799.99 | per month | https://gemini.google/eg/subscriptions/?hl=ar | 2026-11-15 | | Google AI Plus (400 GB) | Egypt · App Store | EGP 249.99 | per month | https://apps.apple.com/eg/app/google-gemini/id6477489729 | 2026-11-15 | | Google AI Pro (5 TB) | Egypt · App Store | EGP 939.99 | per month | https://apps.apple.com/eg/app/google-gemini/id6477489729 | 2026-11-15 | | Google AI Plus | United States · Vendor website | $4.99 | per month | https://gemini.google/us/subscriptions/?hl=en | 2026-11-15 | | Google AI Pro | United States · Vendor website | $19.99 | per month | https://gemini.google/us/subscriptions/?hl=en | 2026-11-15 | | Google AI Ultra (5x) | United States · Vendor website | $99.99 | per month | https://gemini.google/us/subscriptions/?hl=en | 2026-11-15 | | Google AI Ultra (20x) | United States · Vendor website | $199.99 | per month | https://gemini.google/us/subscriptions/?hl=en | 2026-11-15 | The vendors' own prices as published at the source on the date checked; they can change. These are the vendor's official prices; 5abeer's prices are on the pricing page. A few notes on the table: - **Every Egypt price is monthly.** Google's page states each one "per month". - **Ultra comes in two levels.** One gives five times the usage of Google AI Pro, and the other gives twenty times. Google lists each level at its own price. - **The iPhone app lists Ultra at its own prices.** The App Store names the Ultra levels by storage (20 TB and 30 TB), at prices that differ from Google's website, so compare both before you pay. - **App Store names include storage.** Each plan comes with Google One storage, so the App Store names it by its storage. It also lists a larger Plus level and a storage-only option. - **The checkout amount is what you pay.** Prices can change, so the final screen before you confirm is the reference. We didn't check Google Play on Android, so open the upgrade screen there to see your price. ## What do Plus, Pro and Ultra include? The three plans differ in usage limits, models and extras. Here is what each adds, as Google's Egypt page describes it: | Plan | What it adds, as Google describes it | | --- | --- | | No-cost level | A Flash-Lite model and 15 GB of storage | | Google AI Plus | Twice the no-cost usage, a Flash model, 200 Flow credits, Gemini in Gmail and Vids, and 400 GB of storage | | Google AI Pro | Four times the no-cost usage, Google's newest Gemini model plus its Pro and Flash models, 1,000 Flow credits, base usage of the agent model in Google Antigravity, Gemini in Gmail, Docs and Vids, YouTube Premium Lite, and 5 TB of storage | | Google AI Ultra | Five or twenty times the usage of Google AI Pro, higher usage in Antigravity, 10,000 or 25,000 Flow credits, Project Genie, and storage from 20 TB | Two rules apply to every paid plan: - **Limits follow compute, not messages.** Google says usage depends on how complex the request is, the features you use and the length of the chat. The limit refreshes every five hours until you reach the weekly limit, and you can buy AI credits for more. - **Age and account.** The plans are for people 18 or older, and Google AI Pro needs a personal Google account that you manage yourself. Google notes that some extras depend on your country. YouTube Premium Lite, for example, doesn't activate if you already have YouTube Premium. ## How do you subscribe from Egypt? ### 1. From Google's website Open Google's AI plans page, choose the plan and sign in with your Google account. You pay with a method your Google account accepts at checkout. Some Egyptian banks block online or international purchases until you turn them on in the bank's app. ### 2. From the Gemini app On the iPhone, choose the plan inside the Gemini app, and Apple bills the payment method on your Apple account. On Android, the upgrade screen in the app shows the price for your country before you confirm. ### 3. Check before you confirm Compare the plan name, the monthly amount and the currency with the table above. If the amount differs, the checkout screen is the one that counts. ## Can you pay without a card? For Google's own plan, the payment goes through Google's checkout or Apple's. Any other route goes through a third party, so check these points before you pay: - Don't buy a ready-made account shared with others, and never give your Google password to a seller. - Ask whether the subscription runs on your own account or on one the seller owns. - Keep the payment receipt and the order number. 5abeer doesn't sell Google AI plans. For 5abeer's own plans, you pay from Egypt the way that suits you: e-wallets such as Vodafone Cash, InstaPay, or an international card. With an e-wallet or InstaPay, no bank card is needed. You transfer the amount shown to you and then upload the receipt. The full steps are in [Payment methods](https://5abeer.ai/en/docs/start/payment.md). ## Is there a cheaper way to use Gemini for coding? If you subscribe mainly to code with Gemini in Google Antigravity, 5abeer's Bundle plans run the official Antigravity alongside Claude Desktop, Claude Code, ChatGPT Desktop and Codex. A Gemini plan runs Google's apps alone, and its price shows when you choose your plan after you sign up. Subscribe to the official apps for less than their official price. These are our plan prices, as on the [pricing page](https://5abeer.ai/en/pricing), in your currency: | 5abeer plan | Best for | Usage limits | Our price | | --- | --- | --- | --- | | Pro | For everyday use | A 5-hour limit and a weekly limit | EGP 797 / month | | Max (formerly Max 5x) | For heavy daily work | 5× the Pro plan limits | EGP 3,500 / month | | Ultra (formerly Max 20x) | If you work with it all day | 20× the Pro plan limits | EGP 6,970 / month | Before you compare, know the difference: - **A 5abeer plan isn't a Google One plan.** It runs Antigravity. The Gemini app's paid features, Gemini in Gmail and Docs, Flow credits and Google One storage come only with Google's own plan. - Every Bundle plan runs every official app, from the smallest to the largest. The plans differ in usage limits only. - The subscription runs in desktop apps through the 5abeer AI app on Mac, Windows and Linux, not inside a phone app. - Each plan has a 5-hour limit and a weekly limit, explained in [Usage limits](https://5abeer.ai/en/docs/subscriptions/limits.md). - On your own official account: you sign in to Antigravity with your own Google account. - Activated within minutes from the 5abeer AI app after you pay, as in [How the subscription works](https://5abeer.ai/en/docs/subscriptions/how-it-works.md). 5abeer's Pro, Max (formerly Max 5x) and Ultra (formerly Max 20x) are 5abeer plans, not Google AI Pro or Google AI Ultra. The models each app runs are on the [models page](https://5abeer.ai/en/models?app=antigravity), and the details for Egypt are on the [Google Antigravity subscription in Egypt](https://5abeer.ai/en/apps/antigravity/egypt) page. > Plans are for the supported apps. To use the models from your own code, create an API key. If you call Gemini from your own code, per-token prices are on the [Gemini API page](https://5abeer.ai/en/api/gemini), and the [API in Egypt page](https://5abeer.ai/en/api/egypt) covers paying for the API from Egypt. ## Google AI Pro or a 5abeer plan: which suits you? | Your situation | Best fit | | --- | --- | | You use Gemini in Gmail and Docs, or you need Google One storage | Google AI Pro | | You need far higher usage, or Project Genie | Google AI Ultra | | You are trying Antigravity for the first time | Google's no-cost level | | You code in Antigravity alongside Claude Code or Codex | A 5abeer Bundle plan | | You call Gemini from your own code | An API key | For other Egypt prices, read [ChatGPT Plus price in Egypt](https://5abeer.ai/en/guides/chatgpt-plus-price-egypt) and [Claude Pro and Max price in Egypt](https://5abeer.ai/en/guides/claude-pro-max-price-egypt). For how Antigravity works, read [Google Antigravity explained](https://5abeer.ai/en/guides/google-antigravity-guide). All three side by side are in [ChatGPT, Claude and Gemini prices in Egypt](https://5abeer.ai/en/guides/chatgpt-claude-gemini-price-egypt). ## Frequently asked questions ### Is Google AI Ultra sold in Egypt? Yes. Google's Egypt page lists both Ultra levels in Egyptian pounds, and the Gemini app on the iPhone lists Ultra by storage at different prices. Compare the two, and the checkout screen shows what you pay. ### Is the price the same on the website and in the app? On the day we checked, Pro had the same price on Google's Egypt page and in the Gemini app on the App Store. Either channel can change on its own, so the checkout screen is the reference. ### Do I need Google AI Pro to use Google Antigravity? No. Antigravity works with a personal Google account on the no-cost level, with a quota that refreshes weekly. Google AI Pro refreshes the quota every five hours, and Ultra raises it further. The details are in [Google Antigravity explained](https://5abeer.ai/en/guides/google-antigravity-guide). ### Does a 5abeer plan unlock the Gemini app? No. A 5abeer plan runs Google Antigravity on the computer through the 5abeer AI app. The Gemini app's paid features, Gemini in Gmail and Docs, and Google One storage come with Google's own plans. ### Do I need a bank card? For Google's own plan, you pay with a method Google's checkout accepts in your country, or through Apple's billing in the iPhone app. For a 5abeer plan, you can pay from Egypt with an e-wallet or InstaPay, with no bank card needed. ### Is 5abeer part of Google? No. 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. Google Antigravity is the official app that Google publishes. ### When is this table updated? Every row in the official price table carries the date we checked it and a link to its source. 5abeer's plan prices come from the same data as the pricing page. ## Sources Checked on 2026-11-01: - Google: [Google AI plans in Egypt](https://gemini.google/eg/subscriptions/?hl=ar) - Google: [Google AI plans](https://gemini.google/subscriptions/) - Apple: [Google Gemini on the App Store in Egypt](https://apps.apple.com/eg/app/google-gemini/id6477489729) - Google: [Antigravity plans](https://antigravity.google/docs/plans/) --- URL: https://5abeer.ai/en/guides/google-antigravity-guide # Google Antigravity explained: what it is and how to use it > What Google Antigravity is, how its app, CLI, editor extensions and SDK differ, what each Google plan allows, and how to run it on a 5abeer plan. Updated: 2026-11-01 Google Antigravity is Google's agentic development platform. You describe a task, and an AI agent plans it, writes the code, runs it and shows you the result. It comes as a desktop app, a terminal CLI, editor extensions and a Python SDK. Google offers it at no charge, and its paid Google AI plans raise the usage limits. ## What is Google Antigravity? The agent is the center of the product, not a chat box beside your editor. You hand it a task, and it splits the work into steps, edits files, runs terminal commands and can check the result in a browser it controls. Four ideas run through Google's documentation: - **Artifacts.** The agent shows its work as plans, walkthroughs, file diffs, screenshots and browser recordings, so you review a change before you accept it. - **Background agents.** Long tasks can go to subagents that work in separate Git worktrees. - **Skills, rules and MCP.** Skill files (`SKILL.md`) and rules teach the agent your project's habits, and MCP servers connect it to outside tools. - **Permissions.** You decide which tools need your approval and which folders the agent can reach. ## App, CLI, extensions or SDK: what's the difference? Antigravity comes in four forms that share one agent. The app, the CLI and the editor extensions use one Google sign-in. | Form | What it is | Suits | | --- | --- | --- | | Antigravity App | A desktop app | Running several agents and projects from one window | | Antigravity CLI | A terminal client called `agy` | Work over SSH and in scripts | | IDE extensions | Agent panels for VS Code, Visual Studio, JetBrains IDEs, Zed, Xcode and Eclipse | Staying in the editor you already use | | Antigravity SDK | A Python library | Building your own tools on the same agent | ## How do you install and start Antigravity? 1. Download the installer from antigravity.google. Google lists macOS 12 or later, Windows 10 (64-bit) or Windows 11, and recent Linux versions such as Ubuntu 20 or later. 2. Install it. On a Mac, drag Antigravity into Applications. On Windows, run the installer. 3. Open Antigravity and press **Sign in**. Your browser opens for your Google account, then returns you to the app. 4. Add your project folder, pick a model and a thinking level, and describe the task. For the CLI alone, Google publishes this command for macOS and Linux, with a PowerShell version for Windows: ```bash curl -fsSL https://antigravity.google/cli/install.sh | bash agy --version ``` A personal Google account works on every level, including the no-cost one. Work and school accounts need their administrator to turn Antigravity on first. ## How much does Google Antigravity cost? Google's pricing page lists an Individual level at no charge. Its plans page describes the usage on each level: | Your Google plan | Usage in Antigravity, as Google describes it | | --- | --- | | No Google AI Pro or Ultra plan | A quota that refreshes weekly, under a weekly rate limit | | Google AI Pro | A higher quota that refreshes every five hours until the weekly limit is reached | | Google AI Ultra | The highest quota, refreshed every five hours, with the highest weekly limits | Every level gets Gemini as the main agent model, Tab completions and all product features, such as scheduled tasks and the CLI. The newest Gemini and Claude models in the picker need a paid Google AI Pro plan or Google AI Ultra, and Google's models page shows which plan unlocks each one. - **Limits follow work, not messages.** Simple tasks leave room for more prompts, and complex tasks use more of the quota. - **AI credits after the quota.** On Google AI Pro and Ultra, purchased AI credits can cover usage past a model's quota, if the AI Credit Overages setting allows it. You subscribe to Google AI Pro or Ultra on Google One. Teams get Antigravity through Gemini Enterprise on Google Cloud. ## Can you use your own API key in Antigravity? Not to raise your plan's limits. Google's plans page says Antigravity doesn't currently support bringing your own key or endpoint for extra rate limits. The CLI is the exception. Google's sign-in guide shows how to run the Antigravity CLI on a Gemini API key instead of a signed-in account, for headless and CI runs. Model requests then go straight to the Gemini API, with no account session: - Set `"modelProvider": "gemini"` in `~/.gemini/antigravity-cli/settings.json`. - Export the key as `GEMINI_API_KEY`. Google notes that the variable alone has no effect without the provider setting. - To send requests to another Gemini-compatible endpoint, set `GOOGLE_GEMINI_BASE_URL`. The reverse isn't allowed. Google's FAQ says using your Antigravity sign-in in third-party tools such as Claude Code, OpenClaw or OpenCode breaks its terms of service and can get the account suspended or terminated. For those tools, Google recommends an API key from Gemini Enterprise or Google AI Studio. A 5abeer key is compatible with the Gemini generateContent API for the models that support it. For a terminal agent with full 5abeer steps, see [Gemini CLI](https://5abeer.ai/en/docs/apps/gemini-cli.md). Per-token prices are on the [Gemini API page](https://5abeer.ai/en/api/gemini), and [How to get an API key](https://5abeer.ai/en/guides/ai-api-key-guide) explains how keys work. ## Which models work in Antigravity? Antigravity runs models from Google DeepMind and partner providers. You pick a model and a thinking level: Low, Medium or High. Google counts usage in two groups, Gemini models on one side and Claude and GPT models on the other, each with a weekly and a five-hour limit. On a 5abeer plan, Antigravity runs these models, read live from our catalog: | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | Gemini 4 Argon | `gemini-4-argon` | $0.60 | $3 | — | | Gemini 2.5 Pro | `gemini-2.5-pro` | $0.38 | $3 | 1M | | Gemini 3.8 Flash | `gemini-3.8-flash` | $0.23 | $1.13 | — | | Gemini 3 Flash | `gemini-3-flash` | $0.15 | $0.90 | 1M | | Gemini 3.1 Pro | `gemini-3.1-pro` | $0.60 | $3.60 | 1M | Today these are Gemini models. For Claude, every Bundle plan also runs Claude Code and Claude Desktop. ## How do you get Google Antigravity on a 5abeer plan? 5abeer's Bundle plans run the official Google Antigravity alongside Claude Desktop, Claude Code, ChatGPT Desktop and Codex. A Gemini plan runs Google's apps alone, and its price shows when you choose your plan after you sign up. Subscribe to the official apps for less than their official price. These are our plans and their limits; prices are on the [pricing page](https://5abeer.ai/en/pricing): | 5abeer plan | Best for | Usage limits | Our price | | --- | --- | --- | --- | | Pro | For everyday use | A 5-hour limit and a weekly limit | Prices on the pricing page: https://5abeer.ai/en/pricing | | Max (formerly Max 5x) | For heavy daily work | 5× the Pro plan limits | Prices on the pricing page: https://5abeer.ai/en/pricing | | Ultra (formerly Max 20x) | If you work with it all day | 20× the Pro plan limits | Prices on the pricing page: https://5abeer.ai/en/pricing | Before you compare: - Every Bundle plan runs every official app, from the smallest to the largest. The plans differ in usage limits only. - On your own official account: you sign in to Antigravity with your own Google account. - Each plan has a 5-hour limit and a weekly limit, explained in [Usage limits](https://5abeer.ai/en/docs/subscriptions/limits.md). - 5abeer's Max (formerly Max 5x) and Ultra (formerly Max 20x) are 5abeer plans, not Google AI Pro or Google AI Ultra. > Plans are for the supported apps. To use the models from your own code, create an API key. ### 1. Pick a plan and pay Pick your plan on the [pricing page](https://5abeer.ai/en/pricing) and pay the way that suits you. The methods are in [Payment methods](https://5abeer.ai/en/docs/start/payment.md). ### 2. Install 5abeer AI and sign in Download the 5abeer AI app and sign in with your 5abeer email and password. ### 3. Turn it on for Antigravity Press **Use 5abeer with** next to Google Antigravity. Open Antigravity, sign in with Google if it asks, and send a message to a Gemini model. 5abeer AI checks that the reply arrived. ### 4. Work as usual Activated within minutes. Keep 5abeer AI open while you work, and if you fully quit either app, turn the connection on again. Details are in [How the subscription works](https://5abeer.ai/en/docs/subscriptions/how-it-works.md) and [What each plan runs](https://5abeer.ai/en/docs/subscriptions/plan-apps.md#antigravity). ## Which option suits you? | Your situation | Best fit | | --- | --- | | You are trying Antigravity for the first time | Google's no-cost Individual level | | You code in Antigravity daily and use only Google's tools | A Google AI plan | | You use Antigravity alongside Claude Code or Codex | A 5abeer Bundle plan | | You want Gemini in a third-party agent such as OpenCode, or in your scripts | An API key, not your Antigravity sign-in | | Your team needs Google Cloud controls | Gemini Enterprise | For every official app on one plan, read [One subscription for ChatGPT, Claude and Antigravity](https://5abeer.ai/en/guides/one-subscription-all-ai-apps). Choosing a coding agent? Read [The cheapest way to use Claude Code](https://5abeer.ai/en/guides/claude-code-cheapest-way) and [the Codex page](https://5abeer.ai/en/apps/codex), or compare all three in [Claude Code vs Codex vs Antigravity](https://5abeer.ai/en/guides/claude-code-vs-codex). The [Google Antigravity page](https://5abeer.ai/en/apps/antigravity) sums up what a plan runs there. ## Frequently asked questions ### Is Google Antigravity free? Google offers an Individual level at no charge, with a quota that refreshes weekly. Google AI Pro and Ultra raise the limits, refresh the quota every five hours and unlock more models. ### Is Antigravity the same as Gemini CLI? No. Antigravity is a separate product with its own CLI, called `agy`. Google publishes a guide for moving from Gemini CLI to Antigravity. How Gemini CLI compares with Claude Code is in [Gemini CLI vs Claude Code](https://5abeer.ai/en/guides/gemini-cli-vs-claude-code). ### Can I use Claude models in Antigravity? Google's own picker includes Claude models, and the newest ones need a paid Google AI Pro plan or Google AI Ultra. On a 5abeer plan, Antigravity runs the Gemini models listed above, and Claude runs in Claude Code and Claude Desktop, which every Bundle plan includes. ### Can I use my Antigravity sign-in in Claude Code or OpenCode? No. Google's FAQ says this breaks its terms of service, so use an API key there. Google adds that the CLI's headless mode, `agy -p`, is meant for direct scripting and CI, and that wrapping it inside other coding agents isn't supported on consumer plans. ### Is Google Antigravity available in Egypt and the Gulf? Yes. Egypt, Saudi Arabia, the UAE, Kuwait, Qatar, Bahrain and Oman are on Google's list of supported countries. You must be 18 or older, and your Google account's country must be on that list. ### Is 5abeer part of Google? No. 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. Google Antigravity is the official app that Google publishes. ## Sources Checked on 2026-11-01: - Google: [Google Antigravity](https://antigravity.google/) - Google: [Antigravity pricing](https://antigravity.google/pricing) - Google: [Plans](https://antigravity.google/docs/plans/) - Google: [Choose a model](https://antigravity.google/docs/models/) - Google: [Get started](https://antigravity.google/docs/getting-started/) - Google: [Authenticate](https://antigravity.google/docs/install/) - Google: [Overview](https://antigravity.google/docs/overview/) - Google: [FAQ](https://antigravity.google/docs/faq/) --- URL: https://5abeer.ai/en/guides/claude-api-vs-subscription # Claude subscription vs API: Pro, Max or Ultra, or per token? > Pay-per-token Claude API against a fixed Pro, Max or Ultra plan, with a worked cost example from current prices and when each one fits. Updated: 2026-11-01 The Claude API charges you for every token you use, while a Pro, Max or Ultra plan charges a fixed monthly price in exchange for usage limits. If your use is occasional or you are building your own app, the API is usually cheaper. If you work in Claude or Claude Code for hours every day, a plan usually is. For the general subscription-vs-API comparison across all vendors, read [AI subscription vs API](https://5abeer.ai/en/guides/ai-subscription-vs-api). ## What is the difference between a Claude plan and the API? At Anthropic, the plans and the API are separate products, each with its own account and its own billing. A plan opens the Claude apps themselves. The API opens the models to code you write. | | Pro or Max plan | Claude API | | --- | --- | --- | | Where you use it | The Claude apps and Claude Code | Your own code and coding tools that accept a key | | How you pay | A fixed price every month | By usage, per million tokens | | What limits your use | Usage limits that reset over time | Your balance, and a spend limit if you set one | | Works inside your own app | No | Yes | | Cost known in advance | Yes, the price is fixed | As an estimate, from your token count | ## How much do Claude Pro, Max and Ultra cost? These are the individual plan prices as Anthropic publishes them, with the source and the date each one was checked: Claude individual plans (official prices) | Service | Item | Value | Note | Source | | --- | --- | --- | --- | --- | | Claude | Pro, billed monthly | $20 a month | Includes Claude Code. | https://claude.com/pricing | | Claude | Pro, billed yearly up front | $200 a year | Includes Claude Code. | https://claude.com/pricing | | Claude | Max | $100 a month | 5x Pro usage every 5 hours and every week; includes Claude Code. | https://claude.com/pricing | | Claude | Ultra | $200 a month | 10x Pro usage every week, no 5-hour limit for verified accounts; includes Claude Code. | https://claude.com/pricing | | Anthropic | API usage with a paid plan | Billed separately from the plan | Max and Ultra include monthly API credits. | https://support.claude.com/en/articles/9876003 | Each row links to the page it comes from, checked October 31, 2026, November 1, 2026. These figures can change, so check the source before you buy. Ultra is the plan Anthropic used to call Max 20x. Anthropic describes the Max and Ultra limits as multiples of Pro usage and does not publish a fixed token allowance per plan. So you can't turn a plan price into an exact price per token. The practical comparison is to estimate your monthly usage, then work out what it would cost on the API. ## How much does the Claude API cost per million tokens? API usage is priced per million tokens, with one price for input (what you send the model) and a higher one for output (what the model writes). These are the newest Claude models on our API, and the full list is on the [models page](https://5abeer.ai/en/models): | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | Claude Sonnet 5.5 | `claude-sonnet-5.5` | $0.60 | $3 | 1M | | Claude Opus 5.5 | `claude-opus-5.5` | $1.20 | $6 | 1M | | Claude Fable 5.1 | `claude-fable-5.1` | $3 | $15 | — | And this is the default model's price per million tokens, ours next to the official one: Claude Sonnet 5.5 (`claude-sonnet-5.5`) per 1M tokens: input $0.60 (official $2), output $3 (official $10). Official price checked November 21, 2026. The default model covers most tasks. The Opus models cost more and suit the hardest ones. Each model has its own page: the [default model](https://5abeer.ai/en/models/claude-sonnet-5.5) and [Opus](https://5abeer.ai/en/models/claude-opus-5.5). ## A worked example: when is the API cheaper? Start with light use: a developer who sends two million tokens a month and gets four hundred thousand back on the default model, for occasional questions and small experiments: Example: 2,000,000 input tokens and 400,000 output tokens on Claude Sonnet 5.5 (`claude-sonnet-5.5`) cost $2.40 at our price against $8.00 at the official price (70% lower). Official price checked November 21, 2026. At the official price, that month costs less than the Pro plan in the table above. Here the API is cheaper, and you pay only for what you used. Now take heavy use: daily Claude Code sessions on Opus that send sixty million tokens a month and get six million back: Example: 60,000,000 input tokens and 6,000,000 output tokens on Claude Opus 5.5 (`claude-opus-5.5`) cost $108.00 at our price against $360.00 at the official price (70% lower). Official price checked November 21, 2026. Before caching, at the official price, that month costs more than three times the official Max price in the table above. That is why people who work in Claude for hours a day usually pick a plan. Anthropic's own average cost per developer for Claude Code is in [the Claude Code cost table](https://5abeer.ai/en/guides/claude-code-cheapest-way#plan-cost). > Neither example counts caching. Coding tools send the same context many times, and caching lowers the price of repeated input. The details are in [Prompt caching](https://5abeer.ai/en/docs/api/caching.md). ## When is a plan the better deal? - You work in Claude Code or the Claude apps for hours every day. - You want a fixed price you know in advance, without watching token counts. - You don't need the models inside your own app or an automation that runs on its own. Keep in mind that a plan has usage limits. Once you reach them, you wait for them to reset, buy usage credits from Anthropic, or carry on with an API key. ## When is the API the better deal? - You are building an app, a service or an automation that calls the model from code. - Your use comes and goes, with heavy weeks and light ones. - You use models from more than one provider, such as GPT and Gemini alongside Claude. - You want a spend limit per project, or a separate key for each person on your team. ## A plan and the API through 5abeer 5abeer is an independent service, not affiliated with Anthropic, and it offers both routes below the official price. **The API:** you top up your balance, create a key for Claude models, and each request is deducted by model and token count. You control every key with a spend limit, an expiry date and an IP allow-list. All prices are on [Claude API](https://5abeer.ai/en/api/claude) and the [API page](https://5abeer.ai/en/api). **A plan:** a monthly plan that runs the official apps, such as Claude Code, through the 5abeer AI app, with a five-hour limit and a weekly limit. Plans are for the supported apps; to use the models from your own code you need an API key. Pick a plan on the [pricing page](https://5abeer.ai/en/pricing), and read the details in [How a plan works](https://5abeer.ai/en/docs/subscriptions/how-it-works.md). Your balance and your plan are separate: API key usage never counts against your plan's limits, and a plan only draws on your balance if you turn on [Continue from the wallet](https://5abeer.ai/en/docs/subscriptions/limits.md#wallet). ## How to decide in three steps ### 1. Estimate your monthly usage Look at a normal month of work. If you run Claude Code on an API key, the Session block of the `/usage` command estimates what the current session has cost at list price. If you already use the API, your dashboard shows usage per key and per model. ### 2. Price it on the API Multiply your millions of input tokens by the input price and your millions of output tokens by the output price, then add the two. The full method is in [How cost is calculated](https://5abeer.ai/en/docs/start/pricing.md#cost). ### 3. Compare with the plan price If the result is below the price of the plan you would need, the API is cheaper for you. If it is well above it, and your work happens inside the supported apps, a plan is cheaper. ## FAQ ### Does Claude Pro include API usage? No. At Anthropic the plans and the API are separate, and the API is paid for in the Claude Console. Anthropic does say that Max and Ultra include monthly API credits, as shown in the table above. ### Does Claude Code work with a plan or with an API key? Both. You can sign in with a plan account, or run it on an API key that draws on your balance. Key setup is in [Claude Code setup](https://5abeer.ai/en/docs/apps/claude-code.md), and the two routes are compared for coding tools in [The cheapest way to use Claude Code](https://5abeer.ai/en/guides/claude-code-cheapest-way). ### Is Opus more expensive than the default model? Yes. Opus costs more per million tokens, and the gap shows in the models table above. Start on the default model and move to [`claude-opus-5.5`](https://5abeer.ai/en/models/claude-opus-5.5) or [`claude-fable-5.1`](https://5abeer.ai/en/models/claude-fable-5.1) when the task calls for it. ### What happens when my plan's limits run out? You wait for the limits to reset, buy usage credits from Anthropic, or carry on with an API key that draws on your balance. On 5abeer you can also turn on Continue from the wallet, so usage beyond your plan's limits is deducted from your balance. ### Can I use a plan inside my own app? No. A plan is for the supported official apps. To call the models from your own code or an automation, you need an API key. Start with the [Quickstart](https://5abeer.ai/en/docs/start/quickstart.md), or call Claude from a spreadsheet with [Google Sheets AI API](https://5abeer.ai/en/guides/google-sheets-ai-api). ### How do I lower my API cost? Use caching for repeated context, start on the default model before Opus, and cap the output length when a short reply is enough. A spend limit on each key keeps any one project from running past its budget. ## Get started Compare Claude model prices on [Claude API](https://5abeer.ai/en/api/claude), or plan prices on the [pricing page](https://5abeer.ai/en/pricing). --- URL: https://5abeer.ai/en/guides/ai-api-key-guide # How to get an API key for Claude, GPT and Gemini > What an AI API key does, where to create one at Anthropic, OpenAI and Google, what it costs to use, and how to keep it safe. Updated: 2026-11-01 An API key is a secret string that lets your code or a tool call an AI model and bills the usage to your account. You create one in each provider's console: the [Claude Console](https://platform.claude.com/settings/keys) for Claude, the [OpenAI Platform](https://platform.openai.com/settings/organization/api-keys) for GPT and [Google AI Studio](https://aistudio.google.com/apikey) for Gemini. A service such as 5abeer gives you one too. ## What is an API key? An API (application programming interface) is how one program talks to another. When your code sends a question to Claude, GPT or Gemini, it sends an HTTP request to the provider's server. The API key travels in a header on that request, so the provider knows which account is calling and whom to bill for the tokens. Three things follow from that: - **The key is like a card number.** Anyone who holds it can spend your balance, so it stays secret. - **A key is not a chat subscription.** A Claude Pro or ChatGPT plan is for the provider's own apps. The API is a separate product, billed by usage. - **A key belongs to one provider.** An Anthropic key calls Claude models only. It can't call GPT or Gemini. ## When do you need an API key? You need a key whenever a program, not a person in a chat window, talks to the model: - Your own app, website backend or script that calls a model, such as a [script in Google Sheets](https://5abeer.ai/en/guides/google-sheets-ai-api). - Coding agents and tools that run on a key, such as [Claude Code](https://5abeer.ai/en/docs/apps/claude-code.md), [Codex CLI](https://5abeer.ai/en/docs/apps/codex.md) or [Gemini CLI](https://5abeer.ai/en/docs/apps/gemini-cli.md). - Automation that summarizes, classifies or translates text, such as an [n8n workflow](https://5abeer.ai/en/guides/n8n-ai-api). If you only chat with a model in its app, you don't need one. ## Where do you get an official key? Each provider issues its own keys from its own console. The page, how the key is sent and the date we checked each one: Where to create an official API key | Service | Item | Value | Note | Source | | --- | --- | --- | --- | --- | | Anthropic | Claude API key | The API keys page in the Claude Console | Sent in the Authorization header after the word Bearer, or in x-api-key. You pick its expiry when you create it. | https://platform.claude.com/docs/en/api/overview | | OpenAI | OpenAI API key | The API keys page in the OpenAI Platform dashboard | Sent in the Authorization header after the word Bearer. The OpenAI SDKs read it from OPENAI_API_KEY. | https://developers.openai.com/api/reference/overview | | Google | Gemini API key | The API Keys page in Google AI Studio | Sent in the x-goog-api-key header. The SDKs read it from GEMINI_API_KEY or GOOGLE_API_KEY. | https://aistudio.google.com/docs/api-key | Each row links to the page it comes from, checked October 31, 2026. These figures can change, so check the source before you buy. The steps are much the same on all three: create an account, add a payment method or credit if the provider asks for it, open the API keys page, create a key and copy it into a safe place before you close the page. For Claude step by step, with key types, expiry and a test request, see [How to get a Claude API key](https://5abeer.ai/en/guides/claude-api-key). Before a key can make paid calls, the account needs a balance. This is how the official consoles take payment: How the official APIs are paid for | Service | Item | Value | Note | Source | | --- | --- | --- | --- | --- | | Anthropic | Supported countries | Egypt is on the list | — | https://www.anthropic.com/supported-countries | | Anthropic | How you pay in the Claude Console | Prepaid credits, bought by card | Under Billing, then Buy credits. | https://support.claude.com/en/articles/8977456 | | OpenAI | Smallest API credit purchase | $5 | Prepaid credits that usage is deducted from. Read from a search result for the page, because the page itself didn't open for us. | https://help.openai.com/en/articles/8264778-what-is-prepaid-billing | Each row links to the page it comes from, checked October 31, 2026. These figures can change, so check the source before you buy. The Gemini API has a free tier for some models, listed on [Gemini API pricing](https://aistudio.google.com/docs/pricing). ## How much does using a key cost? Creating a key costs nothing. You pay for what it does: each request is billed by the tokens it sends and receives, priced per million tokens, and output usually costs more than input. These are the newest models from each provider, at our price per million tokens: | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | Claude Sonnet 5.5 | `claude-sonnet-5.5` | $0.60 | $3 | 1M | | Claude Opus 5.5 | `claude-opus-5.5` | $1.20 | $6 | 1M | | Claude Fable 5.1 | `claude-fable-5.1` | $3 | $15 | — | | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | GPT-6.2 Sol | `gpt-6.2-sol` | $0.60 | $3 | — | | GPT-6.2 Astra | `gpt-6.2-astra` | $2.40 | $12 | — | | GPT-6.1 Sol | `gpt-6.1-sol` | $0.60 | $3 | 922K | | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | Gemini 4 Argon | `gemini-4-argon` | $0.60 | $3 | — | | Gemini 2.5 Pro | `gemini-2.5-pro` | $0.38 | $3 | 1M | As a worked example, an app that sends two million tokens a month and gets half a million back, on the default model: Example: 2,000,000 input tokens and 500,000 output tokens on Claude Sonnet 5.5 (`claude-sonnet-5.5`) cost $2.70 at our price against $9.00 at the official price (70% lower). Official price checked November 21, 2026. The official price for every model sits next to ours on the [API page](https://5abeer.ai/en/api), and per provider on [Claude API](https://5abeer.ai/en/api/claude), [OpenAI API](https://5abeer.ai/en/api/openai) and [Gemini API](https://5abeer.ai/en/api/gemini). ## How to get a key from 5abeer 5abeer is an independent service that sells Claude, GPT and Gemini models below the official prices. You keep one balance and create a key for each provider you use: ### 1. Top up your balance Add credit with one of the methods in [Payment methods](https://5abeer.ai/en/docs/start/payment.md). Every key draws on this balance. ### 2. Create a key per provider Open the keys page, pick the provider and give the key a name that says which project uses it. The steps are in [Create a key](https://5abeer.ai/en/docs/start/keys.md#create). ### 3. Point your code at our base URL Use the base URL for the format your code or tool speaks. OpenAI SDK code keeps working once you change the base URL and the key: | Format | Base URL | Key header | | --- | --- | --- | | OpenAI | `https://api.5abeer.ai/v1` | `Authorization: Bearer ` | | Anthropic | `https://api.5abeer.ai` | `x-api-key: ` | | Gemini | `https://api.5abeer.ai/v1beta` | `x-goog-api-key: ` | ### 4. Check the key [Check the key](https://5abeer.ai/en/docs/start/keys.md#verify) with a request that calls no model, then send a real one from the [Quickstart](https://5abeer.ai/en/docs/start/quickstart.md). You can give each key a spend limit, an expiry date and an IP allow-list, as in [Control every key](https://5abeer.ai/en/docs/start/keys.md#controls). ## Where does the key go in a request? Each format has its usual header, and the official SDKs set it for you once they have the key: - **OpenAI format:** the `Authorization` header, set to the word `Bearer` followed by the key. - **Anthropic Messages format:** the `x-api-key` header, plus the `anthropic-version` header. - **Gemini format:** the `x-goog-api-key` header. Keep the key in an environment variable rather than in your code. The docs examples read it from `KHABEER_API_KEY`, as shown in [Keep the key in an environment variable](https://5abeer.ai/en/docs/start/keys.md#env). ## How do you keep a key safe? - Never put a key in code that runs in a browser or a phone app, because anyone can read it there. [OpenAI's API reference](https://developers.openai.com/api/reference/overview) gives the same advice. Send requests from your server. - Never commit a key to a code repository. Keep it in a `.env` file and add that file to `.gitignore`. - Use one key per project, so you can stop one without touching the others. - Set a spend limit, so a leaked or looping key can't drain your balance. - If a key leaks, disable it at once and create a new one. ## FAQ ### Is an API key the same as my account password? No. Your password signs you in to the website. A key only lets code call the API and bill your account, and you can disable one key without changing your password or your other keys. ### Does a Claude or ChatGPT subscription include an API key? Not as the same product. [Anthropic bills the Claude API separately](https://support.claude.com/en/articles/9876003) from its Claude plans, although its Max, Ultra and Team plans include monthly credits for the Claude API. These are Anthropic's plans, not the 5abeer plans with the same names. 5abeer plans are for the supported apps, and to call models from your own code you need an API key. Compare both routes in [Claude API vs Claude Pro/Max](https://5abeer.ai/en/guides/claude-api-vs-subscription), and plans on the [pricing page](https://5abeer.ai/en/pricing). ### Can one key call Claude, GPT and Gemini? Not with the official consoles, since each one issues keys for its own models. On 5abeer each key also covers one provider, but all your keys share one balance. A key used for another provider's model returns [`MODEL_PLATFORM_NOT_ALLOWED`](https://5abeer.ai/en/docs/help/errors.md#MODEL_PLATFORM_NOT_ALLOWED). ### Which model should I start with? For general work, start with the default model, [`claude-sonnet-5.5`](https://5abeer.ai/en/models/claude-sonnet-5.5). For the hardest tasks, move to [`claude-opus-5.5`](https://5abeer.ai/en/models/claude-opus-5.5) or [`claude-fable-5.1`](https://5abeer.ai/en/models/claude-fable-5.1). The full list is on the [models page](https://5abeer.ai/en/models). ### Can I pay from Egypt? Yes. The ways to pay from Egypt and the steps are in [How to pay for the OpenAI or Claude API from Egypt](https://5abeer.ai/en/guides/pay-ai-api-from-egypt), and the details are on the [API in Egypt page](https://5abeer.ai/en/api/egypt). ### What happens if I lose or leak a key? Disable it in the dashboard and create a new one, then put the new key wherever the old one was used. Requests with a disabled key return [`API_KEY_DISABLED`](https://5abeer.ai/en/docs/help/errors.md#API_KEY_DISABLED). ### Is 5abeer part of Anthropic, OpenAI or Google? No. 5abeer is an independent service, not affiliated with any of them. ## Get started Compare prices per provider on the [API page](https://5abeer.ai/en/api), or create your first key and send a request. --- URL: https://5abeer.ai/en/guides/5abeer-vs-official # 5abeer vs an official subscription: price and payment > A 5abeer plan or an official ChatGPT or Claude subscription? Price, whose account you use, how you pay, and what a 5abeer plan does not include. Updated: 2026-11-01 An official subscription is paid directly to OpenAI or Anthropic and works in that company's apps on your phone, in the browser and on your computer. A 5abeer plan runs the official computer apps, such as Claude Code, Codex and ChatGPT Desktop, on your own official account, for less than the official price, with its own 5-hour and weekly limits. ## How does 5abeer compare with an official subscription? The short version, side by side: | | Official subscription | 5abeer Bundle plan | | --- | --- | --- | | Who you pay | OpenAI or Anthropic, or Apple and Google if you subscribe in the phone app | 5abeer | | Price | The official price, plus tax where it applies | Below the official price, shown in your currency | | Apps | One company's apps | The official apps of OpenAI, Anthropic and Google on one plan | | Where it works | Phone, browser and computer | Desktop apps on Mac, Windows and Linux, through 5abeer AI | | Account | Your official account | Your own official account, in each app | | Usage limits | Set by OpenAI or Anthropic | 5abeer's own 5-hour and weekly limits | | Billing help | OpenAI, Anthropic or the app store | 5abeer support | The full list of apps is on the [apps page](https://5abeer.ai/en/apps), and our current prices are on the [pricing page](https://5abeer.ai/en/pricing). ## Is 5abeer cheaper than the official plans? These are the official prices on the OpenAI and Anthropic websites, each row with its source and the date we checked it: | Plan | Market and channel | Official price | Billing | Source | Checked | | --- | --- | --- | --- | --- | --- | | ChatGPT Go | United States · Vendor website | $8 | per month | https://openai.com/index/introducing-chatgpt-go/ | 2026-11-15 | | ChatGPT Plus | United States · Vendor website | $20 | per month | https://help.openai.com/en/articles/6950777-what-is-chatgpt-plus | 2026-11-15 | | ChatGPT Pro 100 | United States · Vendor website | $100 | per month | https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers | 2026-11-15 | | ChatGPT Pro 200 | United States · Vendor website | $200 | per month | https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers | 2026-11-15 | | ChatGPT Pro 500 | United States · Vendor website | $500 | per month | https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers | 2026-11-15 | | Claude Pro | United States · Vendor website | $20 | per month | https://claude.com/pricing | 2026-11-15 | | Claude Pro | United States · Vendor website | $200 | per year | https://claude.com/pricing | 2026-11-15 | | Claude Max | United States · Vendor website | $100 | per month | https://claude.com/pricing | 2026-11-15 | | Claude Ultra | United States · Vendor website | $200 | per month | https://claude.com/pricing | 2026-11-15 | The vendors' own prices as published at the source on the date checked; they can change. These are the vendor's official prices; 5abeer's prices are on the pricing page. Tax: per Anthropic's pages, some countries include tax in the displayed price and others add it at checkout. Anthropic says on its [pricing page](https://claude.com/pricing) that the prices shown don't include applicable tax. If you subscribe from the phone app, Apple or Google bills you in your local currency, so the price can differ from the website. For local prices, read [ChatGPT Plus price in Egypt](https://5abeer.ai/en/guides/chatgpt-plus-price-egypt), [Claude Pro and Max price in Egypt](https://5abeer.ai/en/guides/claude-pro-max-price-egypt) or [Prices in Saudi Arabia and the UAE](https://5abeer.ai/en/guides/chatgpt-claude-gulf-price). Subscribe to the official apps for less than their official price. These are our plans and their limits; prices are on the [pricing page](https://5abeer.ai/en/pricing): | 5abeer plan | Best for | Usage limits | Our price | | --- | --- | --- | --- | | Pro | For everyday use | A 5-hour limit and a weekly limit | Prices on the pricing page: https://5abeer.ai/en/pricing | | Max (formerly Max 5x) | For heavy daily work | 5× the Pro plan limits | Prices on the pricing page: https://5abeer.ai/en/pricing | | Ultra (formerly Max 20x) | If you work with it all day | 20× the Pro plan limits | Prices on the pricing page: https://5abeer.ai/en/pricing | Before you compare the two tables: - Our plan names, Pro, Max (formerly Max 5x) and Ultra (formerly Max 20x), are 5abeer's plan names, not OpenAI or Anthropic plans, even where a name matches. - Every Bundle plan runs every official app, from the smallest to the largest. The plans differ in usage limits only: 5abeer's Max gives five times the limits of 5abeer's Pro, and 5abeer's Ultra twenty times. - If you only use one provider's apps, there are single-provider plans for Claude, GPT and Gemini, described in [Which official apps each plan runs](https://5abeer.ai/en/docs/subscriptions/plan-apps.md#single). ## Whose account do you use? On your own official account. You still sign in to each app the way you normally do, and the subscription runs under that sign-in. That is why some apps ask for their official account: Codex asks for your ChatGPT account, and Google Antigravity asks for your Google account. What each app needs is in [App by app](https://5abeer.ai/en/docs/subscriptions/plan-apps.md#apps). Your 5abeer account is separate. You use it to sign in to the 5abeer AI app and to manage your plan, your payments and your usage from the [dashboard](https://5abeer.ai/en/dashboard/plan). ## How do you pay for each? The official plans and 5abeer take payment in different ways: - **Anthropic** says that for subscriptions bought on the web it only accepts credit or debit cards, and that subscriptions bought in the iPhone or Android app are billed by the App Store or Google Play. - **OpenAI** bills ChatGPT subscriptions bought in the App Store or Google Play in local currency. Its help pages say a renewal can fail when you or your card's issuer isn't in a supported country, and suggest checking the card details, the billing address and the expiry date. - **5abeer** takes international cards on Stripe's secure payment page; the card must support international payments. The full card number never reaches us, and we don't store it. The methods available right now show when you pay, as explained in [Payment methods](https://5abeer.ai/en/docs/start/payment.md#methods). If your card keeps getting declined on the official sites, [Card declined on ChatGPT, Claude or the API](https://5abeer.ai/en/guides/card-declined-ai-payment) explains what to check, and if you are in Egypt, [Pay for Claude from Egypt](https://5abeer.ai/en/guides/pay-claude-from-egypt) covers the local options. ## What doesn't a 5abeer plan include? A 5abeer plan isn't a copy of the official plan, so check these points before you choose: - **No phone apps or websites.** The subscription works in desktop apps through 5abeer AI on Mac, Windows and Linux, not in the ChatGPT or Claude phone apps or on their websites. - **No WSL-only installs.** If an app is installed only inside WSL on Windows, 5abeer AI can't set it up yet. - **Its own limits.** Each 5abeer plan has a 5-hour limit and a weekly limit, explained in [Usage limits](https://5abeer.ai/en/docs/subscriptions/limits.md). We don't promise limits matching the official plans. - **Not for your own code.** A plan runs the official apps only. Your own code and scripts need an API key, paid from your balance as you use it, as explained on the [API page](https://5abeer.ai/en/api). - **Support from 5abeer.** Questions about your 5abeer plan or payment go to [5abeer support](https://5abeer.ai/en/contact), not to OpenAI or Anthropic. > Plans are for the supported apps. To use the models from your own code, create an API key. ## Which one suits you? An official subscription suits you if: - You mostly use ChatGPT or Claude on your phone or in the browser. - You want your limits and billing to come straight from OpenAI or Anthropic. - Your card works on their payment pages without problems. A 5abeer plan suits you if: - You work on a computer in Claude Code, Codex, Claude Desktop or ChatGPT Desktop. - You use apps from more than one company and want them on one plan. - You want to pay less than the official price for the same official apps. Some people use the official phone app for quick questions and do their longer work on the computer with a 5abeer plan. How one subscription runs several apps is explained in [One subscription for ChatGPT, Claude and Antigravity](https://5abeer.ai/en/guides/one-subscription-all-ai-apps), and the official Claude plans are compared in [Claude Pro vs Max](https://5abeer.ai/en/guides/claude-pro-vs-max). ## How do you start with 5abeer? ### 1. Pick a plan Choose a plan on the [pricing page](https://5abeer.ai/en/pricing) and pay the way that suits you. ### 2. Download 5abeer AI Get the app for your computer from the [5abeer AI page](https://5abeer.ai/en/app) and sign in with your 5abeer account. ### 3. Turn it on for each app Press **Use 5abeer with** next to the app you want, then restart it when 5abeer AI asks. Activated within minutes. The full setup, app by app, is in [How the subscription works](https://5abeer.ai/en/docs/subscriptions/how-it-works.md#start). ## Frequently asked questions ### Is 5abeer part of OpenAI or Anthropic? No. 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. It runs their official apps on your own official account. ### Is a 5abeer plan cheaper than ChatGPT Plus or Claude Pro? Our plans are priced below the official price. The live prices in your currency are on the [pricing page](https://5abeer.ai/en/pricing), and the official prices with their check dates are in the table above. ### Do I keep my own ChatGPT or Claude account? Yes. The subscription runs on your own official account, and you sign in to each app as usual. ### Can I use a 5abeer plan in the ChatGPT or Claude phone app? No. It works in desktop apps through 5abeer AI on Mac, Windows and Linux, not in the phone apps or on the websites. ### Do 5abeer limits match the official plans? Not necessarily. Each 5abeer plan has its own 5-hour and weekly limits, and we don't promise limits matching the official plans. You can follow your usage on the **Your subscription** page in your dashboard. ### How long does activation take? Activated within minutes. After you pay, you turn the subscription on for each app in 5abeer AI and restart the app. ### Can I use the plan from my own code? No. Plans are for the supported apps. For your own code, create an API key from your balance; [AI subscription vs API](https://5abeer.ai/en/guides/ai-subscription-vs-api) explains the difference. ## Sources Checked on 2026-11-01: - Anthropic: [Claude pricing](https://claude.com/pricing) - Anthropic Help Center: [Paid plan billing FAQs](https://support.claude.com/en/articles/8325618-paid-plan-billing-faqs) - OpenAI Help Center: [Multi-currency billing FAQ](https://help.openai.com/en/articles/10421635-multi-currency-billing-faq) - OpenAI Help Center: [Troubleshooting ChatGPT Plus or Pro renewal payments](https://help.openai.com/en/articles/7242622-troubleshooting-chatgpt-plus-or-pro-renewal-payments) Each row in the official price table shows its own source and the date we checked it. > 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. --- URL: https://5abeer.ai/en/guides/claude-api-pricing # Claude API pricing: Opus, Sonnet and Fable per 1M tokens > Official Claude API prices per million tokens for Opus, Sonnet and Fable, how caching, batch, thinking and fast mode change the bill, and our lower prices. Updated: 2026-11-01 Claude API prices are per million tokens, and on each of the three newest models output costs five times input. Sonnet is the cheapest of them, Opus costs twice as much, and Fable five times as much. Caching, batch and fast mode then change the bill. Below: the official rates, how a bill adds up, and our lower prices. ## What does the Claude API cost per million tokens? Anthropic prices every model per million tokens, with separate rates for input, output and cache traffic. These are the list prices for [`claude-opus-5.5`](https://5abeer.ai/en/models/claude-opus-5.5), [`claude-sonnet-5.5`](https://5abeer.ai/en/models/claude-sonnet-5.5) and [`claude-fable-5.1`](https://5abeer.ai/en/models/claude-fable-5.1), with the modifiers that apply on top. Official Claude API prices per 1M tokens | Service | Item | Value | Note | Source | | --- | --- | --- | --- | --- | | Claude API | claude-opus-5.5: per 1M input tokens | $4 | — | https://platform.claude.com/docs/en/about-claude/pricing | | Claude API | claude-opus-5.5: per 1M output tokens | $20 | Thinking tokens are billed as output. | https://platform.claude.com/docs/en/about-claude/pricing | | Claude API | claude-sonnet-5.5: per 1M input tokens | $2 | — | https://platform.claude.com/docs/en/about-claude/pricing | | Claude API | claude-sonnet-5.5: per 1M output tokens | $10 | Thinking tokens are billed as output. | https://platform.claude.com/docs/en/about-claude/pricing | | Claude API | claude-fable-5.1: per 1M input tokens | $10 | — | https://platform.claude.com/docs/en/about-claude/pricing | | Claude API | claude-fable-5.1: per 1M output tokens | $50 | Thinking tokens are billed as output. | https://platform.claude.com/docs/en/about-claude/pricing | | Claude API | 5-minute cache write | 1.25x the input price | — | https://platform.claude.com/docs/en/about-claude/pricing | | Claude API | 1-hour cache write | 2x the input price | — | https://platform.claude.com/docs/en/about-claude/pricing | | Claude API | Cache read (hit) | 5% of input on claude-opus-5.5 and claude-sonnet-5.5; 2.5% on claude-fable-5.1 | Other models: 10% of input. | https://platform.claude.com/docs/en/about-claude/pricing | | Claude API | Batch API discount | 50% | On input and output; requests run asynchronously. | https://platform.claude.com/docs/en/about-claude/pricing | | Claude API | Context up to 1M tokens | Standard rates | A 900k-token request pays the same per-token rate as a 9k one. | https://platform.claude.com/docs/en/about-claude/pricing | | Claude API | US-only inference | 1.1x on all token prices | When inference_geo is set to us. | https://platform.claude.com/docs/en/about-claude/pricing | | Claude API | Fast mode on claude-opus-5.5: per 1M input tokens | $8 | Not available with the Batch API. | https://platform.claude.com/docs/en/about-claude/pricing | | Claude API | Fast mode on claude-opus-5.5: per 1M output tokens | $40 | — | https://platform.claude.com/docs/en/about-claude/pricing | | Claude API | Web search | $10 | Per 1,000 searches, plus token costs. | https://platform.claude.com/docs/en/about-claude/pricing | Each row links to the page it comes from, checked November 1, 2026. These figures can change, so check the source before you buy. Three things on that page are easy to miss. First, cache reads on the newest models cost less than the usual tenth of the input price: a twentieth on Opus and Sonnet, and a fortieth on Fable. Second, the full 1M-token context window is billed at the standard rate, so a very long prompt costs more only because it carries more tokens, not because each token costs more. Third, fast mode on Opus is a separate, higher price for faster output, and it cannot be combined with the Batch API. ## How is a Claude API bill calculated? Each request is the sum of up to five parts, each with its own rate: - **Input tokens:** everything you send that is not cached, including the system prompt, the conversation so far, and the tool definitions in the `tools` parameter. - **Output tokens:** everything the model writes back, and thinking counts here. The response field `usage.output_tokens_details.thinking_tokens` shows how many of the billed output tokens were reasoning. - **Cache writes:** the first time you store a prompt prefix, it costs 1.25 times the input rate for a five-minute cache, or twice the input rate for a one-hour cache. - **Cache reads:** later requests that reuse the stored prefix pay the much lower cache-read rate instead of the input rate. - **Server tools:** web search is charged per search, on top of the tokens its results add. Code execution adds no charge when used with the current web search or web fetch tools; otherwise it is billed by execution time. Then the modifiers stack. The Batch API halves input and output prices for requests that can wait. US-only inference through `inference_geo` multiplies every token category by 1.1. Caching multipliers apply on top of both. One detail matters for long agent sessions. On recent models, thinking blocks from earlier turns stay in the context and are billed as input on the next turn. A long chat with heavy reasoning grows its input side faster than you might expect, which is where caching pays back. Thinking on these models is adaptive, and the `effort` setting controls how deep it goes: lower effort means fewer thinking tokens billed as output, and the model may skip thinking on easy requests. ### A worked caching example Say an agent sends the same 100,000-token codebase summary ten times within five minutes on Sonnet. Without caching, you pay for 1,000,000 input tokens at the full input rate. With a five-minute cache, you pay for one write at 1.25 times the input rate and nine reads at a twentieth of it. In input-rate units that is 125,000 plus 45,000, or 170,000 instead of 1,000,000: about 83% less on that part of the bill. Output does not change, so your real saving depends on how much the model writes. [Prompt caching](https://5abeer.ai/en/docs/api/caching.md) shows how to turn it on. ## What do the same models cost through 5abeer? 5abeer sells the same Claude models through an Anthropic-compatible API, paid from your balance, below the official list price. The blocks below read our current price and the official price from the live catalog, so they stay correct when either one changes. Claude Opus 5.5 (`claude-opus-5.5`) per 1M tokens: input $1.20 (official $4), output $6 (official $20). Official price checked November 21, 2026. Claude Sonnet 5.5 (`claude-sonnet-5.5`) per 1M tokens: input $0.60 (official $2), output $3 (official $10). Official price checked November 21, 2026. Claude Fable 5.1 (`claude-fable-5.1`) per 1M tokens: input $3 (official $10), output $15 (official $50). Official price checked November 21, 2026. The Anthropic models we offer on the API today: | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | Claude Sonnet 5.5 | `claude-sonnet-5.5` | $0.60 | $3 | 1M | | Claude Opus 5.5 | `claude-opus-5.5` | $1.20 | $6 | 1M | | Claude Fable 5.1 | `claude-fable-5.1` | $3 | $15 | — | | Claude Fable 5 | `claude-fable-5` | $3 | $15 | 1M | | Claude Opus 4.6 | `claude-opus-4.6` | $1.50 | $7.50 | 1M | | Claude Opus 4.7 | `claude-opus-4.7` | $1.50 | $7.50 | 1M | A typical month for a small coding agent, with 20 million input tokens and 2 million output tokens on Sonnet: Example: 20,000,000 input tokens and 2,000,000 output tokens on Claude Sonnet 5.5 (`claude-sonnet-5.5`) cost $18.00 at our price against $60.00 at the official price (70% lower). Official price checked November 21, 2026. That example leaves caching out on purpose. If much of your input repeats, our cache rates are listed per model on [the Claude API page](https://5abeer.ai/en/api/claude), and [the caching guide](https://5abeer.ai/en/docs/api/caching.md) shows how to mark the prefix you want stored. ## Which Claude model should you pick? Price per token is only half the decision. A cheaper model that needs three attempts costs more than a stronger one that gets it right the first time. Anthropic's own advice is Sonnet for most production workloads, Opus for the most complex reasoning, and Haiku for simple tasks. For the three newest models, that works out like this: - [`claude-sonnet-5.5`](https://5abeer.ai/en/models/claude-sonnet-5.5) is the default for most work: coding agents, chat products, extraction and summaries. It is the cheapest of the three. - [`claude-opus-5.5`](https://5abeer.ai/en/models/claude-opus-5.5) is for the hardest reasoning, large refactors and long agent runs where a wrong step is expensive. At twice Sonnet's token price, use it where you have measured a quality gap. It is also the only one of the three with fast mode. Its model ID, effort settings and a first request are in [Claude Opus API](https://5abeer.ai/en/guides/claude-opus-api). - [`claude-fable-5.1`](https://5abeer.ai/en/models/claude-fable-5.1) is the top tier, at five times Sonnet's token price. Its cache reads cost only two and a half times Sonnet's, so the gap narrows for long, stable prompts that are read many times, such as a large reference corpus. A common pattern is to route by task: Sonnet for the bulk of traffic, with Opus or Fable called only for the steps that need them. Because every model is billed per token from the same balance, switching costs nothing beyond the tokens. ## How do you buy Claude API access through 5abeer? 1. **Create a key** in your dashboard. [API keys](https://5abeer.ai/en/docs/start/keys.md) explains the spend limit, expiry date and IP allow-list you can set on each key. 2. **Add balance.** API usage is deducted from your balance, token by token. 3. **Point your client** at our Anthropic-compatible base URL and use the model ids above. [The Claude API page](https://5abeer.ai/en/api/claude) lists the base URL and current prices. The batch discount above is Anthropic's. Our docs do not list a batch endpoint, so plan your costs with us on regular requests. To compare Claude with the OpenAI and Gemini models on the same balance, see [the API page](https://5abeer.ai/en/api). For the app plans, see [pricing](https://5abeer.ai/en/pricing). ## Questions ### Are thinking tokens billed as output? Yes. Thinking is part of the billed output tokens, and the usage field in each response shows how many were reasoning. On later turns, earlier thinking blocks stay in the context and are billed as input. ### Does a long prompt cost more per token? Not on these three models. Anthropic states that a 900k-token request is billed at the same per-token rate as a 9k-token request. A long prompt costs more only because it has more tokens. ### Is the Batch API worth it? If your requests can wait, it halves input and output prices at Anthropic, and it combines with caching. It does not work with fast mode. Our docs do not list a batch endpoint. ### How is web search charged? Each search has a fixed price, shown in the table above, plus the tokens its results add to the context. A search that fails with an error is not billed. ### How much do cache reads cost on the newest models? A twentieth of the input price on the newest Opus and Sonnet, and a fortieth on the newest Fable, against the usual tenth on other models. A cache write costs more than a normal input token, so caching pays off only when a prefix is read again. ### Is a subscription cheaper than the API? It depends on how much you use and where. Our Claude plans, Max (formerly Max 5x) and Ultra (formerly Max 20x), work inside the apps, while the API is paid separately from your balance. [Claude API vs subscription](https://5abeer.ai/en/guides/claude-api-vs-subscription) and [the cheapest way to run Claude Code](https://5abeer.ai/en/guides/claude-code-cheapest-way) compare them with worked numbers. ## Sources Checked on 2026-11-01: - [Pricing](https://platform.claude.com/docs/en/about-claude/pricing), Claude API docs - [Extended thinking](https://platform.claude.com/docs/en/build-with-claude/extended-thinking), Claude API docs > 5abeer is an independent service, not affiliated with Anthropic. --- URL: https://5abeer.ai/en/guides/claude-code-skills # Claude Code skills: how to write, use and share them > What a Claude Code skill is, how to write SKILL.md, where skills live, who runs them and how to share them, with setup on an API key. Updated: 2026-11-01 A Claude Code skill is a folder with a `SKILL.md` file: a short description and the instructions behind it. Claude loads a skill when your request matches its description, or you run it yourself with `/skill-name`. Use skills for checklists, conventions and multi-step procedures you would otherwise paste into the chat again and again. ## What is a Claude Code skill? A skill holds instructions that Claude Code reads only when they are needed. Anthropic suggests one when you keep pasting the same playbook into the chat, or when part of `CLAUDE.md` has grown into a procedure. `CLAUDE.md` loads in every session, while a skill's body loads only when used, so long reference material costs little until you need it. Custom commands are now part of skills: `.claude/commands/deploy.md` and `.claude/skills/deploy/SKILL.md` both create `/deploy`, and old command files keep working. Claude Code also ships bundled skills such as `/code-review`, `/debug` and `/loop`, which the `disableBundledSkills` setting turns off. ## How is a skill built? A skill is a folder. Its name becomes the command, and `SKILL.md` is the only required file: ```text my-skill/ ├── SKILL.md # instructions and frontmatter (required) ├── reference.md # detailed docs, read only when needed ├── examples.md # sample output └── scripts/ └── helper.py # a script Claude runs, not loads ``` `SKILL.md` starts with YAML frontmatter between two `---` lines, then the instructions in Markdown. `description` matters most, since Claude uses it to decide when the skill applies. The common fields: | Field | What it does | | --- | --- | | `name` | The command name in the `/` menu. Defaults to the folder name. | | `description` | What the skill does and when to use it. Put the main use case first. | | `argument-hint` | An autocomplete hint, such as `[issue-number]`. | | `disable-model-invocation` | `true` means only you can run the skill. | | `allowed-tools` | Tools Claude can use without asking during the turn that runs the skill. The grant ends with your next message. | | `paths` | Glob patterns. Claude loads the skill on its own only for matching files. | | `model` and `effort` | The model and effort level for the rest of the current turn. | The listing cuts `description` and `when_to_use` together at 1,536 characters, so lead with the words people actually type. Keep `SKILL.md` under 500 lines and move long reference material into supporting files it names. ## Where do skills live? Where you save a skill decides who can use it: | Location | Path | Who gets it | | --- | --- | --- | | Personal | `~/.claude/skills/skill-name/SKILL.md` | You, in all your projects | | Project | `.claude/skills/skill-name/SKILL.md` | Everyone in the repository, once committed | | Plugin | `skills/skill-name/SKILL.md` inside the plugin | Wherever the plugin is on, as `/plugin-name:skill-name` | | Enterprise | Managed settings | Everyone in your organization | Claude Code also loads nested folders such as `packages/web/.claude/skills/` when it works on files there. When names clash, enterprise wins over personal and personal over project; plugin skills carry the plugin's name as a prefix, so they never clash. ## Three skills to try Reference skills add knowledge, such as conventions or a style guide. Task skills give the steps for one action, such as a deploy, and you usually run them yourself. A reference skill for API conventions. With `paths`, Claude loads it on its own only under `src/api/`: ```text --- name: api-conventions description: REST API conventions for this project. Use when writing or reviewing endpoints. paths: "src/api/**" --- When writing API endpoints: - Use RESTful naming with plural nouns, such as /users and /orders - Return errors in the shared format from src/api/errors.ts - Validate the request body before any database call ``` A task skill that takes an argument. `disable-model-invocation: true` keeps Claude from running it on its own, and `allowed-tools` lets it read the issue without asking: ```text --- name: fix-issue description: Fix a GitHub issue by number argument-hint: "[issue-number]" disable-model-invocation: true allowed-tools: Bash(gh issue view *) --- Fix GitHub issue $ARGUMENTS following our coding standards. 1. Read the issue with gh issue view 2. Find the code it describes 3. Implement the fix 4. Write or update tests 5. Summarize the change for the commit message ``` You run it with the issue number: ```text /fix-issue 123 ``` `$ARGUMENTS` becomes everything typed after the name, and `$0` and `$1` pick out separate arguments. A personal skill that reads your diff before Claude sees the instructions: ```text --- description: Summarizes uncommitted changes and flags anything risky. Use when the user asks what changed, wants a commit message, or asks to review their diff. --- ## Current changes !`git diff HEAD` ## Instructions Summarize the changes above in two or three bullet points, then list any risks you notice such as missing error handling, hardcoded values, or tests that need updating. If the diff is empty, say there are no uncommitted changes. ``` Claude Code first runs `` !`git diff HEAD` `` and puts the command's output in its place, so the instructions arrive with the real diff. Ask "what did I change?" and Claude loads the skill, or run `/summarize-changes` yourself. ## Who runs a skill: you or Claude? By default both you and Claude can run a skill. Two frontmatter fields change that: | Frontmatter | You run it | Claude runs it | Good for | | --- | --- | --- | --- | | Neither field | Yes | Yes | Most skills | | `disable-model-invocation: true` | Yes | No | Actions with side effects, such as `/commit` or `/deploy` | | `user-invocable: false` | No | Yes | Background knowledge you never call by hand | With `disable-model-invocation: true`, the description stays out of Claude's context, so the skill costs nothing until you call it. `/skill-name` at the start of a message runs the skill; later in a message, it only lets Claude use it. ## Skill, CLAUDE.md, hook or subagent? Each tool solves a different problem: | Feature | When it loads | Use it for | | --- | --- | --- | | `CLAUDE.md` | Every session | Project conventions and rules that always apply | | Skill | The description always, the body when used | Reference material and repeatable tasks | | Hook | Outside the model, on an event | Steps that must run every time, such as ESLint after every edit | | Subagent | In its own context, returning a summary | Side tasks that would fill the main conversation | Anthropic's rules of thumb: if Claude gets a convention wrong twice, add it to `CLAUDE.md`. If you paste the same playbook a third time, make it a skill. If something must happen every time, write a hook: Claude may skip an instruction, but a hook runs on every matching event. ## Do skills add to the cost? A little, and you can measure it. Every skill's name and description sits in the context, within a budget of 1% of the model's context window. The full body loads only when the skill runs, then stays in the conversation. To check, open `/context` and look at the skills row, or run `/skill-doctor` (Claude Code v2.1.252 or later) to see what each skill costs and how often it gets used. On an API key, skill text is ordinary input, billed per token at the model's price. The current price of the default model: Claude Sonnet 5.5 (`claude-sonnet-5.5`) per 1M tokens: input $0.60 (official $2), output $3 (official $10). Official price checked November 21, 2026. ## How do you share skills with a team? - Commit `.claude/skills/` to the repository, and everyone who clones it gets the project skills. - Package skills in a plugin, which runs them as `/plugin-name:skill-name`. - Roll skills out to a whole organization through managed settings. > Workspace trust does not gate `allowed-tools`: a project skill's grants apply even in a folder you never trusted. Review `allowed-tools` in any repository you clone, and keep your own grants narrow, such as `Bash(git status *)` rather than all of `Bash`. ## When a skill doesn't work - **Claude doesn't load it:** make sure the description holds the words you use, or run `/skill-name` directly. - **`/skill-name` works but Claude never picks it:** the frontmatter YAML is probably malformed, and `claude --debug` shows the parse error. - **A skill with `paths` never activates:** the patterns are relative to Claude's working directory. - **It triggers too often:** make the description more specific, or set `disable-model-invocation: true`. - **Claude stops following it in a long session:** put the key instructions at the top and run the skill again after compaction. A rule that must always hold belongs in a hook. ## Claude Code skills through 5abeer 5abeer is an independent service, not affiliated with Anthropic. Its API follows the Anthropic Messages format, so Claude Code works with it as it ships, and both routes cost less than the official price. Skills are files on your machine, so they work the same on a 5abeer key; only the base URL and key change. **With an API key:** create a key for Claude models, then set the base URL and key in Claude Code's settings: | Format | Base URL | Key header | | --- | --- | --- | | OpenAI | `https://api.5abeer.ai/v1` | `Authorization: Bearer ` | | Anthropic | `https://api.5abeer.ai` | `x-api-key: ` | | Gemini | `https://api.5abeer.ai/v1beta` | `x-goog-api-key: ` | `~/.claude/settings.json` ```json { "env": { "ANTHROPIC_BASE_URL": "https://api.5abeer.ai", "ANTHROPIC_AUTH_TOKEN": "YOUR_5ABEER_API_KEY", "ANTHROPIC_MODEL": "claude-sonnet-5.5" } } ``` Skills synced from a claude.ai account load only when you sign in with that account, so on a key keep yours in `~/.claude/skills/` or `.claude/skills/`. Every request is deducted from your balance by model and token count, and you control each key with a spend limit, an expiry date and an IP allow-list. The full setup is in [Claude Code setup](https://5abeer.ai/en/docs/apps/claude-code.md), and prices are on [Claude API](https://5abeer.ai/en/api/claude). **With a plan:** the 5abeer AI app turns Claude Code on for your plan in one click, with no key and no files to edit. The plan runs with a 5-hour limit and a weekly limit, as in [Subscription limits](https://5abeer.ai/en/docs/subscriptions/limits.md). Plans are for the supported apps, and to use the models from your own code you need an API key. See [What each plan runs](https://5abeer.ai/en/docs/subscriptions/plan-apps.md#claude-code) and the [pricing page](https://5abeer.ai/en/pricing). ## FAQ ### What is the difference between commands and skills? Custom commands were merged into skills, and a file in `.claude/commands/` still creates the same `/name`. Skills add supporting files, control over who runs them and loading on their own, so write new ones as skills. ### Do skills work with an API key? Yes. Personal and project skills are files on your machine, so they work the same on a plan or a key. Only skills synced from a claude.ai account need that account's sign-in. ### Can a skill choose the model? Yes. The `model` field switches the model for the rest of the turn that runs the skill. On a key, each model bills at its own price: the default is [`claude-sonnet-5.5`](https://5abeer.ai/en/models/claude-sonnet-5.5), and [`claude-opus-5.5`](https://5abeer.ai/en/models/claude-opus-5.5) or [`claude-fable-5.1`](https://5abeer.ai/en/models/claude-fable-5.1) suit the hardest problems. The full list with prices is on the [models page](https://5abeer.ai/en/models). ### Can I use a Claude Code skill outside Claude Code? Partly. Skills follow the open Agent Skills standard, but claude.ai uploads and the Skills API accept only six frontmatter fields: `name`, `description`, `license`, `compatibility`, `metadata` and `allowed-tools`. Claude Code extras such as `!` command lines don't work there. To take your skills to OpenCode, see [OpenCode vs Claude Code](https://5abeer.ai/en/guides/opencode-vs-claude-code#move). ### Should I move my CLAUDE.md into skills? Move procedures, not rules. Facts Claude needs in every session stay in `CLAUDE.md`, which Anthropic suggests keeping under 200 lines, and long procedures become skills. How to keep that file short and useful is in the [CLAUDE.md guide](https://5abeer.ai/en/guides/claude-md-guide). ## Sources Checked on 1 November 2026. - [Claude Code docs: Extend Claude with skills](https://code.claude.com/docs/en/skills) - [Claude Code docs: Extend Claude Code](https://code.claude.com/docs/en/features-overview) ## Get started To compare what Claude Code costs on a plan and on a key, read [The cheapest way to use Claude Code](https://5abeer.ai/en/guides/claude-code-cheapest-way), or set up Claude Code now. --- URL: https://5abeer.ai/en/guides/claude-code-subagents # Claude Code subagents: how to set them up and what they cost > How Claude Code subagents work, how to write one in .claude/agents, which model each one runs on, and what they cost on an API key. Updated: 2026-11-01 Claude Code subagents are helpers that Claude hands a side task to. Each one works in its own context window with its own instructions, tools and permissions, and only its result returns to your main conversation. You define one in a Markdown file under `.claude/agents/`, and on an API key its requests are billed per token like any other. ## What is a Claude Code subagent? Anthropic describes subagents as "specialized AI assistants that handle specific types of tasks." Use one when a side task would flood your main conversation with search results, logs or file contents you won't need again. The subagent does that work in its own context and hands back a short result. Claude decides when to delegate from your request and from each subagent's `description` field, so the description matters more than the name. A phrase such as "use proactively" in it encourages Claude to delegate without being asked. ## Which subagents come built in? - **Explore:** a fast, read-only subagent for finding files and searching code. - **Plan:** a read-only research subagent that Claude uses in plan mode before it proposes a plan. - **General-purpose:** has every tool, for complex research, multi-step work and code changes. Explore and Plan start without your `CLAUDE.md` files, which keeps research fast and inexpensive. A subagent of your own named `Explore` replaces the built-in one, and `CLAUDE_CODE_DISABLE_EXPLORE_PLAN_AGENTS=1` removes Explore and Plan altogether. ## How do you create a subagent? A subagent is a Markdown file with YAML frontmatter. Only `name` and `description` are required, and the text below the frontmatter becomes its system prompt. Where you save the file sets who can use it: - **`.claude/agents/` in your project:** this project only. Commit the folder so your team shares it. - **`~/.claude/agents/`:** every project on your machine. - **The `--agents` flag:** a JSON definition for the current session only. This reviewer reads code and reports problems without changing anything: ```text --- name: code-reviewer description: Reviews code for bugs, security issues and readability. Use proactively after code changes. tools: Read, Grep, Glob model: inherit --- You are a code reviewer. Read the changed files, then list concrete problems with file and line, most serious first. Don't edit files. Keep the report short. ``` You can also ask Claude to write the file for you. Claude Code picks up changes in both folders within a few seconds. Restart it after you create an `agents` folder that didn't exist when the session started, after you add or edit a subagent in a directory added with `--add-dir` or `/add-dir`, or if the session started with `--disable-slash-commands`. ## How do you run a subagent? - **Ask for it:** "Use the code-reviewer subagent to check my last change." - **Mention it:** type `@` and pick the subagent, or type `@agent-code-reviewer`. - **Run a whole session as it:** `claude --agent code-reviewer` gives the main thread the subagent's prompt, tools and model. Set `"agent": "code-reviewer"` in `.claude/settings.json` to make that the project default. Subagents that Claude starts from the main conversation run in the background, so you can keep working. Their permission prompts appear in your main session with the subagent's name on them, and `/tasks` lists the running subagents and the model each one uses. ## Which frontmatter fields matter most? - **`tools` and `disallowedTools`:** an allow-list and a deny-list. Leave `tools` out and the subagent gets every tool. - **`model`:** an alias such as `sonnet` or `opus`, a full model id, or `inherit` for the main conversation's model. - **`maxTurns`:** a cap on the subagent's turns. - **`effort`:** how much the subagent thinks, from `low` to `max`. - **`isolation: worktree`:** runs the subagent in a temporary git worktree, so its edits don't touch your working copy. - **`permissionMode`, `skills`, `mcpServers`, `hooks` and `memory`:** its permission mode, preloaded skills, its own MCP servers, hooks that run only for it, and notes kept across sessions. ## Which model does a subagent use? Claude Code picks the model in this order: 1. A model alias that Claude names when it starts that subagent. 2. The `model` field in the subagent's file. 3. The `CLAUDE_CODE_SUBAGENT_MODEL` environment variable. 4. The main conversation's model. Set `CLAUDE_CODE_SUBAGENT_MODEL_FORCE=1` (version 2.1.257 or later) to make the variable win over every `model` field. Aliases move to newer models over time, so pin a subagent with a full model id. Through a gateway, pick an id the gateway serves, since it rejects models it isn't set up for. These are the newest Claude models for Claude Code, at our price per million tokens: | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | Claude Sonnet 5.5 | `claude-sonnet-5.5` | $0.60 | $3 | 1M | | Claude Opus 5.5 | `claude-opus-5.5` | $1.20 | $6 | 1M | | Claude Fable 5.1 | `claude-fable-5.1` | $3 | $15 | — | Every model that runs in Claude Code is on the [Claude Code setup page](https://5abeer.ai/en/docs/apps/claude-code.md#models). ## How to run subagents on a 5abeer key Subagents use the main session's base URL and key, so once Claude Code runs on a 5abeer key, every subagent does too: ### 1. Top up your balance Pay with one of the [payment methods](https://5abeer.ai/en/docs/start/payment.md). Every subagent request is deducted from this balance. ### 2. Create a key for Claude models Create a key for the Anthropic provider, as in [Create a key](https://5abeer.ai/en/docs/start/keys.md#create). Name it `claude-code` so its usage is easy to find. ### 3. Add the settings Put these settings in `~/.claude/settings.json`, and replace `YOUR_5ABEER_API_KEY` with your key: `~/.claude/settings.json` ```json { "env": { "ANTHROPIC_BASE_URL": "https://api.5abeer.ai", "ANTHROPIC_AUTH_TOKEN": "YOUR_5ABEER_API_KEY", "ANTHROPIC_MODEL": "claude-sonnet-5.5" } } ``` ### 4. Check a subagent Start `claude` in your project and ask "use the Explore subagent to find where we parse dates". Run `/tasks` while it works to see the subagent and its model. With a 5abeer plan that includes Claude Code, the 5abeer AI app sets Claude Code up with no key, as in [Claude Code setup](https://5abeer.ai/en/docs/apps/claude-code.md#easy), and subagents run within the plan's limits. ## What do subagents cost? Moving work into a subagent doesn't remove its cost. Anthropic's docs say that "each subagent spends tokens of its own while it runs": it starts fresh, reads the files it needs and sends its own turns. The saving is in the main conversation, which carries only the short result into later requests instead of everything the subagent read. For example, a review subagent that reads 400,000 tokens over its turns and writes 20,000, on the default model: Example: 400,000 input tokens and 20,000 output tokens on Claude Sonnet 5.5 (`claude-sonnet-5.5`) cost $0.30 at our price against $1.00 at the official price (70% lower). Official price checked November 21, 2026. The same job on the newest Opus, [`claude-opus-5.5`](https://5abeer.ai/en/models/claude-opus-5.5): Example: 400,000 input tokens and 20,000 output tokens on Claude Opus 5.5 (`claude-opus-5.5`) cost $0.60 at our price against $2.00 at the official price (70% lower). Official price checked November 21, 2026. Five reviewers in parallel cost about five times as much. Give Claude Code its own key with a spend limit, as in [Control every key](https://5abeer.ai/en/docs/start/keys.md#controls), and check it in [Track your usage](https://5abeer.ai/en/docs/start/pricing.md#usage). Our price next to the official one is on the [Claude API page](https://5abeer.ai/en/api/claude), and [The cheapest way to use Claude Code](https://5abeer.ai/en/guides/claude-code-cheapest-way) compares a key with a plan. ## How to keep subagents cheap - **Give each one a narrow job.** "Find where we parse dates" reads far fewer files than "review the whole repository". - **Keep descriptions short.** Every description loads into the main context, and Claude Code warns at startup when yours pass 15,000 tokens together. - **Limit the tools and turns.** A reviewer with `Read, Grep, Glob` and a `maxTurns` cap can't start long command runs. - **Ask for a short result.** It joins the main conversation and is sent again with every later request. - **Use a strong model only where it pays.** Set `model` per subagent instead of running every one on Opus. - **Fork when the task needs your context.** `/subtask` forks the current conversation, and the docs say "a fork costs less than a fresh subagent for tasks that need the same context", because it reuses the prompt cache. ## When should you skip a subagent? Anthropic's docs suggest staying in the main conversation when the task needs frequent back-and-forth, when planning, building and testing share a lot of context, for a quick targeted change, or when latency matters, since a fresh subagent needs time to gather context. For reusable prompts that should run in the main conversation, a skill fits better. ## Common errors and fixes Subagents use the session's key, so they hit the same errors as the main conversation: - [`INVALID_API_KEY`](https://5abeer.ai/en/docs/help/errors.md#INVALID_API_KEY): the key in `~/.claude/settings.json` is wrong or was deleted. - [`MODEL_PLATFORM_NOT_ALLOWED`](https://5abeer.ai/en/docs/help/errors.md#MODEL_PLATFORM_NOT_ALLOWED): the key belongs to a provider other than Claude. - [`MODEL_UNAVAILABLE`](https://5abeer.ai/en/docs/help/errors.md#MODEL_UNAVAILABLE): the model in a subagent's `model` field isn't available right now. Retry, or set `inherit`. - [`INSUFFICIENT_BALANCE`](https://5abeer.ai/en/docs/help/errors.md#INSUFFICIENT_BALANCE): your balance doesn't cover the request. Top up, then try again. - [`API_KEY_QUOTA_EXHAUSTED`](https://5abeer.ai/en/docs/help/errors.md#API_KEY_QUOTA_EXHAUSTED): the key reached its spend limit, often because several subagents ran at once. Every code is explained in [Errors and fixes](https://5abeer.ai/en/docs/help/errors.md). ## FAQ ### Do subagents use more tokens? Usually yes, in total, since each one builds its own context from scratch. In return, your main conversation stays small, and a short result costs less to carry than the raw output it replaces. ### Can a subagent start its own subagents? Yes, up to three layers below the main conversation by default. To stop it, leave `Agent` out of its `tools` or add it to `disallowedTools`. ### How many subagents can run at once? Up to 20 by default. Past that, Claude Code reports `Concurrent subagent limit reached`. Each one sends its own requests, so parallel runs reach a key's spend limit sooner. ### Why doesn't /agents open a setup screen? Since version 2.1.198 it points you to the subagent folders instead. Ask Claude to create the subagent, or edit the file in `.claude/agents/` or `~/.claude/agents/`. ### Do subagents work on a 5abeer plan? Yes, if your plan includes Claude Code. Subagent requests count toward the plan's limits like the rest of the session. See [What each plan runs](https://5abeer.ai/en/docs/subscriptions/plan-apps.md#claude-code), the [pricing page](https://5abeer.ai/en/pricing) and [Claude API vs Claude Pro/Max](https://5abeer.ai/en/guides/claude-api-vs-subscription). ### How do I pay for the API? You top up your 5abeer balance with any method in [Payment methods](https://5abeer.ai/en/docs/start/payment.md#methods), and Claude Code's API calls draw from that balance. ### Is 5abeer part of Anthropic? No. 5abeer is an independent service, not affiliated with Anthropic. ## Sources Checked on 2026-11-01: - Claude Code docs: [Create custom subagents](https://code.claude.com/docs/en/sub-agents) - Claude Code docs: [Model configuration](https://code.claude.com/docs/en/model-config) - Claude Code docs: [Other LLM gateways](https://code.claude.com/docs/en/llm-gateway) ## Get started Get the 5abeer AI app to run Claude Code and its subagents on your plan, or create a key for Claude models and follow the steps above. --- URL: https://5abeer.ai/en/guides/telegram-bot-ai-api # How to build a Telegram AI bot with Claude, GPT or Gemini > Create a Telegram bot in BotFather and answer messages with Claude, GPT or Gemini through an OpenAI-compatible API, with tested Python code and costs. Updated: 2026-11-01 Create the bot in @BotFather to get its token, then run a short Python script that sends each message to a chat model and posts the answer back. With a 5abeer key, the OpenAI SDK reaches Claude, GPT and Gemini models below official prices, and you pay only for the tokens each answer uses. ## What do you need to build a Telegram AI bot? - A Telegram account, to create the bot in @BotFather and get its token. - A 5abeer API key for the provider the bot will use. The code below uses the default model, [`claude-sonnet-5.5`](https://5abeer.ai/en/models/claude-sonnet-5.5), so it needs a Claude key. The steps are in [Create a key](https://5abeer.ai/en/docs/start/keys.md#create), and the basics are in [How to get an API key for Claude, GPT and Gemini](https://5abeer.ai/en/guides/ai-api-key-guide). - Python 3.10 or later, with two packages: the official `openai` SDK and `requests`. - A computer or server that stays on while the bot runs. ## How do you get a bot token from BotFather? ### 1. Start a new bot Open a chat with @BotFather in Telegram and send `/newbot`. ### 2. Pick a name and a username The name is what people see in the chat. The username is the bot's address, as in `t.me/username`. It must be 5 to 32 characters long, use only Latin letters, digits and underscores, and end in `bot`, for example `support_helper_bot`. ### 3. Copy the token BotFather replies with the bot's token. Telegram's advice is direct: "Keep your token secure and store it safely, it can be used by anyone to control your bot." If the token leaks, send `/token` to BotFather to generate a new one. ## How do you connect the bot to Claude, GPT or Gemini? 5abeer speaks the OpenAI Chat Completions format, so the bot uses the official OpenAI SDK with two changes: the base URL and the key. The same code reaches Claude, GPT and Gemini models. Only the model id and the key's provider change. Moving from another OpenAI-compatible service is the same switch, as in [An OpenRouter alternative below official prices](https://5abeer.ai/en/guides/openrouter-alternative). | Format | Base URL | Key header | | --- | --- | --- | | OpenAI | `https://api.5abeer.ai/v1` | `Authorization: Bearer ` | | Anthropic | `https://api.5abeer.ai` | `x-api-key: ` | | Gemini | `https://api.5abeer.ai/v1beta` | `x-goog-api-key: ` | Before running the bot, send one test request with your key. If it answers, the key and the model are ready. The format is explained in [Chat Completions](https://5abeer.ai/en/docs/api/chat-completions.md#quick). ```bash curl --request POST "https://api.5abeer.ai/v1/chat/completions" \ --header "Authorization: Bearer $KHABEER_API_KEY" \ --header "Content-Type: application/json" \ --data '{"model":"claude-sonnet-5.5","messages":[{"role":"user","content":"Write a product idea in one sentence."}]}' ``` ```python import os import requests response = requests.post( "https://api.5abeer.ai/v1/chat/completions", headers={ "Authorization": f"Bearer {os.environ['KHABEER_API_KEY']}", "Content-Type": "application/json", }, json={ "model": "claude-sonnet-5.5", "messages": [ { "role": "user", "content": "Write a product idea in one sentence." } ] }, stream=False, timeout=60, ) response.raise_for_status() print(response.json()) ``` ## What does the full bot look like? The whole bot is one Python file. It uses long polling, so it needs no domain, certificate or open port. It answers only the chats you allow. ```python import os import time import requests from openai import OpenAI TELEGRAM = "https://api.telegram.org/bot" + os.environ["TELEGRAM_BOT_TOKEN"] client = OpenAI(api_key=os.environ["KHABEER_API_KEY"], base_url="https://api.5abeer.ai/v1") MODEL = os.environ.get("BOT_MODEL", "claude-sonnet-5.5") # Chat ids that may use the bot, comma-separated. "*" opens it to everyone. ALLOWED = {x.strip() for x in os.environ.get("ALLOWED_CHAT_IDS", "").split(",") if x.strip()} SYSTEM = "You are a helpful assistant. Answer briefly, in plain text, in the user's language." GREETING = "Hi! Send me a question" SORRY = "Sorry, I could not answer right now. Try again in a minute" MAX_HISTORY = 10 # messages kept per chat: the last 5 questions and answers history = {} def telegram(method, **params): r = requests.post(f"{TELEGRAM}/{method}", json=params, timeout=60) r.raise_for_status() return r.json()["result"] def send(chat_id, text): # Telegram accepts up to 4096 characters per message, so long answers go in parts. for i in range(0, len(text), 4000): telegram("sendMessage", chat_id=chat_id, text=text[i : i + 4000]) def handle(message): chat_id = message["chat"]["id"] text = message.get("text") if not text: return if "*" not in ALLOWED and str(chat_id) not in ALLOWED: print(f"ignored chat {chat_id}: add it to ALLOWED_CHAT_IDS") return if text.startswith(("/start", "/reset")): history.pop(chat_id, None) send(chat_id, GREETING) return telegram("sendChatAction", chat_id=chat_id, action="typing") past = history.get(chat_id, []) question = {"role": "user", "content": text} try: reply = client.chat.completions.create( model=MODEL, messages=[{"role": "system", "content": SYSTEM}, *past, question], max_tokens=1000, ) answer = (reply.choices[0].message.content or "").strip() except Exception as error: print(f"model error: {error}") answer = "" if not answer: send(chat_id, SORRY) return history[chat_id] = (past + [question, {"role": "assistant", "content": answer}])[-MAX_HISTORY:] send(chat_id, answer) def main(): offset = 0 while True: try: updates = telegram("getUpdates", offset=offset, timeout=50, allowed_updates=["message"]) except requests.RequestException as error: print(f"telegram error: {error}") time.sleep(5) continue for update in updates: offset = update["update_id"] + 1 if "message" in update: try: handle(update["message"]) except Exception as error: print(f"update {update['update_id']} failed: {error}") if __name__ == "__main__": main() ``` We tested this file on 2026-11-01 with Python 3.11 and the `openai` SDK 2.32 and 3.42, against local stand-ins for Telegram and the API, using a fake token and key. ## How do you run it and keep strangers out? Anyone who finds the bot's username can message it, and every answer is paid from your balance. That is why the bot answers only the chat ids listed in `ALLOWED_CHAT_IDS`, and nobody when the list is empty. ```bash pip install openai requests export TELEGRAM_BOT_TOKEN="YOUR_BOT_TOKEN" export KHABEER_API_KEY="YOUR_5ABEER_API_KEY" python3 bot.py ``` ```powershell pip install openai requests $env:TELEGRAM_BOT_TOKEN="YOUR_BOT_TOKEN" $env:KHABEER_API_KEY="YOUR_5ABEER_API_KEY" python bot.py ``` 1. Start the bot and send it any message from your Telegram account. 2. The terminal prints `ignored chat 123456789: add it to ALLOWED_CHAT_IDS` with your real chat id. 3. Stop the bot, set `ALLOWED_CHAT_IDS` to that id the same way you set the key, and start it again. Separate several ids with commas. The value `*` opens the bot to everyone, so set a spend limit on the key first. ## How does the code work? - Long polling: `getUpdates` waits up to 50 seconds for new messages. The `offset` tells Telegram which updates are already handled, so none is answered twice. - Typing status: Telegram shows it for up to 5 seconds, or until the reply arrives. - Memory: the bot keeps the last 10 messages of each chat and sends them with every question, so follow-up questions work. `/start` or `/reset` clears that chat's memory, and so does a restart. - Long answers: Telegram accepts 4,096 characters per message, so the bot sends longer answers in parts of 4,000. - Plain text: the bot sets no `parse_mode`, and the system prompt asks for plain text, so answers rarely show stray Markdown symbols. - Errors: the SDK retries rate limits, timeouts and server errors twice on its own. If a request still fails, the bot logs the error and sends a short apology instead of stopping. - `max_tokens=1000` caps the answer length for Claude and Gemini models. GPT models ignore it, as listed in [Parameters](https://5abeer.ai/en/docs/api/chat-completions.md#params). ## How do you keep the bot running? Long polling needs only outgoing connections, so any machine that stays on will do: a small cloud server, a home server or a container. Run it under a service manager such as systemd, or give the container a restart policy, so the bot comes back after a crash or a reboot. Run one copy per token. Two copies polling the same bot compete for the same messages. If the bot is down for a while, Telegram keeps undelivered updates for up to 24 hours and the bot catches up when it returns. The other way to receive messages is a webhook: Telegram sends each update to your HTTPS address. Set it with `setWebhook`, on port 443, 80, 88 or 8443. Add a `secret_token` and check the `X-Telegram-Bot-Api-Secret-Token` header on every request. While a webhook is set, `getUpdates` doesn't work, and `deleteWebhook` switches back to polling. ## What limits does Telegram set? Telegram Bot API, version 10.3, checked on 2026-11-01: | Limit | Value | | --- | --- | | Text per message | 1 to 4,096 characters | | Messages to one chat | Avoid more than 1 per second; bursts end in 429 errors | | Messages to one group | No more than 20 per minute | | Messages to many users | About 30 per second, unless you pay for faster broadcasts | | Files the bot downloads | Up to 20 MB | | Files the bot sends | Up to 50 MB | | Undelivered updates | Kept for up to 24 hours | The group limit matters most for an AI bot. A long answer sent in three parts counts as three messages. ## How much does a Telegram AI bot cost? Telegram itself doesn't charge for normal bot messages. Its FAQ says that "by default, bots are able to message their users at no cost". It charges Telegram Stars only for paid broadcasts above the normal rate. So the costs are the server and the model's tokens. Each question sends the system prompt, the chat's memory and the new message. In this example, a bot answers 3,000 questions a month, at about 1,000 tokens in and 250 tokens out each: Example: 3,000,000 input tokens and 750,000 output tokens on Claude Sonnet 5.5 (`claude-sonnet-5.5`) cost $4.05 at our price against $13.50 at the official price (70% lower). Official price checked November 21, 2026. The price per token for the default model: Claude Sonnet 5.5 (`claude-sonnet-5.5`) per 1M tokens: input $0.60 (official $2), output $3 (official $10). Official price checked November 21, 2026. To spend less, pick a smaller model from the [models list](https://5abeer.ai/en/models) and use a key for its provider, lower `MAX_HISTORY` or lower `max_tokens`. You can compare providers on the [API page](https://5abeer.ai/en/api) and the [Claude API page](https://5abeer.ai/en/api/claude), and plan prices on the [pricing page](https://5abeer.ai/en/pricing). Give the bot its own key with a spend limit, as in [Key controls](https://5abeer.ai/en/docs/start/keys.md#controls). When the key reaches the limit, requests fail with [`API_KEY_QUOTA_EXHAUSTED`](https://5abeer.ai/en/docs/help/errors.md#API_KEY_QUOTA_EXHAUSTED) and the bot sends its apology, so it stops spending at the limit you set. For a full monthly estimate, see [how much an AI API costs per month](https://5abeer.ai/en/guides/ai-api-monthly-cost). ## How do you keep the token and key safe? - Keep both in environment variables. Never write them into the code or commit them to a repository. - Use a separate key for the bot, with a spend limit and, if the server has a fixed address, an IP allow-list. The details are in [Key controls](https://5abeer.ai/en/docs/start/keys.md#controls). - Keep `ALLOWED_CHAT_IDS` short unless the bot is meant to be public. - If the bot token leaks, generate a new one with `/token` in BotFather. If the API key leaks, disable it and create a new one. ## FAQ ### Does Telegram charge for bot messages? Not for normal messages. Telegram charges Stars only for paid broadcasts above the normal rate, so you pay for the model's tokens and the server. ### Can the bot use GPT or Gemini instead of Claude? Yes. Set `BOT_MODEL` to a model id from the [models list](https://5abeer.ai/en/models) and use a key for that model's provider. Each key covers one provider, so a GPT model with a Claude key returns [`MODEL_PLATFORM_NOT_ALLOWED`](https://5abeer.ai/en/docs/help/errors.md#MODEL_PLATFORM_NOT_ALLOWED). ### Does the bot remember the conversation? It remembers the last 10 messages of each chat while it runs. `/reset` clears that, and so does a restart. To keep memory across restarts, save `history` in a file or a database. ### Does it work in groups? Yes, once the group's chat id is in `ALLOWED_CHAT_IDS`. By default, privacy mode is on: in a group the bot sees commands meant for it and replies to its own messages, not every message. A bot added as an admin sees all messages. To change privacy mode, use `/setprivacy` in BotFather, then remove the bot from the group and add it again. In a group, all members share one memory. ### What happens when my balance runs out? Requests fail with [`INSUFFICIENT_BALANCE`](https://5abeer.ai/en/docs/help/errors.md#INSUFFICIENT_BALANCE), and the bot answers with its apology until you top up. It keeps running, so it answers again once the balance is back. ### How do I pay for the API? You top up your 5abeer balance with any method in [Payment methods](https://5abeer.ai/en/docs/start/payment.md#methods), and the bot's API calls draw from that balance. ### Is 5abeer part of Telegram, OpenAI, Anthropic or Google? No. 5abeer is an independent service, not affiliated with any of them. ## Sources Checked on 2026-11-01: - [Telegram Bot API](https://core.telegram.org/bots/api) (version 10.3): message length, `getUpdates`, `setWebhook`, file sizes - [Telegram Bots FAQ](https://core.telegram.org/bots/faq): rate limits and broadcast cost - [Telegram Bot Features](https://core.telegram.org/bots/features): BotFather, usernames, tokens and privacy mode > 5abeer is an independent service, not affiliated with Telegram, OpenAI, Anthropic or Google. ## Get started Create a Claude key, put it in `KHABEER_API_KEY` and start the bot. --- URL: https://5abeer.ai/en/guides/what-is-a-token # What is a token in AI? Tokens, words and API cost explained > What a token is, how many words it holds in English and Arabic, and how tokens set the cost of every AI API request, with a worked example. Updated: 2026-11-01 A token is a piece of text that an AI model reads and writes: a word, part of a word, a number or a punctuation mark. AI APIs count the tokens you send and the tokens the model writes, and bill per million. In English a token is about four characters; Arabic text needs more tokens per word. ## What is a token? A model never sees letters or whole sentences. Before your text reaches it, a tokenizer cuts the text into pieces from a fixed vocabulary and gives each piece a number. The model works on those numbers and writes its answer back one token at a time. OpenAI's docs put it this way: models "process text in chunks called tokens", and tokens "represent commonly occurring sequences of characters". Anthropic's glossary calls tokens the smallest units of a language model, which can be words, parts of words, characters or bytes. A few patterns hold across tokenizers: - **Common words are often one token, rare words split.** In our test with OpenAI's open tokenizer, `token` is one token and `tokenization` is two: `token` and `ization`. - **Spaces, punctuation and digits count too.** Long numbers, links and code often split into many small tokens. - **Each provider has its own tokenizer.** The same text gives a different count on Claude, GPT and Gemini models. ## How many words is a token? Providers publish rules of thumb for English text: | Provider | Rule of thumb for English | | --- | --- | | OpenAI | About 4 characters, or 0.75 words, per token | | Google (Gemini) | About 4 characters per token; 100 tokens is about 60 to 80 words | | Anthropic (Claude) | About 3.5 characters per token on earlier models; newer models produce about 30% more tokens for the same text | So 1,000 English words come to about 1,330 tokens by OpenAI's rule, or between 1,250 and 1,670 by Google's. These are averages for plain prose; code, links and other languages change the ratio, and only the count the API returns is exact. ## Does Arabic use more tokens than English? Usually, yes. A tokenizer learns its pieces from training text, and when most of that text is English, English words get whole pieces while words in other languages are split into more parts. A 2023 study by Petrov and colleagues found that the same text translated into different languages can differ in token count by up to 15 times. We ran one English sentence and its Arabic translation through the same tokenizer (OpenAI's `o200k_base`, on 2026-11-01): | Sentence | Words | Characters | Tokens | | --- | --- | --- | --- | | English: a support bot that answers order questions | 26 | 162 | 31 | | The same sentence in Arabic | 22 | 122 | 37 | The Arabic sentence is shorter in words and characters, yet it needs about 19% more tokens: about 1.7 tokens per word against 1.2 in English. That is one sentence on one tokenizer, so treat it as an illustration, not a rate. To know your own ratio, send a sample of your real text and read the count in the reply. ## How do tokens set the price? APIs price models per million tokens, with one price for input (what you send) and another for output (what the model writes). Output usually costs several times more than input. The cost of a request is: ```text cost = input tokens ÷ 1,000,000 × input price + output tokens ÷ 1,000,000 × output price ``` The default model's price per million tokens, ours next to the official one: Claude Sonnet 5.5 (`claude-sonnet-5.5`) per 1M tokens: input $0.60 (official $2), output $3 (official $10). Official price checked November 21, 2026. As a worked example, take a support bot that answers 1,000 questions a month. Each request sends about 1,500 tokens (the store's policy, the question and some history) and gets back about 300. That is 1.5 million input tokens and 300,000 output tokens a month: Example: 1,500,000 input tokens and 300,000 output tokens on Claude Sonnet 5.5 (`claude-sonnet-5.5`) cost $1.80 at our price against $6.00 at the official price (70% lower). Official price checked November 21, 2026. Output is a fifth of the input here, yet a large share of the bill, because each output token costs more. And since the policy text goes out with every request, shortening it cuts the input cost of all 1,000 requests. ## What counts as tokens in a request? The question you type is often the smallest part of what you pay for: - **Conversation history.** Chat formats resend the earlier messages with each new turn, so a long conversation costs more on every reply. - **System prompt and tool definitions.** Instructions and tool schemas go with every request, billed as input each time. - **Images and audio.** These become tokens too. In Google's Gemini docs, an image up to 384 pixels on each side counts as 258 tokens, and audio 32 tokens per second. - **Reasoning tokens.** Reasoning models think before they answer. OpenAI says that while reasoning tokens are not visible through the API, they "still occupy space in the model's context window and are billed as output tokens". Anthropic reports them for Claude in `usage.output_tokens_details.thinking_tokens`. - **Cached input.** When many requests start with the same long text, the provider can read it from a cache at a lower price; see [Prompt caching](https://5abeer.ai/en/docs/api/caching.md). ## What is a context window? The context window is the most tokens a model can handle in one request. Anthropic describes it as the model's working memory. OpenAI's rule is that the prompt and the generated output together must fit within the model's maximum context length. A larger window fits longer documents and conversations, but every token you put in it is billed. On 5abeer, a request longer than the model's window answers `400` with `CONTEXT_LIMIT_EXCEEDED`, and [Context length](https://5abeer.ai/en/docs/api/limits.md#context) lists the window of each model. ## How do you count tokens? Every reply reports the tokens it was billed for. The field names depend on the format: | Format | Input | Output | | --- | --- | --- | | OpenAI Chat Completions | `usage.prompt_tokens` | `usage.completion_tokens` | | OpenAI Responses | `usage.input_tokens` | `usage.output_tokens` | | Anthropic Messages | `usage.input_tokens` | `usage.output_tokens` | | Gemini | `usageMetadata.promptTokenCount` | `usageMetadata.candidatesTokenCount` | To count before you send, the Messages format has a [count tokens request](https://5abeer.ai/en/docs/api/messages.md#count-tokens) that returns `input_tokens` without calling the model. Anthropic calls that count an estimate, and when counting isn't available for a model you get `404`. After you send, your dashboard shows usage and cost per key and per model, as in [Track your usage](https://5abeer.ai/en/docs/start/pricing.md#usage). ## How to use fewer tokens - **Keep the system prompt short and stable.** You pay for it on every request. - **Send only what the model needs.** The relevant part of a document, not the whole file. - **Trim long conversations.** Drop or summarize older turns. - **Put fixed text first.** A stable start lets the cache work. With Claude models, mark it with `cache_control` in [Messages](https://5abeer.ai/en/docs/api/messages.md). - **Cap the answer.** Set `max_tokens` in Messages, `max_completion_tokens` in Chat Completions or `max_output_tokens` in Responses. On 5abeer, Gemini models aren't served on Responses, and GPT models ignore these caps, so with GPT also ask for a short answer in the prompt. - **Match the model to the task.** A smaller model is often enough for sorting, tagging or short replies. ## How 5abeer bills tokens A 5abeer API key pays per token from your balance, with input and output priced apart. Every model priced per token costs less than its official price. Our prices follow the published official prices, and every price shows the date it was last checked. Compare each model on the [API page](https://5abeer.ai/en/api) and the [models page](https://5abeer.ai/en/models), or see the Claude models on [Claude API](https://5abeer.ai/en/api/claude). Each key can have a spend limit, an expiry date and an IP allow-list, so a script stuck in a loop can't spend more than you set. The steps are in [Control every key](https://5abeer.ai/en/docs/start/keys.md#controls). Subscription plans work differently: a fixed price with a 5-hour limit and a weekly limit, shown on the [pricing page](https://5abeer.ai/en/pricing). Plans are for the supported apps; to use the models from your own code, create an API key. With [Continue from the wallet](https://5abeer.ai/en/docs/subscriptions/limits.md#wallet) on, requests after a plan limit are charged to your balance until the limit resets. Compare the two in [AI subscription vs API](https://5abeer.ai/en/guides/ai-subscription-vs-api) and, for Claude, in [Claude API vs Claude Pro/Max](https://5abeer.ai/en/guides/claude-api-vs-subscription). New to keys? Start with [How to get an API key](https://5abeer.ai/en/guides/ai-api-key-guide). ## FAQ ### Is a token the same as a word? No. In English a token is about three quarters of a word on average, so 100 tokens hold about 60 to 80 words. Short common words are often one token, and long or rare words split into several. ### Are output tokens billed too? Yes, and usually at a higher price than input. A long answer adds more to the bill than a long question of the same length. Each model's input and output prices are on the [API page](https://5abeer.ai/en/api). ### Are reasoning tokens billed? Yes. OpenAI and Anthropic both bill a model's reasoning as output tokens, even when you don't see the reasoning text. ### Do all models count the same text the same way? No. Each provider uses its own tokenizer, and a newer model can count the same text differently from an older one. To compare, send the same sample to each model. ### How many tokens is one page? A page of about 500 English words comes to roughly 600 to 850 tokens by the rules above. Arabic text, code and tables usually need more. ### Do subscription plans count tokens? Plans have a fixed price with a 5-hour limit and a weekly limit, rather than a per-token bill. An API key is billed per token from your balance. Both are on the [pricing page](https://5abeer.ai/en/pricing). ### Where do I see how many tokens I used? In the usage numbers of each reply, and in your dashboard, per key and per model. ## Sources Checked on 2026-11-01: - Anthropic: [Glossary](https://platform.claude.com/docs/en/about-claude/glossary) - Anthropic: [Token counting](https://platform.claude.com/docs/en/build-with-claude/token-counting) - Anthropic: [Extended thinking](https://platform.claude.com/docs/en/build-with-claude/extended-thinking) - OpenAI: [Key concepts](https://developers.openai.com/api/docs/concepts) - OpenAI: [Reasoning models](https://developers.openai.com/api/docs/guides/reasoning) - Google AI for Developers: [Understand and count tokens](https://aistudio.google.com/docs/tokens) - Petrov et al., 2023: [Language Model Tokenizers Introduce Unfairness Between Languages](https://arxiv.org/abs/2305.15425) - Our own count of the two sentences above with OpenAI's open `tiktoken` library and the `o200k_base` tokenizer > 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. ## Get started Compare per-model prices on the [API page](https://5abeer.ai/en/api), or create a key and see the token counts in your first reply. --- URL: https://5abeer.ai/en/guides/which-claude-model # Which Claude model to use: Sonnet, Opus or Fable? > Sonnet for everyday work, Opus for long agentic coding, Fable for the hardest jobs. How the three Claude models compare on speed, cost and fit. Updated: 2026-11-01 Use Sonnet for most work: it is 5abeer's default model, the fastest of the three and the lowest priced. Move to Opus for long, demanding agentic coding and large refactors. Keep Fable for the hardest reasoning and for agent sessions that run for hours, where the extra cost pays off. ## Which Claude model fits which task? Anthropic's current Claude line has three main models that trade speed for capability: Sonnet, Opus and Fable. Anthropic also makes a smaller, faster family, Haiku, covered in the questions below. This table uses the wording of Anthropic's own model guide: | Your task | Model | Why | | --- | --- | --- | | Everyday coding, writing, data analysis, agents that call tools | Sonnet | "The best combination of speed and intelligence", and the fastest of the three | | Multihour coding agents, large refactors, complex systems work, computer use | Opus | Built "for long-running agentic coding and knowledge work" | | Agent sessions that run for hours, multistep deep research, a finished report, spreadsheet or deck | Fable | Anthropic's "most capable model open to all customers" | The rule that follows from it is simple: start with Sonnet, and move up only when a task needs more than Sonnet gives. ## Sonnet: the everyday model Anthropic recommends Sonnet for "speed and capability for everyday coding, agent, and enterprise workloads": code generation, data analysis, content creation, visual understanding and agentic tool use. It answers fastest and costs the least per token of the three. The current Sonnet is [`claude-sonnet-5.5`](https://5abeer.ai/en/models/claude-sonnet-5.5), our default model. Its price per million tokens, ours next to the official one: Claude Sonnet 5.5 (`claude-sonnet-5.5`) per 1M tokens: input $0.60 (official $2), output $3 (official $10). Official price checked November 21, 2026. ## Opus: for long, demanding work Anthropic positions Opus for "complex agentic coding and enterprise work": multihour autonomous coding agents, large-scale refactoring, complex systems engineering, vision-heavy workflows and computer use. It is slower than Sonnet and costs more per token, so it earns its price on long or hard tasks, not on quick questions. Anthropic's own advice is to start with Opus when you are unsure which model to use. If cost matters to you, starting with Sonnet and moving to Opus for the tasks that need it usually spends less, because most everyday requests don't need the larger model. The current Opus is [`claude-opus-5.5`](https://5abeer.ai/en/models/claude-opus-5.5). How to call it from your code is in [Claude Opus API](https://5abeer.ai/en/guides/claude-opus-api): Claude Opus 5.5 (`claude-opus-5.5`) per 1M tokens: input $1.20 (official $4), output $6 (official $20). Official price checked November 21, 2026. ## Fable: for the hardest jobs Fable is the most capable model Anthropic offers to everyone. Anthropic suggests it for "demanding reasoning and long-horizon agentic work": agent sessions that run for hours, multistep deep research, and analysis carried through to a finished document, spreadsheet or deck. It is the slowest and the highest priced of the three. Anthropic's guidance is to reach for Fable when Opus at a higher effort level still falls short. For a quick edit or a short question, it only adds wait time and cost. The current Fable is [`claude-fable-5.1`](https://5abeer.ai/en/models/claude-fable-5.1): Claude Fable 5.1 (`claude-fable-5.1`) per 1M tokens: input $3 (official $10), output $15 (official $50). Official price checked November 21, 2026. ## Sonnet or Opus for coding? The practical line is how much of the work you hand over. If you work turn by turn and review each change, Sonnet's speed and lower price suit that loop. If you hand over a whole task, such as a refactor across the codebase, a feature built from a plan, or an agent that runs on its own for a long time, that is the work Anthropic built Opus for. Claude Code also has a mixed mode, `opusplan`: it uses Opus in plan mode, then switches to Sonnet to carry out the plan. Each switch is a model change, so it restarts the prompt cache, as the cost section below explains. ## Try a higher effort level before a bigger model Anthropic notes that "tuning effort is often a better lever than switching models". Effort sets how much the model reasons before it answers. In Claude Code's words, "lower effort is faster and cheaper for straightforward tasks, while higher effort provides deeper reasoning for complex problems". In Claude Code you set it with `/effort`, the `--effort` flag or the `CLAUDE_CODE_EFFORT_LEVEL` variable, at `low`, `medium`, `high`, `xhigh` or `max`. Anthropic warns that `max` "may show diminishing returns and is prone to overthinking", so test it before you use it widely. Anthropic's effort guide adds that higher levels use more tokens, and that on most workloads `max` "adds significant cost for relatively small quality gains". Effort also matters for the cache. Switching models always starts a new cache. Changing effort doesn't on the newest Claude models: Claude Code's docs say that with an API key or a Claude subscription, the cache stays when you change effort. ## What does each model cost for a real task? The price per token only tells you so much. Take one long coding session that sends two million input tokens and gets one hundred thousand back. On Sonnet: Example: 2,000,000 input tokens and 100,000 output tokens on Claude Sonnet 5.5 (`claude-sonnet-5.5`) cost $1.50 at our price against $5.00 at the official price (70% lower). Official price checked November 21, 2026. The same session on Opus: Example: 2,000,000 input tokens and 100,000 output tokens on Claude Opus 5.5 (`claude-opus-5.5`) cost $3.00 at our price against $10.00 at the official price (70% lower). Official price checked November 21, 2026. And on Fable: Example: 2,000,000 input tokens and 100,000 output tokens on Claude Fable 5.1 (`claude-fable-5.1`) cost $7.50 at our price against $25.00 at the official price (70% lower). Official price checked November 21, 2026. These figures leave out caching. In a long conversation most of the input repeats, and cached input is billed at a fraction of the input price ([Prompt caching](https://5abeer.ai/en/docs/api/caching.md#claude)). Each model has its own cache, so switching models mid-session means the next request reads the whole conversation again with no cache hits. Pick the model at the start of a task, not halfway through. Use every model priced per token through the API for 70% less than its official price. If you use Claude Code for hours every day, a plan may cost less than paying per token. [The cheapest way to use Claude Code](https://5abeer.ai/en/guides/claude-code-cheapest-way) compares both routes. ## How to pick a model in Claude Code To use Claude Code with a 5abeer key, set the base URL, your key and a model in Claude Code's settings file: `~/.claude/settings.json` ```json { "env": { "ANTHROPIC_BASE_URL": "https://api.5abeer.ai", "ANTHROPIC_AUTH_TOKEN": "YOUR_5ABEER_API_KEY", "ANTHROPIC_MODEL": "claude-sonnet-5.5" } } ``` Claude Code uses the Anthropic base URL from this list: | Format | Base URL | Key header | | --- | --- | --- | | OpenAI | `https://api.5abeer.ai/v1` | `Authorization: Bearer ` | | Anthropic | `https://api.5abeer.ai` | `x-api-key: ` | | Gemini | `https://api.5abeer.ai/v1beta` | `x-goog-api-key: ` | As Claude Code's docs put it, "`ANTHROPIC_BASE_URL` changes where requests are sent, not which model answers them." The model comes from these settings, highest priority first: 1. `/model ` during a session 2. `claude --model ` at startup 3. The `ANTHROPIC_MODEL` environment variable 4. The `model` field in your settings file 5. `ANTHROPIC_DEFAULT_MODEL`, the default for new sessions The config above sets `ANTHROPIC_MODEL`, so a `/model` switch lasts for that session. To change the model for every session, change that value. Use full model ids, such as `/model claude-opus-5.5`, rather than the short aliases. Aliases such as `opus` point to the version Claude Code recommends for your provider and change over time, so a full id is the way to pin one version. To pin the aliases and `opusplan` to exact models, set `ANTHROPIC_DEFAULT_OPUS_MODEL`, `ANTHROPIC_DEFAULT_SONNET_MODEL` and `ANTHROPIC_DEFAULT_FABLE_MODEL` to full ids. `CLAUDE_CODE_SUBAGENT_MODEL` sets the default model for subagents, so you can run the main session on Opus and its subagents on Sonnet. Each new model needs a recent Claude Code version. If Claude Code doesn't recognize a model or a request for it fails, run `claude update`. The full setup is in [Claude Code setup](https://5abeer.ai/en/docs/apps/claude-code.md#manual). ## Switching models in your own code On the API, the model is one field in the request. The endpoint and the key stay the same for every Claude model, so moving from Sonnet to Opus means changing one value: ```bash curl --request POST "https://api.5abeer.ai/v1/messages" \ --header "x-api-key: $KHABEER_API_KEY" \ --header "Content-Type: application/json" \ --header "anthropic-version: 2023-06-01" \ --data '{"model":"claude-sonnet-5.5","max_tokens":512,"messages":[{"role":"user","content":"Write a product idea in one sentence."}]}' ``` ```python import os import requests response = requests.post( "https://api.5abeer.ai/v1/messages", headers={ "x-api-key": os.environ['KHABEER_API_KEY'], "Content-Type": "application/json", "anthropic-version": "2023-06-01", }, json={ "model": "claude-sonnet-5.5", "max_tokens": 512, "messages": [ { "role": "user", "content": "Write a product idea in one sentence." } ] }, stream=False, timeout=60, ) response.raise_for_status() print(response.json()) ``` That also means your own code can send routine requests to Sonnet and harder ones to Opus. Every request is billed by its model and its token count. Compatible with the Anthropic Messages API. The full request format is in [Messages](https://5abeer.ai/en/docs/api/messages.md), and prices for every Claude model are on [Claude API](https://5abeer.ai/en/api/claude). Moving code from the OpenAI API? [Migrate from the OpenAI API to Claude](https://5abeer.ai/en/guides/migrate-openai-to-claude) covers what changes. ## FAQ ### Which Claude model is best for coding? For most coding, Sonnet: it is fast and costs less per token than Opus and Fable. For long autonomous runs and large refactors, Opus. For coding agents that run for hours, Fable. To compare Claude with GPT and Gemini for coding, read [Best AI for coding](https://5abeer.ai/en/guides/best-ai-for-coding). ### Is Opus always better than Sonnet? No. Opus is stronger on long, complex work, but on short and clear tasks Sonnet often gives the same result faster and for less. Try a higher effort level on Sonnet before you switch. ### Is Fable worth its price? For the hardest work, it can be: hours-long agent sessions, multistep research, or a full report built from raw data. Try Opus at a higher effort level first. On everyday tasks, Fable adds cost and wait time. ### Can I switch models in the middle of a conversation? Yes, with `/model` in Claude Code or the `model` field in your code. In Claude Code, the next request after a switch reads the whole conversation with no cache hits, so it costs more. Switch between tasks rather than inside one. ### What about Haiku? Haiku is Anthropic's fastest and lowest-priced family, made for real-time apps and high-volume jobs such as classification and data extraction. Check the [models page](https://5abeer.ai/en/models) for which Haiku versions you can use with 5abeer today. ### Does a cheaper model always mean a cheaper task? Not always. A cheaper model that needs several tries can cost more than a stronger one that gets it right the first time. Compare the cost of a finished task, not only the price per token. ### Why is Sonnet the default model? It gives the best balance of speed and price for most requests. You can still choose any model by its id. The full list with prices is on the [models page](https://5abeer.ai/en/models). ## Get started Compare paying per token with a Claude plan in [Claude API vs a Claude plan](https://5abeer.ai/en/guides/claude-api-vs-subscription), or create a key and try the three models on your own tasks. ## Sources Checked on 2026-11-01: - Anthropic: [Models overview](https://platform.claude.com/docs/en/models/overview) - Anthropic: [Choosing the right model](https://platform.claude.com/docs/en/about-claude/models/choosing-a-model) - Anthropic: [Effort](https://platform.claude.com/docs/en/build-with-claude/effort) - Claude Code docs: [Model configuration](https://code.claude.com/docs/en/model-config) - Claude Code docs: [Prompt caching](https://code.claude.com/docs/en/prompt-caching) > 5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google. --- URL: https://5abeer.ai/en/guides/claude-code-hooks # Claude Code hooks: automate checks, formatting and alerts > What Claude Code hooks are, which events they run on, ready examples to copy, and how to run them safely on an API key. Updated: 2026-11-01 Claude Code hooks are commands that Claude Code runs on its own at set points in a session: before a tool runs, after a file edit, when Claude stops or needs your input. You define them in a settings file, so formatting, blocked edits and alerts happen every time, without relying on Claude to remember. ## What are Claude Code hooks? Anthropic's docs describe hooks as "user-defined shell commands" that give you "deterministic control: certain actions always happen rather than relying on the LLM to choose to run them." A line in `CLAUDE.md` asks Claude to do something. A hook runs whether Claude remembers or not. A hook has one of five types: - **`command`:** runs a shell command or script, the most common type. - **`http`:** posts the event's JSON to a URL. - **`mcp_tool`:** calls a tool on a connected MCP server. - **`prompt`:** asks a Claude model one yes-or-no question. - **`agent`:** starts a subagent that can read files and run tools before it decides. Anthropic marks this type experimental. The docs suggest `prompt` and `agent` hooks "for decisions that require judgment rather than deterministic rules." ## Which events can a hook run on? Claude Code has more than 30 hook events. Most setups use these: - **`SessionStart`:** a session begins or resumes. - **`UserPromptSubmit`:** you send a prompt, before Claude processes it. - **`PreToolUse`:** before a tool call runs. It can block the call. - **`PermissionRequest`:** a tool call needs your permission. - **`PostToolUse`:** after a tool call succeeds. - **`Notification`:** Claude Code sends a notification. - **`Stop` and `SubagentStop`:** Claude or a subagent finishes responding. - **`PreCompact` and `SessionEnd`:** before compaction, and when the session ends. A `matcher` narrows when a hook fires. On tool events it matches the tool name, such as `Bash`, `Edit|Write` or `mcp__github__.*`, and it is case-sensitive. On `SessionStart` it matches how the session started, such as `startup`, `resume`, `clear` or `compact`. `UserPromptSubmit` and `Stop` take no matcher. On tool events, the `if` field also filters by input: `"Bash(git *)"` runs the hook only for git commands. ## How do you set up a hook? Hooks live under a `hooks` key in a settings file, and the file sets where they apply: - **`~/.claude/settings.json`:** every project on your machine. - **`.claude/settings.json`:** this project. Commit it to share the hooks with your team. - **`.claude/settings.local.json`:** this project, on your machine only. - **A subagent's frontmatter:** only while that subagent runs. - **A skill's frontmatter:** from when the skill runs until the session ends. Set `once: true` on a hook to remove it after its first successful run. This hook shows a macOS notification when Claude Code needs your attention: ```json { "hooks": { "Notification": [ { "matcher": "", "hooks": [ { "type": "command", "command": "osascript -e 'display notification \"Claude Code needs your attention\" with title \"Claude Code\"'" } ] } ] } } ``` On Linux, use `notify-send 'Claude Code' 'Claude Code needs your attention'` as the command. If the file already has a `hooks` key, add the event inside it. Type `/hooks` to list every loaded hook and its source, and set `"disableAllHooks": true` to turn them all off. ## Which hooks should you add first? ### Format every edited file This `PostToolUse` hook runs Prettier on each file Claude edits or writes: ```json { "hooks": { "PostToolUse": [ { "matcher": "Edit|Write", "hooks": [ { "type": "command", "command": "jq -r '.tool_input.file_path' | xargs npx prettier --write" } ] } ] } } ``` It misses files that a Bash command changes. For those, use a `FileChanged` hook, or a `Stop` hook that runs `git status --porcelain`. ### Block edits to sensitive files Save this script and run `chmod +x .claude/hooks/protect-files.sh`: ```bash #!/bin/bash INPUT=$(cat) FILE_PATH=$(echo "$INPUT" | jq -r '.tool_input.file_path // empty') FILE_PATH="${FILE_PATH//\\//}" PROTECTED_PATTERNS=(".env" "package-lock.json" ".git/") for pattern in "${PROTECTED_PATTERNS[@]}"; do if [[ "$FILE_PATH" == *"$pattern"* ]]; then echo "Blocked: $FILE_PATH matches protected pattern '$pattern'" >&2 exit 2 fi done exit 0 ``` Then register it to run before every edit: ```json { "hooks": { "PreToolUse": [ { "matcher": "Edit|Write", "hooks": [ { "type": "command", "command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/protect-files.sh" } ] } ] } } ``` Exit code 2 blocks the edit, and Claude receives the `Blocked:` message as feedback. ### Restore rules after compaction Compaction summarizes a long conversation and can drop details. A `SessionStart` hook with the `compact` matcher restores them, since Claude Code adds what the command prints to Claude's context: ```json { "hooks": { "SessionStart": [ { "matcher": "compact", "hooks": [ { "type": "command", "command": "echo 'Reminder: use Bun, not npm. Run bun test before committing. Current sprint: auth refactor.'" } ] } ] } } ``` ### Check the work before Claude stops This `Stop` prompt hook asks a model whether every task is done: ```json { "hooks": { "Stop": [ { "hooks": [ { "type": "prompt", "prompt": "Check if all tasks are complete. If not, respond with {\"ok\": false, \"reason\": \"what remains to be done\"}." } ] } ] } } ``` On `"ok": false`, Claude keeps working and takes the reason as its next instruction. Claude Code overrides a `Stop` hook after eight blocks in a row with no tool call between them, and a command hook should check `stop_hook_active` so it doesn't loop. ## How does a hook allow or block an action? A command hook receives the event as JSON on stdin, with fields such as `session_id`, `cwd`, `hook_event_name`, `tool_name` and `tool_input`. Its exit code decides what happens: - **Exit 0:** the action goes ahead. On `SessionStart` and `UserPromptSubmit`, printed text joins Claude's context. - **Exit 2:** blocks the action and sends stderr back as feedback. Some events, such as `SessionStart`, can't be blocked. - **Any other code:** a non-blocking error. On most events the action continues. For finer control, exit 0 and print JSON. On `PreToolUse`, `hookSpecificOutput.permissionDecision` can be `"allow"`, `"deny"`, `"ask"` or `"defer"`, and the most restrictive answer wins. A `"deny"` blocks the tool even with `--dangerously-skip-permissions`, while an `"allow"` only skips the prompt: your deny and ask rules still apply. ## How to run hooks on a 5abeer key `command`, `http` and `mcp_tool` hooks call no model, so they work the same on any key. `prompt` and `agent` hooks send requests over the session's connection, so on a 5abeer key they are billed to your balance: ### 1. Top up your balance Pay with one of the [payment methods](https://5abeer.ai/en/docs/start/payment.md). Prompt and agent hook requests are deducted from this balance. ### 2. Create a key for Claude models Create a key for the Anthropic provider, as in [Create a key](https://5abeer.ai/en/docs/start/keys.md#create). Name it `claude-code` so its usage is easy to find. ### 3. Add the settings Put these settings in `~/.claude/settings.json`, and replace `YOUR_5ABEER_API_KEY` with your key. Your `hooks` key sits in the same file, next to `env`: `~/.claude/settings.json` ```json { "env": { "ANTHROPIC_BASE_URL": "https://api.5abeer.ai", "ANTHROPIC_AUTH_TOKEN": "YOUR_5ABEER_API_KEY", "ANTHROPIC_MODEL": "claude-sonnet-5.5" } } ``` ### 4. Check a hook Start `claude`, type `/hooks` to confirm your hooks loaded, then ask Claude to edit a file and watch the hook run. A prompt hook's `model` field is optional. Without it, the hook uses the model Claude Code runs for background work. If a prompt hook fails with a model error, set `model` to an id your key serves. These are the newest Claude models for Claude Code, at our price per million tokens: | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | Claude Sonnet 5.5 | `claude-sonnet-5.5` | $0.60 | $3 | 1M | | Claude Opus 5.5 | `claude-opus-5.5` | $1.20 | $6 | 1M | | Claude Fable 5.1 | `claude-fable-5.1` | $3 | $15 | — | With a 5abeer plan that includes Claude Code, the 5abeer AI app sets Claude Code up with no key, as in [Claude Code setup](https://5abeer.ai/en/docs/apps/claude-code.md#easy), and hooks run within the plan's limits. ## What do hooks cost? A command hook costs no tokens to run, but what it prints into context does: text from a `SessionStart` or `UserPromptSubmit` hook is sent again with later requests, so keep it short. Each prompt hook is a model request, and an agent hook can take up to 50 tool-use turns. For example, a `Stop` prompt hook that fires 200 times a day, reads about 3,000 tokens each time and answers briefly, with `model` set to our default model: Example: 600,000 input tokens and 20,000 output tokens on Claude Sonnet 5.5 (`claude-sonnet-5.5`) cost $0.42 at our price against $1.40 at the official price (70% lower). Official price checked November 21, 2026. Give Claude Code its own key with a spend limit, as in [Control every key](https://5abeer.ai/en/docs/start/keys.md#controls), and check it in [Track your usage](https://5abeer.ai/en/docs/start/pricing.md#usage). Our price next to the official one is on the [Claude API page](https://5abeer.ai/en/api/claude), and [The cheapest way to use Claude Code](https://5abeer.ai/en/guides/claude-code-cheapest-way) compares a key with a plan. ## How to keep hooks safe Anthropic warns that "command hooks execute shell commands with your full user permissions." Treat each hook like a script you run yourself: - **Test it by hand:** `echo '{"tool_name":"Bash","tool_input":{"command":"ls"}}' | ./my-hook.sh; echo $?`. - **Read a repository's hooks before you trust it.** `-p` and SDK runs skip the workspace trust dialog, so before scripting `claude -p` over code you didn't write, use `--bare` or `--settings '{"disableAllHooks": true}'`. - **Quote variables and check paths:** use `"$VAR"`, reference scripts through `$CLAUDE_PROJECT_DIR`, and reject paths that contain `..`. - **Keep keys out of hook commands.** An `http` hook resolves only the variables listed in `allowedEnvVars`. - **Use permission rules for hard limits.** The docs call the `if` filter best-effort. ## Common errors and fixes If a hook doesn't run, check `/hooks`, the matcher's case and that the script is executable. For "command not found", use an absolute path or `$CLAUDE_PROJECT_DIR`. To see exit codes and stderr, start with `claude --debug-file /tmp/claude.log` or run `/debug`. Prompt and agent hooks use the session's key, so they can hit the same errors as the main conversation: - [`INVALID_API_KEY`](https://5abeer.ai/en/docs/help/errors.md#INVALID_API_KEY): the key in `~/.claude/settings.json` is wrong or was deleted. - [`MODEL_UNAVAILABLE`](https://5abeer.ai/en/docs/help/errors.md#MODEL_UNAVAILABLE): the model in a hook's `model` field isn't available right now. Retry, or pick another served model. - [`INSUFFICIENT_BALANCE`](https://5abeer.ai/en/docs/help/errors.md#INSUFFICIENT_BALANCE): your balance doesn't cover the request. Top up, then try again. - [`API_KEY_QUOTA_EXHAUSTED`](https://5abeer.ai/en/docs/help/errors.md#API_KEY_QUOTA_EXHAUSTED): the key reached its spend limit, often because a prompt hook fires every turn. Every code is explained in [Errors and fixes](https://5abeer.ai/en/docs/help/errors.md). ## FAQ ### Can a hook approve permission prompts for me? Yes. A `PermissionRequest` hook that returns `"behavior": "allow"` answers for you. The docs' example matches only `ExitPlanMode`, so only plan approvals skip the prompt. ### Do hooks work on Windows? Yes. Command hooks run in Git Bash, or in PowerShell when Git Bash isn't installed. Set `"shell": "powershell"` to always use PowerShell. ### Can a subagent have its own hooks? Yes. Hooks in a subagent's frontmatter run only while it works, and `SubagentStart` and `SubagentStop` hooks fire for every subagent. See [Claude Code subagents](https://5abeer.ai/en/guides/claude-code-subagents). ### Can a hook undo an edit? No. `PostToolUse` runs after the tool finishes. To stop an edit, block it in `PreToolUse`. ### Do hooks work on a 5abeer plan? Yes, if your plan includes Claude Code. Prompt and agent hook requests count toward the plan's limits. See [What each plan runs](https://5abeer.ai/en/docs/subscriptions/plan-apps.md#claude-code) and the [pricing page](https://5abeer.ai/en/pricing). ### Is 5abeer part of Anthropic? No. 5abeer is an independent service, not affiliated with Anthropic. ## Sources Checked on 2026-11-01: - Claude Code docs: [Automate actions with hooks](https://code.claude.com/docs/en/hooks-guide) - Claude Code docs: [Hooks reference](https://code.claude.com/docs/en/hooks) - Claude Code docs: [Model configuration](https://code.claude.com/docs/en/model-config) ## Get started Get the 5abeer AI app to run Claude Code and its hooks on your plan, or create a key for Claude models and follow the steps above. --- URL: https://5abeer.ai/en/guides/openrouter-alternative # An OpenRouter alternative below official prices > How OpenRouter charges for models, the fees it publishes, and when an API that sells Claude, GPT and Gemini below official prices costs less. Updated: 2026-11-01 OpenRouter bills tokens at each provider's list price and adds a fee when you buy credit. If you mostly use Claude, GPT and Gemini, an API that sells them below their official prices costs less per token. 5abeer is one: its price is about 70% below the official one, and it supports the OpenAI, Anthropic and Gemini formats. ## What is OpenRouter, and why look for an alternative? OpenRouter is a service that puts models from many providers behind one account and one API. In its own words, it "gives you access to hundreds of AI models through a single API endpoint", and you can point the OpenAI SDK at it as a drop-in replacement. Its quickstart also says it "handles fallbacks automatically" between providers. That breadth is the main reason people use it. The reasons people look elsewhere are usually narrower: - **Cost:** tokens cost the provider's list price, and on the Standard and Business plans buying credit adds a platform fee. - **Payment:** you pay by card, AliPay or USDC. - **Fewer providers:** many teams only call Claude, GPT and Gemini, and want those for less rather than hundreds of models. ## What does OpenRouter charge? OpenRouter publishes its fees on its pricing page and FAQ. These are the main ones, with the source and the date each was checked: OpenRouter fees as it publishes them | Service | Item | Value | Note | Source | | --- | --- | --- | --- | --- | | OpenRouter | Inference (tokens) | The provider's list price, no markup | — | https://openrouter.ai/pricing | | OpenRouter | Credit purchase fee, Standard plan | 5.5% | — | https://openrouter.ai/pricing | | OpenRouter | Credit purchase fee, Business plan | 8% | — | https://openrouter.ai/pricing | | OpenRouter | Bring your own key, above the monthly allowance | 5% | The first $25,000 of list-price usage a month has no fee on Standard and Business. Above that, the fee is a share of what the same request would cost on OpenRouter. | https://openrouter.ai/docs/faq | | OpenRouter | Payment methods | Credit cards, AliPay and USDC crypto | — | https://openrouter.ai/docs/faq | Each row links to the page it comes from, checked October 31, 2026, November 1, 2026. These figures can change, so check the source before you buy. So on OpenRouter the price per token is the official one, and on the Standard and Business plans the platform fee is paid on top when you top up. If you bring your own provider key, OpenRouter charges a share of the request's cost instead, once you pass the monthly allowance in the table. ## OpenRouter and 5abeer side by side | | OpenRouter | 5abeer | | --- | --- | --- | | Price per token | The provider's list price | Below the official price | | Models | Hundreds of models from many providers | Claude, GPT and Gemini models, on the [models page](https://5abeer.ai/en/models) | | How you pay | Card, AliPay or USDC | The methods in [Payment methods](https://5abeer.ai/en/docs/start/payment.md) | Both are independent services that give access to other companies' models through their own API. Neither is the official API of the model's maker. ## How much do Claude, GPT and Gemini cost through 5abeer? These are the newest models from each provider, at our price per million tokens. The full list, with the official price next to ours, is on the [API page](https://5abeer.ai/en/api). | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | Claude Sonnet 5.5 | `claude-sonnet-5.5` | $0.60 | $3 | 1M | | Claude Opus 5.5 | `claude-opus-5.5` | $1.20 | $6 | 1M | | Claude Fable 5.1 | `claude-fable-5.1` | $3 | $15 | — | | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | GPT-6.2 Sol | `gpt-6.2-sol` | $0.60 | $3 | — | | GPT-6.2 Astra | `gpt-6.2-astra` | $2.40 | $12 | — | | GPT-6.1 Sol | `gpt-6.1-sol` | $0.60 | $3 | 922K | | Model | Id | Input (ours) | Output (ours) | Context | | --- | --- | --- | --- | --- | | Gemini 4 Argon | `gemini-4-argon` | $0.60 | $3 | — | | Gemini 2.5 Pro | `gemini-2.5-pro` | $0.38 | $3 | 1M | Here is a worked example on the default model, for an app that sends ten million tokens a month and gets one million back: Example: 10,000,000 input tokens and 1,000,000 output tokens on Claude Sonnet 5.5 (`claude-sonnet-5.5`) cost $9.00 at our price against $30.00 at the official price (70% lower). Official price checked November 21, 2026. On OpenRouter, the same tokens cost the official price shown in that example, plus the platform fee from the fee table when you buy the credit on a plan that charges one. Each provider has its own price page: [Claude API](https://5abeer.ai/en/api/claude), [OpenAI API](https://5abeer.ai/en/api/openai) and [Gemini API](https://5abeer.ai/en/api/gemini). To compare for your own app, take the input and output tokens it sends in a typical month and multiply each by the price per million tokens on each service. Each model page shows the official price next to ours, and on OpenRouter you add the credit fee on top. ## When is OpenRouter the better fit? - You need models from providers other than Anthropic, OpenAI and Google. - You want one service to fall back between providers on its own when one fails. - You already pay with AliPay or USDC, and those suit you best. ## When does 5abeer fit better? - Most of your usage is Claude, GPT or Gemini, and you want a lower price per token. - You run Claude Code, Codex or Gemini CLI on a key, and want a setup guide for each: [Claude Code](https://5abeer.ai/en/docs/apps/claude-code.md), [Codex](https://5abeer.ai/en/docs/apps/codex.md) and [Gemini CLI](https://5abeer.ai/en/docs/apps/gemini-cli.md). - You want a spend limit, an expiry date and an IP allow-list on each key. ## How to switch from OpenRouter ### 1. Create a key per provider Each 5abeer key works with one provider's models: one for Claude, one for GPT, one for Gemini. They all draw on the same balance. The steps are in [Create a key](https://5abeer.ai/en/docs/start/keys.md#create). ### 2. Change the base URL Point your code at the base URL for the format you use. OpenAI SDK code keeps working once you change the base URL and the key: | Format | Base URL | Key header | | --- | --- | --- | | OpenAI | `https://api.5abeer.ai/v1` | `Authorization: Bearer ` | | Anthropic | `https://api.5abeer.ai` | `x-api-key: ` | | Gemini | `https://api.5abeer.ai/v1beta` | `x-goog-api-key: ` | ### 3. Change the model ids Model ids can differ between services, so copy each id from its page on the [models page](https://5abeer.ai/en/models). The full setup for each format is in [Base URLs](https://5abeer.ai/en/docs/start/base-urls.md). ### 4. Send a test request Send one short request and check the reply and its cost, as in [Your usage](https://5abeer.ai/en/docs/start/pricing.md#usage), before you move real traffic. The [Quickstart](https://5abeer.ai/en/docs/start/quickstart.md) has a request to copy. ## FAQ ### Does 5abeer have every model OpenRouter has? No. 5abeer sells models from Anthropic, OpenAI and Google. If you depend on a model from another provider, keep it where you have it now. The full list is on the [models page](https://5abeer.ai/en/models). ### Can I use OpenRouter and 5abeer together? Yes. Each service has its own key and base URL, so one app can call both. Many teams move their Claude, GPT and Gemini calls and leave the rest where they are. ### Will my OpenAI SDK code work? Yes. The API is OpenAI-compatible: change the base URL and keep your code. Claude models also work on the Anthropic Messages format, and Gemini models on the Gemini format. ### Do streaming and tool calling work? Yes. Both work in every format: Chat Completions, Responses, Messages and Gemini. The details, including what each model family supports, are in [Streaming](https://5abeer.ai/en/docs/api/streaming.md) and [Tool calling](https://5abeer.ai/en/docs/api/tools.md). ### Does one key work for every model? No. Each key covers one provider's models, and all your keys share one balance. Calling a GPT model with a Claude key returns [`MODEL_PLATFORM_NOT_ALLOWED`](https://5abeer.ai/en/docs/help/errors.md#MODEL_PLATFORM_NOT_ALLOWED). ### Which model should I start with? For general work, start with the default model, [`claude-sonnet-5.5`](https://5abeer.ai/en/models/claude-sonnet-5.5). For the hardest tasks, move to [`claude-opus-5.5`](https://5abeer.ai/en/models/claude-opus-5.5) or [`claude-fable-5.1`](https://5abeer.ai/en/models/claude-fable-5.1). ### Can I pay from Egypt? Yes. The ways to pay from Egypt and the steps are in [How to pay for the OpenAI or Claude API from Egypt](https://5abeer.ai/en/guides/pay-ai-api-from-egypt), and the details are on the [API in Egypt page](https://5abeer.ai/en/api/egypt). ### Is 5abeer part of OpenRouter, OpenAI, Anthropic or Google? No. 5abeer is an independent service, not affiliated with any of them. ## Get started Compare prices per provider on the [API page](https://5abeer.ai/en/api), or create a key and send your first request. --- URL: https://5abeer.ai/en/guides/website-chatbot-api # Add an AI chatbot to your website with Claude, GPT or Gemini > Embed a chatbot on any website with a small widget and a Node.js server that keeps the API key secret. Tested code, safety limits and costs. Updated: 2026-11-01 Put a small chat widget on your page and let your own server call the model. The widget sends each question to your server, which adds the API key and the instructions, so the key never reaches the browser. With a 5abeer key, the OpenAI SDK reaches Claude, GPT and Gemini models below official prices. ## What do you need to build a website chatbot? - A 5abeer API key for the chatbot's provider. The code uses the default model, [`claude-sonnet-5.5`](https://5abeer.ai/en/models/claude-sonnet-5.5), so it needs a Claude key. See [Create a key](https://5abeer.ai/en/docs/start/keys.md#create) and [How to get an API key for Claude, GPT and Gemini](https://5abeer.ai/en/guides/ai-api-key-guide). - Node.js 22 or later, which the current `openai` SDK requires, with the `express` and `openai` packages. - A server that runs Node.js and stays on. ## Why can't the browser call the API directly? Anything the browser loads, a visitor can read. A key in your page's JavaScript shows in the page source, and anyone who copies it can spend your balance. OpenAI's API reference says the same about its own keys: "Don't share it with others or expose it in any client-side code such as browsers or apps." The chatbot has three parts: 1. The widget: an HTML section and a short script on your page. It sends each question to `/api/chat` on your server. 2. Your server: a small Express app that checks each request, adds the key and the instructions, calls the model and returns only the answer. 3. The 5abeer API: it runs the model and charges your balance for the tokens. The instructions, called the system prompt, stay on the server too, where visitors can't read them. ## How do you connect your server to Claude, GPT or Gemini? 5abeer speaks the OpenAI Chat Completions format, so the server uses the official OpenAI SDK with a different base URL and key. Only the model id and the key's provider change between Claude, GPT and Gemini. The same setup runs [a Telegram AI bot](https://5abeer.ai/en/guides/telegram-bot-ai-api). | Format | Base URL | Key header | | --- | --- | --- | | OpenAI | `https://api.5abeer.ai/v1` | `Authorization: Bearer ` | | Anthropic | `https://api.5abeer.ai` | `x-api-key: ` | | Gemini | `https://api.5abeer.ai/v1beta` | `x-goog-api-key: ` | First, send one test request with your key. If it answers, the key and the model are ready. The format is in [Chat Completions](https://5abeer.ai/en/docs/api/chat-completions.md#quick). ```bash curl --request POST "https://api.5abeer.ai/v1/chat/completions" \ --header "Authorization: Bearer $KHABEER_API_KEY" \ --header "Content-Type: application/json" \ --data '{"model":"claude-sonnet-5.5","messages":[{"role":"user","content":"Write a product idea in one sentence."}]}' ``` ```python import os import requests response = requests.post( "https://api.5abeer.ai/v1/chat/completions", headers={ "Authorization": f"Bearer {os.environ['KHABEER_API_KEY']}", "Content-Type": "application/json", }, json={ "model": "claude-sonnet-5.5", "messages": [ { "role": "user", "content": "Write a product idea in one sentence." } ] }, stream=False, timeout=60, ) response.raise_for_status() print(response.json()) ``` ## What does the server code look like? The server is one file. It serves the widget from the `public` folder and answers `POST /api/chat`. ```javascript import express from "express"; import OpenAI from "openai"; const client = new OpenAI({ apiKey: process.env.KHABEER_API_KEY, baseURL: "https://api.5abeer.ai/v1" }); const MODEL = process.env.CHAT_MODEL || "claude-sonnet-5.5"; // The assistant's instructions stay on the server: visitors can't read or change them. const SYSTEM = `You are the website assistant of Example Store. Answer only questions about the store, in the visitor's language, briefly and in plain text. Opening hours: 9:00 to 21:00, Saturday to Thursday. Shipping takes 2 to 4 days. If you don't know the answer, say so and suggest the contact page.`; const MAX_MESSAGES = 11; // the last 5 questions and answers, plus the new question const MAX_CHARS = 4000; // per message const LIMIT = 20; // requests per visitor IP every 10 minutes const hits = new Map(); setInterval(() => hits.clear(), 10 * 60 * 1000).unref(); function clean(messages) { if (!Array.isArray(messages) || messages.length === 0 || messages.length > MAX_MESSAGES) return null; const out = []; for (const m of messages) { if (!m || (m.role !== "user" && m.role !== "assistant") || typeof m.content !== "string") return null; out.push({ role: m.role, content: m.content.slice(0, MAX_CHARS) }); } return out[0].role === "user" && out.at(-1).role === "user" ? out : null; } const app = express(); // app.set("trust proxy", 1); // behind Nginx, Caddy or a load balancer: see the notes below app.use(express.json()); app.use(express.static("public")); app.post("/api/chat", async (req, res) => { const count = (hits.get(req.ip) ?? 0) + 1; hits.set(req.ip, count); if (count > LIMIT) return res.status(429).json({ error: "Too many messages. Try again in a few minutes." }); const messages = clean(req.body?.messages); if (!messages) return res.status(400).json({ error: "Invalid conversation." }); try { const reply = await client.chat.completions.create({ model: MODEL, messages: [{ role: "system", content: SYSTEM }, ...messages], max_tokens: 800, }); const answer = (reply.choices[0]?.message?.content ?? "").trim(); if (!answer) throw new Error("empty answer"); res.json({ answer }); } catch (error) { console.error("model error:", error.message); res.status(502).json({ error: "The assistant can't answer right now. Try again in a minute." }); } }); app.listen(process.env.PORT || 3000, () => console.log("Chat server running on port", process.env.PORT || 3000)); ``` ## What does the chat widget look like? The widget is two files in the `public` folder: a page with the chat section, and the script that sends the questions. ```text Chat with us

Ask our assistant

``` ```javascript const log = document.getElementById("chat-log"); const form = document.getElementById("chat-form"); const input = document.getElementById("chat-input"); const button = form.querySelector("button"); const turns = []; function add(role, text) { const p = document.createElement("p"); p.className = role; p.textContent = text; // text only: a reply can never inject HTML into the page log.append(p); log.scrollTop = log.scrollHeight; return p; } form.addEventListener("submit", async (event) => { event.preventDefault(); const question = input.value.trim(); if (!question) return; input.value = ""; button.disabled = true; add("user", question); const reply = add("assistant", "Thinking…"); let text = "Sorry, something went wrong. Please try again."; try { const res = await fetch("/api/chat", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ messages: [...turns, { role: "user", content: question }] }), }); const data = await res.json().catch(() => ({})); if (res.ok && data.answer) { text = data.answer; turns.push({ role: "user", content: question }, { role: "assistant", content: data.answer }); turns.splice(0, turns.length - 10); // keep the last 5 questions and answers } else if (data.error) { text = data.error; } } catch { // network error: keep the default message } reply.textContent = text; button.disabled = false; input.focus(); }); ``` We tested these three files on 2026-11-01 with Node.js 22, Express 5.3 and the `openai` SDK 7.47, against a local stand-in for the API and in a real browser, using a fake key. ## How do you run it on your computer? Put `server.mjs` in a folder, with `index.html` and `chat.js` in a `public` folder inside it. Run these commands in that folder: ```bash npm install express openai export KHABEER_API_KEY="YOUR_5ABEER_API_KEY" node server.mjs ``` ```powershell npm install express openai $env:KHABEER_API_KEY="YOUR_5ABEER_API_KEY" node server.mjs ``` Open `http://localhost:3000` and ask a question. Don't double-click `index.html`: the widget needs the server. To change the model or the port, set `CHAT_MODEL` or `PORT` the same way as the key. ## How does the code work? - Instructions: `SYSTEM` tells the model what the assistant is for. Replace the example store's details with your own facts. - Checks: the server accepts at most 11 user and assistant messages, starting and ending with a question, and cuts each one to 4,000 characters. Anything else, including a system message from a visitor, returns a 400 error without calling the model. - Memory: the widget sends the last 5 questions and answers with each new question, so follow-ups work. - Rate limit: each visitor IP gets 20 requests every 10 minutes. The 21st returns a 429 error and costs nothing. The counter lives in memory and resets when the server restarts. - Errors: the SDK retries rate limits, timeouts and server errors twice. If a request still fails, the visitor sees a short apology and the server logs the error. - `max_tokens: 800` caps the answer length for Claude and Gemini models. GPT models ignore it, as listed in [Parameters](https://5abeer.ai/en/docs/api/chat-completions.md#params). - Safe output: the widget writes answers with `textContent`, so HTML in an answer can't run in your page. - Accessibility: the conversation is a named `role="log"` region that screen readers announce, and the input has a visible label. ## How do you add it to an existing website? 1. Copy the `
` element into your page and the `

Ask our assistant

``` ```javascript const log = document.getElementById("chat-log"); const form = document.getElementById("chat-form"); const input = document.getElementById("chat-input"); const button = form.querySelector("button"); const turns = []; function add(role, text) { const p = document.createElement("p"); p.className = role; p.textContent = text; // text only: a reply can never inject HTML into the page log.append(p); log.scrollTop = log.scrollHeight; return p; } form.addEventListener("submit", async (event) => { event.preventDefault(); const question = input.value.trim(); if (!question) return; input.value = ""; button.disabled = true; add("user", question); const reply = add("assistant", "Thinking…"); let text = "Sorry, something went wrong. Please try again."; try { const res = await fetch("/api/chat", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ messages: [...turns, { role: "user", content: question }] }), }); const data = await res.json().catch(() => ({})); if (res.ok && data.answer) { text = data.answer; turns.push({ role: "user", content: question }, { role: "assistant", content: data.answer }); turns.splice(0, turns.length - 10); // keep the last 5 questions and answers } else if (data.error) { text = data.error; } } catch { // network error: keep the default message } reply.textContent = text; button.disabled = false; input.focus(); }); ``` اختبرنا هذه الملفات الثلاثة في 2026-11-01 على Node.js 22 وExpress 5.3 ومكتبة `openai` بالإصدار 7.47، أمام بديل محلي للـ API وفي متصفح حقيقي، بمفتاح وهمي. ## كيف تشغّله على جهازك؟ ضع `server.mjs` في مجلد، وضع `index.html` و`chat.js` في مجلد `public` داخله. ثم شغّل هذه الأوامر في ذلك المجلد: ```bash npm install express openai export KHABEER_API_KEY="YOUR_5ABEER_API_KEY" node server.mjs ``` ```powershell npm install express openai $env:KHABEER_API_KEY="YOUR_5ABEER_API_KEY" node server.mjs ``` افتح `http://localhost:3000` واكتب سؤالًا. لا تفتح `index.html` بنقرة مزدوجة، فالنافذة تحتاج إلى الخادم. ولتغيير النموذج أو المنفذ، اضبط `CHAT_MODEL` أو `PORT` بالطريقة التي ضبطت بها المفتاح. ## كيف يعمل الكود؟ - التعليمات: يحدد `SYSTEM` للنموذج وظيفة المساعد. ضع بيانات نشاطك مكان بيانات المتجر في المثال. - الفحص: يقبل الخادم 11 رسالة على الأكثر من المستخدم والمساعد، تبدأ بسؤال وتنتهي بسؤال، ويقتطع كل رسالة عند 4000 حرف. وأي شيء آخر، ومنه رسالة نظام يرسلها الزائر، يعيد الخطأ 400 دون استدعاء النموذج. - الذاكرة: ترسل النافذة آخر 5 أسئلة وإجاباتها مع كل سؤال جديد، فتنجح أسئلة المتابعة. - حد المعدل: لكل عنوان IP عشرون طلبًا كل 10 دقائق. والطلب الحادي والعشرون يعيد الخطأ 429 ولا يكلّف شيئًا. ويبقى العدّاد في الذاكرة، فيعود إلى الصفر عند إعادة تشغيل الخادم. - الأخطاء: تعيد المكتبة المحاولة مرتين من تلقاء نفسها عند تجاوز حد المعدل أو انتهاء المهلة أو أخطاء الخادم. وإذا فشل الطلب بعدها، يرى الزائر اعتذارًا قصيرًا ويسجّل الخادم الخطأ. - يحدّ `max_tokens: 800` من طول الإجابة في نماذج Claude وGemini، وتتجاهله نماذج GPT، كما في [المعاملات](https://5abeer.ai/ar/docs/api/chat-completions.md#params). - الإخراج الآمن: تكتب النافذة الإجابات عبر `textContent`، فلا يعمل أي HTML تحمله الإجابة داخل صفحتك. - سهولة الوصول: المحادثة منطقة `role="log"` لها اسم، تعلن قارئات الشاشة رسائلها الجديدة، ولحقل الإدخال تسمية ظاهرة. ## كيف تضيفه إلى موقع قائم؟ 1. انسخ العنصر `
` إلى صفحتك، وقواعد `