MMoozonian Developer Docs
Moozonian / Developer Platform / API Wiki
OFFICIAL API DOCUMENTATION

Build with Moo-AI.
Start here.

A practical guide to connecting your website, application, or backend to Moozonian's API. Learn authentication, request formats, supported models, monthly credits, and reliable error handling.

Explore the guides below or choose a topic.

Connect in 5 minutes

From account creation to your first request.

Quick start →

Integrate with your app

Examples for cURL, Python, Node.js and PHP.

Code examples →

Manage usage

Monthly credits, model eligibility and rate limits.

Usage limits →
01 · Get started

Quick start

Follow these steps to generate your first Moo-AI response. Creating a plan selection does not charge you. Stripe will present the subscription amount before you authorize payment.

  1. Choose a subscription plan

    Open Moo-AI API pricing and select Starter, Developer, Pro or Business.

  2. Create an account and verify your email

    Register or sign in. Open your verification email before proceeding.

  3. Complete Stripe Checkout

    After verification, select your plan and approve the recurring subscription on Stripe. A successful payment must be reflected in your billing dashboard before paid API access is available.

  4. Create an API key

    In My dashboard, click Create API key when your subscription is active. Copy the sk_moo_... key immediately — it is shown only once. You can maintain up to five active keys.

  5. Send an authenticated request

    Store the key in a server-side environment variable and run a cURL, Python, Node.js, or PHP example below.

First check API health (public connectivity only), then query GET /v1/models with your key to discover catalog models permitted for your plan. A model may be listed but not currently running on a GPU.
02 · Identity

Authentication & API keys

Authenticated endpoints use an HTTP Bearer token. Keys start with sk_moo_ and are managed through your billing dashboard. Use HTTPS for all requests.

HTTP request header
Authorization: Bearer sk_moo_YOUR_SECRET_KEY
  • Keep the full secret in a backend environment variable or secrets manager, not in a frontend bundle, browser local storage, GitHub repository, or URL.
  • Copy new keys immediately; only a key prefix is shown later.
  • If compromised, revoke the key in your dashboard, then generate another.
  • An inactive or unpaid subscription cannot access paid API endpoints even if a key exists.
03 · Reference

Endpoints

Base URL https://www.moozonian.com/moo-ai-api

MethodPathAuthenticationPurpose
GET/healthPublicBasic service health
GET/v1/plansPublicCurrent plan metadata and allowances
GET/v1/modelsBearer keyModels permitted for your subscription
GET/v1/usageBearer keyCredits, reservations and token usage
POST/v1/chat/completionsBearer keyText or entitled vision inference, optionally streaming

Chat request properties

FieldTypeNotes
modelstringRequired. Use an ID returned from /v1/models.
messagesarray1–40 messages; roles system, user, assistant.
max_tokensintegerPositive. Must fit your plan's maximum output limit. Default: 512.
temperaturenumber0–2. Default: 0.7.
streambooleanDefault false. Set true for SSE.
stream_options.include_usagebooleanOptionally emit usage data in a streaming response.

The response follows a core OpenAI-style chat completions structure with choices[0].message.content and token usage. This is not a full OpenAI API clone (no tool calling, embeddings, or structured-output enforcement).

04 · Integrate

Connect your application

Choose your server-side language. Replace the placeholder API key with your own key; for Python, Node.js and cURL environment-variable examples, set MOO_AI_KEY on your server first.

Terminal · cURL
# Save your key on your backend — never embed it in public JavaScript.
export MOO_AI_KEY='sk_moo_YOUR_SECRET_KEY'

curl -sS https://www.moozonian.com/moo-ai-api/v1/chat/completions \
  -H "Authorization: Bearer $MOO_AI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"model":"moo-ai:quickoverview","messages":[{"role":"user","content":"Explain the benefits of renewable energy."}],"max_tokens":256}'
Example model moo-ai:quickoverview requires plan entitlement and an available model backend. If the model is not listed for your key, use a model ID returned by GET /v1/models.

List models and check your allowance

Terminal · catalog and usage
curl -sS https://www.moozonian.com/moo-ai-api/v1/models \
  -H "Authorization: Bearer $MOO_AI_KEY"

curl -sS https://www.moozonian.com/moo-ai-api/v1/usage \
  -H "Authorization: Bearer $MOO_AI_KEY"

The usage response includes your subscription plan, paid-through date, UTC month, credits allowed, used, reserved and remaining, and completed request/token totals.

05 · Available catalog

Model catalog

Catalog entries and their minimum tiers are loaded from Moozonian's API model configuration. Model availability depends on a reachable backend; inclusion below is not a live readiness claim.

Model IDMinimum planCredit weightCategory
moo-ai:quickoverview-fastStarter1×overview
moo-ai:quickoverviewStarter1×overview
moo-ai:quickoveriewStarter1×legacy alias
qwen3:4bStarter1×general
llama3.2:3bStarter1×general
llama3.2:latestStarter1×general
moo-ai:latestDeveloper2×general
qwen3:8b-q4_K_MDeveloper2×general
moo-ai:coderDeveloper2×code
qwen2.5-coder:7b-instruct-q4_K_MDeveloper2×code
moo-ai:coder-v6Pro3×code
moo-ai:coder-webPro3×code + web-trained
moo-ai:coder-web-v6Pro4×code + web-trained
moo-ai:coder-proPro6×L4 dedicated code
moo-ai:visionPro3×vision
glm-5.3:cloudBusiness12×cloud (gated)
mistral-large-4:cloudBusiness12×cloud (gated)

