API URL / Key
MiouFun API clients usually require two values: a request URL and an API Key.
Request URL
After logging in to MiouFun API, find the API information, request URL, or endpoint URL in the console.
Common usage:
- Claude Code: copy the Claude / Anthropic-compatible URL.
- Codex: use the OpenAI-compatible URL and make sure it ends with
/v1. - OpenAI SDK: use the OpenAI-compatible URL.
Note
If the base URL shown in the portal does not include /v1, Codex and OpenAI SDK clients usually require you to append /v1 manually.
Create a Key
Open the token or key management page and click add token.
Recommended fields:
- Token name: for example
MiouFun-CodexorMiouFun-Claude. - Group: choose the model group you want to use.
- Quota limit: set a suitable limit; use a small limit for initial tests.
- Expiration: choose according to your security policy.
Copy the key after creation and store it securely.
Security
An API Key is equivalent to account access credentials. Do not commit it to Git, publish it in screenshots, or share it with strangers.
