API
Base URL and authentication
Configure the OpenAI-compatible base URL, bearer token, and request headers.
Base URL
Use the OpenAI-compatible gateway endpoint:
https://uouo.cloud/v1Replace this placeholder with the production domain provided by your deployment or account team.
Authentication
All API requests require a bearer token created in the uouo cloud console.
export UOUODUO_API_KEY="sk-xxx..."Send it in the `Authorization` header:
Authorization: Bearer $UOUODUO_API_KEY
Content-Type: application/jsonMinimal smoke test
curl https://uouo.cloud/v1/models \
-H "Authorization: Bearer $UOUODUO_API_KEY"If the key is valid, the response contains model objects available to your account.
Common mistakes
- Missing `/v1` at the end of the base URL.
- Using a dashboard session cookie instead of an API key.
- Sending the API key from browser-side code.
- Copying a disabled or revoked key.
Security guidance
Store API keys in server-side environment variables or secret managers. Create separate keys for local development, staging, production, and each workspace that needs isolated usage tracking.