Vision and cloud models may require additional entitlement, activation and available compute infrastructure. Cloud models are not enabled by default.

06 · Metering

Plans, credits & limits

Monthly Moo credits measure weighted inference usage, not dollars or raw token counts. Usage is counted by UTC calendar month, and unused credits do not automatically carry forward.

PlanMonthly creditsRequests/minConcurrentMax output
Starter500,0001011,024
Developer2,000,0003022,048
Pro7,000,0006044,096
Business25,000,00012088,192
For text requests, credits are based on model weight × (input tokens + 3 × output tokens). Supported image inputs incur an additional image cost. Available credits are reserved before inference and reconciled after the response, so an insufficient balance can require a smaller max_tokens value.

Rate limits apply per account. A 429 response means you reached a request/concurrency limit or do not have enough credits for the requested reservation. See error handling.

07 · Real-time output

Streaming responses

Set stream: true to receive Server-Sent Events over one POST connection. Read each data: frame and append choices[0].delta.content to your UI until data: [DONE].

Terminal · streaming
curl -N https://www.moozonian.com/moo-ai-api/v1/chat/completions \
  -H "Authorization: Bearer $MOO_AI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"model":"moo-ai:quickoverview","messages":[{"role":"user","content":"Explain an API in three sentences."}],"max_tokens":200,"stream":true,"stream_options":{"include_usage":true}}'
# Server-Sent Events (SSE): read data: frames until data: [DONE]

When streaming, an error may be emitted as an SSE frame if inference fails after the response has begun. Implement appropriate timeout and retry behavior in your backend.

08 · Multimodal

Vision input (eligible plans)

When enabled and online for your plan, moo-ai:vision accepts image content as an inline data:image/png;base64,... URL, or JPEG/WebP equivalent, in a user message. External image URLs are not supported.

JSON request body
{
  "model": "moo-ai:vision",
  "messages": [{
    "role": "user",
    "content": [
      {"type": "text", "text": "Describe this image."},
      {"type": "image_url", "image_url": {
        "url": "data:image/png;base64,REPLACE_WITH_YOUR_BASE64_DATA"
      }}
    ]
  }],
  "max_tokens": 256
}
  • Maximum two images per request and 1.5 MB decoded per image.
  • Image content must be used with moo-ai:vision in a user message.
  • Check GET /v1/models first; a listed vision entitlement does not guarantee that the model is currently running.
09 · Reliability

Errors & troubleshooting

StatusWhat it meansRecommended action
400Invalid model, JSON or request fieldsCheck your model ID, message shape and output limits.
401Missing, invalid or revoked keySend a correct Authorization: Bearer header.
402Subscription inactive/expiredCheck billing and paid-through date.
403Model not included or disabledUse a model returned by /v1/models.
413Input payload too largeShorten messages or reduce image size.
429Credits, RPM or concurrency exceededLower token reservation, reduce concurrency or retry later.
503Backend busy or unavailableRetry with exponential backoff; try an entitled lightweight model.

Error shape

Typical API error
{"error":{"message":"Model backend unavailable.","type":"api_error","code":"upstream_unavailable"}}

For 401, check that your hosting stack forwards the Authorization header through nginx and Apache to PHP. For 503, a basic health response alone cannot prove a specific GPU model is online.

10 · Best practices

Security & production integration

  • Use a server-side proxy. Your browser or mobile app calls your backend; your backend calls Moo-AI with the secret key.
  • Keep secrets private. Use environment variables or a secrets manager; do not send keys in URL query strings.
  • Separate applications. Give each integration its own API key where practical, revoke unused keys, and rotate compromised keys.
  • Limit request size. Apply timeouts, retry only safe failures, and handle 429/503 without runaway loops.
  • Watch usage. Check /v1/usage to monitor credit availability during the UTC billing month.
  • Verify billing. Subscription access and model entitlement are controlled by your Moo-AI account and successful payment state.
Never paste your production sk_moo_... key into chat messages, support tickets, public JavaScript or online API playgrounds.
11 · Questions

Frequently asked questions

How do I get an API key?

Sign up, verify your email, activate your subscription, then select Create API key in your dashboard. Save it immediately.

Can I use the OpenAI SDK?

Moo-AI supports the core /v1/chat/completions JSON format. Some SDKs can be configured to use a custom base URL, but unsupported features such as function calling, embeddings or JSON schema enforcement may fail. The direct HTTP examples above are the documented integration method.

How do I check my remaining monthly credits?

Call authenticated GET /v1/usage and read credits.remaining. The response also includes used and reserved credits.

Why does a model appear but fail to answer?

The model catalog indicates plan entitlement; it does not confirm that the specific model is loaded or available on an inference backend at request time.

Does selecting an API plan immediately charge my card?

No. Selecting a plan opens the account flow. If you proceed, Stripe presents the recurring price for approval before completing payment.

Can I embed my key in a website or Android app?

No. Keep the API key on a trusted backend and call Moo-AI through your own authenticated server endpoint.