OpenAI-compatible API
Base URL:
text
https://aikey365.com/v1Use the current console value if a dedicated API hostname is provided.
Chat Completions
bash
curl https://aikey365.com/v1/chat/completions \
-H "Authorization: Bearer $AIKEY365_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "YOUR_MODEL_ID",
"messages": [{"role": "user", "content": "Hello"}]
}'Responses
bash
curl https://aikey365.com/v1/responses \
-H "Authorization: Bearer $AIKEY365_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "YOUR_MODEL_ID",
"input": "Reply with one short sentence."
}'The server also implements /v1/responses/compact. Advanced field support depends on the selected model and upstream route.
Models
bash
curl https://aikey365.com/v1/models \
-H "Authorization: Bearer $AIKEY365_API_KEY"Embeddings
bash
curl https://aikey365.com/v1/embeddings \
-H "Authorization: Bearer $AIKEY365_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "YOUR_EMBEDDING_MODEL_ID",
"input": "Aikey365"
}'Streaming
When supported by the selected model and route, streaming can be enabled through the compatible request parameters. Production clients should handle interrupted streams and timeouts explicitly.