This guide takes you from a new Platform project to a verified API response. The API is OpenAI-compatible, but your key, project, limits, usage, and logs remain managed by Mibyan Platform.
Before you start
You need:
- A Mibyan account.
- A project in Mibyan Platform.
- A project API key. The complete value is shown only once.
- A server-side environment where the key can be stored.
Never place an API key in browser JavaScript, a mobile app bundle, a URL, a public repository, or a client-side log. Send requests through your own server.
1. Create a project key
Open Platform → API keys, choose the project, and create a key for the environment you need:
test keys are for development and integration checks.
live keys are for production traffic.
Use the narrowest permissions, model access, endpoint access, and expiry that fit the integration. Copy the secret immediately and save it in your secret manager.
The canonical API origin is https://api.mibyanai.com; SDKs should use https://api.mibyanai.com/v1 as their base URL.
3. Send a request
The response includes the Mibyan model ID and a request_id correlation value.
4. Verify the integration
Check the following before moving to production:
- The request succeeds with the expected project key.
- The response
model is mibyan-4.1.
- The request appears under the same project in Usage and Logs.
- Invalid keys return
401 and disallowed endpoints return 403.
- Your server does not log the complete key or prompt content unnecessarily.
Common first-request errors