Keep the first-call workflow simple, then move into the control plane.
The shortest path is still: create a key, use the base URL, send one successful request, then validate cost and route behavior in the console.
Use one integration surface across the model families teams actually deploy.
This platform is intended to keep mainstream chat, reasoning, image, video, and audio interfaces behind one gateway. The docs stay focused on first-call shape, while the console handles keys, routing, logs, and billing.
OpenAI-compatible access remains the default migration path for many existing applications.
Keep Claude-family workloads visible in the same integration and operations layer.
Cover multimodal and reasoning workflows without fragmenting your external API surface.
Compare newer open-model routes and lower-cost surfaces inside the same gateway contract.
Run image and video generation next to text workloads under one key and usage view.
Bring voice and audio workloads into the same billing, logging, and routing workflow.
Authentication
Create an API key in the console, then send it as a Bearer token in the Authorization header.
Authorization: Bearer YOUR_API_KEY
Base URL
Use the platform endpoint as your single integration surface.
https://api.xlearn.space/v1
OpenAI-style request example
curl https://api.xlearn.space/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "gpt-4.1",
"messages": [
{ "role": "system", "content": "You are a concise release assistant." },
{ "role": "user", "content": "Draft a launch note for a new image generation feature." }
]
}'
Recommended first-call workflow
- Open the console and create a dedicated key for your first workload.
- Review the model list and choose the capability that matches the task.
- Send a single test request from the docs example.
- Return to the console to inspect usage, billing and follow-up adjustments.
Operate in console
Create environment-specific access before you scale traffic.
Open token managementValidate request quality, failures, and spend after the first call.
Open usage logsMove into provider mapping only after capability and usage are already clear.
Open channel operations