Developer API
API keys and authentication
Create, scope, store, rotate, and revoke Developer API keys safely.
Create a named key
Open the Developer console and create a key for one environment or service. Keys begin with opmd_sk_ and are shown only once, so copy them directly into an approved secret manager.
APIKeysUsageBillingSettingsDocs● LIVEAPI Keys
Manage keys for the Oppermind Lato 1 unified gateway — text, image and video in one API
opmd_sk_ — store securely, shown only onceGenerate API Keyopmd_sk_live_9f2a••••••••••••••••••••opmd_sk_stg_41c7••••••••••••••••••••opmd_sk_ci_08be••••••••••••••••••••Choose the smallest permission
Available key permissions include full access, text only, image generation, and read only. Video generation requires full permission. Do not give a service capabilities it never calls.
APIKeysUsageBillingSettingsDocs● LIVEAPI Keys
Manage keys for the Oppermind Lato 1 unified gateway — text, image and video in one API
opmd_sk_ — store securely, shown only onceGenerate API Keyopmd_sk_live_9f2a••••••••••••••••••••opmd_sk_stg_41c7••••••••••••••••••••opmd_sk_ci_08be••••••••••••••••••••Keep the key server-side
Store the key in a backend secret or environment variable. Your application should authenticate its own users, authorize the requested action, and call Oppermind from the server.
# runs inside your POST /api/summarise handler, after the session check
curl https://oppermind.com/api/v1/messages \
-H "Authorization: Bearer $OPPERMIND_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"oppermind-lato-1","max_tokens":300,"messages":[{"role":"user","content":"Summarise this in three sentences: <validated text from the request>"}]}'{
"id": "req_5b2d8f1a3c7e9b4d6a0f2c8e",
"model": "oppermind-lato-1",
"role": "assistant",
"content": [
{
"type": "text",
"text": "The proposal moves invoicing to a monthly cycle from October. Existing customers keep their current terms until renewal. Finance owns the migration plan."
}
],
"stop_reason": "end_turn",
"usage": {
"input_tokens": 148,
"output_tokens": 33
}
}Limit and rotate
Use separate keys for development, staging, and production. Apply per-key rate controls and an IP allowlist where appropriate. Revoke a leaked or retired key immediately.
# app-prod key, sent from an address outside its IP allowlist
curl https://oppermind.com/api/v1/messages \
-H "Authorization: Bearer $OPPERMIND_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"oppermind-lato-1","messages":[{"role":"user","content":"Hello"}]}'{
"error": {
"type": "authentication_error",
"code": "OPMD_AUTH_003",
"message": "IP not in developer allowlist"
}
}Practise this in Oppermind Academy
Follow the related tutorial or course and apply the concept to a real task.