Skip to content

Introduction

NexoAI is a prepaid AI API gateway for developers who want flagship models without separate vendor accounts, subscriptions, or surprise invoices. It exposes both OpenAI-compatible and Anthropic-compatible request shapes at https://api.nexoai.ma.

The same NexoAI virtual key works with both shapes. Use OPENAI_API_KEY in OpenAI SDKs and tools such as Codex, or use ANTHROPIC_AUTH_TOKEN in Anthropic clients such as Claude Code. Both spend from the same USD wallet.

Pourquoi NexoAI

Vendor APIs are powerful, but every new provider normally adds another account, billing flow, credential, and spending policy. NexoAI puts the useful parts behind one gateway:

  • One prepaid wallet. Sign up with $10 free credit, then top up whenever you need more.
  • Hard spend limits. A key-level budget cap stops spend instead of merely sending an alert.
  • Familiar clients. Keep the OpenAI or Anthropic SDK and change the base URL plus credential.
  • One current catalog. Select GPT, Claude, Gemini, Grok, DeepSeek, or Qwen models by model ID.
  • Local top-ups. Pay in Moroccan dirham through supported local rails; usage remains priced against the USD wallet.

There is no token-group or reseller hierarchy. You create straightforward, named virtual keys in the NexoAI dashboard and optionally attach RPM, TPM, or budget caps to each one.

How a request moves

text
Your app or CLI
    ↓  OpenAI or Anthropic request shape
https://api.nexoai.ma
    ↓  named virtual key + wallet controls
Selected model

NexoAI authenticates the key, checks its limits and the shared wallet, routes the request, then records the usage. Your client receives the response in the API shape it used for the request.

Five-minute setup

  1. Create an account and claim the $10 credit.
  2. Create a named API key with sensible limits.
  3. Check Node.js and npm if you plan to use a CLI.
  4. Set the two variables for your chosen client shape.
  5. Send a request from the curl example or configure a CLI.

Same key, both shapes

You do not need a second key to switch from an OpenAI-compatible tool to an Anthropic-compatible tool. Only the environment-variable names and request format change.

Keep the key secret

Treat sk-your-key like a password. Never place a real key in browser code, screenshots, issue reports, or a committed .env file. Revoke a key in the dashboard immediately if it leaks.

Built for developers across MENA.