API / YOUR NEXT BUILD

Muse Wonder API.
Documentation.

Text chat, coding and reasoning. One website key. One credit balance.

Deciding where to connect? Compare access routes before choosing your credentials.

CONNECT YOUR NEXT BUILD

Muse Wonder Network API.

Use a website API key to add Muse Wonder text conversations, coding and reasoning to your application. Requests use the same purchased credit balance as the website chat. A key provides access; it does not include free credits or create a separate subscription.

Create or manage API keys

1. Create your key.

Sign in with Google or GitHub, open API Keys, name the key and choose its expiry. Copy it when it is created: the full value is shown once. Keep it on your server as MUSEWONDER_API_KEY. Never publish it in browser code, source repositories or screenshots. You can revoke a key at any time.

2. Send a request.

Endpoint: POST https://musewonder.network/api/v1/chat/completions. Authenticate with Authorization: Bearer mw_live_... and send JSON. The model identifier is meta/muse-wonder. This is our website key, not a provider key.

CURL / STREAMING
curl https://musewonder.network/api/v1/chat/completions \
  -H "Authorization: Bearer $MUSEWONDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"meta/muse-wonder","messages":[{"role":"user","content":"Explain this idea clearly."}],"max_tokens":1024,"stream":true}'

Implementation guides: JavaScript quick start · Streaming reader · Troubleshoot API errors.

Use the OpenAI Python client.

The chat completion request format supports familiar OpenAI-style clients. Set the base URL to this website and supply your Muse Wonder Network key. This endpoint implements a limited text chat interface; tools, media uploads, embeddings and other endpoints are not supported.

PYTHON
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://musewonder.network/api/v1",
    api_key=os.environ["MUSEWONDER_API_KEY"],
)
response = client.chat.completions.create(
    model="meta/muse-wonder",
    messages=[{"role": "user", "content": "Review my project plan."}],
    max_tokens=1024,
)
print(response.choices[0].message.content)

Supported fields.

FieldAccepted value
modelmeta/muse-wonder
messages1–40 text messages; system, user or assistant roles; end with user
max_tokens256–16,384; default 8,192, including billable reasoning
streamtrue for server-sent events; false for a JSON response
reasoning.effortminimal, low, medium, high, xhigh or max; default medium

Each message is limited to 16,000 characters; the conversation to 32,000 characters and the request body to 96,000 bytes. These are website limits, not the model's full context capacity. Send previous turns again if your application needs conversation context.

Credits and streaming.

Website usage is 4 credits per 1,000 uncached input tokens, 20 per 1,000 billable output tokens and 0.2 per 1,000 cached input tokens. Reasoning and repeated conversation history count toward usage. The server reserves a conservative maximum budget before generation and returns unused credits after settlement. Expiring trial and monthly credits are used in expiry order before non-expiring packs.

Streamed replies arrive as data: events. The final usage event contains credits_charged and billing_status, followed by [DONE]. Check for errors throughout the stream. Interruptions without final billing data are held for review and reconciled from provider records; cancellation does not guarantee zero usage.

Starter allows 1 concurrent generation, Pro 2 and Max 3. Pack-only accounts allow 1. All keys and browser chats share their account's balance and concurrency limit. View recent usage on your account and compare allowances on Pricing.

Handle errors deliberately.

Errors use an error.message field. HTTP 400 indicates invalid input; 401 a missing, expired or revoked key; 402 insufficient credits; 413 an oversized request; 429 a concurrency limit; 503 a temporarily unavailable connection; and 504 a timeout. An error can also arrive after a streaming response has started. Keep your request and response history on your own server if needed.

Do not automatically retry an interrupted generation as if it were free: review usage first. A new request creates a new generation and can incur another credit charge. We do not retain prompt or response text in the billing ledger. Contact support@musewonder.network with the approximate request time if you need help.