DocsOpen Moon AI
Browse the docs

Developer API

Moon AI’s developer API, compatible with the OpenAI API and paid as you go: its endpoints, how billing works, the developer portal and where to start.

On this page

The Moon AI developer API gives your own programs access to the models in the catalog. It follows the OpenAI API format: an OpenAI SDK works as is, once you change the base URL and the key.

At a glanceLink to the At a glance section

PropertyValue
Base URLhttps://api.realmoon.ai/v1
AuthenticationAuthorization: Bearer sk-moon-… or x-api-key: sk-moon-…
FormatThe OpenAI API format (JSON, SSE streaming, {"error": {…}} error envelope)
BillingPay as you go, from the workspace wallet, topped up by card with an invoice
UnitThe wallet counts in credits; the portal shows amounts in euros
Personal dataMoon Blur masks the data it detects in the text before sending to the model, and puts it back in the response
RetentionMoon AI does not keep the content of your requests, only their billing metadata

The wallet is separate from your subscription. Some plans include API credit every month: see Costs and wallet and the plans.

EndpointsLink to the Endpoints section

MethodPathPurposeReference
POST/v1/chat/completionsResponse from a chat model, streamed or notChat completions
GET/v1/modelsModel catalog with prices in creditsModels
POST/v1/images/generationsImage generationImages
POST/v1/images/editsImage editing from one or more imagesImages
POST/v1/videosStart a video (background job)Videos
GET/v1/videos/{id}Check on a videoVideos
GET/v1/videos/{id}/contentDownload a finished videoVideos
GET/v1/videosList your videosVideos
POST/v1/audio/speechRead a text aloudAudio
POST/v1/audio/transcriptionsTranscribe an audio fileAudio
POST/v1/embeddingsVectors (embeddings) for one or more textsEmbeddings
POST/v1/ocrText from a PDF or an image, read on our servers in FranceOCR
GET/v1/creditsBalance of the workspace walletBalance and cost
GET/v1/generation?id=…Cost and tokens of a past requestBalance and cost

Any other URL returns 404 with the code unknown_url: for example, the Anthropic-format Messages API, the Responses API, or retrieving a single model (GET /v1/models/{id}).

The portalLink to the The portal section

The portal is in “Settings” › “Developer API”, in the “Tools” group (open the portal), and the CtrlK search opens it too. The account menu only shows it during a top-up offer. It is reserved for the workspace owner and admins; a member sees “Reserved for owners and admins”.

TabWhat you do there
“Overview”Balance, spend and requests this month, auto top-up, recent requests, quickstart with the base URL
“Usage”Spend, requests and tokens per day, most used models, “Request log” (metadata only)
“API keys”Create, configure, replace and revoke keys
“Billing”Top up, set up auto top-up, “Credit history”, “Invoices”
“Models”Catalog you can filter by type, prices in euros, ID to copy
“Limits”Workspace spend caps, rate limit per key, per-key spend caps

The portal works on the active workspace. If you switch workspaces in another tab, it asks you to reload the page before you do anything else.

Where to startLink to the Where to start section

  1. Quickstart: a key, an SDK, a first call.
  2. Authentication: keys, their settings and the headers.
  3. Chat completions: the full reference for POST /v1/chat/completions.
  4. Costs and wallet, Errors and Limits: holds, error codes, caps and retries, worth knowing before you go to production.
  5. Privacy: what Moon AI keeps, what Moon Blur masks and what model providers see.

In this section

Getting started

Reference

How it works

Moon AI

Moon AI in action

0:00

Explore

Screenshots of chat.realmoon.ai taken on October 29, 2026, with fictional data.

Moon AI

Your preferences

Visits counted without cookies.

Our server counts visits without cookies or trackers. Your theme and your answer about ad measurement are remembered on this device.

Ad measurement

With your consent, our ad networks’ trackers (Google) measure our ads, from the visit to the sign-up and then to the first subscription and its amount, and may show you our ads. Your answer is valid for 13 months; you can change it here at any time.

No answer saved on this device.

After you decline, no tag is loaded anymore and the site deletes the cookies they had set on realmoon.ai. Those on the ad networks’ own domains are managed with them or in your browser.

The Moon AI app has its own privacy settings.