DocsAPI Reference
API Reference
This API reference describes the RESTful, streaming, and real-time APIs you can use to interact with the DeepAILab platform.
Authentication
The DeepAILab API uses API keys for authentication. Create, manage, and learn more about API keys in your organization settings.
Keep your API key secure. Do not share it with others or expose it in any client-side code (browsers, apps). API keys should be securely loaded from an environment variable or key management service on the server.
Bearer Token Authentication
Authorization: Bearer DEEPAILAB_API_KEYUsing SDKs
Official libraries for Python and JavaScript.
Initialize.curl
curl https://deepailab.ai/v1/models \
-H "Authorization: Bearer $DEEPAILAB_API_KEY"Debugging Requests
In addition to error codes returned from API responses, you can inspect HTTP response headers containing the unique ID of a particular API request or information about rate limiting applied to your requests.
API Meta Information
| Header | Description |
|---|---|
x-request-id | Unique identifier for this API request (used in troubleshooting) |
deepailab-organization | The organization associated with the request |
deepailab-processing-ms | Time taken processing your API request |
deepailab-version | REST API version used for this request |
Rate Limiting Information
| Header | Description |
|---|---|
x-ratelimit-limit-requests | Maximum requests allowed per time window |
x-ratelimit-limit-tokens | Maximum tokens allowed per time window |
x-ratelimit-remaining-requests | Remaining requests in current window |
x-ratelimit-remaining-tokens | Remaining tokens in current window |
x-ratelimit-reset-requests | Time until request limit resets |
x-ratelimit-reset-tokens | Time until token limit resets |
API Endpoints
Direct links to specific resource documentation.