API keys
API keys authenticate requests to Submodel.ai. You can generate an API key with Read/Write permission, Restricted permission, or Read Only permission.
Generate
To create an API key:
From the console, select Account→Settings.
Under API Keys, choose + Create API Key.
Select the permission. If you choose Restricted permission, you can customize access for each API:
None: No access
(AI API only) Restricted: Custom access to specific endpoints. No access is default.
Read/Write: Full access
Read Only: Read access without write access
Warning Select the minimum permission needed for your use case. Only allow full access to GraphQL when absolutely necessary for automations like creating or managing Submodel.ai resources outside of Serverless endpoints.
Choose Create.
Note Once your API key is generated, keep it secure. Treat it like a password and avoid sharing it in insecure environments.
Edit permission
To edit an API key:
From the console, select Account→Settings.
Under API Keys, select the pencil icon and select the permission.
Choose Update.
Disable
To disable an API key:
From the console, select Account→Settings.
Under API Keys, select the toggle and select Yes.
Enable
To enable an API key:
From the console, select Account→Settings.
Under API Keys, select the toggle and select Yes.
Revoke
To delete an API key:
From the console, select Account→Settings.
Under API Keys, select the trash can icon and select Revoke Key.
Last updated