THE-⁠CODE.AI Labs

Where our AI is made.

THE-⁠CODE.AI Labs is the unit that designs and engineers THE-⁠CODE API and Code Story, in Dubai.

Registered activity on Commercial Licence No. 768066: Innovation & Artificial Intelligence Research & Consultancies

Illustration: THE-⁠CODE.AI Labs, in Dubai, at the root of two products: THE-⁠CODE API and Code Story.

Products

What we build.

Two products, designed and engineered in-house. Each one names its maker on its own site.

  • THE-⁠CODE API

    Multiple AI providers. One API.

    One key and one integration for many AI providers — with keys, credits and usage in one place.

    Visit thecodeapi.com (opens in a new tab)
    Providers named in the docs
    6
    Read-only MCP tools
    11
    “A product by The-Code”
    thecodeapi.com, site footer
  • Code Story

    Researched, bilingual teaching videos.

    Teaching videos in English and natively written Arabic, from a topic or a course prompt — every fact sourced.

    Visit code-story.app (opens in a new tab)
    Pipeline steps
    8
    Critic measures
    7
    “The-Code.ai Labs”
    code-story.app, hero

Research

Research areas.

Four questions we keep working on. Most of them already shape the products you can visit today.

  • Multi-provider AI gateways and agent tooling.

    Many providers, one API — with docs that agents can read.

  • Bilingual Arabic and English generation.

    Two languages, each written from the same sourced facts.

  • Right-sized, sustainable AI.

    The model sized to the task, and systems built to last.

  • Micro-credentials and gamification.

    Recognition and motivation that rest on demonstrated mastery.

Engineering

Architecture notes.

One of our systems, simplified. How THE-⁠CODE API (opens in a new tab) carries a request from key to settled cost.

Simplified architecture

THE-⁠CODE API

One request, from key to settled cost.

Every paid request follows the same six steps. Credits are held before the provider is called, then settled on what the request actually used.

Visit thecodeapi.com (opens in a new tab)
  1. API key

    A named key, with optional expiry, that you can suspend, resume or delete.

  2. Reserve credits

    An estimate is reserved first, within an optional per-request ceiling.

  3. Route to provider

    To the provider behind the model you chose — OpenAI, Anthropic, Google Gemini and more.

  4. Respond

    OpenAI-compatible chat, responses and embeddings, with streaming.

  5. Settle actual usage

    Exactly one charge, on what the request actually used.

  6. Usage and cost APIs

    Cost per request, and usage by day or by model.

Evidence

Labs, on the record.

The licence, the product sites and the public docs behind this page. Each one can be checked.

Registered activities
Artificial Intelligence Developing Services · Innovation & Artificial Intelligence Research & ConsultanciesCommercial Licence No. 768066, Department of Economy and Tourism (DET), Government of Dubai
THE-⁠CODE API
“A product by The-Code”thecodeapi.com — site footer (opens in a new tab)
Code Story
“The-⁠Code.ai Labs” · “a product of The-⁠Code.org”code-story.app — hero and footer (opens in a new tab)
Registered office
Office A-40, Port Saeed, DubaiP.O. Box 390862, United Arab Emirates

Labs

Bring us a hard problem.Research with us.

A question from your classroom, campus or product is where our best work starts. We'll explore it with you — and build what the evidence supports.